diff --git a/package.json b/package.json index e53c9f6b..b3600c86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-pc-ui", - "version": "4.3.39", + "version": "4.3.40", "description": "A vue based PC component library", "scripts": { "update": "npm install --legacy-peer-deps", diff --git a/packages/checkbox/src/checkbox.ts b/packages/checkbox/src/checkbox.ts index 5c9037e5..a34f79f8 100644 --- a/packages/checkbox/src/checkbox.ts +++ b/packages/checkbox/src/checkbox.ts @@ -112,11 +112,13 @@ export default defineComponent({ Object.assign($xeCheckbox, checkboxMethods) const renderVN = () => { + const { label } = props const vSize = computeSize.value const isDisabled = computeIsDisabled.value const isChecked = computeIsChecked.value const indeterminate = !isChecked && props.indeterminate return h('label', { + key: label, class: ['vxe-checkbox', { [`size--${vSize}`]: vSize, 'is--indeterminate': indeterminate, diff --git a/packages/checkbox/src/group.ts b/packages/checkbox/src/group.ts index 45aaa4b2..e8ff2122 100644 --- a/packages/checkbox/src/group.ts +++ b/packages/checkbox/src/group.ts @@ -136,6 +136,7 @@ export default defineComponent({ : (options ? options.map(item => { return h(VxeCheckboxComponent, { + key: item[valueField], label: item[valueField], content: item[labelField], disabled: item[disabledField] diff --git a/packages/list/src/list.ts b/packages/list/src/list.ts index 03a156c8..c3fd1941 100644 --- a/packages/list/src/list.ts +++ b/packages/list/src/list.ts @@ -153,7 +153,7 @@ export default defineComponent({ if (firstItemElem) { rowHeight = firstItemElem.offsetHeight } - rowHeight = Math.max(20, rowHeight) + rowHeight = Math.max(12, rowHeight) scrollYStore.rowHeight = rowHeight // 计算 Y 逻辑 if (scrollYLoad) { diff --git a/packages/radio/src/button.ts b/packages/radio/src/button.ts index 5d9373d4..44141640 100644 --- a/packages/radio/src/button.ts +++ b/packages/radio/src/button.ts @@ -119,12 +119,14 @@ export default defineComponent({ } const renderVN = () => { + const { label } = props const vSize = computeSize.value const isDisabled = computeIsDisabled.value const name = computeName.value const isChecked = computeChecked.value return h('label', { + key: label, class: ['vxe-radio', 'vxe-radio-button', { [`size--${vSize}`]: vSize, 'is--disabled': isDisabled diff --git a/packages/radio/src/group.ts b/packages/radio/src/group.ts index cf407f64..ba4db4ed 100644 --- a/packages/radio/src/group.ts +++ b/packages/radio/src/group.ts @@ -124,6 +124,7 @@ export default defineComponent({ : (options ? options.map(item => { return h(btnComp, { + key: item[valueField], label: item[valueField], content: item[labelField], disabled: item[disabledField] diff --git a/packages/radio/src/radio.ts b/packages/radio/src/radio.ts index ca99a548..14796095 100644 --- a/packages/radio/src/radio.ts +++ b/packages/radio/src/radio.ts @@ -122,11 +122,13 @@ export default defineComponent({ Object.assign($xeRadio, radioMethods, radioPrivateMethods) const renderVN = () => { + const { label } = props const vSize = computeSize.value const isDisabled = computeIsDisabled.value const name = computeName.value const isChecked = computeChecked.value return h('label', { + key: label, class: ['vxe-radio', { [`size--${vSize}`]: vSize, 'is--checked': isChecked, diff --git a/types/components/table.d.ts b/types/components/table.d.ts index b4037179..4a8089b9 100644 --- a/types/components/table.d.ts +++ b/types/components/table.d.ts @@ -377,7 +377,7 @@ export namespace VxeTablePropTypes { /** * 垂直对齐方式 */ - verticalAlign?: '' | 'top' | 'center' + verticalAlign?: '' | 'top' | 'center' | null } /**