vue-super-crud 1.7.1
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/.browserslistrc +3 -0
- package/.versionrc.json +36 -0
- package/CHANGELOG.md +232 -0
- package/LICENSE +201 -0
- package/README.md +46 -0
- package/babel.config.js +12 -0
- package/build/alias.js +10 -0
- package/build/build.js +52 -0
- package/build/config.js +70 -0
- package/deploy.bat +14 -0
- package/docs/.vuepress/components/button/base.vue +88 -0
- package/docs/.vuepress/components/common/code-format.vue +331 -0
- package/docs/.vuepress/components/commonConfig/presetCodeTemplate/base.vue +68 -0
- package/docs/.vuepress/components/commonConfig/presetCodeTemplate/customParams.vue +73 -0
- package/docs/.vuepress/components/commonConfig/renderType/component.vue +160 -0
- package/docs/.vuepress/components/commonConfig/renderType/formatter.vue +49 -0
- package/docs/.vuepress/components/commonConfig/renderType/render.vue +91 -0
- package/docs/.vuepress/components/commonConfig/renderType/slot.vue +63 -0
- package/docs/.vuepress/components/crud/baseUse/baseUse.vue +98 -0
- package/docs/.vuepress/components/crud/baseUse/columnAction.vue +72 -0
- package/docs/.vuepress/components/crud/baseUse/columnWidth.vue +107 -0
- package/docs/.vuepress/components/crud/baseUse/handleRow.vue +65 -0
- package/docs/.vuepress/components/crud/baseUse/height.vue +82 -0
- package/docs/.vuepress/components/crud/baseUse/index.vue +54 -0
- package/docs/.vuepress/components/crud/baseUse/loading.vue +70 -0
- package/docs/.vuepress/components/crud/baseUse/pagination.vue +108 -0
- package/docs/.vuepress/components/crud/baseUse/selection.vue +114 -0
- package/docs/.vuepress/components/crud/baseUse/summaryMethod.vue +118 -0
- package/docs/.vuepress/components/crud/baseUse/title.vue +54 -0
- package/docs/.vuepress/components/crud/baseUse/toolbar.vue +69 -0
- package/docs/.vuepress/components/crud/buttons/common.vue +115 -0
- package/docs/.vuepress/components/crud/buttons/fast.vue +82 -0
- package/docs/.vuepress/components/crud/contextMenu/base.vue +72 -0
- package/docs/.vuepress/components/crud/copy.vue +52 -0
- package/docs/.vuepress/components/crud/crudEvents/api.vue +157 -0
- package/docs/.vuepress/components/crud/crudEvents/deleteTip.vue +93 -0
- package/docs/.vuepress/components/crud/crudEvents/events.vue +188 -0
- package/docs/.vuepress/components/crud/dataSort/base.vue +142 -0
- package/docs/.vuepress/components/crud/genDynamicColumns/base.vue +53 -0
- package/docs/.vuepress/components/crud/genDynamicColumns/dynamicAndFixed.vue +111 -0
- package/docs/.vuepress/components/crud/genDynamicColumns/treeDynamic.vue +68 -0
- package/docs/.vuepress/components/crud/handleBar/handleRow.vue +65 -0
- package/docs/.vuepress/components/crud/handleBar/toolbar.vue +69 -0
- package/docs/.vuepress/components/crud/renderType/1.vue +57 -0
- package/docs/.vuepress/components/crud/renderType/2.vue +63 -0
- package/docs/.vuepress/components/crud/renderType/3.vue +105 -0
- package/docs/.vuepress/components/crud/renderType/5.vue +91 -0
- package/docs/.vuepress/components/crud/search/1.vue +90 -0
- package/docs/.vuepress/components/crud/search/2.vue +78 -0
- package/docs/.vuepress/components/crud/search/3.vue +107 -0
- package/docs/.vuepress/components/crud/search/base.vue +123 -0
- package/docs/.vuepress/components/crud/search/localSearch.vue +124 -0
- package/docs/.vuepress/components/crud/search/special.vue +148 -0
- package/docs/.vuepress/components/crud/selection/events.vue +47 -0
- package/docs/.vuepress/components/crud/selection/pagination.vue +94 -0
- package/docs/.vuepress/components/crud/selection/singleSelection.vue +64 -0
- package/docs/.vuepress/components/crud/span/base.vue +69 -0
- package/docs/.vuepress/components/crud/span/special.vue +75 -0
- package/docs/.vuepress/components/crud/summary/base.vue +99 -0
- package/docs/.vuepress/components/crud/tableEdit/addDeleteBtn.vue +174 -0
- package/docs/.vuepress/components/crud/tableEdit/cellEdit.vue +194 -0
- package/docs/.vuepress/components/crud/tableEdit/controlEdit.vue +219 -0
- package/docs/.vuepress/components/crud/tableEdit/dialog.vue +172 -0
- package/docs/.vuepress/components/crud/tableEdit/free.vue +88 -0
- package/docs/.vuepress/components/crud/tableEdit/freeColumn.vue +82 -0
- package/docs/.vuepress/components/crud/tableEdit/methods.vue +154 -0
- package/docs/.vuepress/components/crud/tableEdit/rowAction.vue +107 -0
- package/docs/.vuepress/components/crud/tableEdit/rowBatch.vue +116 -0
- package/docs/.vuepress/components/crud/tableEdit/rowClick.vue +98 -0
- package/docs/.vuepress/components/crud/validate/base.vue +122 -0
- package/docs/.vuepress/components/crud/validate/custom.vue +82 -0
- package/docs/.vuepress/components/crud/validate/regulars.vue +88 -0
- package/docs/.vuepress/components/crud/validate/relation.vue +91 -0
- package/docs/.vuepress/components/crud/validate/tree.vue +82 -0
- package/docs/.vuepress/components/dialog/baseUse/base.vue +92 -0
- package/docs/.vuepress/components/dialog/baseUse/beforeConfirm.vue +78 -0
- package/docs/.vuepress/components/dialog/baseUse/control.vue +79 -0
- package/docs/.vuepress/components/dialog/baseUse/drawer.vue +59 -0
- package/docs/.vuepress/components/dialog/baseUse/footer.vue +87 -0
- package/docs/.vuepress/components/dialog/baseUse/insertSlot.vue +79 -0
- package/docs/.vuepress/components/dict/DictLinkage.vue +91 -0
- package/docs/.vuepress/components/dict/baseUse.vue +72 -0
- package/docs/.vuepress/components/dict/component.vue +82 -0
- package/docs/.vuepress/components/dict/localDict.vue +68 -0
- package/docs/.vuepress/components/form/baseUse/base.vue +48 -0
- package/docs/.vuepress/components/form/baseUse/dataFormat.vue +92 -0
- package/docs/.vuepress/components/form/baseUse/deep.vue +57 -0
- package/docs/.vuepress/components/form/baseUse/gridLayout.vue +47 -0
- package/docs/.vuepress/components/form/baseUse/group.vue +66 -0
- package/docs/.vuepress/components/form/baseUse/hidden.vue +40 -0
- package/docs/.vuepress/components/form/baseUse/inlineLayout.vue +48 -0
- package/docs/.vuepress/components/form/baseUse/label.vue +51 -0
- package/docs/.vuepress/components/form/baseUse/tooltip.vue +40 -0
- package/docs/.vuepress/components/form/baseUse/validate.vue +52 -0
- package/docs/.vuepress/components/form/detail/base.vue +78 -0
- package/docs/.vuepress/components/form/detail/border.vue +90 -0
- package/docs/.vuepress/components/form/detail/singleDetail.vue +72 -0
- package/docs/.vuepress/components/formatData/baseUse.vue +131 -0
- package/docs/.vuepress/components/mock/index.js +347 -0
- package/docs/.vuepress/components/mockData/custom.vue +69 -0
- package/docs/.vuepress/components/mockData/example.vue +290 -0
- package/docs/.vuepress/components/positionSlot/base.vue +24 -0
- package/docs/.vuepress/components/positionSlot/form.vue +71 -0
- package/docs/.vuepress/components/positionSlot/table.vue +85 -0
- package/docs/.vuepress/components/tabs/base.vue +57 -0
- package/docs/.vuepress/components/temp.js +195 -0
- package/docs/.vuepress/config.js +146 -0
- package/docs/.vuepress/enhanceApp.js +142 -0
- package/docs/.vuepress/public/favicon.ico +0 -0
- package/docs/.vuepress/public/super.png +0 -0
- package/docs/.vuepress/styles/index.styl +25 -0
- package/docs/.vuepress/styles/palette.styl +6 -0
- package/docs/README.md +14 -0
- package/docs/guide/button/base.md +31 -0
- package/docs/guide/commonConfig/jsx.md +166 -0
- package/docs/guide/commonConfig/presetCodeTemplate.md +68 -0
- package/docs/guide/commonConfig/renderType.md +181 -0
- package/docs/guide/crud/baseUse.md +120 -0
- package/docs/guide/crud/buttons.md +18 -0
- package/docs/guide/crud/config.md +217 -0
- package/docs/guide/crud/contextMenu.md +18 -0
- package/docs/guide/crud/dataSort.md +66 -0
- package/docs/guide/crud/genDynamicColumns.md +145 -0
- package/docs/guide/crud/handleBar.md +26 -0
- package/docs/guide/crud/renderType.md +4 -0
- package/docs/guide/crud/search.md +150 -0
- package/docs/guide/crud/selection.md +73 -0
- package/docs/guide/crud/span.md +98 -0
- package/docs/guide/crud/summary.md +167 -0
- package/docs/guide/crud/tableEdit.md +377 -0
- package/docs/guide/crud/validate.md +158 -0
- package/docs/guide/dialog/baseUse.md +81 -0
- package/docs/guide/dict/baseUse.md +174 -0
- package/docs/guide/dict/component.md +88 -0
- package/docs/guide/dict/config.md +44 -0
- package/docs/guide/form/baseUse.md +142 -0
- package/docs/guide/form/detail.md +38 -0
- package/docs/guide/formatData/baseUse.md +98 -0
- package/docs/guide/formatData/config.md +142 -0
- package/docs/guide/mockData/base.md +26 -0
- package/docs/guide/positionSlot/base.md +41 -0
- package/docs/guide/question/base.md +44 -0
- package/docs/guide/start/base.md +30 -0
- package/docs/guide/tabs/base.md +63 -0
- package/examples/App.vue +52 -0
- package/examples/Layout/components/AppMain.vue +40 -0
- package/examples/Layout/components/Item.vue +29 -0
- package/examples/Layout/components/Link.vue +44 -0
- package/examples/Layout/components/SidebarItem.vue +93 -0
- package/examples/Layout/index.vue +69 -0
- package/examples/assets/logo.png +0 -0
- package/examples/favicon.ico +0 -0
- package/examples/index.html +18 -0
- package/examples/main.js +54 -0
- package/examples/router/index.js +140 -0
- package/examples/store/index.js +0 -0
- package/examples/styles/index.scss +63 -0
- package/examples/styles/sidebar.scss +226 -0
- package/examples/styles/transition.scss +48 -0
- package/examples/styles/variables.scss +25 -0
- package/examples/views/crud/base.vue +68 -0
- package/examples/views/crud/handleRow.vue +84 -0
- package/examples/views/crud/search.vue +116 -0
- package/examples/views/dashboard/index.vue +244 -0
- package/examples/views/dashboard/index1.vue +234 -0
- package/examples/views/dashboard/test.vue +9 -0
- package/examples/views/formTest/index.vue +168 -0
- package/examples/views/nested/menu1/index.vue +7 -0
- package/examples/views/nested/menu1/menu1-1/index.vue +7 -0
- package/examples/views/nested/menu1/menu1-2/index.vue +7 -0
- package/examples/views/nested/menu1/menu1-2/menu1-2-1/index.vue +5 -0
- package/examples/views/nested/menu1/menu1-2/menu1-2-2/index.vue +5 -0
- package/examples/views/nested/menu1/menu1-3/index.vue +5 -0
- package/examples/views/nested/menu2/index.vue +5 -0
- package/gulpfile.js +84 -0
- package/lib/index.css +1 -0
- package/lib/super-crud.min.js +15 -0
- package/package.json +66 -0
- package/packages/button/index.vue +189 -0
- package/packages/core/components/comp.vue +223 -0
- package/packages/core/components/position.vue +135 -0
- package/packages/core/components/render.vue +460 -0
- package/packages/core/configManager.js +302 -0
- package/packages/core/create.js +8 -0
- package/packages/core/defaultRender.js +64 -0
- package/packages/core/dict/global.js +10 -0
- package/packages/core/dict/index.js +432 -0
- package/packages/core/dict/mixin.js +94 -0
- package/packages/core/event.js +60 -0
- package/packages/core/index.js +6 -0
- package/packages/core/init.js +122 -0
- package/packages/core/mock/genConfig.js +228 -0
- package/packages/core/mock/genData.js +422 -0
- package/packages/core/mock/index.js +4 -0
- package/packages/core/rules.js +111 -0
- package/packages/crud/column.vue +205 -0
- package/packages/crud/columnAction.vue +207 -0
- package/packages/crud/columnCell.vue +146 -0
- package/packages/crud/defaultColumn.vue +130 -0
- package/packages/crud/drawerColumn.vue +225 -0
- package/packages/crud/form.vue +69 -0
- package/packages/crud/index.vue +564 -0
- package/packages/crud/menuBar.vue +298 -0
- package/packages/crud/mixins/cacheHandler.js +36 -0
- package/packages/crud/mixins/calcColumnWidth.js +79 -0
- package/packages/crud/mixins/calcHeight.js +105 -0
- package/packages/crud/mixins/columnHandler.js +128 -0
- package/packages/crud/mixins/contextMenu.js +98 -0
- package/packages/crud/mixins/dataProcessor.js +202 -0
- package/packages/crud/mixins/dialog.js +109 -0
- package/packages/crud/mixins/excelHandler.js +150 -0
- package/packages/crud/mixins/exposeMethods.js +107 -0
- package/packages/crud/mixins/generateDynamicColumns.js +250 -0
- package/packages/crud/mixins/props.js +38 -0
- package/packages/crud/mixins/searchHandler.js +151 -0
- package/packages/crud/mixins/select.js +359 -0
- package/packages/crud/mixins/spanMethod.js +288 -0
- package/packages/crud/mixins/summary.js +177 -0
- package/packages/crud/mixins/tableEdit.js +547 -0
- package/packages/crud/mixins/validate.js +219 -0
- package/packages/crud/pagination.vue +110 -0
- package/packages/crud/search.vue +119 -0
- package/packages/crud/searchHeader.vue +231 -0
- package/packages/crud/selectBanner.vue +138 -0
- package/packages/crud/utils/EditState.js +319 -0
- package/packages/crud/utils/excelExport.js +112 -0
- package/packages/crud/utils/excelImport.js +112 -0
- package/packages/crud/utils/index.js +98 -0
- package/packages/dialog/dialog.js +233 -0
- package/packages/dialog/dialog.vue +15 -0
- package/packages/dialog/index.js +22 -0
- package/packages/dict/cascadeFormat.vue +179 -0
- package/packages/dict/dateFormat.vue +40 -0
- package/packages/dict/form/cascade.vue +61 -0
- package/packages/dict/form/checkbox.vue +90 -0
- package/packages/dict/form/extendMethod.js +22 -0
- package/packages/dict/form/input-base.js +31 -0
- package/packages/dict/form/input.js +20 -0
- package/packages/dict/form/radio.vue +69 -0
- package/packages/dict/form/select.vue +118 -0
- package/packages/dict/form/switch.vue +75 -0
- package/packages/dict/valueFormat.vue +188 -0
- package/packages/directive/dialog/drag.js +86 -0
- package/packages/directive/dialog/dragSize.js +42 -0
- package/packages/directive/index.js +9 -0
- package/packages/directive/insertSlot.js +10 -0
- package/packages/form/contextMenu.js +192 -0
- package/packages/form/draftDrawer.vue +391 -0
- package/packages/form/formAction.vue +97 -0
- package/packages/form/formItem.vue +259 -0
- package/packages/form/index.vue +451 -0
- package/packages/form/props.js +15 -0
- package/packages/grid/cell.vue +65 -0
- package/packages/grid/index.vue +130 -0
- package/packages/group/index.vue +96 -0
- package/packages/tabs/index.vue +290 -0
- package/packages/tooltip/index.js +9 -0
- package/packages/tooltip/tooltip.vue +32 -0
- package/packages/tooltip/tooltipComponent.js +38 -0
- package/packages/verifyInput/index.vue +131 -0
- package/src/config/common.js +88 -0
- package/src/config/crud.js +567 -0
- package/src/config/dialog.js +87 -0
- package/src/config/form.js +215 -0
- package/src/config/index.js +9 -0
- package/src/constants/index.js +72 -0
- package/src/index.js +67 -0
- package/src/template/btn/crud.js +6 -0
- package/src/template/btn/dialog.js +1 -0
- package/src/template/btn/form.js +3 -0
- package/src/template/btn/index.js +9 -0
- package/src/template/dicts.js +1 -0
- package/src/template/formatData.js +507 -0
- package/src/template/index.js +19 -0
- package/src/template/render.js +124 -0
- package/src/template/rules.js +53 -0
- package/src/utils/bem.js +49 -0
- package/src/utils/cache.js +77 -0
- package/src/utils/getType.js +34 -0
- package/src/utils/index.js +212 -0
- package/src/utils/mergeTemp.js +124 -0
- package/styles/button.scss +3 -0
- package/styles/crud.scss +425 -0
- package/styles/dialog.scss +95 -0
- package/styles/form.scss +532 -0
- package/styles/group.scss +78 -0
- package/styles/index.scss +94 -0
- package/styles/tabs.scss +139 -0
- package/styles/verifyInput.scss +56 -0
- package/vue-jsx-sync.js +90 -0
- package/vue.config.js +54 -0
package/.browserslistrc
ADDED
package/.versionrc.json
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"types": [
|
3
|
+
{
|
4
|
+
"type": "feat",
|
5
|
+
"section": "✨ 新功能"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"type": "fix",
|
9
|
+
"section": "🐛 问题修复"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"type": "docs",
|
13
|
+
"section": "📝 文档更新"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"type": "style",
|
17
|
+
"section": "💄 代码格式"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"type": "refactor",
|
21
|
+
"section": "♻️ 代码重构"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"type": "perf",
|
25
|
+
"section": "⚡️ 性能优化"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"type": "test",
|
29
|
+
"section": "✅ 测试相关"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"type": "chore",
|
33
|
+
"section": "🚀 构建/工具"
|
34
|
+
}
|
35
|
+
]
|
36
|
+
}
|
package/CHANGELOG.md
ADDED
@@ -0,0 +1,232 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4
|
+
|
5
|
+
### [1.7.1](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.7.0...v1.7.1) (2025-04-24)
|
6
|
+
|
7
|
+
|
8
|
+
### 🐛 问题修复
|
9
|
+
|
10
|
+
* **crud:** 修复树级校验 ([09ffaad](https://github.com/Blade-H1kar1/vue-super-crud/commit/09ffaad4802ea0f20f834da4348cc6df941d95a8))
|
11
|
+
* **crud:** 修复选中相关bug ([34c9abb](https://github.com/Blade-H1kar1/vue-super-crud/commit/34c9abbc5e0fe34dd4f29809765010041e7c4d8d))
|
12
|
+
* **crud:** 优化表格性能 ([9d93abe](https://github.com/Blade-H1kar1/vue-super-crud/commit/9d93abe74a3bf0bd5e6663b4348b3b233179b39c))
|
13
|
+
|
14
|
+
## [1.7.0](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.6.4...v1.7.0) (2025-04-11)
|
15
|
+
|
16
|
+
|
17
|
+
### ✨ 新功能
|
18
|
+
|
19
|
+
* **crud:** 优化表格编辑功能并增强性能 ([aad6e0f](https://github.com/Blade-H1kar1/vue-super-crud/commit/aad6e0f61d2c9fd814267023e4adcb4064379fc3))
|
20
|
+
|
21
|
+
|
22
|
+
### 🐛 问题修复
|
23
|
+
|
24
|
+
* **crud:** 优化表格性能并修复bug ([b7102b0](https://github.com/Blade-H1kar1/vue-super-crud/commit/b7102b04c14929f232d33fdd8631b5e56769b539))
|
25
|
+
|
26
|
+
### [1.6.4](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.6.3...v1.6.4) (2025-03-31)
|
27
|
+
|
28
|
+
|
29
|
+
### 🐛 问题修复
|
30
|
+
|
31
|
+
* **core:** bug修复 ([a24a7ff](https://github.com/Blade-H1kar1/vue-super-crud/commit/a24a7ff39cea3b957324cfd93b59cd6ba7a6924a))
|
32
|
+
|
33
|
+
### [1.6.3](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.6.2...v1.6.3) (2025-03-27)
|
34
|
+
|
35
|
+
|
36
|
+
### 🐛 问题修复
|
37
|
+
|
38
|
+
* **core:** 问题解决并优化实例获取 ([ddc8382](https://github.com/Blade-H1kar1/vue-super-crud/commit/ddc8382d4eb8da76cb313d2e6f5bf86dd0daf19b))
|
39
|
+
|
40
|
+
### [1.6.2](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.6.1...v1.6.2) (2025-03-18)
|
41
|
+
|
42
|
+
|
43
|
+
### 🐛 问题修复
|
44
|
+
|
45
|
+
* **crud:** 优化合并列选中逻辑 ([7d9774e](https://github.com/Blade-H1kar1/vue-super-crud/commit/7d9774e1781c332901d61fee73941a3a9f6d3610))
|
46
|
+
|
47
|
+
### [1.6.1](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.6.0...v1.6.1) (2025-03-17)
|
48
|
+
|
49
|
+
|
50
|
+
### 🐛 问题修复
|
51
|
+
|
52
|
+
* **crud:** 优化多级排序 ([13913f2](https://github.com/Blade-H1kar1/vue-super-crud/commit/13913f24d6ac5b96d14ee279dfdda7d22840b98c))
|
53
|
+
|
54
|
+
## [1.6.0](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.5.1...v1.6.0) (2025-03-14)
|
55
|
+
|
56
|
+
|
57
|
+
### ✨ 新功能
|
58
|
+
|
59
|
+
* **crud:** 新增本地搜索功能并优化代码结构 ([0fd6c2c](https://github.com/Blade-H1kar1/vue-super-crud/commit/0fd6c2ca0c62d5c26a2b9bf7f976cc39561e4ce7))
|
60
|
+
|
61
|
+
### [1.5.1](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.5.0...v1.5.1) (2025-03-10)
|
62
|
+
|
63
|
+
|
64
|
+
### 🐛 问题修复
|
65
|
+
|
66
|
+
* **tabs:** 修复内容高度计算 ([5d8c5a7](https://github.com/Blade-H1kar1/vue-super-crud/commit/5d8c5a71c84781f93b7f0f4321492cf67984c5c7))
|
67
|
+
|
68
|
+
## [1.5.0](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.4.1...v1.5.0) (2025-03-10)
|
69
|
+
|
70
|
+
|
71
|
+
### ✨ 新功能
|
72
|
+
|
73
|
+
* **crud:** 表格合并行和统计功能优化 ([372231f](https://github.com/Blade-H1kar1/vue-super-crud/commit/372231f2e0c55aab1c4c6a987d31331b90ad79ab))
|
74
|
+
* **crud:** 优化表格合并选中列处理 ([681992f](https://github.com/Blade-H1kar1/vue-super-crud/commit/681992f8d8225c88c49045129aaec7c8fb17708c))
|
75
|
+
|
76
|
+
### [1.4.1](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.4.0...v1.4.1) (2025-03-06)
|
77
|
+
|
78
|
+
|
79
|
+
### 🐛 问题修复
|
80
|
+
|
81
|
+
* **dict:** 修复字典加载 ([676ef99](https://github.com/Blade-H1kar1/vue-super-crud/commit/676ef9982a6130fd1f3302b2014ece0e29c4ba87))
|
82
|
+
|
83
|
+
## [1.4.0](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.3.3...v1.4.0) (2025-03-05)
|
84
|
+
|
85
|
+
|
86
|
+
### ✨ 新功能
|
87
|
+
|
88
|
+
* **crud:** 新增编辑状态下的数据模拟功能 ([acef33b](https://github.com/Blade-H1kar1/vue-super-crud/commit/acef33b034d1c8f37822677737752873b16dd2b7))
|
89
|
+
* **tabs、button:** 优化tabs、button组件功能并完善文档 ([4aaff44](https://github.com/Blade-H1kar1/vue-super-crud/commit/4aaff44602ef1e354d1dcd59ea695b62d0e4afbf))
|
90
|
+
|
91
|
+
|
92
|
+
### 🐛 问题修复
|
93
|
+
|
94
|
+
* **crud:** 搜索头复杂数据错误判断修复、其他bug修复 ([d7a987e](https://github.com/Blade-H1kar1/vue-super-crud/commit/d7a987e44b1ad7d89c3bff84999fbe987ea92033))
|
95
|
+
* **dialog:** 修复模板配置覆盖不了默认配置 ([7c892ec](https://github.com/Blade-H1kar1/vue-super-crud/commit/7c892ec7bbff2547cd5931e55c048076db486006))
|
96
|
+
|
97
|
+
### [1.3.3](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.3.2...v1.3.3) (2025-02-28)
|
98
|
+
|
99
|
+
|
100
|
+
### 🐛 问题修复
|
101
|
+
|
102
|
+
* **dialog:** bug修复 ([50850c4](https://github.com/Blade-H1kar1/vue-super-crud/commit/50850c4e19d71b1ac72ecff00e267287007eee98))
|
103
|
+
|
104
|
+
### [1.3.2](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.3.1...v1.3.2) (2025-02-28)
|
105
|
+
|
106
|
+
|
107
|
+
### 📝 文档更新
|
108
|
+
|
109
|
+
* **core:** 渲染配置文档优化 ([39f0d6b](https://github.com/Blade-H1kar1/vue-super-crud/commit/39f0d6bd8e7854ab22aae7d3bdd67bb799954be0))
|
110
|
+
* **mock:** 新增数据模拟文档 ([0c0890e](https://github.com/Blade-H1kar1/vue-super-crud/commit/0c0890e1f09f00c8d5b5cbc25ad9cbc40cbedf2f))
|
111
|
+
|
112
|
+
### [1.3.1](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.3.0...v1.3.1) (2025-02-27)
|
113
|
+
|
114
|
+
|
115
|
+
### 📝 文档更新
|
116
|
+
|
117
|
+
* **crud:** 新增方位插槽功能文档和示例 ([0bde660](https://github.com/Blade-H1kar1/vue-super-crud/commit/0bde660222047468540178524f9e6954f44b802e))
|
118
|
+
|
119
|
+
## [1.3.0](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.1.0...v1.3.0) (2025-02-26)
|
120
|
+
|
121
|
+
|
122
|
+
### 🚀 构建/工具
|
123
|
+
|
124
|
+
* **release:** 1.2.0 ([b0aa546](https://github.com/Blade-H1kar1/vue-super-crud/commit/b0aa546a917539260531bab28903ec55375b60b0))
|
125
|
+
|
126
|
+
|
127
|
+
### ✨ 新功能
|
128
|
+
|
129
|
+
* **crud,core:** 新增生成动态嵌套列功能及深层响应式优化 ([4976c0d](https://github.com/Blade-H1kar1/vue-super-crud/commit/4976c0d3feef8ecb189504df819796536bebcf57))
|
130
|
+
* **crud:** 新增表格单选,优化多选功能 ([bb2460d](https://github.com/Blade-H1kar1/vue-super-crud/commit/bb2460dfba4ddd37e08839826d1b68064b72bd09))
|
131
|
+
* **form:** 新增表单草稿箱功能及数据模拟能力 ([80b82c9](https://github.com/Blade-H1kar1/vue-super-crud/commit/80b82c91f164d77b0cd6609209ff39b0c28d49d9))
|
132
|
+
* **form:** 优化表单粘贴和草稿功能 ([970ec74](https://github.com/Blade-H1kar1/vue-super-crud/commit/970ec74ec56e43635b1c5328940cdc59af3b3bdd))
|
133
|
+
* **mock:** 重构模拟数据生成逻辑 ([66a7645](https://github.com/Blade-H1kar1/vue-super-crud/commit/66a76454d85d473800bc9f3554252dc4ef3e039c))
|
134
|
+
|
135
|
+
|
136
|
+
### 🐛 问题修复
|
137
|
+
|
138
|
+
* 修复弹窗缺失路由、表单重置增加禁用条件 ([53126e0](https://github.com/Blade-H1kar1/vue-super-crud/commit/53126e0c4ea0e3f3e89d1f1c5addd848c818a1a0))
|
139
|
+
* 修复弹窗value错误绑定 ([b81ac89](https://github.com/Blade-H1kar1/vue-super-crud/commit/b81ac890cd3491508111d2a881167b5bafeb2642))
|
140
|
+
* **crud:** 修复表格列配置更新问题 ([4f93ae4](https://github.com/Blade-H1kar1/vue-super-crud/commit/4f93ae4b0f410a88af78cdd55dfa709127223178))
|
141
|
+
* **form:** 修复多表单初始化问题 ([ba9265e](https://github.com/Blade-H1kar1/vue-super-crud/commit/ba9265ebaeb3a85f34b5a8f7a01a82c1cf9ba465))
|
142
|
+
|
143
|
+
|
144
|
+
### 📝 文档更新
|
145
|
+
|
146
|
+
* 新增数据格式化文档, 优化文档结构 ([74d7ee5](https://github.com/Blade-H1kar1/vue-super-crud/commit/74d7ee5b62bc9e40b69b030fc202896d644bf1ca))
|
147
|
+
* **crud:** 新增表格选择功能文档 ([7e2ae85](https://github.com/Blade-H1kar1/vue-super-crud/commit/7e2ae857f6b88723eff7f61dbedebb0fa965f6f0))
|
148
|
+
* **crud:** 新增动态列生成功能的文档和示例 ([0385d06](https://github.com/Blade-H1kar1/vue-super-crud/commit/0385d063ed5a4bc5fc5a8428b8ba3dc5fbae8fa8))
|
149
|
+
|
150
|
+
|
151
|
+
### ♻️ 代码重构
|
152
|
+
|
153
|
+
* **curd:** 优化动态嵌套列空值显示 ([48d29d0](https://github.com/Blade-H1kar1/vue-super-crud/commit/48d29d0db9b4c1a399a4c32fdbb919dc36b57f37))
|
154
|
+
* **form:** 优化表单显示隐藏功能,支持函数 ([84e5273](https://github.com/Blade-H1kar1/vue-super-crud/commit/84e52737bef4b1a58784a6256e92603f1cbaa06e))
|
155
|
+
|
156
|
+
## [1.2.0](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.1.0...v1.2.0) (2025-02-20)
|
157
|
+
|
158
|
+
|
159
|
+
### ✨ 新功能
|
160
|
+
|
161
|
+
* **crud,core:** 新增生成动态嵌套列功能及深层响应式优化 ([4976c0d](https://github.com/Blade-H1kar1/vue-super-crud/commit/4976c0d3feef8ecb189504df819796536bebcf57))
|
162
|
+
* **form:** 新增表单草稿箱功能及数据模拟能力 ([80b82c9](https://github.com/Blade-H1kar1/vue-super-crud/commit/80b82c91f164d77b0cd6609209ff39b0c28d49d9))
|
163
|
+
* **form:** 优化表单粘贴和草稿功能 ([970ec74](https://github.com/Blade-H1kar1/vue-super-crud/commit/970ec74ec56e43635b1c5328940cdc59af3b3bdd))
|
164
|
+
* **mock:** 重构模拟数据生成逻辑 ([66a7645](https://github.com/Blade-H1kar1/vue-super-crud/commit/66a76454d85d473800bc9f3554252dc4ef3e039c))
|
165
|
+
|
166
|
+
|
167
|
+
### 🐛 问题修复
|
168
|
+
|
169
|
+
* 修复弹窗缺失路由、表单重置增加禁用条件 ([53126e0](https://github.com/Blade-H1kar1/vue-super-crud/commit/53126e0c4ea0e3f3e89d1f1c5addd848c818a1a0))
|
170
|
+
* **crud:** 修复表格列配置更新问题 ([4f93ae4](https://github.com/Blade-H1kar1/vue-super-crud/commit/4f93ae4b0f410a88af78cdd55dfa709127223178))
|
171
|
+
* **form:** 修复多表单初始化问题 ([ba9265e](https://github.com/Blade-H1kar1/vue-super-crud/commit/ba9265ebaeb3a85f34b5a8f7a01a82c1cf9ba465))
|
172
|
+
|
173
|
+
## [1.1.0](https://github.com/Blade-H1kar1/vue-super-crud/compare/v1.0.0...v1.1.0) (2025-02-07)
|
174
|
+
|
175
|
+
|
176
|
+
### 🐛 问题修复
|
177
|
+
|
178
|
+
* **form:** 修复校验有误不跳转 ([24ce6cb](https://github.com/Blade-H1kar1/vue-super-crud/commit/24ce6cbf2e3a3c8c1c3ec7614c9cb11b6df0cb89))
|
179
|
+
|
180
|
+
|
181
|
+
### ✨ 新功能
|
182
|
+
|
183
|
+
* **crud:** 增加选中参数selected ([526f31d](https://github.com/Blade-H1kar1/vue-super-crud/commit/526f31d262109e18ac9e8721635628bf93cf7068))
|
184
|
+
* **dict:** 增强字典表单组件 ([14927b8](https://github.com/Blade-H1kar1/vue-super-crud/commit/14927b85390d0574b00d3f840d652e90c672a8cb))
|
185
|
+
|
186
|
+
## 1.0.0 (2025-01-21)
|
187
|
+
|
188
|
+
|
189
|
+
### ✨ 新功能
|
190
|
+
|
191
|
+
* **build:** 优化webpack构建配置和错误处理 ([a218643](https://github.com/Blade-H1kar1/vue-super-crud/commit/a218643608df0ef4829cc5b785d6b0846d488130))
|
192
|
+
* **core,dialog:** 增强组件渲染与弹窗 ([bea39b8](https://github.com/Blade-H1kar1/vue-super-crud/commit/bea39b8f840a03f3bae2844ee06482c730632913))
|
193
|
+
* **crud, core:** 优化表格头搜索用户体验 ([cef703c](https://github.com/Blade-H1kar1/vue-super-crud/commit/cef703c4fb408bb14ce48897ab2b3cf5a943a525))
|
194
|
+
* **crud:** 默认列添加插槽处理 ([a39f830](https://github.com/Blade-H1kar1/vue-super-crud/commit/a39f83083e563d05cd98f9324999597ab91a5293))
|
195
|
+
* **crud:** 添加禁用功能 ([93eda78](https://github.com/Blade-H1kar1/vue-super-crud/commit/93eda78aa37f9ab3356977b808ee19c0bf8d9249))
|
196
|
+
* **crud:** 优化表格组件 ([e2b7c97](https://github.com/Blade-H1kar1/vue-super-crud/commit/e2b7c979f400a1b23e6a0e155c513a14293c07ea))
|
197
|
+
* **crud:** 增加前端分页 ([c0b39c8](https://github.com/Blade-H1kar1/vue-super-crud/commit/c0b39c8630206b1d06137c01f078c817784b5e3a))
|
198
|
+
* **crud:** 增强表格组件功能和配置项 ([5d8406c](https://github.com/Blade-H1kar1/vue-super-crud/commit/5d8406ca03832e7caf50927f364bbb01f9c546fb))
|
199
|
+
* **grid:** 新增布局参数,增加响应式 ([0b2f480](https://github.com/Blade-H1kar1/vue-super-crud/commit/0b2f48079956b7169016b1844ce51ff7e07f6f86))
|
200
|
+
* **tabs:** 封装通用标签页组件 ([cad3898](https://github.com/Blade-H1kar1/vue-super-crud/commit/cad3898708bdf560b8aa2e21acd2e633d03b0525))
|
201
|
+
* **tabs:** 新增边框样式 ([c315dc7](https://github.com/Blade-H1kar1/vue-super-crud/commit/c315dc731cbf711713d78429dfa53eb88e5cace4))
|
202
|
+
* **verifyInput :** 新增 verifyInput 组件 ([c3a7e7a](https://github.com/Blade-H1kar1/vue-super-crud/commit/c3a7e7a3b6df2d30189daa4cc3489f8bf37902a5))
|
203
|
+
|
204
|
+
|
205
|
+
### 🐛 问题修复
|
206
|
+
|
207
|
+
* bug修复 ([3a1926e](https://github.com/Blade-H1kar1/vue-super-crud/commit/3a1926e2c21e7b84add1afa54efd1c72753d70c6))
|
208
|
+
* **core:** 修复格式化赋值问题 ([1055b8b](https://github.com/Blade-H1kar1/vue-super-crud/commit/1055b8b114665140c3bec1b59b905210efcbe217))
|
209
|
+
* **crud:** 修复表格组件 ([73de4fc](https://github.com/Blade-H1kar1/vue-super-crud/commit/73de4fc4df4d557cda3ed31201dc2e2e89ac521b))
|
210
|
+
* **crud:** 修复表格组件 ([cd25b2b](https://github.com/Blade-H1kar1/vue-super-crud/commit/cd25b2b492600fe5053855bf9315460fc286bda7))
|
211
|
+
* **crud:** 修复树形懒加载节点不更新 ([21f622e](https://github.com/Blade-H1kar1/vue-super-crud/commit/21f622e51efde5c7d29f757f9ba6774f9855ad48))
|
212
|
+
* **crud:** 修复循环更新问题 ([0d64494](https://github.com/Blade-H1kar1/vue-super-crud/commit/0d64494536b24e993a501b93a2a790a2ae30048e))
|
213
|
+
* **tabs:** 修复路由不存在时报错 ([1bf7bfc](https://github.com/Blade-H1kar1/vue-super-crud/commit/1bf7bfc1db53e51fc8ee6fce04ffe60d1ddb9371))
|
214
|
+
|
215
|
+
|
216
|
+
### 📝 文档更新
|
217
|
+
|
218
|
+
* **crud:** 增加配置文档 ([769a8f0](https://github.com/Blade-H1kar1/vue-super-crud/commit/769a8f0e7e0084ff2605ea637db0166febbfe83f))
|
219
|
+
* **deploy:** 配置文档部署 ([8c3c90b](https://github.com/Blade-H1kar1/vue-super-crud/commit/8c3c90ba8131a45146b9bc572806fa31346ff9ce))
|
220
|
+
|
221
|
+
|
222
|
+
### ♻️ 代码重构
|
223
|
+
|
224
|
+
* 重构部分代码和样式规范 ([c31c226](https://github.com/Blade-H1kar1/vue-super-crud/commit/c31c226e4d6f7c3a0dc2d95d6db5fa9148f4b7ee))
|
225
|
+
* **core:** 统一配置管理,重构位置渲染组件 ([2ece9c8](https://github.com/Blade-H1kar1/vue-super-crud/commit/2ece9c8e49dd8d51a6183680244d3b25686927dc))
|
226
|
+
* **crud:** 修改表格默认列宽 ([e1a15f5](https://github.com/Blade-H1kar1/vue-super-crud/commit/e1a15f528517f2c80495b54a2d1915628c88d43d))
|
227
|
+
* **crud:** 优化表格编辑状态管理 ([66c4ab7](https://github.com/Blade-H1kar1/vue-super-crud/commit/66c4ab7c98d35df3568a91599df819a68a376a70))
|
228
|
+
* **dialog:** 优化弹窗框底部按钮渲染逻辑 ([57866a7](https://github.com/Blade-H1kar1/vue-super-crud/commit/57866a7d78b966fd60a6a44720ae2c4d4d391bd3))
|
229
|
+
* **dict:** 重构字典管理 ([be89e74](https://github.com/Blade-H1kar1/vue-super-crud/commit/be89e7438b553307a415e1694914c82d393947b2))
|
230
|
+
* **form:** value重新赋值时,初始化表单值 ([d15567a](https://github.com/Blade-H1kar1/vue-super-crud/commit/d15567a6716f0c2c51a9d070d5d2b69a98d55ea7))
|
231
|
+
* **form:** 优化表单组件和样式 ([69063d4](https://github.com/Blade-H1kar1/vue-super-crud/commit/69063d4ab4c05940202a0353db8902cbd555ea7b))
|
232
|
+
* **tabs:** 激活状态缓存逻辑重构 ([4f476ac](https://github.com/Blade-H1kar1/vue-super-crud/commit/4f476acc5013c05c3b2be9332ad4109cb02b2189))
|
package/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# vue-super-crud
|
2
|
+
|
3
|
+
基于 element-ui 二次封装,快速开发组件库
|
4
|
+
|
5
|
+
## 文档
|
6
|
+
|
7
|
+
详细文档请访问:[https://blade-h1kar1.github.io/vue-super-crud/](https://blade-h1kar1.github.io/vue-super-crud/)
|
8
|
+
|
9
|
+
## 特性
|
10
|
+
|
11
|
+
- 快速开发
|
12
|
+
- 模板复用
|
13
|
+
- 高度自定义
|
14
|
+
|
15
|
+
## 快速开始
|
16
|
+
|
17
|
+
```bash
|
18
|
+
npm install vue-super-crud
|
19
|
+
```
|
20
|
+
|
21
|
+
```javascript
|
22
|
+
import VueSuperCrud from 'vue-super-crud'
|
23
|
+
import 'vue-super-crud/lib/theme-chalk/index.css'
|
24
|
+
|
25
|
+
Vue.use(VueSuperCrud)
|
26
|
+
```
|
27
|
+
|
28
|
+
## 开发
|
29
|
+
|
30
|
+
```bash
|
31
|
+
# 安装依赖
|
32
|
+
npm install
|
33
|
+
|
34
|
+
# 启动开发服务
|
35
|
+
npm run serve
|
36
|
+
|
37
|
+
# 构建文档
|
38
|
+
npm run docs:build
|
39
|
+
|
40
|
+
# 构建组件库
|
41
|
+
npm run build
|
42
|
+
```
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
[MIT](LICENSE)
|
package/babel.config.js
ADDED
package/build/alias.js
ADDED
package/build/build.js
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
const merge = require("webpack-merge");
|
2
|
+
const webpack = require("webpack");
|
3
|
+
const { VueLoaderPlugin } = require("vue-loader");
|
4
|
+
const ProgressBarPlugin = require("progress-bar-webpack-plugin");
|
5
|
+
const alias = require("./alias");
|
6
|
+
let config = require("./config");
|
7
|
+
const path = require("path");
|
8
|
+
const prd = process.env.TARGET;
|
9
|
+
const isDev = prd === "dev";
|
10
|
+
|
11
|
+
module.exports = merge(config, {
|
12
|
+
resolve: {
|
13
|
+
extensions: [".js", ".vue", ".json"],
|
14
|
+
alias: alias,
|
15
|
+
modules: [
|
16
|
+
path.resolve(__dirname, "src"),
|
17
|
+
path.resolve(__dirname, "packages"),
|
18
|
+
"node_modules",
|
19
|
+
],
|
20
|
+
},
|
21
|
+
module: {
|
22
|
+
rules: [
|
23
|
+
{
|
24
|
+
test: /\.css$/,
|
25
|
+
use: ["css-loader"],
|
26
|
+
},
|
27
|
+
{
|
28
|
+
test: /\.js$/,
|
29
|
+
exclude: /node_modules/,
|
30
|
+
loader: "babel-loader",
|
31
|
+
options: {
|
32
|
+
cacheDirectory: true, // 启用babel-loader缓存
|
33
|
+
},
|
34
|
+
},
|
35
|
+
{
|
36
|
+
test: /\.vue$/,
|
37
|
+
exclude: /node_modules/,
|
38
|
+
loader: "vue-loader",
|
39
|
+
options: {
|
40
|
+
preserveWhitespace: false,
|
41
|
+
},
|
42
|
+
},
|
43
|
+
],
|
44
|
+
},
|
45
|
+
plugins: [
|
46
|
+
new VueLoaderPlugin(),
|
47
|
+
new ProgressBarPlugin(),
|
48
|
+
new webpack.LoaderOptionsPlugin({
|
49
|
+
minimize: isDev ? false : true,
|
50
|
+
}),
|
51
|
+
],
|
52
|
+
});
|
package/build/config.js
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
const path = require("path");
|
2
|
+
const aliases = require("./alias");
|
3
|
+
const prd = process.env.TARGET;
|
4
|
+
|
5
|
+
const externals = {
|
6
|
+
vue: {
|
7
|
+
root: "Vue",
|
8
|
+
commonjs2: "vue",
|
9
|
+
commonjs: "vue",
|
10
|
+
amd: "vue",
|
11
|
+
},
|
12
|
+
"element-ui": {
|
13
|
+
root: "ELEMENT",
|
14
|
+
commonjs2: "element-ui",
|
15
|
+
commonjs: "element-ui",
|
16
|
+
amd: "element-ui",
|
17
|
+
},
|
18
|
+
axios: "axios",
|
19
|
+
mockjs: "mockjs",
|
20
|
+
vuedraggable: "vuedraggable",
|
21
|
+
};
|
22
|
+
const resolve = (p) => {
|
23
|
+
const base = p.split("/")[0];
|
24
|
+
if (aliases[base]) {
|
25
|
+
return path.resolve(aliases[base], p.slice(base.length + 1));
|
26
|
+
} else {
|
27
|
+
return path.resolve(__dirname, "../", p);
|
28
|
+
}
|
29
|
+
};
|
30
|
+
|
31
|
+
const builds = {
|
32
|
+
prod: {
|
33
|
+
entry: resolve("src/index.js"),
|
34
|
+
dest: resolve("lib"),
|
35
|
+
filename: "super-crud.min.js",
|
36
|
+
env: "production",
|
37
|
+
externals: externals,
|
38
|
+
},
|
39
|
+
dev: {
|
40
|
+
entry: resolve("src/index.js"),
|
41
|
+
dest: resolve("lib"),
|
42
|
+
filename: "super-crud.js",
|
43
|
+
env: "development",
|
44
|
+
externals: externals,
|
45
|
+
},
|
46
|
+
};
|
47
|
+
function genConfig(name) {
|
48
|
+
const opts = builds[name];
|
49
|
+
const config = {
|
50
|
+
entry: {
|
51
|
+
app: [opts.entry],
|
52
|
+
},
|
53
|
+
output: {
|
54
|
+
filename: opts.filename,
|
55
|
+
path: opts.dest,
|
56
|
+
chunkFilename: "[id].js",
|
57
|
+
libraryExport: "default",
|
58
|
+
libraryTarget: "umd",
|
59
|
+
library: "super-crud",
|
60
|
+
umdNamedDefine: true,
|
61
|
+
globalObject: "this",
|
62
|
+
},
|
63
|
+
externals: opts.externals,
|
64
|
+
devtool: name === "dev" ? "cheap-module-eval-source-map" : false,
|
65
|
+
};
|
66
|
+
config.mode = builds[name].env;
|
67
|
+
return config;
|
68
|
+
}
|
69
|
+
|
70
|
+
module.exports = genConfig(prd || "prod");
|