@fastkit/vui 0.19.1 → 0.19.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/dist/vui.mjs +13 -13
- package/dist/vui.mjs.map +1 -1
- package/package.json +11 -11
- package/src/components/VCard/VCard.tsx +2 -2
- package/src/components/VIcon/VIcon.tsx +15 -10
package/dist/vui.mjs
CHANGED
|
@@ -320,23 +320,23 @@ var VIcon = defineComponent({
|
|
|
320
320
|
const classes = computed(() => [{
|
|
321
321
|
"v-icon--clickable": clickable.value
|
|
322
322
|
}]);
|
|
323
|
-
const
|
|
324
|
-
|
|
323
|
+
const iconAttrs = computed(() => {
|
|
324
|
+
const attrs = {
|
|
325
|
+
class: ["v-icon__body icon", `icon-${iconName.value}`]
|
|
326
|
+
};
|
|
325
327
|
const {
|
|
326
328
|
rotate
|
|
327
329
|
} = props12;
|
|
328
|
-
if (
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
330
|
+
if (rotate) {
|
|
331
|
+
attrs.style = {
|
|
332
|
+
transform: `rotate(${rotate}deg)`
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
return attrs;
|
|
333
336
|
});
|
|
334
337
|
return () => createVNode("span", {
|
|
335
338
|
"class": [`v-icon notranslate`, classes.value]
|
|
336
|
-
}, [createVNode("i",
|
|
337
|
-
"class": ["v-icon__body icon", bodyClasses.value],
|
|
338
|
-
"style": bodyStyles.value
|
|
339
|
-
}, null)]);
|
|
339
|
+
}, [createVNode("i", iconAttrs.value, null)]);
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
342
|
var colorProps = colorSchemeProps();
|
|
@@ -1427,12 +1427,12 @@ var VCard = defineComponent({
|
|
|
1427
1427
|
setup(props12, ctx) {
|
|
1428
1428
|
const _props = computed(() => props12);
|
|
1429
1429
|
const data = computed(() => {
|
|
1430
|
-
const hasLink = !!ctx.attrs.href || !!ctx.attrs.to;
|
|
1431
1430
|
const attrs = {
|
|
1432
1431
|
..._props.value,
|
|
1433
1432
|
...ctx.attrs,
|
|
1434
1433
|
class: ["v-card", ctx.attrs.class],
|
|
1435
|
-
tag:
|
|
1434
|
+
tag: VAction,
|
|
1435
|
+
linkFallbackTag: "div"
|
|
1436
1436
|
};
|
|
1437
1437
|
if (props12.disabled) {
|
|
1438
1438
|
attrs.disabled = "disabled";
|