vueless 0.0.62 → 0.0.64
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/ui.image-icon/index.vue +8 -2
- package/web-types.json +1 -1
package/package.json
CHANGED
package/ui.image-icon/index.vue
CHANGED
|
@@ -157,10 +157,12 @@ if (import.meta.env.PROD) {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
const dynamicComponent = computed(() => {
|
|
160
|
+
const FILL_SUFFIX = "-fill";
|
|
161
|
+
|
|
160
162
|
const library = config.value.defaultVariants.library;
|
|
161
163
|
const weight = config.value.defaultVariants.weight;
|
|
162
164
|
const style = config.value.defaultVariants.style;
|
|
163
|
-
const fill = props.fill || config.value.defaultVariants.fill ?
|
|
165
|
+
const fill = props.fill || config.value.defaultVariants.fill ? FILL_SUFFIX : "";
|
|
164
166
|
const name = props.name;
|
|
165
167
|
const src = props.src;
|
|
166
168
|
|
|
@@ -175,7 +177,11 @@ const dynamicComponent = computed(() => {
|
|
|
175
177
|
|
|
176
178
|
function getIcon(params) {
|
|
177
179
|
const [, component] = generatedIcons.find(([path]) =>
|
|
178
|
-
params.every((param) =>
|
|
180
|
+
params.every((param) => {
|
|
181
|
+
const skipFilled = fill ? true : !path.includes(FILL_SUFFIX);
|
|
182
|
+
|
|
183
|
+
return skipFilled && path.includes(param);
|
|
184
|
+
}),
|
|
179
185
|
);
|
|
180
186
|
|
|
181
187
|
return component;
|