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