Skip to content

Commit ecf56ab

Browse files
clean up
1 parent 10fb9c4 commit ecf56ab

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

packages/vue/src/components/IonIcon.ts

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1+
import type { JSX } from "@ionic/core/components";
12
import { defineCustomElement } from "ionicons/components/ion-icon.js";
3+
import type { PropType } from "vue";
24
import { h, defineComponent } from "vue";
35

46
import { getConfig } from "../utils";
57

6-
export const IonIcon = /*@__PURE__*/ defineComponent({
7-
name: "IonIcon",
8-
props: {
9-
color: String,
10-
flipRtl: Boolean,
11-
icon: String,
12-
ios: String,
13-
lazy: String,
14-
md: String,
15-
mode: String,
16-
name: String,
17-
size: String,
18-
src: String,
19-
},
20-
setup(props, { slots }) {
8+
export const IonIcon = /*@__PURE__*/ defineComponent<JSX.IonIcon>(
9+
(props, { slots }) => {
2110
defineCustomElement();
2211
return () => {
2312
const { icon, ios, md, mode } = props;
@@ -47,4 +36,19 @@ export const IonIcon = /*@__PURE__*/ defineComponent({
4736
);
4837
};
4938
},
50-
});
39+
{
40+
name: "IonIcon",
41+
props: {
42+
color: { type: String as PropType<string> },
43+
flipRtl: { type: Boolean as PropType<boolean> },
44+
icon: { type: String as PropType<string> },
45+
ios: { type: String as PropType<string> },
46+
lazy: { type: Boolean as PropType<boolean> },
47+
md: { type: String as PropType<string> },
48+
mode: { type: String as PropType<string> },
49+
name: { type: String as PropType<string> },
50+
size: { type: String as PropType<string> },
51+
src: { type: String as PropType<string> },
52+
},
53+
}
54+
);

0 commit comments

Comments
 (0)