diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..f368f2cf --- /dev/null +++ b/.prettierignore @@ -0,0 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +/src/types/auto-import.d.ts +/src/types/components.d.ts + diff --git a/components.d.ts b/components.d.ts deleted file mode 100644 index 73723b1f..00000000 --- a/components.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -// generated by unplugin-vue-components -// We suggest you to commit this file into source control -// Read more: https://github.com/vuejs/vue-next/pull/3399 - -declare module "@vue/runtime-core" { - export interface GlobalComponents { - DateCalendar: typeof import("./src/components/DateCalendar.vue")["default"]; - ElButton: typeof import("element-plus/es")["ElButton"]; - ElCollapse: typeof import("element-plus/es")["ElCollapse"]; - ElCollapseItem: typeof import("element-plus/es")["ElCollapseItem"]; - ElDialog: typeof import("element-plus/es")["ElDialog"]; - ElDropdown: typeof import("element-plus/es")["ElDropdown"]; - ElDropdownItem: typeof import("element-plus/es")["ElDropdownItem"]; - ElDropdownMenu: typeof import("element-plus/es")["ElDropdownMenu"]; - ElIcon: typeof import("element-plus/es")["ElIcon"]; - ElInput: typeof import("element-plus/es")["ElInput"]; - ElInputNumber: typeof import("element-plus/es")["ElInputNumber"]; - ElMenu: typeof import("element-plus/es")["ElMenu"]; - ElMenuItem: typeof import("element-plus/es")["ElMenuItem"]; - ElMenuItemGroup: typeof import("element-plus/es")["ElMenuItemGroup"]; - ElOption: typeof import("element-plus/es")["ElOption"]; - ElPagination: typeof import("element-plus/es")["ElPagination"]; - ElPopconfirm: typeof import("element-plus/es")["ElPopconfirm"]; - ElPopover: typeof import("element-plus/es")["ElPopover"]; - ElProgress: typeof import("element-plus/es")["ElProgress"]; - ElRadio: typeof import("element-plus/es")["ElRadio"]; - ElRadioGroup: typeof import("element-plus/es")["ElRadioGroup"]; - ElSelect: typeof import("element-plus/es")["ElSelect"]; - ElSlider: typeof import("element-plus/es")["ElSlider"]; - ElSubMenu: typeof import("element-plus/es")["ElSubMenu"]; - ElSwitch: typeof import("element-plus/es")["ElSwitch"]; - ElTable: typeof import("element-plus/es")["ElTable"]; - ElTableColumn: typeof import("element-plus/es")["ElTableColumn"]; - ElTooltip: typeof import("element-plus/es")["ElTooltip"]; - Graph: typeof import("./src/components/Graph.vue")["default"]; - Icon: typeof import("./src/components/Icon.vue")["default"]; - Loading: typeof import("element-plus/es")["ElLoadingDirective"]; - Radio: typeof import("./src/components/Radio.vue")["default"]; - RouterLink: typeof import("vue-router")["RouterLink"]; - RouterView: typeof import("vue-router")["RouterView"]; - Selector: typeof import("./src/components/Selector.vue")["default"]; - SelectSingle: typeof import("./src/components/SelectSingle.vue")["default"]; - TimePicker: typeof import("./src/components/TimePicker.vue")["default"]; - } -} - -export {}; diff --git a/auto-imports.d.ts b/src/types/auto-imports.d.ts similarity index 100% rename from auto-imports.d.ts rename to src/types/auto-imports.d.ts diff --git a/src/types/components.d.ts b/src/types/components.d.ts new file mode 100644 index 00000000..98d9902c --- /dev/null +++ b/src/types/components.d.ts @@ -0,0 +1,47 @@ +// generated by unplugin-vue-components +// We suggest you to commit this file into source control +// Read more: https://github.com/vuejs/vue-next/pull/3399 + +declare module '@vue/runtime-core' { + export interface GlobalComponents { + DateCalendar: typeof import('./../components/DateCalendar.vue')['default'] + ElButton: typeof import('element-plus/es')['ElButton'] + ElCollapse: typeof import('element-plus/es')['ElCollapse'] + ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] + ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDropdown: typeof import('element-plus/es')['ElDropdown'] + ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] + ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] + ElIcon: typeof import('element-plus/es')['ElIcon'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] + ElMenu: typeof import('element-plus/es')['ElMenu'] + ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] + ElMenuItemGroup: typeof import('element-plus/es')['ElMenuItemGroup'] + ElOption: typeof import('element-plus/es')['ElOption'] + ElPagination: typeof import('element-plus/es')['ElPagination'] + ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm'] + ElPopover: typeof import('element-plus/es')['ElPopover'] + ElProgress: typeof import('element-plus/es')['ElProgress'] + ElRadio: typeof import('element-plus/es')['ElRadio'] + ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] + ElSelect: typeof import('element-plus/es')['ElSelect'] + ElSlider: typeof import('element-plus/es')['ElSlider'] + ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] + ElSwitch: typeof import('element-plus/es')['ElSwitch'] + ElTable: typeof import('element-plus/es')['ElTable'] + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] + ElTooltip: typeof import('element-plus/es')['ElTooltip'] + Graph: typeof import('./../components/Graph.vue')['default'] + Icon: typeof import('./../components/Icon.vue')['default'] + Loading: typeof import('element-plus/es')['ElLoadingDirective'] + Radio: typeof import('./../components/Radio.vue')['default'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] + Selector: typeof import('./../components/Selector.vue')['default'] + SelectSingle: typeof import('./../components/SelectSingle.vue')['default'] + TimePicker: typeof import('./../components/TimePicker.vue')['default'] + } +} + +export { } diff --git a/vue.config.js b/vue.config.js index 43c81883..bf542114 100644 --- a/vue.config.js +++ b/vue.config.js @@ -77,11 +77,11 @@ module.exports = { exclude: new RegExp(/^(?!.*loading-directive).*$/), }), ], - dts: "auto-imports.d.ts", + dts: "./src/types/auto-imports.d.ts", }), Components({ resolvers: [ElementPlusResolver({ importStyle: "css" })], - dts: "components.d.ts", + dts: "./src/types/components.d.ts", }) ); if (process.env.NODE_ENV === "production") {