Skip to content

editTag 可编辑标签

基础用法

vue
<script setup lang="ts">
import type { BasicForm } from '@/types/form'

const formConfig = reactive<BasicForm>({
  formItems: [
    label: '可编辑标签',
    value: '标签1,标签2',
    name: 'tag',
    type: 'edit-tag'
  ],
})
</script>

属性

ts
interface Props {
  modelValue: string[] | string
  btnText?: string
  editable?: boolean
}
参数说明类型默认值
modelValue标签值
(如果是字符串需要用英文逗号隔开)
String[]、String
btnText标签文本String+ 新增
editable是否可编辑Booleantrue