ct-component-plus 2.0.1 → 2.1.3
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ct-component-plus",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "packages/components/index.js",
|
|
7
7
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"cingta-icon": "^2.1.6",
|
|
19
|
-
"element-plus": "2.
|
|
19
|
+
"element-plus": "2.10.0",
|
|
20
20
|
"vue": "^3.2.47"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"vuepress": "^2.0.0-beta.63",
|
|
34
34
|
"vuepress-plugin-demo-container": "^0.2.0"
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -62,7 +62,7 @@ defineExpose({
|
|
|
62
62
|
ref: inputRef,
|
|
63
63
|
});
|
|
64
64
|
</script>
|
|
65
|
-
<style lang=
|
|
65
|
+
<style lang="less">
|
|
66
66
|
.ct-input {
|
|
67
67
|
@R: .ct-input;
|
|
68
68
|
--ct-input-focus-color: var(--ct-color-primary);
|
|
@@ -104,4 +104,4 @@ defineExpose({
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
</style>
|
|
107
|
+
</style>
|
|
@@ -359,7 +359,19 @@ defineExpose({
|
|
|
359
359
|
<style lang="less">
|
|
360
360
|
.ct-select {
|
|
361
361
|
&.el-select {
|
|
362
|
+
position: relative;
|
|
362
363
|
width: 214px;
|
|
364
|
+
&__selected-item {
|
|
365
|
+
&:nth-child(1) {
|
|
366
|
+
display: none;
|
|
367
|
+
}
|
|
368
|
+
&:nth-child(2) {
|
|
369
|
+
display: none;
|
|
370
|
+
}
|
|
371
|
+
&:nth-child(3) {
|
|
372
|
+
display: flex;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
363
375
|
}
|
|
364
376
|
&__top {
|
|
365
377
|
padding: 0 16px;
|
|
@@ -432,6 +444,7 @@ defineExpose({
|
|
|
432
444
|
overflow: hidden;
|
|
433
445
|
white-space: nowrap;
|
|
434
446
|
cursor: pointer;
|
|
447
|
+
pointer-events: none;
|
|
435
448
|
}
|
|
436
449
|
.el-select__placeholder.is-transparent {
|
|
437
450
|
display: block;
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
padding: 1px var(--ct-component-inner-padding);
|
|
94
94
|
|
|
95
95
|
&:focus-within {
|
|
96
|
-
|
|
97
96
|
.ct-icon,
|
|
98
97
|
.el-icon {
|
|
99
98
|
color: var(--ct-color-primary);
|
|
@@ -178,7 +177,6 @@
|
|
|
178
177
|
.el-input {
|
|
179
178
|
&.is-focus {
|
|
180
179
|
.el-input__suffix {
|
|
181
|
-
|
|
182
180
|
.el-icon,
|
|
183
181
|
.ct-icon {
|
|
184
182
|
color: var(--ct-select-focus-icon-color);
|
|
@@ -192,7 +190,6 @@
|
|
|
192
190
|
.el-input {
|
|
193
191
|
&.is-focus {
|
|
194
192
|
.el-input__wrapper {
|
|
195
|
-
|
|
196
193
|
.el-icon,
|
|
197
194
|
.ct-icon {
|
|
198
195
|
color: var(--ct-color-primary);
|
|
@@ -201,7 +198,8 @@
|
|
|
201
198
|
}
|
|
202
199
|
}
|
|
203
200
|
|
|
204
|
-
&__dropdown {
|
|
201
|
+
&__dropdown {
|
|
202
|
+
}
|
|
205
203
|
|
|
206
204
|
&-menu {
|
|
207
205
|
&__list {
|
|
@@ -210,7 +208,7 @@
|
|
|
210
208
|
}
|
|
211
209
|
|
|
212
210
|
&-panel {
|
|
213
|
-
--el-cascader-menu-border: 1px solid #
|
|
211
|
+
--el-cascader-menu-border: 1px solid #f0f3f9;
|
|
214
212
|
}
|
|
215
213
|
|
|
216
214
|
&-node {
|
|
@@ -245,8 +243,8 @@
|
|
|
245
243
|
}
|
|
246
244
|
}
|
|
247
245
|
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
> .el-radio,
|
|
247
|
+
> .el-checkbox {
|
|
250
248
|
margin-left: 10px;
|
|
251
249
|
margin-right: -2px;
|
|
252
250
|
}
|
|
@@ -276,7 +274,6 @@
|
|
|
276
274
|
&-date-editor {
|
|
277
275
|
&.el-range-editor {
|
|
278
276
|
&:not(.is-active):focus-within {
|
|
279
|
-
|
|
280
277
|
.ct-icon,
|
|
281
278
|
.el-icon {
|
|
282
279
|
color: var(--el-input-icon-color);
|
|
@@ -285,7 +282,6 @@
|
|
|
285
282
|
}
|
|
286
283
|
|
|
287
284
|
&.is-active {
|
|
288
|
-
|
|
289
285
|
.ct-icon,
|
|
290
286
|
.el-icon {
|
|
291
287
|
color: var(--ct-color-primary);
|
|
@@ -325,7 +321,7 @@
|
|
|
325
321
|
|
|
326
322
|
&-date-picker {
|
|
327
323
|
--el-datepicker-header-text-color: var(--ct-color-grey-transition);
|
|
328
|
-
--ct-datepicker-border-color: #
|
|
324
|
+
--ct-datepicker-border-color: #f0f3f9;
|
|
329
325
|
width: 304px;
|
|
330
326
|
@R: .el-picker-panel;
|
|
331
327
|
|
|
@@ -367,7 +363,7 @@
|
|
|
367
363
|
td {
|
|
368
364
|
padding: 9px;
|
|
369
365
|
|
|
370
|
-
>div {
|
|
366
|
+
> div {
|
|
371
367
|
height: 26px;
|
|
372
368
|
padding: 0;
|
|
373
369
|
}
|
|
@@ -397,8 +393,8 @@
|
|
|
397
393
|
}
|
|
398
394
|
|
|
399
395
|
&-date-range-picker {
|
|
400
|
-
--ct-datepicker-border-color: #
|
|
401
|
-
--el-datepicker-inrange-bg-color: #
|
|
396
|
+
--ct-datepicker-border-color: #f0f3f9;
|
|
397
|
+
--el-datepicker-inrange-bg-color: #f5f7fc;
|
|
402
398
|
--el-datepicker-inner-border-color: var(--ct-datepicker-border-color);
|
|
403
399
|
--el-datepicker-header-text-color: var(--ct-color-grey-transition);
|
|
404
400
|
width: 608px;
|
|
@@ -444,7 +440,6 @@
|
|
|
444
440
|
&:first-of-type {
|
|
445
441
|
.el-date-table-cell {
|
|
446
442
|
border-radius: 4px 0 0 4px;
|
|
447
|
-
|
|
448
443
|
}
|
|
449
444
|
}
|
|
450
445
|
|
|
@@ -568,7 +563,6 @@
|
|
|
568
563
|
box-shadow: none;
|
|
569
564
|
}
|
|
570
565
|
}
|
|
571
|
-
|
|
572
566
|
}
|
|
573
567
|
|
|
574
568
|
&__jump {
|
|
@@ -588,11 +582,12 @@
|
|
|
588
582
|
@R: .el-table;
|
|
589
583
|
font-size: 15px;
|
|
590
584
|
--el-table-header-text-color: var(--ct-font-color);
|
|
591
|
-
--el-table-header-bg-color: #
|
|
585
|
+
--el-table-header-bg-color: #f0f3f9;
|
|
592
586
|
// --el-table-row-hover-bg-color: #F7F9FD;
|
|
593
|
-
--el-table-row-hover-bg-color: #
|
|
587
|
+
--el-table-row-hover-bg-color: #fafafc;
|
|
594
588
|
|
|
595
|
-
.cell {
|
|
589
|
+
.cell {
|
|
590
|
+
}
|
|
596
591
|
|
|
597
592
|
& @{R}__cell {
|
|
598
593
|
padding: 16px 0;
|
|
@@ -702,6 +697,12 @@
|
|
|
702
697
|
right: 16px;
|
|
703
698
|
color: var(--ct-border-color);
|
|
704
699
|
}
|
|
700
|
+
// 消息关闭按钮位置展示
|
|
701
|
+
.el-icon.el-message__closeBtn {
|
|
702
|
+
position: absolute;
|
|
703
|
+
top: 50%;
|
|
704
|
+
transform: translateY(-50%);
|
|
705
|
+
}
|
|
705
706
|
}
|
|
706
707
|
|
|
707
708
|
&-message.ct-message--success {
|
|
@@ -723,4 +724,4 @@
|
|
|
723
724
|
background-color: var(--ct-color-danger-bg);
|
|
724
725
|
border: var(--ct-color-danger-border) 1px solid;
|
|
725
726
|
}
|
|
726
|
-
}
|
|
727
|
+
}
|