Showing
5 changed files
with
79 additions
and
1 deletions
components.d.ts
0 → 100644
| 1 | +// generated by unplugin-vue-components | ||
| 2 | +// We suggest you to commit this file into source control | ||
| 3 | +// Read more: https://github.com/vuejs/core/pull/3399 | ||
| 4 | +import '@vue/runtime-core' | ||
| 5 | + | ||
| 6 | +export {} | ||
| 7 | + | ||
| 8 | +declare module '@vue/runtime-core' { | ||
| 9 | + export interface GlobalComponents { | ||
| 10 | + AreaPickerField: typeof import('./src/components/AreaPickerField/index.vue')['default'] | ||
| 11 | + ButtonField: typeof import('./src/components/ButtonField/index.vue')['default'] | ||
| 12 | + CalendarField: typeof import('./src/components/CalendarField/index.vue')['default'] | ||
| 13 | + CheckboxField: typeof import('./src/components/CheckboxField/index.vue')['default'] | ||
| 14 | + ContactField: typeof import('./src/components/ContactField/index.vue')['default'] | ||
| 15 | + DatePickerField: typeof import('./src/components/DatePickerField/index.vue')['default'] | ||
| 16 | + DateTimePickerField: typeof import('./src/components/DateTimePickerField/index.vue')['default'] | ||
| 17 | + DesField: typeof import('./src/components/DesField/index.vue')['default'] | ||
| 18 | + DividerField: typeof import('./src/components/DividerField/index.vue')['default'] | ||
| 19 | + EmailField: typeof import('./src/components/EmailField/index.vue')['default'] | ||
| 20 | + FileUploaderField: typeof import('./src/components/FileUploaderField/index.vue')['default'] | ||
| 21 | + IdentityField: typeof import('./src/components/IdentityField/index.vue')['default'] | ||
| 22 | + ImageUploaderField: typeof import('./src/components/ImageUploaderField/index.vue')['default'] | ||
| 23 | + MarqueeField: typeof import('./src/components/MarqueeField/index.vue')['default'] | ||
| 24 | + MultiRuleField: typeof import('./src/components/MultiRuleField/index.vue')['default'] | ||
| 25 | + NoteField: typeof import('./src/components/NoteField/index.vue')['default'] | ||
| 26 | + NumberField: typeof import('./src/components/NumberField/index.vue')['default'] | ||
| 27 | + PhoneField: typeof import('./src/components/PhoneField/index.vue')['default'] | ||
| 28 | + PickerField: typeof import('./src/components/PickerField/index.vue')['default'] | ||
| 29 | + RadioField: typeof import('./src/components/RadioField/index.vue')['default'] | ||
| 30 | + RatePickerField: typeof import('./src/components/RatePickerField/index.vue')['default'] | ||
| 31 | + RouterLink: typeof import('vue-router')['RouterLink'] | ||
| 32 | + RouterView: typeof import('vue-router')['RouterView'] | ||
| 33 | + RuleField: typeof import('./src/components/RuleField/index.vue')['default'] | ||
| 34 | + SignField: typeof import('./src/components/SignField/index.vue')['default'] | ||
| 35 | + TableField: typeof import('./src/components/TableField/index.vue')['default'] | ||
| 36 | + Test: typeof import('./src/components/VideoField/test.vue')['default'] | ||
| 37 | + TextareaField: typeof import('./src/components/TextareaField/index.vue')['default'] | ||
| 38 | + TextField: typeof import('./src/components/TextField/index.vue')['default'] | ||
| 39 | + TimePickerField: typeof import('./src/components/TimePickerField/index.vue')['default'] | ||
| 40 | + VanArea: typeof import('vant/es')['Area'] | ||
| 41 | + VanButton: typeof import('vant/es')['Button'] | ||
| 42 | + VanCalendar: typeof import('vant/es')['Calendar'] | ||
| 43 | + VanCellGroup: typeof import('vant/es')['CellGroup'] | ||
| 44 | + VanCheckbox: typeof import('vant/es')['Checkbox'] | ||
| 45 | + VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup'] | ||
| 46 | + VanCol: typeof import('vant/es')['Col'] | ||
| 47 | + VanConfigProvider: typeof import('vant/es')['ConfigProvider'] | ||
| 48 | + VanDatePicker: typeof import('vant/es')['DatePicker'] | ||
| 49 | + VanDivider: typeof import('vant/es')['Divider'] | ||
| 50 | + VanField: typeof import('vant/es')['Field'] | ||
| 51 | + VanForm: typeof import('vant/es')['Form'] | ||
| 52 | + VanIcon: typeof import('vant/es')['Icon'] | ||
| 53 | + VanImage: typeof import('vant/es')['Image'] | ||
| 54 | + VanLoading: typeof import('vant/es')['Loading'] | ||
| 55 | + VanNoticeBar: typeof import('vant/es')['NoticeBar'] | ||
| 56 | + VanNumberKeyboard: typeof import('vant/es')['NumberKeyboard'] | ||
| 57 | + VanOverlay: typeof import('vant/es')['Overlay'] | ||
| 58 | + VanPicker: typeof import('vant/es')['Picker'] | ||
| 59 | + VanPickerGroup: typeof import('vant/es')['PickerGroup'] | ||
| 60 | + VanPopover: typeof import('vant/es')['Popover'] | ||
| 61 | + VanPopup: typeof import('vant/es')['Popup'] | ||
| 62 | + VanRadio: typeof import('vant/es')['Radio'] | ||
| 63 | + VanRadioGroup: typeof import('vant/es')['RadioGroup'] | ||
| 64 | + VanRate: typeof import('vant/es')['Rate'] | ||
| 65 | + VanRow: typeof import('vant/es')['Row'] | ||
| 66 | + VanSwipe: typeof import('vant/es')['Swipe'] | ||
| 67 | + VanSwipeItem: typeof import('vant/es')['SwipeItem'] | ||
| 68 | + VanTimePicker: typeof import('vant/es')['TimePicker'] | ||
| 69 | + VanUploader: typeof import('vant/es')['Uploader'] | ||
| 70 | + VideoField: typeof import('./src/components/VideoField/index.vue')['default'] | ||
| 71 | + } | ||
| 72 | +} |
This diff could not be displayed because it is too large.
| ... | @@ -56,6 +56,7 @@ | ... | @@ -56,6 +56,7 @@ |
| 56 | "qs": "^6.10.3", | 56 | "qs": "^6.10.3", |
| 57 | "tslint": "^6.1.3", | 57 | "tslint": "^6.1.3", |
| 58 | "unplugin-auto-import": "^0.8.8", | 58 | "unplugin-auto-import": "^0.8.8", |
| 59 | + "unplugin-vue-components": "^0.23.0", | ||
| 59 | "unplugin-vue-define-options": "^0.6.1", | 60 | "unplugin-vue-define-options": "^0.6.1", |
| 60 | "vite": "^2.9.9", | 61 | "vite": "^2.9.9", |
| 61 | "vite-plugin-style-import": "1.4.1", | 62 | "vite-plugin-style-import": "1.4.1", | ... | ... |
| 1 | import vue from '@vitejs/plugin-vue'; | 1 | import vue from '@vitejs/plugin-vue'; |
| 2 | import dynamicImport from 'vite-plugin-dynamic-import'; | 2 | import dynamicImport from 'vite-plugin-dynamic-import'; |
| 3 | // import legacy from '@vitejs/plugin-legacy'; | 3 | // import legacy from '@vitejs/plugin-legacy'; |
| 4 | -import styleImport, { VantResolve } from 'vite-plugin-style-import'; | 4 | +// import styleImport, { VantResolve } from 'vite-plugin-style-import'; |
| 5 | +import Components from 'unplugin-vue-components/vite'; | ||
| 6 | +import { VantResolver } from 'unplugin-vue-components/resolvers'; | ||
| 5 | import { defineConfig, loadEnv } from 'vite'; | 7 | import { defineConfig, loadEnv } from 'vite'; |
| 6 | import { createProxy } from './build/proxy' | 8 | import { createProxy } from './build/proxy' |
| 7 | import DefineOptions from 'unplugin-vue-define-options/vite'; | 9 | import DefineOptions from 'unplugin-vue-define-options/vite'; |
| ... | @@ -25,6 +27,9 @@ export default ({ command, mode }) => { | ... | @@ -25,6 +27,9 @@ export default ({ command, mode }) => { |
| 25 | // define: '', // 定义全局常量替换方式。其中每项在开发环境下会被定义在全局,而在构建时被静态替换。 | 27 | // define: '', // 定义全局常量替换方式。其中每项在开发环境下会被定义在全局,而在构建时被静态替换。 |
| 26 | plugins: [ // 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。 | 28 | plugins: [ // 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。 |
| 27 | vue(), | 29 | vue(), |
| 30 | + Components({ | ||
| 31 | + resolvers: [VantResolver()], | ||
| 32 | + }), | ||
| 28 | // styleImport({ | 33 | // styleImport({ |
| 29 | // resolves: [VantResolve()], | 34 | // resolves: [VantResolve()], |
| 30 | // libs: [ | 35 | // libs: [ | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment