add prettierignore

This commit is contained in:
Qiuxia Fan 2022-04-11 16:40:49 +08:00
parent 85ae690493
commit 92ebb25fba
5 changed files with 71 additions and 49 deletions

22
.prettierignore Normal file
View File

@ -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

47
components.d.ts vendored
View File

@ -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 {};

47
src/types/components.d.ts vendored Normal file
View File

@ -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 { }

View File

@ -77,11 +77,11 @@ module.exports = {
exclude: new RegExp(/^(?!.*loading-directive).*$/), exclude: new RegExp(/^(?!.*loading-directive).*$/),
}), }),
], ],
dts: "auto-imports.d.ts", dts: "./src/types/auto-imports.d.ts",
}), }),
Components({ Components({
resolvers: [ElementPlusResolver({ importStyle: "css" })], resolvers: [ElementPlusResolver({ importStyle: "css" })],
dts: "components.d.ts", dts: "./src/types/components.d.ts",
}) })
); );
if (process.env.NODE_ENV === "production") { if (process.env.NODE_ENV === "production") {