@weitutech/by-components 1.0.27

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.
@@ -0,0 +1,194 @@
1
+ .custom_dialog_class {
2
+ .el-dialog__header {
3
+ display: none !important;
4
+ }
5
+ .el-dialog__body {
6
+ padding: 0 0 0 20px !important;
7
+ }
8
+ .el-dialog__body {
9
+ border-top: 0px !important;
10
+ }
11
+ }
12
+
13
+ .chosen {
14
+ border: solid 2px #a48bec !important;
15
+ }
16
+
17
+ .drag_ul {
18
+ height: 480px;
19
+ overflow: hidden;
20
+ overflow-y: auto;
21
+ }
22
+
23
+ .remove {
24
+ padding: 0 10px;
25
+ border-left: 1px solid #cbcbcb;
26
+ height: 12px;
27
+ cursor: pointer;
28
+ }
29
+
30
+ .icon-box {
31
+ margin: 0 10px;
32
+ }
33
+
34
+ .drag_li_text {
35
+ margin-right: 8px;
36
+ color: #606266;
37
+ }
38
+
39
+ .drag_li_box {
40
+ display: flex;
41
+ justify-content: space-between;
42
+ align-items: center;
43
+ margin-top: 10px;
44
+ height: 36px;
45
+ line-height: 36px;
46
+ color: #cbcbcb;
47
+ background-color: #fff;
48
+ box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
49
+ cursor: move;
50
+ }
51
+
52
+ .fixedClass{
53
+ width:100%;
54
+ height: 2px;
55
+ border-bottom:2px dashed #ccc;
56
+ padding-top: 10px;
57
+ }
58
+
59
+ .recover {
60
+ cursor: pointer;
61
+ color: #8966f3;
62
+ }
63
+ .drag_text_box {
64
+ height: 60px;
65
+ line-height: 60px;
66
+ margin-left: 5px;
67
+ }
68
+
69
+ .drag_title {
70
+ margin: 10px 115px 10px 0;
71
+ font-size: 14px;
72
+ font-weight: 700;
73
+ color: #666;
74
+ }
75
+
76
+ .box_title {
77
+ margin: 10px 0;
78
+ font-size: 14px;
79
+ font-weight: 700;
80
+ color: #333;
81
+ }
82
+
83
+ .drag_box {
84
+ flex: 1;
85
+ height: 540px;
86
+ padding: 0 10px;
87
+ background-color: #fafafa;
88
+ }
89
+
90
+ .el-dialog-box {
91
+ display: flex;
92
+ height: 550px;
93
+
94
+ .left_box {
95
+ padding-top: 10px;
96
+ width: 600px;
97
+ }
98
+ .right_box {
99
+ flex: 1;
100
+ }
101
+ }
102
+
103
+ .draggable_title{
104
+ font-size: 12px;
105
+ font-weight: 700;
106
+ margin:20px 0 ;
107
+ }
108
+
109
+ .left_box_body {
110
+ display: flex;
111
+ height: 444px;
112
+ border: 1px solid #ececec;
113
+ .left_nav {
114
+ width: 85px;
115
+ padding: 10px 0 0 10px;
116
+ border-right: 1px solid #ececec;
117
+ list-style: none;
118
+ ul {
119
+ padding: 0;
120
+ margin: 0;
121
+ li {
122
+ list-style: none;
123
+ padding: 10px 0;
124
+ font-weight: 700;
125
+ color: #333;
126
+ cursor: pointer;
127
+ }
128
+ }
129
+ }
130
+ .left_menu {
131
+ flex: 1;
132
+ padding: 10px 0 0 20px;
133
+ overflow: hidden;
134
+ overflow-y: auto;
135
+ .checkbox_title {
136
+ margin: 20px 0;
137
+
138
+ }
139
+ div:nth-child(1) .checkbox_title {
140
+ margin-top: 8px;
141
+ }
142
+ }
143
+ .active {
144
+ color: #8966f3 !important;
145
+ }
146
+ ::v-deep {
147
+ .el-form--label-top .el-form-item__label {
148
+ padding: 0;
149
+ font-size: 12px;
150
+ }
151
+ .el-radio__label {
152
+ font-size: 12px !important;
153
+ }
154
+ }
155
+ }
156
+
157
+ .flex {
158
+ display: flex;
159
+ }
160
+
161
+ .row-wrap,
162
+ .column-wrap {
163
+ flex-wrap: wrap;
164
+ }
165
+
166
+ .column {
167
+ display: flex;
168
+ flex-direction: column;
169
+ }
170
+
171
+ .row.column-c,
172
+ .column.row-c {
173
+ align-items: center;
174
+ }
175
+
176
+ .row {
177
+ display: flex;
178
+ flex-direction: row;
179
+ }
180
+
181
+ .row.row-c,
182
+ .column.column-c {
183
+ justify-content: center;
184
+ }
185
+ .row.row-sb,
186
+ .column.column-sb {
187
+ justify-content: space-between;
188
+ }
189
+
190
+ .cell,
191
+ .cell-1 {
192
+ flex: 1;
193
+ }
194
+
@@ -0,0 +1,21 @@
1
+ .b-fold-search {
2
+ text-align: center;
3
+ position: relative;
4
+ div {
5
+ display: inline-block;
6
+ background-color: #fff;
7
+ cursor: pointer;
8
+ padding: 0 15px;
9
+ height: 34px;
10
+ line-height: 32px;
11
+ font-size: 14px;
12
+ border-radius: 0 0 5px 5px;
13
+ }
14
+ span {
15
+ color: #999999;
16
+ }
17
+ img {
18
+ width: 15px;
19
+ height: 15px;
20
+ }
21
+ }
@@ -0,0 +1,342 @@
1
+ .b-form {
2
+ .el-input,
3
+ .el-select {
4
+ max-width: none !important;
5
+ }
6
+ .el-input-group {
7
+ vertical-align: middle !important;
8
+ }
9
+ .el-form-item {
10
+ margin-bottom: 0px !important;
11
+ }
12
+ .el-row {
13
+ display: flex;
14
+ flex-wrap: wrap;
15
+ }
16
+ .b-picker {
17
+ display: flex;
18
+ align-items: center;
19
+ .btn {
20
+ display: flex;
21
+ margin-left: 8px;
22
+ }
23
+ .item {
24
+ color: #606266;
25
+ font-size: 12px;
26
+ white-space: nowrap;
27
+ margin: 0 3px;
28
+ cursor: pointer;
29
+ }
30
+ .item_active {
31
+ color: #409eff;
32
+ }
33
+ }
34
+ .store-selector {
35
+ display: flex;
36
+ .store-select-container {
37
+ display: inline-block;
38
+ width: calc(100% - 104px);
39
+ vertical-align: top;
40
+ border: solid 1px rgba(0, 0, 0, 0.2);
41
+ padding: 0 10px;
42
+ border-radius: 5px;
43
+ &.shrink {
44
+ border: none;
45
+ padding: 0;
46
+ .el-radio-group {
47
+ }
48
+ .el-checkbox-group {
49
+ overflow: hidden;
50
+ }
51
+ }
52
+ }
53
+ .selected_all,
54
+ .store-select-container .el-checkbox {
55
+ border-width: 1px !important;
56
+ border-color: transparent;
57
+ padding: 0 4px !important;
58
+ margin: 5px 10px 5px 0 !important;
59
+ &.is-checked {
60
+ border-color: #409eff;
61
+ }
62
+ }
63
+ .el-radio-group {
64
+ width: 100% !important;
65
+ }
66
+ .el-checkbox-group {
67
+ line-height: 1;
68
+ width: 100% !important;
69
+ }
70
+ label {
71
+ margin: 0 10px 0 0 !important;
72
+ padding: 0 5px !important;
73
+ }
74
+ .leave {
75
+ color: #adadad;
76
+ }
77
+ .openShrink {
78
+ vertical-align: top;
79
+ }
80
+ }
81
+ .consult_select {
82
+ .consult-select-container {
83
+ display: inline-block;
84
+ width: calc(100% - 104px);
85
+ vertical-align: top;
86
+ border: solid 1px rgba(0, 0, 0, 0.2);
87
+ padding: 0 10px;
88
+ border-radius: 5px;
89
+
90
+ &.shrink {
91
+ border: none;
92
+ padding: 0;
93
+
94
+ .el-radio-group.Eng {
95
+ visibility: hidden;
96
+ display: none;
97
+ }
98
+
99
+ .el-checkbox-group {
100
+ overflow: hidden;
101
+ }
102
+ }
103
+ }
104
+
105
+ .selected_all,
106
+ .consult-select-container .el-checkbox {
107
+ border-width: 1px !important;
108
+ border-color: transparent;
109
+ padding: 0 4px !important;
110
+ margin: 5px 10px 5px 0 !important;
111
+
112
+ &.is-checked {
113
+ border-color: #409eff;
114
+ }
115
+ }
116
+
117
+ .el-radio-group {
118
+ width: 100% !important;
119
+ }
120
+
121
+ .el-checkbox-group {
122
+ line-height: 1;
123
+ max-height: 75px;
124
+ overflow-y: auto;
125
+ width: 100% !important;
126
+ }
127
+ label {
128
+ margin: 0 10px 0 0 !important;
129
+ padding: 0 5px !important;
130
+ }
131
+ .leave {
132
+ color: #adadad;
133
+ }
134
+ .openShrink {
135
+ //vertical-align: top;
136
+ }
137
+ .el-checkbox__inner {
138
+ display: none;
139
+ }
140
+ }
141
+ .date-selector {
142
+ display: inline-block;
143
+
144
+ .el-range-editor--large.el-input__inner {
145
+ height: 36px;
146
+ line-height: 36px;
147
+ }
148
+
149
+ .el-date-editor {
150
+ margin-right: 10px;
151
+ vertical-align: middle;
152
+
153
+ ::v-deep .el-range-separator {
154
+ width: 10%;
155
+ padding: 0;
156
+ }
157
+ }
158
+
159
+ .quickBtns {
160
+ display: inline-block;
161
+
162
+ .el-button {
163
+ color: #606266;
164
+
165
+ &.active {
166
+ color: #409eff;
167
+ }
168
+ }
169
+ }
170
+ }
171
+ .store-select-container {
172
+ display: inline-block;
173
+ width: calc(100% - 104px);
174
+ vertical-align: top;
175
+ border: solid 1px rgba(0, 0, 0, 0.2);
176
+ padding: 0 10px;
177
+ border-radius: 5px;
178
+
179
+ &.shrink {
180
+ border: none;
181
+ padding: 0;
182
+
183
+ .el-radio-group.Eng {
184
+ visibility: hidden;
185
+ display: none;
186
+ }
187
+
188
+ .el-checkbox-group {
189
+ overflow: hidden;
190
+ }
191
+ }
192
+ }
193
+ .dialog {
194
+ display: flex;
195
+
196
+ .dialog-container {
197
+ height: 60vh;
198
+ min-width: 50rem;
199
+
200
+ .dia-content {
201
+ position: relative;
202
+ height: 80%;
203
+ }
204
+
205
+ .selected {
206
+ position: absolute;
207
+ right: 0;
208
+ top: 0;
209
+ width: 25%;
210
+ height: calc(100% + 40px);
211
+ overflow-y: scroll;
212
+ border: 1px solid #ddd;
213
+ color: #000;
214
+
215
+ .selected-title {
216
+ display: flex;
217
+ justify-content: space-between;
218
+ position: sticky;
219
+ top: 0;
220
+ width: 100%;
221
+ height: 2.5rem;
222
+ line-height: 2.5rem;
223
+ font-weight: bold;
224
+ padding: 0 1.25rem;
225
+ background-color: #f8f8f8;
226
+ border-bottom: 1px solid #ddd;
227
+ z-index: 99;
228
+
229
+ .clearAll {
230
+ font-size: 0.75rem;
231
+ color: #999;
232
+ cursor: pointer;
233
+ font-weight: normal;
234
+ }
235
+ }
236
+
237
+ .selected-list {
238
+ padding-left: 0.625rem;
239
+ padding-bottom: 0.625rem;
240
+
241
+ .list-tags {
242
+ margin-top: 0.625rem;
243
+
244
+ .el-tags {
245
+ width: calc(100% - 10px);
246
+ color: #000;
247
+ display: flex;
248
+ align-items: center;
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+
255
+ .dia-title {
256
+ display: flex;
257
+ justify-content: flex-end;
258
+ align-items: center;
259
+
260
+ & > .el-input {
261
+ margin-right: auto;
262
+ width: 40%;
263
+ }
264
+ }
265
+
266
+ .header {
267
+ margin-top: 0.625rem;
268
+ height: 40px !important;
269
+ border: 1px solid #ddd;
270
+ border-bottom: none;
271
+ line-height: 40px;
272
+ background-color: #f8f8f8;
273
+ width: 74%;
274
+ }
275
+
276
+ .can-add {
277
+ width: 74%;
278
+ height: 100%;
279
+ border: 1px solid #ddd;
280
+
281
+ .el-aside {
282
+ padding-top: 0.625rem;
283
+
284
+ .list-list {
285
+ padding-left: 1.25rem;
286
+
287
+ .list-title {
288
+ height: 1.875rem;
289
+ line-height: 1.875rem;
290
+ font-weight: bold;
291
+ }
292
+
293
+ .list-content {
294
+ padding-left: 1.25rem;
295
+ color: #666666;
296
+
297
+ .list-lists {
298
+ height: 1.875rem;
299
+ line-height: 1.875rem;
300
+ list-style: none;
301
+ cursor: pointer;
302
+
303
+ &:hover {
304
+ color: #197afb;
305
+ }
306
+ }
307
+ }
308
+ }
309
+ }
310
+
311
+ .check-content {
312
+ .check-title {
313
+ margin-bottom: 1.25rem;
314
+ font-weight: bold;
315
+ }
316
+
317
+ .check-all {
318
+ width: 100%;
319
+ height: 1.875rem;
320
+ line-height: 1.875rem;
321
+ padding-left: 0.625rem;
322
+ border-radius: 0.3125rem;
323
+ background-color: #eee;
324
+ font-weight: bold;
325
+ }
326
+
327
+ .check-list {
328
+ padding-left: 0.625rem;
329
+
330
+ .el-checkbox {
331
+ width: 50%;
332
+ margin: 0 0 0.625rem 0;
333
+ }
334
+ }
335
+ }
336
+ }
337
+
338
+ .btn {
339
+ text-align: right;
340
+ }
341
+ }
342
+ }
@@ -0,0 +1,6 @@
1
+ @import './pager.scss';
2
+ @import './page-search.scss';
3
+ @import './fold-search.scss';
4
+ @import './table.scss';
5
+ @import './form.scss';
6
+ @import './custom-column.scss'
@@ -0,0 +1,26 @@
1
+ .b-page-search {
2
+ .footer {
3
+ position: relative;
4
+ }
5
+ .header {
6
+ color: red;
7
+ }
8
+ .btn {
9
+ display: flex;
10
+ justify-content: space-between;
11
+ }
12
+ .handle-btn {
13
+ display: flex;
14
+ flex-wrap: nowrap;
15
+ }
16
+ .page-search {
17
+ /* display: flex; */
18
+ /* align-items: flex-start; */
19
+ position: relative;
20
+ }
21
+ .fold {
22
+ position: absolute;
23
+ bottom: -30px;
24
+ left: 40%;
25
+ }
26
+ }
@@ -0,0 +1,40 @@
1
+ #pager {
2
+ padding: 10px 0;
3
+ background: #ffffff;
4
+ border-top: 1px solid #f2f2f3;
5
+ width: 100%;
6
+ display: flex;
7
+ justify-content: flex-end;
8
+ ::v-deep {
9
+ .el-pagination__jump {
10
+ margin-left: 0;
11
+ }
12
+
13
+ .el-pagination {
14
+ ul li {
15
+ border: 1px solid #e7e7f1;
16
+ }
17
+
18
+ button {
19
+ border: 1px solid #e7e7f1;
20
+ }
21
+ }
22
+
23
+ .el-pagination.is-background .el-pager li:not(.disabled).active {
24
+ background-color: #f3f3fe;
25
+ color: #000;
26
+ }
27
+
28
+ .el-pagination.is-background .btn-prev {
29
+ background-color: #fff;
30
+ }
31
+
32
+ .el-pagination.is-background .btn-next {
33
+ background-color: #fff;
34
+ }
35
+
36
+ .el-pagination.is-background .el-pager li {
37
+ background-color: #fff;
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,39 @@
1
+ .b-table {
2
+ .table-row-overflow-line-2 {
3
+ // 用语文案超出两行打点
4
+ overflow: hidden;
5
+ text-overflow: ellipsis;
6
+ -webkit-line-clamp: 2;
7
+ display: -webkit-box;
8
+ -webkit-box-orient: vertical;
9
+ line-height: 15px;
10
+ }
11
+ .text_pointer_primary {
12
+ // 模拟Element按钮的text样式 解决在表格中按钮不可以打点问题
13
+ cursor: pointer;
14
+ color: #409eff;
15
+ }
16
+ .table_wrapper {
17
+ // 表格外围样式
18
+ background-color: #ffffff;
19
+ padding: 10px 10px 0 10px;
20
+ border-radius: 5px;
21
+ }
22
+ .vxe-header--column.group-split,
23
+ .vxe-body--column.group-split {
24
+ background: #e8eaec;
25
+ }
26
+ }
27
+ .table_wrapper {
28
+ // 表格外围样式
29
+ background-color: #ffffff;
30
+ padding: 10px 10px 0 10px;
31
+ border-radius: 5px;
32
+ }
33
+
34
+ .form_wrapper {
35
+ // 表单外围样式
36
+ background-color: #ffffff;
37
+ padding: 10px 0 5px 0px;
38
+ border-radius: 5px;
39
+ }
@@ -0,0 +1,32 @@
1
+ export const deepClone = (target) => {
2
+ // 定义一个变量
3
+ let result
4
+ // 如果当前需要深拷贝的是一个对象的话
5
+ if (typeof target === "object") {
6
+ // 如果是一个数组的话
7
+ if (Array.isArray(target)) {
8
+ result = [] // 将result赋值为一个数组,并且执行遍历
9
+ for (const i in target) {
10
+ // 递归克隆数组中的每一项
11
+ result.push(deepClone(target[i]))
12
+ }
13
+ // 判断如果当前的值是null的话;直接赋值为null
14
+ } else if (target === null) {
15
+ result = null
16
+ // 判断如果当前的值是一个RegExp对象的话,直接赋值
17
+ } else if (target.constructor === RegExp) {
18
+ result = target
19
+ } else {
20
+ // 否则是普通对象,直接for in循环,递归赋值对象的所有值
21
+ result = {}
22
+ for (const i in target) {
23
+ result[i] = deepClone(target[i])
24
+ }
25
+ }
26
+ // 如果不是对象的话,就是基本数据类型,那么直接赋值
27
+ } else {
28
+ result = target
29
+ }
30
+ // 返回最终结果
31
+ return result
32
+ }
package/vue.config.js ADDED
@@ -0,0 +1,7 @@
1
+ const { defineConfig } = require('@vue/cli-service')
2
+
3
+ module.exports = defineConfig({
4
+ transpileDependencies: true,
5
+ outputDir: 'lib',
6
+ productionSourceMap: false
7
+ })