@hz_yujin/vue-smart-table 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/LICENSE +21 -0
- package/README.md +668 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1540 -0
- package/dist/src/components/ProColumnEditor/ProColumnEditor.vue.d.ts +20 -0
- package/dist/src/components/ProColumnEditor/index.d.ts +2 -0
- package/dist/src/components/ProColumnEditor/types.d.ts +14 -0
- package/dist/src/components/ProSmartTable/ProSmartTable.vue.d.ts +114 -0
- package/dist/src/components/ProSmartTable/ProSmartTableSkeleton.vue.d.ts +26 -0
- package/dist/src/components/ProSmartTable/SmartFieldControl.vue.d.ts +12 -0
- package/dist/src/components/ProSmartTable/SmartSearchForm.vue.d.ts +35 -0
- package/dist/src/components/ProSmartTable/column-schema.d.ts +56 -0
- package/dist/src/components/ProSmartTable/index.d.ts +3 -0
- package/dist/src/components/ProSmartTable/types.d.ts +112 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/plugin.d.ts +8 -0
- package/package.json +69 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- 新增表单字段插槽 `#form-{prop}`,可覆盖默认表单控件
|
|
8
|
+
- 新增 `#form-extra` 插槽(位于新增/编辑弹框内),便于嵌套二级弹框
|
|
9
|
+
- 列管理「恢复默认」触发 `columns-reset`;业务侧可持久化空配置(如 DB `[]`)
|
|
10
|
+
|
|
11
|
+
## 0.1.1
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- 内置 `el-pagination`(`total, sizes, prev, pager, next, jumper`)
|
|
16
|
+
- `pagination` 支持 `mode: 'local' | 'remote'`;`false` 可关闭
|
|
17
|
+
- 事件:`page-change` / `update:pagination`
|
|
18
|
+
|
|
19
|
+
### Fixes
|
|
20
|
+
|
|
21
|
+
- 修复列管理抽屉拖拽排序无效(改为手柄拖拽 + 经过即时换位)
|
|
22
|
+
|
|
23
|
+
### Changes
|
|
24
|
+
|
|
25
|
+
- 表格视觉对齐 `vue-base-table`:字号 12px、行高/表头高 36.6、表头背景 `#f8f9fc`、表头色 `rgba(9,30,64,0.66)`、正文 `#091e40`
|
|
26
|
+
- 分页默认 `small` + `background`,与 ProTable 一致
|
|
27
|
+
- 查询区支持收起/展开(对齐 ProSearchForm:一行排不下且字段数 > N 时显示;默认收起展示前 3 项)
|
|
28
|
+
- 表单类型补全:密码/多选/单选/复选/时间与范围/年月周/级联/树选择/自动完成/评分/滑块/颜色等
|
|
29
|
+
- 骨架屏(默认开启,对齐 ProTable:`onlyEmpty` 无数据时骨架,有数据刷新转圈;`#skeleton` 可自定义)
|
|
30
|
+
|
|
31
|
+
## 0.1.0
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
- 新增 `ProSmartTable`:基于 `el-table` 全量透传
|
|
36
|
+
- 列 schema 驱动查询区 / 新增编辑弹框
|
|
37
|
+
- 新增 `ProColumnEditor` 列管理抽屉(显隐、拖拽排序、增删列、查询/表单开关、固定列)
|
|
38
|
+
- 支持 `persistKey` 本地持久化列配置
|
|
39
|
+
- Plugin:`VueSmartTable`
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 hz_yujin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|