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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-icon-picker",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Vue 3 icon picker supporting TDesign & RemixIcon, with custom SVG via :diy-icon.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -155,8 +155,8 @@ watch(
155
155
 
156
156
  watchEffect(() => {
157
157
  let v = props.value || '';
158
- if (sourceType.value === 'remix' && v && !/-line$|-filled$/.test(v)) {
159
- v = v + (styleType.value === 'filled' ? '-filled' : '-line');
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 ? '-filled' : '-line';
202
- list = list.map(n => (/-line$|-filled$/.test(n) ? n : `${n}${suffix}`));
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;