@fastkit/vui 0.19.2 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "keywords": [
6
6
  "fastkit",
@@ -44,27 +44,27 @@
44
44
  "src"
45
45
  ],
46
46
  "dependencies": {
47
- "@fastkit/color-scheme-gen": "0.14.1",
48
- "@fastkit/dom": "0.2.1",
49
47
  "@fastkit/color-scheme": "2.0.1",
48
+ "@fastkit/color-scheme-gen": "0.14.1",
50
49
  "@fastkit/helpers": "0.14.1",
50
+ "@fastkit/dom": "0.2.1",
51
51
  "@fastkit/icon-font": "2.0.1",
52
52
  "@fastkit/media-match": "2.0.1",
53
- "@fastkit/media-match-gen": "0.14.1",
54
53
  "@fastkit/rules": "0.14.1",
55
- "@fastkit/stylebase": "0.13.1",
54
+ "@fastkit/media-match-gen": "0.14.1",
56
55
  "@fastkit/tiny-logger": "0.14.1",
56
+ "@fastkit/stylebase": "0.13.1",
57
57
  "@fastkit/vue-app-layout": "0.15.1",
58
- "@fastkit/vue-action": "0.3.1",
59
58
  "@fastkit/vue-body-scroll-lock": "0.2.1",
59
+ "@fastkit/vue-action": "0.3.1",
60
60
  "@fastkit/vue-click-outside": "0.2.1",
61
61
  "@fastkit/vue-form-control": "0.20.1",
62
- "@fastkit/vue-keyboard": "0.2.1",
63
62
  "@fastkit/vue-color-scheme": "0.15.1",
64
- "@fastkit/vue-loading": "0.15.1",
63
+ "@fastkit/vue-keyboard": "0.2.1",
65
64
  "@fastkit/vue-media-match": "0.14.1",
66
- "@fastkit/vue-scroller": "0.15.1",
65
+ "@fastkit/vue-loading": "0.15.1",
67
66
  "@fastkit/vue-resize": "0.2.1",
67
+ "@fastkit/vue-scroller": "0.15.1",
68
68
  "@fastkit/vue-location": "0.2.1",
69
69
  "@fastkit/vue-stack": "0.16.1",
70
70
  "@fastkit/vue-transitions": "0.2.1",
@@ -89,21 +89,26 @@ export const VIcon = defineComponent({
89
89
  'v-icon--clickable': clickable.value,
90
90
  },
91
91
  ]);
92
- const bodyClasses = computed(() => `icon-${iconName.value}`);
93
- const bodyStyles = computed<CSSProperties | undefined>(() => {
94
- const { rotate } = props;
95
- if (!rotate) return;
96
- return {
97
- transform: `rotate(${rotate}deg)`,
92
+
93
+ const iconAttrs = computed(() => {
94
+ const attrs: {
95
+ class: any;
96
+ style?: CSSProperties;
97
+ } = {
98
+ class: ['v-icon__body icon', `icon-${iconName.value}`],
98
99
  };
100
+ const { rotate } = props;
101
+ if (rotate) {
102
+ attrs.style = {
103
+ transform: `rotate(${rotate}deg)`,
104
+ };
105
+ }
106
+ return attrs;
99
107
  });
100
108
 
101
109
  return () => (
102
110
  <span class={[`v-icon notranslate`, classes.value]}>
103
- <i
104
- class={['v-icon__body icon', bodyClasses.value]}
105
- style={bodyStyles.value}
106
- />
111
+ <i {...iconAttrs.value} />
107
112
  </span>
108
113
  );
109
114
  },