(component): row 与 col 的所有属性同时兼容 number 与 string 类型

This commit is contained in:
就眠儀式 2022-06-25 22:58:45 +08:00
parent 77be989540
commit a4094f5d8a
8 changed files with 25 additions and 25 deletions

View File

@ -28,11 +28,11 @@ export default (): UserConfigExport => {
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log']
pure_funcs: ["console.log"],
},
output: {
comments: true
}
comments: true,
},
},
rollupOptions: {
output: {

View File

@ -70,11 +70,11 @@ export default (): UserConfigExport => {
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log']
pure_funcs: ["console.log"],
},
output: {
comments: true
}
comments: true,
},
},
rollupOptions: {
input: inputs,

View File

@ -28,11 +28,11 @@ export default (): UserConfigExport => {
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log']
pure_funcs: ["console.log"],
},
output: {
comments: true
}
comments: true,
},
},
rollupOptions: {
output: {

View File

@ -182,7 +182,7 @@ const selectBar = (item: any, selectIndex: number, parentIndex: number) => {
treeData.value[index].selectIndex = null;
treeData.value[index].data = [];
}
if (!item.children||item.children.length===0) {
if (!item.children || item.children.length === 0) {
//
let data: any[] = [];
function extractData(orginData: any, dataContainer: any, index: number) {

View File

@ -8,14 +8,14 @@ export default {
import { computed } from "vue";
export interface LayColProps {
md?: string;
xs?: string;
sm?: string;
lg?: string;
mdOffset?: string;
xsOffset?: string;
smOffset?: string;
lgOffset?: string;
md?: string | number;
xs?: string | number;
sm?: string | number;
lg?: string | number;
mdOffset?: string | number;
xsOffset?: string | number;
smOffset?: string | number;
lgOffset?: string | number;
}
const props = defineProps<LayColProps>();

View File

@ -9,7 +9,7 @@ import { computed } from "vue";
import "./index.less";
export interface LayRowProps {
space?: string;
space?: string | number;
}
const props = defineProps<LayRowProps>();

View File

@ -24,11 +24,11 @@ export default defineConfig({
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log']
pure_funcs: ["console.log"],
},
output: {
comments: true
}
comments: true,
},
},
rollupOptions: {
output: {

View File

@ -25,11 +25,11 @@ export default defineConfig({
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log']
pure_funcs: ["console.log"],
},
output: {
comments: true
}
comments: true,
},
},
rollupOptions: {
output: {