初始化
This commit is contained in:
25
src/plugins/ui.ts
Normal file
25
src/plugins/ui.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import type { App } from 'vue';
|
||||
import ElementPlus, { ElCard, ElForm, ElTable } from 'element-plus';
|
||||
|
||||
/** global table column align */
|
||||
ElTable.TableColumn.props.align = {
|
||||
type: String,
|
||||
default: 'center'
|
||||
};
|
||||
|
||||
/** global ElCard shadow */
|
||||
ElCard.props.shadow = {
|
||||
type: String,
|
||||
default: 'never'
|
||||
};
|
||||
|
||||
/** global ElForm require asterisk position */
|
||||
ElForm.props.requireAsteriskPosition = {
|
||||
type: String,
|
||||
default: 'right'
|
||||
};
|
||||
|
||||
/** full import ElementPlus */
|
||||
export const setupUI = (app: App) => {
|
||||
app.use(ElementPlus);
|
||||
};
|
||||
Reference in New Issue
Block a user