vue-super-crud 1.7.1 → 1.7.4
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/src/config/common.js +2 -1
- package/src/config/crud.js +3 -3
- package/src/index.js +4 -0
- package/src/template/formatData.js +75 -87
- 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.4",
|
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/src/config/common.js
CHANGED
@@ -9,7 +9,7 @@ export const renderItem = {
|
|
9
9
|
},
|
10
10
|
dict: {
|
11
11
|
strict: true,
|
12
|
-
type: [String, Object],
|
12
|
+
type: [String, Object, Function],
|
13
13
|
properties: {
|
14
14
|
request: Function,
|
15
15
|
label: String, // 数据字典中label字段的属性名
|
@@ -54,6 +54,7 @@ export const renderItem = {
|
|
54
54
|
},
|
55
55
|
}, // 验证规则
|
56
56
|
position: Boolean, // 是否开启位置渲染
|
57
|
+
formatData: [Object, String], // 响应式数据格式化
|
57
58
|
};
|
58
59
|
|
59
60
|
export const buttonItem = {
|
package/src/config/crud.js
CHANGED
@@ -140,6 +140,7 @@ export default {
|
|
140
140
|
},
|
141
141
|
},
|
142
142
|
}),
|
143
|
+
addChild: buttonItem, // 子级新增按钮配置
|
143
144
|
batchDelete: buttonItem, // 批量删除按钮配置
|
144
145
|
delete: buttonItem, // 删除按钮配置
|
145
146
|
view: buttonItem, // 查看按钮配置,仅限`dialog`模式
|
@@ -250,9 +251,6 @@ export default {
|
|
250
251
|
default: () => ({
|
251
252
|
pageNum: "pageNum",
|
252
253
|
pageSize: "pageSize",
|
253
|
-
detailResult: "data",
|
254
|
-
listResult: "data",
|
255
|
-
total: "total",
|
256
254
|
}),
|
257
255
|
},
|
258
256
|
// 是否本地生成唯一标识
|
@@ -405,6 +403,7 @@ export default {
|
|
405
403
|
calcWidth: Number,
|
406
404
|
defaultWidth: Number,
|
407
405
|
sameRowSpan: [String, Boolean],
|
406
|
+
spanProp: [String, Boolean],
|
408
407
|
fixed: [String, Boolean],
|
409
408
|
handles: {
|
410
409
|
type: Array,
|
@@ -465,6 +464,7 @@ export default {
|
|
465
464
|
hiddenList: Boolean, // 是否只隐藏列表
|
466
465
|
children: Array, // 嵌套列子列
|
467
466
|
sameRowSpan: [String, Boolean], // 是否合并单元格
|
467
|
+
spanProp: [String, Boolean], // 是否合并单元格
|
468
468
|
spanMethod: Function, // 合并单元格方法
|
469
469
|
isEdit: [Boolean, Function], // 是否允许编辑
|
470
470
|
summary: {
|
package/src/index.js
CHANGED
@@ -12,6 +12,8 @@ import tabs from "pak/tabs";
|
|
12
12
|
import verifyInput from "pak/verifyInput";
|
13
13
|
import button from "pak/button";
|
14
14
|
import position from "pak/core/components/position";
|
15
|
+
import grid from "pak/grid/index.vue";
|
16
|
+
import cell from "pak/grid/cell.vue";
|
15
17
|
|
16
18
|
import { mergeTemplate } from "./template";
|
17
19
|
import directive from "pak/directive";
|
@@ -33,6 +35,8 @@ const components = [
|
|
33
35
|
verifyInput,
|
34
36
|
button,
|
35
37
|
position,
|
38
|
+
grid,
|
39
|
+
cell,
|
36
40
|
];
|
37
41
|
|
38
42
|
const install = function (Vue, opts = {}) {
|
@@ -241,12 +241,11 @@ export default {
|
|
241
241
|
numberFormat: (item) => {
|
242
242
|
const config = {
|
243
243
|
precision: 2, // 精度(小数位数)
|
244
|
-
round:
|
244
|
+
round: false, // 是否四舍五入
|
245
245
|
toFixed: false, // 是否固定小数位数
|
246
246
|
thousandth: false, // 是否显示千分位
|
247
247
|
prefix: "", // 前缀
|
248
248
|
suffix: "", // 后缀
|
249
|
-
keepZero: false, // 是否保留末尾0
|
250
249
|
...(get(item, "formatData") || item),
|
251
250
|
};
|
252
251
|
|
@@ -258,23 +257,50 @@ export default {
|
|
258
257
|
};
|
259
258
|
|
260
259
|
// 处理数字精度
|
261
|
-
const formatPrecision = (num) => {
|
260
|
+
const formatPrecision = (num, originalStr = "") => {
|
262
261
|
if (typeof num !== "number") return num;
|
262
|
+
let result;
|
263
|
+
if (config.precision !== 0) {
|
264
|
+
const endsWithDot = originalStr.endsWith(".");
|
265
|
+
// 检查原始字符串是否以0结尾的小数
|
266
|
+
const endsWithZero =
|
267
|
+
originalStr.includes(".") && originalStr.endsWith("0");
|
268
|
+
const decimalPlaces = endsWithZero
|
269
|
+
? originalStr.split(".")[1].length
|
270
|
+
: 0;
|
271
|
+
|
272
|
+
// 使用字符串操作来保持精确度
|
273
|
+
const numStr = String(num);
|
274
|
+
const parts = numStr.split(".");
|
275
|
+
if (parts.length > 1) {
|
276
|
+
const integerPart = parts[0];
|
277
|
+
const decimalPart = parts[1];
|
278
|
+
if (config.round) {
|
279
|
+
result = Number(Number(num).toFixed(config.precision));
|
280
|
+
} else {
|
281
|
+
// 直接截取所需的小数位数
|
282
|
+
result = Number(
|
283
|
+
integerPart + "." + decimalPart.slice(0, config.precision)
|
284
|
+
);
|
285
|
+
}
|
286
|
+
} else {
|
287
|
+
result = num;
|
288
|
+
}
|
263
289
|
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
if (!config.keepZero) {
|
274
|
-
num = String(Number(num));
|
290
|
+
// 如果原始输入以0结尾,使用原始小数位数
|
291
|
+
if (endsWithZero && !config.toFixed) {
|
292
|
+
result = Number(result).toFixed(
|
293
|
+
Math.min(config.precision, decimalPlaces)
|
294
|
+
);
|
295
|
+
} else if (endsWithDot && !String(result).includes(".")) {
|
296
|
+
result = result + ".";
|
297
|
+
} else if (config.toFixed) {
|
298
|
+
result = Number(result).toFixed(config.precision);
|
275
299
|
}
|
300
|
+
} else {
|
301
|
+
result = Number(num).toFixed(0);
|
276
302
|
}
|
277
|
-
return
|
303
|
+
return result;
|
278
304
|
};
|
279
305
|
|
280
306
|
// 处理多个小数点的情况(只保留第一个)
|
@@ -297,26 +323,12 @@ export default {
|
|
297
323
|
rawStr = String(value);
|
298
324
|
}
|
299
325
|
|
300
|
-
|
301
|
-
if (!/^-?\d*\.?\d*$/.test(rawStr)) {
|
302
|
-
return value;
|
303
|
-
}
|
326
|
+
const num = Number(rawStr) || 0;
|
304
327
|
|
305
|
-
//
|
306
|
-
|
307
|
-
|
308
|
-
const num = Number(rawStr);
|
309
|
-
if (isNaN(num)) {
|
310
|
-
return value;
|
311
|
-
}
|
312
|
-
let formatted = formatPrecision(num);
|
328
|
+
// 传入原始字符串,用于处理特殊情况
|
329
|
+
let formatted = formatPrecision(num, rawStr);
|
313
330
|
formatted = String(formatted);
|
314
331
|
|
315
|
-
// 如果原始输入以小数点结尾,但格式化后中没有小数点,则补回
|
316
|
-
if (endsWithDot && !formatted.includes(".")) {
|
317
|
-
formatted += ".";
|
318
|
-
}
|
319
|
-
|
320
332
|
if (config.thousandth) {
|
321
333
|
formatted = formatThousandth(formatted);
|
322
334
|
}
|
@@ -354,50 +366,16 @@ export default {
|
|
354
366
|
},
|
355
367
|
};
|
356
368
|
},
|
357
|
-
//
|
358
|
-
|
359
|
-
// 预设的正则规则
|
360
|
-
const REGEX_RULES = {
|
361
|
-
number: /[^\d]/g, // 仅数字
|
362
|
-
phone: /[^\d]/g, // 手机号
|
363
|
-
decimal: /[^\d.]/g, // 小数
|
364
|
-
letter: /[^a-zA-Z]/g, // 仅字母
|
365
|
-
chinese: /[^\u4e00-\u9fa5]/g, // 仅中文
|
366
|
-
letterNumber: /[^a-zA-Z0-9]/g, // 字母和数字
|
367
|
-
email: /[^a-zA-Z0-9@._-]/g, // 邮箱
|
368
|
-
custom: null, // 自定义正则
|
369
|
-
};
|
370
|
-
|
369
|
+
// 自定义正则格式化
|
370
|
+
regexFormat: (item) => {
|
371
371
|
// 默认配置
|
372
372
|
const config = {
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
decimal: undefined, // 小数位数(type为decimal时使用)
|
373
|
+
pattern: "", // 自定义正则表达式
|
374
|
+
flags: "g", // 正则标志,默认全局匹配
|
375
|
+
replace: "", // 替换值,默认为空字符串
|
377
376
|
...(get(item, "formatData") || item),
|
378
377
|
};
|
379
378
|
|
380
|
-
// 处理小数格式化
|
381
|
-
const formatDecimal = (value) => {
|
382
|
-
if (!value) return value;
|
383
|
-
|
384
|
-
// 先去除非数字和小数点
|
385
|
-
let formatted = value.replace(/[^\d.]/g, "");
|
386
|
-
|
387
|
-
// 只保留第一个小数点
|
388
|
-
const parts = formatted.split(".");
|
389
|
-
if (parts.length > 2) {
|
390
|
-
formatted = parts[0] + "." + parts.slice(1).join("");
|
391
|
-
}
|
392
|
-
|
393
|
-
// 处理小数位数
|
394
|
-
if (config.decimal !== undefined && parts[1]) {
|
395
|
-
formatted = parts[0] + "." + parts[1].slice(0, config.decimal);
|
396
|
-
}
|
397
|
-
|
398
|
-
return formatted;
|
399
|
-
};
|
400
|
-
|
401
379
|
return {
|
402
380
|
input: (value) => {
|
403
381
|
if (!value) return value;
|
@@ -405,28 +383,38 @@ export default {
|
|
405
383
|
try {
|
406
384
|
let formatted = String(value);
|
407
385
|
|
408
|
-
//
|
409
|
-
if (config.
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
386
|
+
// 验证并应用正则表达式
|
387
|
+
if (config.pattern) {
|
388
|
+
let regex;
|
389
|
+
if (config.pattern instanceof RegExp) {
|
390
|
+
// 如果已经是RegExp对象,直接使用
|
391
|
+
regex = config.pattern;
|
392
|
+
} else {
|
393
|
+
// 如果是字符串,创建RegExp对象
|
394
|
+
regex = new RegExp(config.pattern, config.flags);
|
395
|
+
}
|
396
|
+
|
397
|
+
// 如果是验证模式(以^开头且以$结尾),则进行完整匹配
|
398
|
+
if (
|
399
|
+
config.pattern.toString().startsWith("/^") &&
|
400
|
+
config.pattern.toString().endsWith("$/")
|
401
|
+
) {
|
402
|
+
return regex.test(formatted) ? formatted : "";
|
403
|
+
} else {
|
404
|
+
// 否则进行替换
|
405
|
+
formatted = formatted.replace(regex, config.replace);
|
406
|
+
}
|
416
407
|
}
|
417
408
|
|
418
|
-
|
419
|
-
const rule = config.pattern
|
420
|
-
? new RegExp(config.pattern, "g")
|
421
|
-
: REGEX_RULES[config.inputType];
|
422
|
-
|
423
|
-
return formatted.replace(rule, "");
|
409
|
+
return formatted;
|
424
410
|
} catch (error) {
|
425
|
-
console.warn("
|
411
|
+
console.warn("自定义正则格式化失败:", error);
|
426
412
|
return value;
|
427
413
|
}
|
428
414
|
},
|
429
|
-
output: (value) =>
|
415
|
+
output: (value) => {
|
416
|
+
return value;
|
417
|
+
},
|
430
418
|
};
|
431
419
|
},
|
432
420
|
// 百分比格式化
|
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