mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
refactor(X-Pack): 优化[数据填报]文件夹及数据填报名称空格处理
This commit is contained in:
parent
aa4def3384
commit
f8fa564c4f
@ -1,9 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { Icon } from '@/components/icon-custom'
|
||||
import icon_more_outlined from '@/assets/svg/icon_more_outlined.svg'
|
||||
import { propTypes } from '@/utils/propTypes'
|
||||
import type { Placement } from 'element-plus-secondary'
|
||||
import { PropType } from 'vue'
|
||||
|
||||
export interface Menu {
|
||||
svgName?: string
|
||||
@ -13,18 +11,21 @@ export interface Menu {
|
||||
disabled?: boolean
|
||||
}
|
||||
|
||||
defineProps({
|
||||
menuList: {
|
||||
type: Array as PropType<Menu[]>
|
||||
},
|
||||
placement: {
|
||||
type: String as () => Placement,
|
||||
default: 'bottom-end'
|
||||
},
|
||||
iconName: propTypes.string.def(''),
|
||||
iconSize: propTypes.string.def('16px'),
|
||||
inTable: propTypes.bool.def(false)
|
||||
})
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
menuList: Array<Menu[]>
|
||||
placement?: Placement
|
||||
iconName?: any
|
||||
iconSize?: string
|
||||
inTable?: boolean
|
||||
}>(),
|
||||
{
|
||||
placement: 'bottom-end',
|
||||
iconSize: '16px',
|
||||
inTable: false
|
||||
}
|
||||
)
|
||||
|
||||
const handleCommand = (command: string | number | object) => {
|
||||
emit('handleCommand', command)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user