File tree 3 files changed +23
-0
lines changed
3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ Supported Resolvers:
194
194
- [ Headless UI] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/headless-ui.ts )
195
195
- [ IDux] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/idux.ts )
196
196
- [ Inkline] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/inkline.ts )
197
+ - [ Ionic] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/ionic.ts )
197
198
- [ Naive UI] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/naive-ui.ts )
198
199
- [ Prime Vue] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/prime-vue.ts )
199
200
- [ Quasar] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/quasar.ts )
Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ export * from './arco'
19
19
export * from './tdesign'
20
20
export * from './layui-vue'
21
21
export * from './bootstrap-vue'
22
+ export * from './ionic'
Original file line number Diff line number Diff line change
1
+ import type { ComponentResolver } from '../../types'
2
+
3
+ /**
4
+ * Resolver for ionic framework
5
+ *
6
+ * @author @mathsgod
7
+ * @link https://github.com/mathsgod
8
+ */
9
+ export function IonicResolver ( ) : ComponentResolver {
10
+ return {
11
+ type : 'component' ,
12
+ resolve : ( name : string ) => {
13
+ if ( name . startsWith ( 'Ion' ) ) {
14
+ return {
15
+ name,
16
+ from : '@ionic/vue' ,
17
+ }
18
+ }
19
+ } ,
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments