mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-16 11:55:07 +08:00
使用 tsx 封装 form-create 通用选择组件
This commit is contained in:
@ -20,9 +20,22 @@ import install from '@form-create/element-ui/auto-import'
|
||||
//======================= 自定义组件 =======================
|
||||
import { UploadFile, UploadImg, UploadImgs } from '@/components/UploadFile'
|
||||
import { DictSelect } from '@/components/DictSelect'
|
||||
import { CurrencySelect } from '@/components/FormCreate'
|
||||
import { useCurrencySelect } from '@/components/FormCreate'
|
||||
import { Editor } from '@/components/Editor'
|
||||
|
||||
const UserSelect = useCurrencySelect({
|
||||
name: 'UserSelect',
|
||||
labelField: 'nickname',
|
||||
valueField: 'id',
|
||||
restful: '/system/user/simple-list'
|
||||
})
|
||||
const DeptSelect = useCurrencySelect({
|
||||
name: 'DeptSelect',
|
||||
labelField: 'name',
|
||||
valueField: 'id',
|
||||
restful: '/system/dept/simple-list'
|
||||
})
|
||||
|
||||
const components = [
|
||||
ElAside,
|
||||
ElPopconfirm,
|
||||
@ -40,7 +53,8 @@ const components = [
|
||||
UploadImgs,
|
||||
UploadFile,
|
||||
DictSelect,
|
||||
CurrencySelect,
|
||||
UserSelect,
|
||||
DeptSelect,
|
||||
Editor
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user