diff --git a/package/component/script/build.all.ts b/package/component/script/build.all.ts index 6c5a2765..28443e52 100644 --- a/package/component/script/build.all.ts +++ b/package/component/script/build.all.ts @@ -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: { diff --git a/package/component/script/build.es.ts b/package/component/script/build.es.ts index 3d840b9b..630f5f1e 100644 --- a/package/component/script/build.es.ts +++ b/package/component/script/build.es.ts @@ -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, diff --git a/package/component/script/build.umd.ts b/package/component/script/build.umd.ts index a0428d2e..d7831622 100644 --- a/package/component/script/build.umd.ts +++ b/package/component/script/build.umd.ts @@ -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: { diff --git a/package/component/src/component/cascader/index.vue b/package/component/src/component/cascader/index.vue index 2aa47ae6..3acf19f2 100644 --- a/package/component/src/component/cascader/index.vue +++ b/package/component/src/component/cascader/index.vue @@ -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) { diff --git a/package/component/src/component/col/index.vue b/package/component/src/component/col/index.vue index c5934003..f60f2699 100644 --- a/package/component/src/component/col/index.vue +++ b/package/component/src/component/col/index.vue @@ -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(); diff --git a/package/component/src/component/row/index.vue b/package/component/src/component/row/index.vue index 5d52d58e..059dc25b 100644 --- a/package/component/src/component/row/index.vue +++ b/package/component/src/component/row/index.vue @@ -9,7 +9,7 @@ import { computed } from "vue"; import "./index.less"; export interface LayRowProps { - space?: string; + space?: string | number; } const props = defineProps(); diff --git a/package/icons/vite.config.ts b/package/icons/vite.config.ts index 3c080100..85187739 100644 --- a/package/icons/vite.config.ts +++ b/package/icons/vite.config.ts @@ -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: { diff --git a/package/layer/vite.config.ts b/package/layer/vite.config.ts index 855dbbac..62bf6e8f 100644 --- a/package/layer/vite.config.ts +++ b/package/layer/vite.config.ts @@ -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: {