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"
>
-
+
diff --git a/package/document-component/src/document/zh-CN/components/dropdown.md b/package/document-component/src/document/zh-CN/components/dropdown.md
index 80e89143..cb2fbec5 100644
--- a/package/document-component/src/document/zh-CN/components/dropdown.md
+++ b/package/document-component/src/document/zh-CN/components/dropdown.md
@@ -460,7 +460,7 @@ export default {
| visible | 下拉面板是否可见 |`true` `false`|
| trigger | 触发方式,类型 `string` 或 trigger 数组 | `click` `hover` `focus` `contextMenu` |
| disabled | 是否禁用触发 | `true` `false` |
-| placement | 下拉面板位置 |`top` `top-left` `top-right` `bottom` `bottom-left` `bottom-right`|
+| placement | 下拉面板位置 |`top` `bottom` `right` `left` `*-left` `*-right` `*-top` `*-bottom`|
| autoFitPosition| 是否自动调整下拉面板位置,默认 `true` |`true` `false` |
| autoFitWidth | 是否将下拉面板宽度设置为触发器宽度, 默认 `false` |`true` `false` |
| autoFitMinWidth | 是否将下拉面板最小宽度设置为触发器宽度, 默认 `true` |`true` `false` |
diff --git a/package/document-component/src/document/zh-CN/components/table.md b/package/document-component/src/document/zh-CN/components/table.md
index 33e1529a..010783e2 100644
--- a/package/document-component/src/document/zh-CN/components/table.md
+++ b/package/document-component/src/document/zh-CN/components/table.md
@@ -539,16 +539,16 @@ export default {
| -------------------- | ----------------------------- | --------- | ------- | -------------- |
| columns | 列配置 - [更多](#tableColumn) | -- | -- | -- |
| dataSource | 数据源 | -- | -- | -- |
-| checkbox | 开启复选框 | `boolean` | `false` | `true` `false` |
+| checkbox | 开启复选框 | `boolean` | `false` | `true` `false` |
| id | 主键 | `string` | -- | -- |
| v-model:selectedKeys | 选中项 | -- | -- | -- |
| default-toolbar | 工具栏 | `boolean` | `false` | `true` `false` |
| size | 尺寸 | `string` | `md` | `lg` `md` `sm` |
-| children-column-name | 树节点字段 | `string` | `children`| -- |
-| indent-size | 树表行级缩进 | `number` | `30` | -- |
-| height | 表格高度 | `number` | -- | -- |
-| maxHeight | 表格最大高度 | `number` | -- | -- |
-
+| children-column-name | 树节点字段 | `string` | `children`| -- |
+| indent-size | 树表行级缩进 | `number` | `30` | -- |
+| height | 表格高度 | `number` | -- | -- |
+| maxHeight | 表格最大高度 | `number` | -- | -- |
+| even | 斑马条纹 | `boolean` | `false` | `true` `false` |
:::
::: title Table 事件
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fdd7a819..2fb15841 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -101,6 +101,7 @@ importers:
'@vueuse/core': ^8.7.3
axios: ^0.27.2
escape-html: ^1.0.3
+ fflate: ^0.7.3
markdown-it-container: ^3.0.0
pinia: ^2.0.14
pinia-plugin-persist: ^1.0.0
@@ -124,6 +125,7 @@ importers:
'@types/markdown-it-container': 2.0.5
'@types/prettier': 2.6.0
escape-html: 1.0.3
+ fflate: 0.7.3
markdown-it-container: 3.0.0
prismjs: 1.28.0
rimraf: 3.0.2
@@ -3109,6 +3111,10 @@ packages:
reusify: 1.0.4
dev: true
+ /fflate/0.7.3:
+ resolution: {integrity: sha512-0Zz1jOzJWERhyhsimS54VTqOteCNwRtIlh8isdL0AXLo0g7xNTfTL7oWrkmCnPhZGocKIkWHBistBrrpoNH3aw==}
+ dev: true
+
/figures/2.0.0:
resolution: {integrity: sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=}
engines: {node: '>=4'}