diff --git a/uni_modules/uni-badge/changelog.md b/uni_modules/uni-badge/changelog.md index 56581c4eee26d01227b094831bf8c03aaecf5ebc..e352c60c60c1cda22aa86d15fccd26ee1f6a36ba 100644 --- a/uni_modules/uni-badge/changelog.md +++ b/uni_modules/uni-badge/changelog.md @@ -1,3 +1,5 @@ +## 1.2.2(2023-01-28) +- 修复 运行/打包 控制台警告问题 ## 1.2.1(2022-09-05) - 修复 当 text 超过 max-num 时,badge 的宽度计算是根据 text 的长度计算,更改为 css 计算实际展示宽度,详见:[https://ask.dcloud.net.cn/question/150473](https://ask.dcloud.net.cn/question/150473) ## 1.2.0(2021-11-19) diff --git a/uni_modules/uni-badge/components/uni-badge/uni-badge.vue b/uni_modules/uni-badge/components/uni-badge/uni-badge.vue index 664dc370bfa3d192570df854b490b1f80b4aa01a..282d2539742c791f2adc35c0ca75e545616c9ea4 100644 --- a/uni_modules/uni-badge/components/uni-badge/uni-badge.vue +++ b/uni_modules/uni-badge/components/uni-badge/uni-badge.vue @@ -21,7 +21,7 @@ * @value error 红色 * @property {String} inverted = [true|false] 是否无需背景颜色 * @property {Number} maxNum 展示封顶的数字值,超过 99 显示 99+ - * @property {String} absolute = [rightTop|rightBottom|leftBottom|leftTop] 开启绝对定位, 角标将定位到其包裹的标签的四角上 + * @property {String} absolute = [rightTop|rightBottom|leftBottom|leftTop] 开启绝对定位, 角标将定位到其包裹的标签的四角上 * @value rightTop 右上 * @value rightBottom 右下 * @value leftTop 左上 @@ -191,12 +191,13 @@ /* #ifndef APP-NVUE */ display: flex; overflow: hidden; - box-sizing: border-box; + box-sizing: border-box; + font-feature-settings: "tnum"; + min-width: 20px; /* #endif */ justify-content: center; flex-direction: row; height: 20px; - min-width: 20px; padding: 0 4px; line-height: 18px; color: #fff; @@ -206,7 +207,6 @@ border: 1px solid #fff; text-align: center; font-family: 'Helvetica Neue', Helvetica, sans-serif; - font-feature-settings: "tnum"; font-size: $bage-size; /* #ifdef H5 */ z-index: 999; diff --git a/uni_modules/uni-badge/package.json b/uni_modules/uni-badge/package.json index 7a34d9c3e1a0c3604f2dea26843e10e77eb616f2..b0bac93787ecccb53c389824a9910afbc0d77640 100644 --- a/uni_modules/uni-badge/package.json +++ b/uni_modules/uni-badge/package.json @@ -1,7 +1,7 @@ { "id": "uni-badge", "displayName": "uni-badge 数字角标", - "version": "1.2.1", + "version": "1.2.2", "description": "数字角标(徽章)组件,在元素周围展示消息提醒,一般用于列表、九宫格、按钮等地方。", "keywords": [ "", diff --git a/uni_modules/uni-easyinput/changelog.md b/uni_modules/uni-easyinput/changelog.md index 3f9d3b38684d2b19e71e986106b3e7ff72780bf6..5f5a55d4c0a1661a3a92e9365f817fae73fb40d0 100644 --- a/uni_modules/uni-easyinput/changelog.md +++ b/uni_modules/uni-easyinput/changelog.md @@ -1,3 +1,5 @@ +## 1.1.6(2023-01-28) +- 新增 keyboardheightchange 事件,可监听键盘高度变化 ## 1.1.5(2022-11-29) - 优化 主题样式 ## 1.1.4(2022-10-27) diff --git a/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue b/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue index 68dd6a6095cb8525d5cfd1bb107611cb98ff47f7..5f3ace73217ec6506fcd7434657bc0d4f923a4e9 100644 --- a/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue +++ b/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue @@ -19,6 +19,7 @@ @blur="_Blur" @focus="_Focus" @confirm="onConfirm" + @keyboardheightchange="onkeyboardheightchange" >