cd-icon-picker 0.1.6 → 0.1.7
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 +1 -1
- package/src/IconPicker.vue +4 -4
package/package.json
CHANGED
package/src/IconPicker.vue
CHANGED
|
@@ -155,8 +155,8 @@ watch(
|
|
|
155
155
|
|
|
156
156
|
watchEffect(() => {
|
|
157
157
|
let v = props.value || '';
|
|
158
|
-
if (sourceType.value === 'remix' && v && !/-line$|-
|
|
159
|
-
v = v + (styleType.value === 'filled' ? '-
|
|
158
|
+
if (sourceType.value === 'remix' && v && !/-line$|-fill$/.test(v)) {
|
|
159
|
+
v = v + (styleType.value === 'filled' ? '-fill' : '-line');
|
|
160
160
|
}
|
|
161
161
|
currentSelect.value = v;
|
|
162
162
|
});
|
|
@@ -198,8 +198,8 @@ const filteredIcons = computed(() => {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
if (sourceType.value === 'remix') {
|
|
201
|
-
const suffix = useFill ? '-
|
|
202
|
-
list = list.map(n => (/-line$|-
|
|
201
|
+
const suffix = useFill ? '-fill' : '-line';
|
|
202
|
+
list = list.map(n => (/-line$|-fill$/.test(n) ? n : `${n}${suffix}`));
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
return searchText.value ? list.filter(i => i.includes(searchText.value)) : list;
|