diff --git a/src/uni_modules/uni-forms/changelog.md b/src/uni_modules/uni-forms/changelog.md index c358a21..3d998bc 100644 --- a/src/uni_modules/uni-forms/changelog.md +++ b/src/uni_modules/uni-forms/changelog.md @@ -1,3 +1,7 @@ +## 1.4.10(2023-11-03) +- 优化 labelWidth 描述错误 +## 1.4.9(2023-02-10) +- 修复 required 参数无法动态绑定 ## 1.4.8(2022-08-23) - 优化 根据 rules 自动添加 required 的问题 ## 1.4.7(2022-08-22) diff --git a/src/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue b/src/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue index ce7c460..0aef9cc 100644 --- a/src/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue +++ b/src/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue @@ -2,9 +2,9 @@ - - * + * {{label}} @@ -36,7 +36,7 @@ * @tutorial https://ext.dcloud.net.cn/plugin?id=2773 * @property {Boolean} required 是否必填,左边显示红色"*"号 * @property {String } label 输入框左边的文字提示 - * @property {Number } labelWidth label的宽度,单位px(默认65) + * @property {Number } labelWidth label的宽度,单位px(默认70) * @property {String } labelAlign = [left|center|right] label的文字对齐方式(默认left) * @value left label 左侧显示 * @value center label 居中 @@ -91,7 +91,7 @@ type: String, default: '' }, - // label的宽度 ,默认 80 + // label的宽度 labelWidth: { type: [String, Number], default: '' @@ -126,10 +126,9 @@ data() { return { errMsg: '', - isRequired: false, userRules: null, localLabelAlign: 'left', - localLabelWidth: '65px', + localLabelWidth: '70px', localLabelPos: 'left', border: false, isFirstBorder: false, @@ -315,7 +314,6 @@ this.localLabelWidth = this._labelWidthUnit(labelWidth) // 标签位置 this.localLabelPos = this._labelPosition() - this.isRequired = this.required // 将需要校验的子组件加入form 队列 this.form && type && childrens.push(this) @@ -351,8 +349,6 @@ this.validator = validator // 默认值赋予 this.itemSetValue(_getDataValue(this.name, localData)) - this.isRequired = this._isRequired() - }, unInit() { if (this.form) { @@ -417,9 +413,9 @@ // const { // labelWidth // } = this.form - return this.num2px(this.labelWidth ? this.labelWidth : (labelWidth || (this.label ? 65 : 'auto'))) + return this.num2px(this.labelWidth ? this.labelWidth : (labelWidth || (this.label ? 70 : 'auto'))) // } - // return '65px' + // return '70px' }, // 处理 label 位置 _labelPosition() { diff --git a/src/uni_modules/uni-forms/components/uni-forms/uni-forms.vue b/src/uni_modules/uni-forms/components/uni-forms/uni-forms.vue index ed2f6d9..9bb9ae7 100644 --- a/src/uni_modules/uni-forms/components/uni-forms/uni-forms.vue +++ b/src/uni_modules/uni-forms/components/uni-forms/uni-forms.vue @@ -52,7 +52,7 @@ * @property {String} labelPosition = [top|left] label 位置 默认 left * @value top 顶部显示 label * @value left 左侧显示 label - * @property {String} labelWidth label 宽度,默认 65px + * @property {String} labelWidth label 宽度,默认 70px * @property {String} labelAlign = [left|center|right] label 居中方式 默认 left * @value left label 左侧显示 * @value center label 居中 diff --git a/src/uni_modules/uni-forms/package.json b/src/uni_modules/uni-forms/package.json index e3736c4..464b4e6 100644 --- a/src/uni_modules/uni-forms/package.json +++ b/src/uni_modules/uni-forms/package.json @@ -1,7 +1,7 @@ { "id": "uni-forms", "displayName": "uni-forms 表单", - "version": "1.4.8", + "version": "1.4.10", "description": "由输入框、选择器、单选框、多选框等控件组成,用以收集、校验、提交数据", "keywords": [ "uni-ui", diff --git a/src/uni_modules/uni-icons/changelog.md b/src/uni_modules/uni-icons/changelog.md index 6449885..0261131 100644 --- a/src/uni_modules/uni-icons/changelog.md +++ b/src/uni_modules/uni-icons/changelog.md @@ -1,3 +1,23 @@ +## 2.0.10(2024-06-07) +- 优化 uni-app x 中,size 属性的类型 +## 2.0.9(2024-01-12) +fix: 修复图标大小默认值错误的问题 +## 2.0.8(2023-12-14) +- 修复 项目未使用 ts 情况下,打包报错的bug +## 2.0.7(2023-12-14) +- 修复 size 属性为 string 时,不加单位导致尺寸异常的bug +## 2.0.6(2023-12-11) +- 优化 兼容老版本icon类型,如 top ,bottom 等 +## 2.0.5(2023-12-11) +- 优化 兼容老版本icon类型,如 top ,bottom 等 +## 2.0.4(2023-12-06) +- 优化 uni-app x 下示例项目图标排序 +## 2.0.3(2023-12-06) +- 修复 nvue下引入组件报错的bug +## 2.0.2(2023-12-05) +-优化 size 属性支持单位 +## 2.0.1(2023-12-05) +- 新增 uni-app x 支持定义图标 ## 1.3.5(2022-01-24) - 优化 size 属性可以传入不带单位的字符串数值 ## 1.3.4(2022-01-24) diff --git a/src/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue b/src/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue new file mode 100644 index 0000000..8740559 --- /dev/null +++ b/src/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue @@ -0,0 +1,91 @@ + + + + + diff --git a/src/uni_modules/uni-icons/components/uni-icons/uni-icons.vue b/src/uni_modules/uni-icons/components/uni-icons/uni-icons.vue index 86e7444..7da5356 100644 --- a/src/uni_modules/uni-icons/components/uni-icons/uni-icons.vue +++ b/src/uni_modules/uni-icons/components/uni-icons/uni-icons.vue @@ -1,24 +1,28 @@