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 @@ -190,6 +190,7 @@ Supported Resolvers:
190
190
- [ Element UI] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/element-ui.ts )
191
191
- [ Headless UI] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/headless-ui.ts )
192
192
- [ IDux] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/idux.ts )
193
+ - [ Inkline] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/inkline.ts )
193
194
- [ Naive UI] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/naive-ui.ts )
194
195
- [ Prime Vue] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/prime-vue.ts )
195
196
- [ Vant] ( https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/vant.ts )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export * from './element-plus'
3
3
export * from './element-ui'
4
4
export * from './headless-ui'
5
5
export * from './idux'
6
+ export * from './inkline'
6
7
export * from './naive-ui'
7
8
export * from './prime-vue'
8
9
export * from './vant'
Original file line number Diff line number Diff line change
1
+ import type { ComponentResolver } from '../../types'
2
+
3
+ /**
4
+ * Resolver for Inkline
5
+ *
6
+ * @author @alexgrozav
7
+ * @link https://github.com/inkline/inkline
8
+ */
9
+ export function InklineResolver ( ) : ComponentResolver {
10
+ return {
11
+ type : 'component' ,
12
+ resolve : ( name : string ) => {
13
+ if ( name . match ( / ^ I [ A - Z ] / ) ) {
14
+ return {
15
+ importName : name ,
16
+ path : '@inkline/inkline' ,
17
+ }
18
+ }
19
+ } ,
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments