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/styles/crud.scss
DELETED
@@ -1,425 +0,0 @@
|
|
1
|
-
.sc-crud {
|
2
|
-
//header
|
3
|
-
.el-table thead th,
|
4
|
-
.el-table thead.is-group th {
|
5
|
-
background-color: var(--background-color-base);
|
6
|
-
}
|
7
|
-
.el-table th.el-table__cell.is-sortable {
|
8
|
-
cursor: auto;
|
9
|
-
}
|
10
|
-
|
11
|
-
// .el-table__body tr.current-row > td {
|
12
|
-
// background-color: #ecf5ff;
|
13
|
-
// }
|
14
|
-
|
15
|
-
&__maximize {
|
16
|
-
position: fixed;
|
17
|
-
top: 0;
|
18
|
-
left: 0;
|
19
|
-
overflow: auto;
|
20
|
-
width: 100% !important;
|
21
|
-
height: 100% !important;
|
22
|
-
background-color: var(--color-white);
|
23
|
-
z-index: 1001;
|
24
|
-
}
|
25
|
-
&__handleRow,
|
26
|
-
&__toolbar {
|
27
|
-
display: flex;
|
28
|
-
}
|
29
|
-
&__is-auto-height {
|
30
|
-
display: flex;
|
31
|
-
flex-direction: column;
|
32
|
-
height: 100%;
|
33
|
-
overflow: hidden;
|
34
|
-
.height--form {
|
35
|
-
flex: 1;
|
36
|
-
height: 100%;
|
37
|
-
overflow: hidden;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
&__is-change-show-search {
|
42
|
-
.el-table__body-wrapper {
|
43
|
-
overflow: hidden;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
.sc-crud-search {
|
47
|
-
display: grid;
|
48
|
-
overflow: hidden;
|
49
|
-
transition: all 0.3s;
|
50
|
-
grid-template-rows: 0fr;
|
51
|
-
> .el-form {
|
52
|
-
min-height: 0;
|
53
|
-
}
|
54
|
-
}
|
55
|
-
.sc-crud-search--show-search {
|
56
|
-
margin-top: 10px;
|
57
|
-
grid-template-rows: 1fr;
|
58
|
-
}
|
59
|
-
.sc-crud-menuBar {
|
60
|
-
display: flex;
|
61
|
-
justify-content: space-between;
|
62
|
-
align-items: center;
|
63
|
-
&__handleRow:not(:empty),
|
64
|
-
&__toolbar:not(:empty) {
|
65
|
-
margin-bottom: 10px;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
.sc-crud-column--header {
|
69
|
-
display: inline-block;
|
70
|
-
.search-btn {
|
71
|
-
cursor: pointer;
|
72
|
-
margin-left: 5px;
|
73
|
-
}
|
74
|
-
button:not(.el-button--primary) {
|
75
|
-
background-color: var(--background-color-base);
|
76
|
-
}
|
77
|
-
}
|
78
|
-
.el-table {
|
79
|
-
// 必填-单元格样式
|
80
|
-
.is-required {
|
81
|
-
position: relative;
|
82
|
-
}
|
83
|
-
.is-required::before {
|
84
|
-
position: absolute;
|
85
|
-
top: 0;
|
86
|
-
left: 4px;
|
87
|
-
content: "*";
|
88
|
-
color: var(--color-danger);
|
89
|
-
margin-right: 4px;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
// 编辑框透明-单元格样式
|
93
|
-
.edit-cell {
|
94
|
-
.cell {
|
95
|
-
padding: 0 !important;
|
96
|
-
}
|
97
|
-
input {
|
98
|
-
border: 0px;
|
99
|
-
background-color: transparent;
|
100
|
-
}
|
101
|
-
.el-input,
|
102
|
-
.el-select {
|
103
|
-
.el-input__inner {
|
104
|
-
padding: 0 15px;
|
105
|
-
}
|
106
|
-
.el-input__suffix {
|
107
|
-
right: -5px;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
}
|
111
|
-
.edit-cell:before {
|
112
|
-
content: "";
|
113
|
-
top: -5px;
|
114
|
-
left: -5px;
|
115
|
-
position: absolute;
|
116
|
-
border-width: 5px;
|
117
|
-
border-style: solid;
|
118
|
-
border-color: transparent var(--color-primary) transparent transparent;
|
119
|
-
transform: rotate(45deg);
|
120
|
-
}
|
121
|
-
.edit-cell.error-badge:before {
|
122
|
-
content: "";
|
123
|
-
top: -5px;
|
124
|
-
left: -5px;
|
125
|
-
position: absolute;
|
126
|
-
border-width: 5px;
|
127
|
-
border-style: solid;
|
128
|
-
border-color: transparent var(--color-danger) transparent transparent;
|
129
|
-
transform: rotate(45deg);
|
130
|
-
}
|
131
|
-
.edit-cell.error-badge {
|
132
|
-
background: #fee6e6 !important;
|
133
|
-
.el-input__inner::placeholder {
|
134
|
-
color: var(--color-danger) !important;
|
135
|
-
}
|
136
|
-
}
|
137
|
-
// 单元格编辑样式
|
138
|
-
.sc-crud-cell__edit--active {
|
139
|
-
display: flex;
|
140
|
-
align-items: center;
|
141
|
-
width: 100%;
|
142
|
-
.save-icon {
|
143
|
-
flex-shrink: 0;
|
144
|
-
width: 51px;
|
145
|
-
margin-left: 5px;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
.sc-crud-cell__edit {
|
149
|
-
position: relative;
|
150
|
-
.content {
|
151
|
-
transition: all 0.3s;
|
152
|
-
}
|
153
|
-
}
|
154
|
-
.sc-crud-cell__edit--hover:hover {
|
155
|
-
.content {
|
156
|
-
opacity: 0;
|
157
|
-
}
|
158
|
-
}
|
159
|
-
|
160
|
-
// 自定义单元格样式
|
161
|
-
.custom-cell {
|
162
|
-
.cell {
|
163
|
-
display: flex;
|
164
|
-
align-items: center;
|
165
|
-
width: auto !important;
|
166
|
-
}
|
167
|
-
}
|
168
|
-
|
169
|
-
.cell > .el-form-item {
|
170
|
-
margin-bottom: 0;
|
171
|
-
}
|
172
|
-
|
173
|
-
.sc-crud-action-column {
|
174
|
-
white-space: nowrap;
|
175
|
-
.el-button + .el-dropdown {
|
176
|
-
margin-left: 10px;
|
177
|
-
}
|
178
|
-
.el-dropdown + .el-button {
|
179
|
-
margin-left: 10px;
|
180
|
-
}
|
181
|
-
}
|
182
|
-
.sc-crud-pagination {
|
183
|
-
padding: 11px 0;
|
184
|
-
background-color: var(--color-white);
|
185
|
-
}
|
186
|
-
|
187
|
-
&__add-button {
|
188
|
-
margin-top: 15px;
|
189
|
-
font-size: 14px;
|
190
|
-
height: 32px;
|
191
|
-
background: var(--color-white);
|
192
|
-
border: 1px dashed var(--color-primary);
|
193
|
-
border-radius: 4px;
|
194
|
-
display: flex;
|
195
|
-
align-items: center;
|
196
|
-
justify-content: center;
|
197
|
-
color: var(--color-primary);
|
198
|
-
cursor: pointer;
|
199
|
-
transition: border-style 0.5s;
|
200
|
-
.el-icon-plus {
|
201
|
-
margin-right: 10px;
|
202
|
-
}
|
203
|
-
&:hover {
|
204
|
-
border-style: solid;
|
205
|
-
}
|
206
|
-
&:active {
|
207
|
-
background-color: var(--color-primary-light-9);
|
208
|
-
}
|
209
|
-
}
|
210
|
-
|
211
|
-
// 单元格表单组件样式
|
212
|
-
.sc-crud-cell,
|
213
|
-
td .cell,
|
214
|
-
.sc-crud-cell .el-form-item__content {
|
215
|
-
> .el-select,
|
216
|
-
> .el-date-editor,
|
217
|
-
> .el-textarea,
|
218
|
-
> .el-cascader,
|
219
|
-
> .el-input-number {
|
220
|
-
width: 100% !important;
|
221
|
-
}
|
222
|
-
|
223
|
-
> .el-input-number {
|
224
|
-
.el-input {
|
225
|
-
width: inherit;
|
226
|
-
|
227
|
-
.el-input__inner {
|
228
|
-
text-align: left;
|
229
|
-
}
|
230
|
-
}
|
231
|
-
}
|
232
|
-
}
|
233
|
-
.sc-crud-cell--center {
|
234
|
-
.el-input__inner {
|
235
|
-
text-align: center;
|
236
|
-
}
|
237
|
-
}
|
238
|
-
|
239
|
-
.sc-crud-select-banner {
|
240
|
-
background-color: var(--color-primary-light-9);
|
241
|
-
border: 1px solid var(--color-primary-light-7);
|
242
|
-
padding: 8px 16px;
|
243
|
-
margin-bottom: 12px;
|
244
|
-
border-radius: 4px;
|
245
|
-
font-size: 13px;
|
246
|
-
|
247
|
-
&__banner-content {
|
248
|
-
display: flex;
|
249
|
-
align-items: center;
|
250
|
-
color: var(--color-text-regular);
|
251
|
-
}
|
252
|
-
|
253
|
-
&__selected-items,
|
254
|
-
&__selected-preview {
|
255
|
-
margin: 0 8px;
|
256
|
-
color: var(--color-primary);
|
257
|
-
}
|
258
|
-
|
259
|
-
&__remove-tag {
|
260
|
-
margin-left: 4px;
|
261
|
-
cursor: pointer;
|
262
|
-
|
263
|
-
&.el-tag {
|
264
|
-
background-color: transparent;
|
265
|
-
border-color: transparent;
|
266
|
-
padding: 0 4px;
|
267
|
-
|
268
|
-
.el-tag__close {
|
269
|
-
color: var(--color-primary);
|
270
|
-
|
271
|
-
&:hover {
|
272
|
-
color: var(--color-white);
|
273
|
-
background-color: var(--color-primary);
|
274
|
-
}
|
275
|
-
}
|
276
|
-
}
|
277
|
-
}
|
278
|
-
|
279
|
-
&__banner-actions {
|
280
|
-
margin-left: auto;
|
281
|
-
display: flex;
|
282
|
-
align-items: center;
|
283
|
-
gap: 16px;
|
284
|
-
|
285
|
-
.el-button--text {
|
286
|
-
padding: 0;
|
287
|
-
height: auto;
|
288
|
-
}
|
289
|
-
}
|
290
|
-
}
|
291
|
-
}
|
292
|
-
|
293
|
-
.sc-crud-select-banner__popover {
|
294
|
-
min-width: 200px;
|
295
|
-
max-width: 300px;
|
296
|
-
|
297
|
-
&-list {
|
298
|
-
max-height: 200px;
|
299
|
-
overflow-y: auto;
|
300
|
-
}
|
301
|
-
|
302
|
-
&-item {
|
303
|
-
display: flex;
|
304
|
-
align-items: center;
|
305
|
-
justify-content: space-between;
|
306
|
-
padding: 6px 8px;
|
307
|
-
font-size: 13px;
|
308
|
-
|
309
|
-
&:not(:last-child) {
|
310
|
-
border-bottom: 1px solid var(--border-color-lighter);
|
311
|
-
}
|
312
|
-
}
|
313
|
-
&-remove-tag {
|
314
|
-
margin-left: 4px;
|
315
|
-
cursor: pointer;
|
316
|
-
|
317
|
-
&.el-tag {
|
318
|
-
background-color: transparent;
|
319
|
-
border-color: transparent;
|
320
|
-
padding: 0 4px;
|
321
|
-
|
322
|
-
.el-tag__close {
|
323
|
-
color: var(--color-primary);
|
324
|
-
|
325
|
-
&:hover {
|
326
|
-
color: var(--color-white);
|
327
|
-
background-color: var(--color-primary);
|
328
|
-
}
|
329
|
-
}
|
330
|
-
}
|
331
|
-
}
|
332
|
-
}
|
333
|
-
|
334
|
-
.sc-crud-search-header {
|
335
|
-
> .el-select,
|
336
|
-
> .el-date-editor,
|
337
|
-
> .el-textarea,
|
338
|
-
> .el-cascader,
|
339
|
-
> .el-input-number {
|
340
|
-
width: 100% !important;
|
341
|
-
}
|
342
|
-
|
343
|
-
> .el-input-number {
|
344
|
-
.el-input {
|
345
|
-
width: inherit;
|
346
|
-
|
347
|
-
.el-input__inner {
|
348
|
-
text-align: left;
|
349
|
-
}
|
350
|
-
}
|
351
|
-
}
|
352
|
-
display: flex;
|
353
|
-
align-items: center;
|
354
|
-
}
|
355
|
-
.sc-crud__error-tip.el-tooltip__popper {
|
356
|
-
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
357
|
-
border: 1px solid var(--color-danger);
|
358
|
-
color: var(--color-white);
|
359
|
-
background-color: var(--color-danger);
|
360
|
-
}
|
361
|
-
.sc-crud__error-tip.el-tooltip__popper.is-light .popper__arrow {
|
362
|
-
border-top-color: var(--color-danger);
|
363
|
-
}
|
364
|
-
.sc-crud__error-tip.el-tooltip__popper.is-light .popper__arrow::after {
|
365
|
-
border-top-color: var(--color-danger);
|
366
|
-
}
|
367
|
-
|
368
|
-
.sc-crud-drawer {
|
369
|
-
.wrapper {
|
370
|
-
padding: 0 10px;
|
371
|
-
.el-card__body {
|
372
|
-
padding: 10px;
|
373
|
-
}
|
374
|
-
}
|
375
|
-
.header {
|
376
|
-
.title {
|
377
|
-
float: right;
|
378
|
-
color: var(--color-text-secondary);
|
379
|
-
}
|
380
|
-
}
|
381
|
-
.reset-btn {
|
382
|
-
width: 100%;
|
383
|
-
margin-top: 10px;
|
384
|
-
}
|
385
|
-
.col-list {
|
386
|
-
margin-top: 15px;
|
387
|
-
.col-item {
|
388
|
-
display: flex;
|
389
|
-
align-items: center;
|
390
|
-
justify-content: space-between;
|
391
|
-
width: 100%;
|
392
|
-
padding: 10px 0;
|
393
|
-
.col-item--left {
|
394
|
-
max-width: calc(100% - 70px);
|
395
|
-
display: flex;
|
396
|
-
align-items: center;
|
397
|
-
.el-checkbox__label {
|
398
|
-
white-space: nowrap;
|
399
|
-
overflow: hidden;
|
400
|
-
text-overflow: ellipsis;
|
401
|
-
}
|
402
|
-
}
|
403
|
-
.col-item--right {
|
404
|
-
display: flex;
|
405
|
-
align-items: center;
|
406
|
-
font-size: 12px;
|
407
|
-
.fixed-btn {
|
408
|
-
padding: 0;
|
409
|
-
}
|
410
|
-
.sort-drag {
|
411
|
-
cursor: move;
|
412
|
-
margin-left: 10px;
|
413
|
-
}
|
414
|
-
.un-drag {
|
415
|
-
cursor: no-drop;
|
416
|
-
margin-left: 10px;
|
417
|
-
}
|
418
|
-
}
|
419
|
-
}
|
420
|
-
}
|
421
|
-
}
|
422
|
-
|
423
|
-
.contextmenu_menu {
|
424
|
-
z-index: 9999 !important;
|
425
|
-
}
|
package/styles/dialog.scss
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
.sc-dialog {
|
2
|
-
display: flex;
|
3
|
-
align-items: center;
|
4
|
-
overflow: visible;
|
5
|
-
&__title {
|
6
|
-
display: flex;
|
7
|
-
align-items: center;
|
8
|
-
justify-content: space-between;
|
9
|
-
margin-right: 50px;
|
10
|
-
color: #72767b;
|
11
|
-
i {
|
12
|
-
color: #909399;
|
13
|
-
}
|
14
|
-
i + i {
|
15
|
-
margin-left: 10px;
|
16
|
-
}
|
17
|
-
i:hover {
|
18
|
-
cursor: pointer;
|
19
|
-
color: var(--color-primary);
|
20
|
-
}
|
21
|
-
}
|
22
|
-
&__footer {
|
23
|
-
display: block;
|
24
|
-
padding: 10px 15px;
|
25
|
-
box-sizing: border-box;
|
26
|
-
border-top: 1px solid #f0f0f0;
|
27
|
-
width: 100%;
|
28
|
-
position: absolute;
|
29
|
-
left: 0;
|
30
|
-
bottom: 0;
|
31
|
-
background-color: #fff;
|
32
|
-
&--right {
|
33
|
-
text-align: right;
|
34
|
-
}
|
35
|
-
&--left {
|
36
|
-
text-align: left;
|
37
|
-
}
|
38
|
-
&--center {
|
39
|
-
text-align: center;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
.has-footer {
|
43
|
-
margin-bottom: 61px;
|
44
|
-
}
|
45
|
-
.el-dialog {
|
46
|
-
display: flex;
|
47
|
-
flex-direction: column;
|
48
|
-
border-radius: 4px;
|
49
|
-
overflow: hidden;
|
50
|
-
.el-dialog__header {
|
51
|
-
border-radius: 4px 4px 0 0;
|
52
|
-
height: 50px;
|
53
|
-
line-height: 50px;
|
54
|
-
padding: 0 0 0 20px;
|
55
|
-
border-bottom: 1px solid #e4e7ed;
|
56
|
-
.el-dialog__headerbtn {
|
57
|
-
top: 17px;
|
58
|
-
.el-dialog__close {
|
59
|
-
font-weight: bold;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
.el-drawer__body,
|
65
|
-
.el-dialog__body {
|
66
|
-
flex: 1;
|
67
|
-
overflow: hidden;
|
68
|
-
overflow-y: auto;
|
69
|
-
padding: 20px;
|
70
|
-
color: var(--color-text-regular);
|
71
|
-
max-height: calc(100vh - 112px);
|
72
|
-
}
|
73
|
-
.el-drawer {
|
74
|
-
position: absolute;
|
75
|
-
right: 0;
|
76
|
-
top: 0;
|
77
|
-
display: flex;
|
78
|
-
flex-direction: column;
|
79
|
-
}
|
80
|
-
.el-drawer__header {
|
81
|
-
margin: 0;
|
82
|
-
min-height: 20px;
|
83
|
-
padding: 16px 10px 16px 24px;
|
84
|
-
border-bottom: 1px solid #f0f0f0;
|
85
|
-
}
|
86
|
-
.el-drawer,
|
87
|
-
.el-drawer__body {
|
88
|
-
flex: 1;
|
89
|
-
overflow: auto;
|
90
|
-
}
|
91
|
-
|
92
|
-
.el-form-item__label {
|
93
|
-
font-weight: normal;
|
94
|
-
}
|
95
|
-
}
|