ct-component-plus 2.0.0 → 2.0.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ct-component-plus",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "packages/components/index.js",
|
|
7
7
|
"files": [
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"cingta-icon": "^2.1.6",
|
|
19
|
-
"element-plus": "
|
|
19
|
+
"element-plus": "~2.12.0",
|
|
20
|
+
"publish": "^0.6.0",
|
|
20
21
|
"vue": "^3.2.47"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
@@ -155,9 +155,9 @@ const selectText = computed(() => {
|
|
|
155
155
|
result = selectObj.value.map((item) => item.label).join(cnt);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
nextTick(() => {
|
|
159
|
+
selectRef.value.$refs.reference.input.value = result;
|
|
160
|
+
});
|
|
161
161
|
return result;
|
|
162
162
|
});
|
|
163
163
|
const emptyText = computed(() => {
|
|
@@ -358,9 +358,7 @@ defineExpose({
|
|
|
358
358
|
</script>
|
|
359
359
|
<style lang="less">
|
|
360
360
|
.ct-select {
|
|
361
|
-
|
|
362
|
-
width: 214px;
|
|
363
|
-
}
|
|
361
|
+
width: 214px;
|
|
364
362
|
&__top {
|
|
365
363
|
padding: 0 16px;
|
|
366
364
|
font-size: var(--ct-font-size);
|
|
@@ -409,7 +407,7 @@ defineExpose({
|
|
|
409
407
|
z-index: 3;
|
|
410
408
|
right: var(--ct-component-inner-padding);
|
|
411
409
|
top: 50%;
|
|
412
|
-
height: calc(var(--ct-component-size) -
|
|
410
|
+
height: calc(var(--ct-component-size) - 2px);
|
|
413
411
|
transform: translateY(-50%);
|
|
414
412
|
background-color: #fff;
|
|
415
413
|
}
|
|
@@ -421,24 +419,18 @@ defineExpose({
|
|
|
421
419
|
color: var(--ct-color-grey-sub);
|
|
422
420
|
}
|
|
423
421
|
&.is-multiple {
|
|
424
|
-
&::after {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}
|
|
436
|
-
.el-select__placeholder.is-transparent {
|
|
437
|
-
display: block;
|
|
438
|
-
}
|
|
439
|
-
.el-select__selected-item {
|
|
440
|
-
display: none;
|
|
441
|
-
}
|
|
422
|
+
// &::after {
|
|
423
|
+
// content: attr(select-text);
|
|
424
|
+
// position: absolute;
|
|
425
|
+
// left: var(--ct-component-inner-padding);
|
|
426
|
+
// right: calc(var(--ct-component-inner-padding) * 2);
|
|
427
|
+
// top: 50%;
|
|
428
|
+
// transform: translateY(-50%);
|
|
429
|
+
// text-overflow: ellipsis;
|
|
430
|
+
// overflow: hidden;
|
|
431
|
+
// white-space: nowrap;
|
|
432
|
+
// cursor: pointer;
|
|
433
|
+
// }
|
|
442
434
|
}
|
|
443
435
|
}
|
|
444
436
|
</style>
|
|
@@ -135,12 +135,9 @@ const getYearList = () => {
|
|
|
135
135
|
}
|
|
136
136
|
yearList.value = yearArr;
|
|
137
137
|
};
|
|
138
|
-
watch(
|
|
139
|
-
()
|
|
140
|
-
|
|
141
|
-
getYearList();
|
|
142
|
-
}
|
|
143
|
-
);
|
|
138
|
+
watch(() => props.range, () => {
|
|
139
|
+
getYearList();
|
|
140
|
+
})
|
|
144
141
|
const filterHandleE = (str) => {
|
|
145
142
|
//处理结束年
|
|
146
143
|
if (judgeYear(str) && judgeRange(str)) {
|
|
@@ -210,7 +207,7 @@ onMounted(() => {
|
|
|
210
207
|
getYearList();
|
|
211
208
|
});
|
|
212
209
|
</script>
|
|
213
|
-
<style lang=
|
|
210
|
+
<style lang='less'>
|
|
214
211
|
.ct-year-select {
|
|
215
212
|
--el-select-input-focus-border-color: transparent;
|
|
216
213
|
--ct-year-select-select-inner-box-shadow: none;
|
|
@@ -276,15 +273,5 @@ onMounted(() => {
|
|
|
276
273
|
}
|
|
277
274
|
}
|
|
278
275
|
}
|
|
279
|
-
.el-select__wrapper {
|
|
280
|
-
padding: 1px 12px;
|
|
281
|
-
min-height: 30px;
|
|
282
|
-
box-shadow: var(--ct-year-select-select-inner-box-shadow);
|
|
283
|
-
&.is-focused,
|
|
284
|
-
&.is-hovering:not(.is-focused),
|
|
285
|
-
&.is-disabled {
|
|
286
|
-
box-shadow: var(--ct-year-select-select-inner-box-shadow);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
276
|
}
|
|
290
|
-
</style>
|
|
277
|
+
</style>
|