Add reusable headings, panels, tables, charts, pagination and explicit preview fixtures. Apply the shared blue theme, responsive top navigation and Chinese UI locale.
66 lines
977 B
TypeScript
66 lines
977 B
TypeScript
import type { App } from 'vue'
|
|
import {
|
|
ElButton,
|
|
ElConfigProvider,
|
|
ElDescriptions,
|
|
ElDescriptionsItem,
|
|
ElDialog,
|
|
ElEmpty,
|
|
ElForm,
|
|
ElFormItem,
|
|
ElIcon,
|
|
ElInput,
|
|
ElOption,
|
|
ElPagination,
|
|
ElPopover,
|
|
ElProgress,
|
|
ElRadio,
|
|
ElRadioButton,
|
|
ElRadioGroup,
|
|
ElResult,
|
|
ElSelect,
|
|
ElSlider,
|
|
ElSwitch,
|
|
ElTabPane,
|
|
ElTable,
|
|
ElTableColumn,
|
|
ElTabs,
|
|
ElTag,
|
|
ElTooltip,
|
|
} from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
|
|
export function registerUi(app: App) {
|
|
for (const component of [
|
|
ElButton,
|
|
ElConfigProvider,
|
|
ElDescriptions,
|
|
ElDescriptionsItem,
|
|
ElDialog,
|
|
ElEmpty,
|
|
ElForm,
|
|
ElFormItem,
|
|
ElIcon,
|
|
ElInput,
|
|
ElOption,
|
|
ElPagination,
|
|
ElPopover,
|
|
ElProgress,
|
|
ElRadio,
|
|
ElRadioButton,
|
|
ElRadioGroup,
|
|
ElResult,
|
|
ElSelect,
|
|
ElSlider,
|
|
ElSwitch,
|
|
ElTabPane,
|
|
ElTable,
|
|
ElTableColumn,
|
|
ElTabs,
|
|
ElTag,
|
|
ElTooltip,
|
|
]) {
|
|
app.use(component)
|
|
}
|
|
}
|