File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ Supported Resolvers:
194194- [ Headless UI] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/headless-ui.ts )
195195- [ IDux] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/idux.ts )
196196- [ 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 )
197198- [ Naive UI] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/naive-ui.ts )
198199- [ Prime Vue] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/prime-vue.ts )
199200- [ 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'
1919export * from './tdesign'
2020export * from './layui-vue'
2121export * 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