📝: update

This commit is contained in:
就眠儀式 2022-06-27 11:07:22 +08:00
parent 6e5108a734
commit f0c850985d
7 changed files with 48 additions and 8 deletions

View File

@ -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: {

View File

@ -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: {

View File

@ -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: {

View File

@ -366,7 +366,11 @@ props.dataSource.map((value: any) => {
:style="{ height: height, maxHeight: maxHeight }"
ref="tableBody"
>
<table class="layui-table" :class="{'layui-table-even': props.even}" :lay-size="size">
<table
class="layui-table"
:class="{ 'layui-table-even': props.even }"
:lay-size="size"
>
<colgroup>
<col v-if="checkbox" class="layui-table-col-special" />
<template v-for="column in columns" :key="column">

View File

@ -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` |

View File

@ -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 事件

View File

@ -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'}