From f0c850985dd6653afbd2af8c26f21819e15b0eb5 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: Mon, 27 Jun 2022 11:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D:=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/script/build.all.ts | 10 ++++++++++ package/component/script/build.es.ts | 10 ++++++++++ package/component/script/build.umd.ts | 10 ++++++++++ package/component/src/component/table/index.vue | 6 +++++- .../src/document/zh-CN/components/dropdown.md | 2 +- .../src/document/zh-CN/components/table.md | 12 ++++++------ pnpm-lock.yaml | 6 ++++++ 7 files changed, 48 insertions(+), 8 deletions(-) diff --git a/package/component/script/build.all.ts b/package/component/script/build.all.ts index 58cf6975..28443e52 100644 --- a/package/component/script/build.all.ts +++ b/package/component/script/build.all.ts @@ -24,6 +24,16 @@ export default (): UserConfigExport => { formats: ["es"], fileName: (name) => `index.js`, }, + terserOptions: { + compress: { + drop_console: true, + drop_debugger: true, + pure_funcs: ["console.log"], + }, + output: { + comments: true, + }, + }, rollupOptions: { output: { globals: { diff --git a/package/component/script/build.es.ts b/package/component/script/build.es.ts index 4676fd16..b7c21c04 100644 --- a/package/component/script/build.es.ts +++ b/package/component/script/build.es.ts @@ -67,6 +67,16 @@ export default (): UserConfigExport => { entry: resolve(process.cwd(), "./src/index.ts"), formats: ["es"], }, + terserOptions: { + compress: { + drop_console: true, + drop_debugger: true, + pure_funcs: ["console.log"], + }, + output: { + comments: true, + }, + }, rollupOptions: { input: inputs, output: { diff --git a/package/component/script/build.umd.ts b/package/component/script/build.umd.ts index 4998fef8..d7831622 100644 --- a/package/component/script/build.umd.ts +++ b/package/component/script/build.umd.ts @@ -24,6 +24,16 @@ export default (): UserConfigExport => { formats: ["umd"], fileName: (name) => `index.js`, }, + terserOptions: { + compress: { + drop_console: true, + drop_debugger: true, + pure_funcs: ["console.log"], + }, + output: { + comments: true, + }, + }, rollupOptions: { output: { globals: { diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index eaf3672d..8ae6435c 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -366,7 +366,11 @@ props.dataSource.map((value: any) => { :style="{ height: height, maxHeight: maxHeight }" ref="tableBody" > - +