From a4094f5d8a5f86e951cf4c81bf9a52aa2dae8810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Sat, 25 Jun 2022 22:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20row=20=E4=B8=8E=20col?= =?UTF-8?q?=20=E7=9A=84=E6=89=80=E6=9C=89=E5=B1=9E=E6=80=A7=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E5=85=BC=E5=AE=B9=20number=20=E4=B8=8E=20string=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/script/build.all.ts | 6 +++--- package/component/script/build.es.ts | 6 +++--- package/component/script/build.umd.ts | 6 +++--- .../component/src/component/cascader/index.vue | 2 +- package/component/src/component/col/index.vue | 16 ++++++++-------- package/component/src/component/row/index.vue | 2 +- package/icons/vite.config.ts | 6 +++--- package/layer/vite.config.ts | 6 +++--- 8 files changed, 25 insertions(+), 25 deletions(-) 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: {