vue-super-crud 1.7.1 → 1.7.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/README.md +42 -10
- package/lib/index.css +1 -1
- package/lib/super-crud.min.js +2 -2
- package/package.json +21 -16
- package/.browserslistrc +0 -3
- package/.versionrc.json +0 -36
- package/CHANGELOG.md +0 -232
- package/babel.config.js +0 -12
- package/build/alias.js +0 -10
- package/build/build.js +0 -52
- package/build/config.js +0 -70
- package/deploy.bat +0 -14
- package/docs/.vuepress/components/button/base.vue +0 -88
- package/docs/.vuepress/components/common/code-format.vue +0 -331
- package/docs/.vuepress/components/commonConfig/presetCodeTemplate/base.vue +0 -68
- package/docs/.vuepress/components/commonConfig/presetCodeTemplate/customParams.vue +0 -73
- package/docs/.vuepress/components/commonConfig/renderType/component.vue +0 -160
- package/docs/.vuepress/components/commonConfig/renderType/formatter.vue +0 -49
- package/docs/.vuepress/components/commonConfig/renderType/render.vue +0 -91
- package/docs/.vuepress/components/commonConfig/renderType/slot.vue +0 -63
- package/docs/.vuepress/components/crud/baseUse/baseUse.vue +0 -98
- package/docs/.vuepress/components/crud/baseUse/columnAction.vue +0 -72
- package/docs/.vuepress/components/crud/baseUse/columnWidth.vue +0 -107
- package/docs/.vuepress/components/crud/baseUse/handleRow.vue +0 -65
- package/docs/.vuepress/components/crud/baseUse/height.vue +0 -82
- package/docs/.vuepress/components/crud/baseUse/index.vue +0 -54
- package/docs/.vuepress/components/crud/baseUse/loading.vue +0 -70
- package/docs/.vuepress/components/crud/baseUse/pagination.vue +0 -108
- package/docs/.vuepress/components/crud/baseUse/selection.vue +0 -114
- package/docs/.vuepress/components/crud/baseUse/summaryMethod.vue +0 -118
- package/docs/.vuepress/components/crud/baseUse/title.vue +0 -54
- package/docs/.vuepress/components/crud/baseUse/toolbar.vue +0 -69
- package/docs/.vuepress/components/crud/buttons/common.vue +0 -115
- package/docs/.vuepress/components/crud/buttons/fast.vue +0 -82
- package/docs/.vuepress/components/crud/contextMenu/base.vue +0 -72
- package/docs/.vuepress/components/crud/copy.vue +0 -52
- package/docs/.vuepress/components/crud/crudEvents/api.vue +0 -157
- package/docs/.vuepress/components/crud/crudEvents/deleteTip.vue +0 -93
- package/docs/.vuepress/components/crud/crudEvents/events.vue +0 -188
- package/docs/.vuepress/components/crud/dataSort/base.vue +0 -142
- package/docs/.vuepress/components/crud/genDynamicColumns/base.vue +0 -53
- package/docs/.vuepress/components/crud/genDynamicColumns/dynamicAndFixed.vue +0 -111
- package/docs/.vuepress/components/crud/genDynamicColumns/treeDynamic.vue +0 -68
- package/docs/.vuepress/components/crud/handleBar/handleRow.vue +0 -65
- package/docs/.vuepress/components/crud/handleBar/toolbar.vue +0 -69
- package/docs/.vuepress/components/crud/renderType/1.vue +0 -57
- package/docs/.vuepress/components/crud/renderType/2.vue +0 -63
- package/docs/.vuepress/components/crud/renderType/3.vue +0 -105
- package/docs/.vuepress/components/crud/renderType/5.vue +0 -91
- package/docs/.vuepress/components/crud/search/1.vue +0 -90
- package/docs/.vuepress/components/crud/search/2.vue +0 -78
- package/docs/.vuepress/components/crud/search/3.vue +0 -107
- package/docs/.vuepress/components/crud/search/base.vue +0 -123
- package/docs/.vuepress/components/crud/search/localSearch.vue +0 -124
- package/docs/.vuepress/components/crud/search/special.vue +0 -148
- package/docs/.vuepress/components/crud/selection/events.vue +0 -47
- package/docs/.vuepress/components/crud/selection/pagination.vue +0 -94
- package/docs/.vuepress/components/crud/selection/singleSelection.vue +0 -64
- package/docs/.vuepress/components/crud/span/base.vue +0 -69
- package/docs/.vuepress/components/crud/span/special.vue +0 -75
- package/docs/.vuepress/components/crud/summary/base.vue +0 -99
- package/docs/.vuepress/components/crud/tableEdit/addDeleteBtn.vue +0 -174
- package/docs/.vuepress/components/crud/tableEdit/cellEdit.vue +0 -194
- package/docs/.vuepress/components/crud/tableEdit/controlEdit.vue +0 -219
- package/docs/.vuepress/components/crud/tableEdit/dialog.vue +0 -172
- package/docs/.vuepress/components/crud/tableEdit/free.vue +0 -88
- package/docs/.vuepress/components/crud/tableEdit/freeColumn.vue +0 -82
- package/docs/.vuepress/components/crud/tableEdit/methods.vue +0 -154
- package/docs/.vuepress/components/crud/tableEdit/rowAction.vue +0 -107
- package/docs/.vuepress/components/crud/tableEdit/rowBatch.vue +0 -116
- package/docs/.vuepress/components/crud/tableEdit/rowClick.vue +0 -98
- package/docs/.vuepress/components/crud/validate/base.vue +0 -122
- package/docs/.vuepress/components/crud/validate/custom.vue +0 -82
- package/docs/.vuepress/components/crud/validate/regulars.vue +0 -88
- package/docs/.vuepress/components/crud/validate/relation.vue +0 -91
- package/docs/.vuepress/components/crud/validate/tree.vue +0 -82
- package/docs/.vuepress/components/dialog/baseUse/base.vue +0 -92
- package/docs/.vuepress/components/dialog/baseUse/beforeConfirm.vue +0 -78
- package/docs/.vuepress/components/dialog/baseUse/control.vue +0 -79
- package/docs/.vuepress/components/dialog/baseUse/drawer.vue +0 -59
- package/docs/.vuepress/components/dialog/baseUse/footer.vue +0 -87
- package/docs/.vuepress/components/dialog/baseUse/insertSlot.vue +0 -79
- package/docs/.vuepress/components/dict/DictLinkage.vue +0 -91
- package/docs/.vuepress/components/dict/baseUse.vue +0 -72
- package/docs/.vuepress/components/dict/component.vue +0 -82
- package/docs/.vuepress/components/dict/localDict.vue +0 -68
- package/docs/.vuepress/components/form/baseUse/base.vue +0 -48
- package/docs/.vuepress/components/form/baseUse/dataFormat.vue +0 -92
- package/docs/.vuepress/components/form/baseUse/deep.vue +0 -57
- package/docs/.vuepress/components/form/baseUse/gridLayout.vue +0 -47
- package/docs/.vuepress/components/form/baseUse/group.vue +0 -66
- package/docs/.vuepress/components/form/baseUse/hidden.vue +0 -40
- package/docs/.vuepress/components/form/baseUse/inlineLayout.vue +0 -48
- package/docs/.vuepress/components/form/baseUse/label.vue +0 -51
- package/docs/.vuepress/components/form/baseUse/tooltip.vue +0 -40
- package/docs/.vuepress/components/form/baseUse/validate.vue +0 -52
- package/docs/.vuepress/components/form/detail/base.vue +0 -78
- package/docs/.vuepress/components/form/detail/border.vue +0 -90
- package/docs/.vuepress/components/form/detail/singleDetail.vue +0 -72
- package/docs/.vuepress/components/formatData/baseUse.vue +0 -131
- package/docs/.vuepress/components/mock/index.js +0 -347
- package/docs/.vuepress/components/mockData/custom.vue +0 -69
- package/docs/.vuepress/components/mockData/example.vue +0 -290
- package/docs/.vuepress/components/positionSlot/base.vue +0 -24
- package/docs/.vuepress/components/positionSlot/form.vue +0 -71
- package/docs/.vuepress/components/positionSlot/table.vue +0 -85
- package/docs/.vuepress/components/tabs/base.vue +0 -57
- package/docs/.vuepress/components/temp.js +0 -195
- package/docs/.vuepress/config.js +0 -146
- package/docs/.vuepress/enhanceApp.js +0 -142
- package/docs/.vuepress/public/favicon.ico +0 -0
- package/docs/.vuepress/public/super.png +0 -0
- package/docs/.vuepress/styles/index.styl +0 -25
- package/docs/.vuepress/styles/palette.styl +0 -6
- package/docs/README.md +0 -14
- package/docs/guide/button/base.md +0 -31
- package/docs/guide/commonConfig/jsx.md +0 -166
- package/docs/guide/commonConfig/presetCodeTemplate.md +0 -68
- package/docs/guide/commonConfig/renderType.md +0 -181
- package/docs/guide/crud/baseUse.md +0 -120
- package/docs/guide/crud/buttons.md +0 -18
- package/docs/guide/crud/config.md +0 -217
- package/docs/guide/crud/contextMenu.md +0 -18
- package/docs/guide/crud/dataSort.md +0 -66
- package/docs/guide/crud/genDynamicColumns.md +0 -145
- package/docs/guide/crud/handleBar.md +0 -26
- package/docs/guide/crud/renderType.md +0 -4
- package/docs/guide/crud/search.md +0 -150
- package/docs/guide/crud/selection.md +0 -73
- package/docs/guide/crud/span.md +0 -98
- package/docs/guide/crud/summary.md +0 -167
- package/docs/guide/crud/tableEdit.md +0 -377
- package/docs/guide/crud/validate.md +0 -158
- package/docs/guide/dialog/baseUse.md +0 -81
- package/docs/guide/dict/baseUse.md +0 -174
- package/docs/guide/dict/component.md +0 -88
- package/docs/guide/dict/config.md +0 -44
- package/docs/guide/form/baseUse.md +0 -142
- package/docs/guide/form/detail.md +0 -38
- package/docs/guide/formatData/baseUse.md +0 -98
- package/docs/guide/formatData/config.md +0 -142
- package/docs/guide/mockData/base.md +0 -26
- package/docs/guide/positionSlot/base.md +0 -41
- package/docs/guide/question/base.md +0 -44
- package/docs/guide/start/base.md +0 -30
- package/docs/guide/tabs/base.md +0 -63
- package/examples/App.vue +0 -52
- package/examples/Layout/components/AppMain.vue +0 -40
- package/examples/Layout/components/Item.vue +0 -29
- package/examples/Layout/components/Link.vue +0 -44
- package/examples/Layout/components/SidebarItem.vue +0 -93
- package/examples/Layout/index.vue +0 -69
- package/examples/assets/logo.png +0 -0
- package/examples/favicon.ico +0 -0
- package/examples/index.html +0 -18
- package/examples/main.js +0 -54
- package/examples/router/index.js +0 -140
- package/examples/store/index.js +0 -0
- package/examples/styles/index.scss +0 -63
- package/examples/styles/sidebar.scss +0 -226
- package/examples/styles/transition.scss +0 -48
- package/examples/styles/variables.scss +0 -25
- package/examples/views/crud/base.vue +0 -68
- package/examples/views/crud/handleRow.vue +0 -84
- package/examples/views/crud/search.vue +0 -116
- package/examples/views/dashboard/index.vue +0 -244
- package/examples/views/dashboard/index1.vue +0 -234
- package/examples/views/dashboard/test.vue +0 -9
- package/examples/views/formTest/index.vue +0 -168
- package/examples/views/nested/menu1/index.vue +0 -7
- package/examples/views/nested/menu1/menu1-1/index.vue +0 -7
- package/examples/views/nested/menu1/menu1-2/index.vue +0 -7
- package/examples/views/nested/menu1/menu1-2/menu1-2-1/index.vue +0 -5
- package/examples/views/nested/menu1/menu1-2/menu1-2-2/index.vue +0 -5
- package/examples/views/nested/menu1/menu1-3/index.vue +0 -5
- package/examples/views/nested/menu2/index.vue +0 -5
- package/gulpfile.js +0 -84
- package/packages/button/index.vue +0 -189
- package/packages/core/components/comp.vue +0 -223
- package/packages/core/components/position.vue +0 -135
- package/packages/core/components/render.vue +0 -460
- package/packages/core/configManager.js +0 -302
- package/packages/core/create.js +0 -8
- package/packages/core/defaultRender.js +0 -64
- package/packages/core/dict/global.js +0 -10
- package/packages/core/dict/index.js +0 -432
- package/packages/core/dict/mixin.js +0 -94
- package/packages/core/event.js +0 -60
- package/packages/core/index.js +0 -6
- package/packages/core/init.js +0 -122
- package/packages/core/mock/genConfig.js +0 -228
- package/packages/core/mock/genData.js +0 -422
- package/packages/core/mock/index.js +0 -4
- package/packages/core/rules.js +0 -111
- package/packages/crud/column.vue +0 -205
- package/packages/crud/columnAction.vue +0 -207
- package/packages/crud/columnCell.vue +0 -146
- package/packages/crud/defaultColumn.vue +0 -130
- package/packages/crud/drawerColumn.vue +0 -225
- package/packages/crud/form.vue +0 -69
- package/packages/crud/index.vue +0 -564
- package/packages/crud/menuBar.vue +0 -298
- package/packages/crud/mixins/cacheHandler.js +0 -36
- package/packages/crud/mixins/calcColumnWidth.js +0 -79
- package/packages/crud/mixins/calcHeight.js +0 -105
- package/packages/crud/mixins/columnHandler.js +0 -128
- package/packages/crud/mixins/contextMenu.js +0 -98
- package/packages/crud/mixins/dataProcessor.js +0 -202
- package/packages/crud/mixins/dialog.js +0 -109
- package/packages/crud/mixins/excelHandler.js +0 -150
- package/packages/crud/mixins/exposeMethods.js +0 -107
- package/packages/crud/mixins/generateDynamicColumns.js +0 -250
- package/packages/crud/mixins/props.js +0 -38
- package/packages/crud/mixins/searchHandler.js +0 -151
- package/packages/crud/mixins/select.js +0 -359
- package/packages/crud/mixins/spanMethod.js +0 -288
- package/packages/crud/mixins/summary.js +0 -177
- package/packages/crud/mixins/tableEdit.js +0 -547
- package/packages/crud/mixins/validate.js +0 -219
- package/packages/crud/pagination.vue +0 -110
- package/packages/crud/search.vue +0 -119
- package/packages/crud/searchHeader.vue +0 -231
- package/packages/crud/selectBanner.vue +0 -138
- package/packages/crud/utils/EditState.js +0 -319
- package/packages/crud/utils/excelExport.js +0 -112
- package/packages/crud/utils/excelImport.js +0 -112
- package/packages/crud/utils/index.js +0 -98
- package/packages/dialog/dialog.js +0 -233
- package/packages/dialog/dialog.vue +0 -15
- package/packages/dialog/index.js +0 -22
- package/packages/dict/cascadeFormat.vue +0 -179
- package/packages/dict/dateFormat.vue +0 -40
- package/packages/dict/form/cascade.vue +0 -61
- package/packages/dict/form/checkbox.vue +0 -90
- package/packages/dict/form/extendMethod.js +0 -22
- package/packages/dict/form/input-base.js +0 -31
- package/packages/dict/form/input.js +0 -20
- package/packages/dict/form/radio.vue +0 -69
- package/packages/dict/form/select.vue +0 -118
- package/packages/dict/form/switch.vue +0 -75
- package/packages/dict/valueFormat.vue +0 -188
- package/packages/directive/dialog/drag.js +0 -86
- package/packages/directive/dialog/dragSize.js +0 -42
- package/packages/directive/index.js +0 -9
- package/packages/directive/insertSlot.js +0 -10
- package/packages/form/contextMenu.js +0 -192
- package/packages/form/draftDrawer.vue +0 -391
- package/packages/form/formAction.vue +0 -97
- package/packages/form/formItem.vue +0 -259
- package/packages/form/index.vue +0 -451
- package/packages/form/props.js +0 -15
- package/packages/grid/cell.vue +0 -65
- package/packages/grid/index.vue +0 -130
- package/packages/group/index.vue +0 -96
- package/packages/tabs/index.vue +0 -290
- package/packages/tooltip/index.js +0 -9
- package/packages/tooltip/tooltip.vue +0 -32
- package/packages/tooltip/tooltipComponent.js +0 -38
- package/packages/verifyInput/index.vue +0 -131
- package/styles/button.scss +0 -3
- package/styles/crud.scss +0 -425
- package/styles/dialog.scss +0 -95
- package/styles/form.scss +0 -532
- package/styles/group.scss +0 -78
- package/styles/index.scss +0 -94
- package/styles/tabs.scss +0 -139
- package/styles/verifyInput.scss +0 -56
- package/vue-jsx-sync.js +0 -90
- package/vue.config.js +0 -54
package/package.json
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "vue-super-crud",
|
3
|
-
"version": "1.7.
|
3
|
+
"version": "1.7.2",
|
4
4
|
"main": "lib/super-crud.min.js",
|
5
|
-
"
|
5
|
+
"files": [
|
6
|
+
"lib",
|
7
|
+
"src"
|
8
|
+
],
|
6
9
|
"scripts": {
|
7
10
|
"serve": "vue-cli-service serve",
|
8
11
|
"docs:dev": "vuepress dev docs",
|
@@ -11,28 +14,24 @@
|
|
11
14
|
"dev": "cross-env TARGET=dev gulp watch",
|
12
15
|
"build": "cross-env TARGET=prod gulp build",
|
13
16
|
"deploy": "deploy.bat",
|
14
|
-
"release": "standard-version"
|
15
|
-
"test": "jest",
|
16
|
-
"test:watch": "jest --watch",
|
17
|
-
"test:coverage": "jest --coverage"
|
17
|
+
"release": "standard-version"
|
18
18
|
},
|
19
|
-
"dependencies": {
|
19
|
+
"dependencies": {},
|
20
|
+
"devDependencies": {
|
20
21
|
"dayjs": "^1.11.13",
|
21
22
|
"el-table-virtual-scroll": "^1.4.6",
|
22
|
-
"element-ui": "^2.15.14",
|
23
23
|
"lodash-es": "^4.17.21",
|
24
|
-
"
|
24
|
+
"xe-utils": "^3.5.28",
|
25
25
|
"vue": "^2.6.11",
|
26
|
-
"vue-contextmenujs": "^1.4.11",
|
27
26
|
"vue-highlight.js": "^3.1.0",
|
28
27
|
"vue-router": "^3.2.0",
|
29
|
-
"vuedraggable": "^2.24.3",
|
30
28
|
"vuepress": "^1.9.10",
|
31
29
|
"vuepress-plugin-code-copy": "^1.0.6",
|
32
|
-
"
|
33
|
-
"
|
34
|
-
|
35
|
-
|
30
|
+
"element-ui": "^2.15.14",
|
31
|
+
"mockjs": "^1.1.0",
|
32
|
+
"vue-contextmenujs": "^1.4.11",
|
33
|
+
"vuedraggable": "^2.24.3",
|
34
|
+
"xlsx": "^0.18.5",
|
36
35
|
"@babel/core": "^7.13.14",
|
37
36
|
"@babel/preset-env": "^7.13.12",
|
38
37
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
|
@@ -51,7 +50,6 @@
|
|
51
50
|
"gulp-cssmin": "^0.1.7",
|
52
51
|
"gulp-postcss": "^6.1.1",
|
53
52
|
"gulp-sass": "^5.1.0",
|
54
|
-
"jest": "^29.7.0",
|
55
53
|
"progress-bar-webpack-plugin": "^2.1.0",
|
56
54
|
"sass": "^1.26.5",
|
57
55
|
"sass-loader": "^8.0.2",
|
@@ -62,5 +60,12 @@
|
|
62
60
|
"vuepress-theme-reco": "^1.6.17",
|
63
61
|
"webpack": "^4.27.0",
|
64
62
|
"webpack-merge": "^4.1.4"
|
63
|
+
},
|
64
|
+
"peerDependencies": {
|
65
|
+
"vue": "^2.6.11",
|
66
|
+
"element-ui": "^2.15.14",
|
67
|
+
"mockjs": "^1.1.0",
|
68
|
+
"vue-contextmenujs": "^1.4.11",
|
69
|
+
"vuedraggable": "^2.24.3"
|
65
70
|
}
|
66
71
|
}
|
package/.browserslistrc
DELETED
package/.versionrc.json
DELETED
@@ -1,36 +0,0 @@
|
|
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
DELETED
@@ -1,232 +0,0 @@
|
|
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/babel.config.js
DELETED
package/build/alias.js
DELETED
package/build/build.js
DELETED
@@ -1,52 +0,0 @@
|
|
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
DELETED
@@ -1,70 +0,0 @@
|
|
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");
|
package/deploy.bat
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<!-- 基础按钮 -->
|
4
|
-
<sc-button @click="handleClick">基础</sc-button>
|
5
|
-
|
6
|
-
<!-- 下拉菜单按钮 -->
|
7
|
-
<sc-button
|
8
|
-
type="primary"
|
9
|
-
label="下拉按钮"
|
10
|
-
:children="[
|
11
|
-
{
|
12
|
-
label: '编辑',
|
13
|
-
onClick: handleClick,
|
14
|
-
},
|
15
|
-
{
|
16
|
-
label: '删除',
|
17
|
-
onClick: handleClick,
|
18
|
-
confirm: true,
|
19
|
-
type: 'danger',
|
20
|
-
},
|
21
|
-
]"
|
22
|
-
/>
|
23
|
-
|
24
|
-
<!-- 带输入框的提交 -->
|
25
|
-
<sc-button
|
26
|
-
type="warning"
|
27
|
-
label="文本提交"
|
28
|
-
:textSubmit="{
|
29
|
-
title: '驳回原因',
|
30
|
-
label: '驳回原因',
|
31
|
-
rows: 4, // 默认值
|
32
|
-
required: true, // 默认值
|
33
|
-
}"
|
34
|
-
@click="handleReject"
|
35
|
-
/>
|
36
|
-
|
37
|
-
<!-- 带确认框的按钮 -->
|
38
|
-
<sc-button
|
39
|
-
type="danger"
|
40
|
-
label="确认操作"
|
41
|
-
confirm="确认操作"
|
42
|
-
@click="handleClick"
|
43
|
-
/>
|
44
|
-
|
45
|
-
<!-- 使用对象配置确认框 -->
|
46
|
-
<sc-button
|
47
|
-
type="warning"
|
48
|
-
label="对象配置确认框"
|
49
|
-
:confirm="{
|
50
|
-
title: '对象配置确认框',
|
51
|
-
label: '确定要执行此操作吗?',
|
52
|
-
confirmButtonText: '通过',
|
53
|
-
cancelButtonText: '拒绝',
|
54
|
-
type: 'warning',
|
55
|
-
}"
|
56
|
-
@click="handleClick"
|
57
|
-
/>
|
58
|
-
|
59
|
-
<!-- 带自定义确认框的按钮 -->
|
60
|
-
<sc-button
|
61
|
-
type="warning"
|
62
|
-
label="自定义确认框"
|
63
|
-
:customConfirm="{
|
64
|
-
title: '自定义确认框',
|
65
|
-
label: '确定要执行此操作吗?',
|
66
|
-
content: renderContent,
|
67
|
-
}"
|
68
|
-
@click="handleClick"
|
69
|
-
/>
|
70
|
-
</div>
|
71
|
-
</template>
|
72
|
-
|
73
|
-
<script>
|
74
|
-
export default {
|
75
|
-
methods: {
|
76
|
-
handleClick() {
|
77
|
-
console.log("click");
|
78
|
-
},
|
79
|
-
handleReject(cb, reason) {
|
80
|
-
console.log("驳回原因:", cb, reason);
|
81
|
-
cb(); // 完成后调用回调
|
82
|
-
},
|
83
|
-
renderContent(h) {
|
84
|
-
return <div>111</div>;
|
85
|
-
},
|
86
|
-
},
|
87
|
-
};
|
88
|
-
</script>
|