@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 +11 -11
- package/dist/vui.mjs.map +1 -1
- package/package.json +13 -13
- package/src/components/VIcon/VIcon.tsx +15 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.4",
|
|
4
4
|
"description": "A simple, extensible UI kit for Vue applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fastkit",
|
|
@@ -44,31 +44,31 @@
|
|
|
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/dom": "0.2.2",
|
|
49
|
+
"@fastkit/color-scheme-gen": "0.14.1",
|
|
50
50
|
"@fastkit/helpers": "0.14.1",
|
|
51
|
-
"@fastkit/icon-font": "2.0.1",
|
|
52
51
|
"@fastkit/media-match": "2.0.1",
|
|
53
52
|
"@fastkit/media-match-gen": "0.14.1",
|
|
54
53
|
"@fastkit/rules": "0.14.1",
|
|
55
54
|
"@fastkit/stylebase": "0.13.1",
|
|
56
|
-
"@fastkit/tiny-logger": "0.14.1",
|
|
57
|
-
"@fastkit/vue-app-layout": "0.15.1",
|
|
58
55
|
"@fastkit/vue-action": "0.3.1",
|
|
59
|
-
"@fastkit/vue-
|
|
56
|
+
"@fastkit/vue-app-layout": "0.15.2",
|
|
60
57
|
"@fastkit/vue-click-outside": "0.2.1",
|
|
61
|
-
"@fastkit/vue-
|
|
62
|
-
"@fastkit/vue-
|
|
58
|
+
"@fastkit/vue-body-scroll-lock": "0.2.2",
|
|
59
|
+
"@fastkit/vue-form-control": "0.20.2",
|
|
63
60
|
"@fastkit/vue-color-scheme": "0.15.1",
|
|
61
|
+
"@fastkit/tiny-logger": "0.14.1",
|
|
64
62
|
"@fastkit/vue-loading": "0.15.1",
|
|
65
|
-
"@fastkit/vue-
|
|
63
|
+
"@fastkit/vue-keyboard": "0.2.1",
|
|
66
64
|
"@fastkit/vue-scroller": "0.15.1",
|
|
67
65
|
"@fastkit/vue-resize": "0.2.1",
|
|
68
66
|
"@fastkit/vue-location": "0.2.1",
|
|
69
|
-
"@fastkit/vue-
|
|
70
|
-
"@fastkit/
|
|
71
|
-
"@fastkit/vue-
|
|
67
|
+
"@fastkit/vue-transitions": "0.2.2",
|
|
68
|
+
"@fastkit/icon-font": "2.0.1",
|
|
69
|
+
"@fastkit/vue-stack": "0.16.2",
|
|
70
|
+
"@fastkit/vue-utils": "0.15.1",
|
|
71
|
+
"@fastkit/vue-media-match": "0.14.1"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"vue": "^3.4.0",
|
|
@@ -89,21 +89,26 @@ export const VIcon = defineComponent({
|
|
|
89
89
|
'v-icon--clickable': clickable.value,
|
|
90
90
|
},
|
|
91
91
|
]);
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
const {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
},
|