@fastkit/vui 0.19.2 → 0.19.4

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 CHANGED
@@ -320,23 +320,23 @@ var VIcon = defineComponent({
320
320
  const classes = computed(() => [{
321
321
  "v-icon--clickable": clickable.value
322
322
  }]);
323
- const bodyClasses = computed(() => `icon-${iconName.value}`);
324
- const bodyStyles = computed(() => {
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 (!rotate)
329
- return;
330
- return {
331
- transform: `rotate(${rotate}deg)`
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();