fix(col): [layout] Fix Vue warning with configuration span of 24 (#1272)

* 修复col 栅格布局为24是vue警告

* 修复col 栅格布局为24是vue警告

* 修复col 栅格布局为24是vue警告
This commit is contained in:
falcon-jin 2024-02-02 10:49:21 +08:00 committed by GitHub
parent f9630ee19c
commit f6257a7374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -18,12 +18,12 @@ export default defineComponent({
...$props,
/**
* @property {number} [span=12] - 12
* @property {number} [span=12] - 12/24
*/
span: {
type: Number,
default: 12,
validator: (value: number) => Math.floor(value) === value && value > 0 && value <= 12
validator: (value: number) => Math.floor(value) === value && value > 0 && value <= 24
},
/**