Skip to content

witSelectDialog Selector Dialog

witSelectDialog is a selector dialog component based on Element Plus el-input-tag and witDataSelector, supports multiple selector types, provides tagged selection result display.

Usage Example

vue
<template>
  <div>
    <witSelectDialog
      v-model="selectedItems"
      :selector-type="2"
      placeholder="Please select item"
      @change="handleChange"
    />
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const selectedItems = ref([])

function handleChange(value) {
  console.log('Selection changed:', value)
}
</script>

API

Property NameTypeDefault ValueDescription
modelValue[Array][]Two-way binding value for selection result
selectorType[Number]2Selector type: 2-department, 9-pharmacist, 4-doctor
...ElInputTag.props[Object]-Inherits all properties from Element Plus InputTag

Slots

Slot NameDescription
-No custom slots

Events

Event NameDescriptionParameters
update:modelValueTriggered when selection result changesNew selection result array (Array)
changeTriggered when selection result changesNew selection result array (Array)

湘ICP备2024070110号