forked from opentiny/tiny-vue
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:
parent
f9630ee19c
commit
f6257a7374
|
@ -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
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue