﻿# nf-transfer-select {#transfer-select}

Searchable two-panel multi-select, popup/inline layouts, filtered select-all, disabled rows, missing-value echo, aliases, selection limits, copying, creation, virtualization and slots.

## Examples {#examples}

### Empty state / custom input {#example-1}

### Empty state / custom input
```vue
<template>
  <NfConfigProvider theme="chalk" locale="en-US">
<div class="select-demo">
  <div class="select-demo-result"><pre>{{ values }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
     class='nf-transfer-select-demo-container'
     style='width: 300px;'
     allow-create
     placeholder='Search options'
     :multiple-limit='3'
     v-model='values'
  >
    <template #prefix><ElIcon><Search /></ElIcon></template>
    <template #empty><NfEmpty style='padding: 20px' /></template>
  </NfTransferSelect>
  </div>
</div>
  </NfConfigProvider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { NfConfigProvider, NfTransferSelect, NfEmpty } from '@94ai-plus/common-ui'
import { ElIcon } from 'element-plus'
import { Search } from '@element-plus/icons-vue'

const values = ref([])
</script>

<style scoped>
.select-demo { display: flex; flex-direction: column; gap: 16px; max-width: 100%; }
.select-demo-result > pre { margin: 0; }
.select-demo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 100%; }
.select-demo-controls > * { max-width: 100%; }
</style>
```

### Expanded tags / no clear button / custom rendering {#example-2}

### Expanded tags / no clear button / custom rendering
```vue
<template>
  <NfConfigProvider theme="chalk" locale="en-US">
<div class='nf-transfer-select-demo-container'>
    <div class="select-demo">
  <div class="select-demo-result"><pre>{{ values }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
      style='width: 450px;'
      :collapse-tags='false'
      autocomplete='on'
      :clearable='false'
      :titles="['Left panel', 'Right panel']"
      :options='options'
      v-model='values'
      @change="changeValues"
    >
    </NfTransferSelect>
  </div>
</div>

    <ElDivider class="select-demo-divider">Above: floating select panel </ElDivider>
    <ElDivider class="select-demo-divider">Below: inline div panel </ElDivider>

    <div class="select-demo">
  <div class="select-demo-result"><pre>{{ valuesLand }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
      ref="transferRef"
      style='width: 600px;'
      :collapse-tags='false'
      autocomplete='on'
      :clearable='false'
      :titles="['Left panel', 'Right panel']"
      :options='options'
      v-model='valuesLand'
      @change="changeValues"
      :copyValType='1'
      @copySuccess="copyCallback"
      :filterable="true"
      :filter-method="filterMethod"
      tag="div"
    >
    </NfTransferSelect>
  </div>
</div>
  </div>
  </NfConfigProvider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { NfConfigProvider, NfTransferSelect } from '@94ai-plus/common-ui'
import { ElDivider } from 'element-plus'

const values = ref([])
const valuesLand = ref([])

const options = ref([{
  value: '选项1',
  label: '黄金糕'
}, {
  value: '选项2',
  label: '双皮奶'
}, {
  value: '选项3',
  label: '蚵仔煎'
}, {
  value: '选项4',
  label: '龙须面'
}, {
  value: '选项5',
  label: '北京烤鸭'
}, {
  value: '选项6',
  label: '刀削面'
}, {
  value: '选项7',
  label: '南京烤鸭'
}, {
  value: '选项8',
  label: '甑糕'
}])

const changeValues = () => {
  console.log(values.value)
}
const filterMethod = (query, item) => {
  const queryLower = query.toLowerCase().trim();
  let queryText = (query || '').replace(/\，/g, ',')
  let querySet = null
  if(queryText.includes(',')) {
    querySet = new Set(queryText.split(","))
  }
  if(queryText.includes(',')) {
    return querySet.has(item.label.toString().toLowerCase())
  } else {
    return item.label.toString().toLowerCase().indexOf(queryLower) > -1;
  }
}

const copyCallback = (val) => {
  alert(val)
}
</script>

<style scoped>
.select-demo { display: flex; flex-direction: column; gap: 16px; max-width: 100%; }
.select-demo-result > pre { margin: 0; }
.select-demo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 100%; }
.select-demo-controls > * { max-width: 100%; }
.select-demo-divider { display: flex; align-items: center; gap: 12px; height: auto; border-top: 0; }
.select-demo-divider::before, .select-demo-divider::after { content: ''; flex: 1; min-width: 12px; border-top: 1px solid var(--el-border-color); }
.select-demo-divider :deep(.el-divider__text) { position: static; transform: none; flex: 0 1 auto; min-width: 0; max-width: calc(100% - 48px); padding: 0; text-align: center; white-space: normal; }
</style>
```

### Disabled / disabled options {#example-3}

### Disabled / disabled options
```vue
<template>
  <NfConfigProvider theme="chalk" locale="en-US">
<div>
    <div class="select-demo">
  <div class="select-demo-result"><pre>{{ values }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
      style='width: 600px;'
      class='nf-transfer-select-demo-container'
      :collapse-tags='false'
      disabled
      v-model='values'
      :clearable='false'
      :options='options'
    >
    </NfTransferSelect>
  </div>
</div>
    <br />
    <br />
    <div class="select-demo">
  <div class="select-demo-result"><pre>{{ values }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
      style='width: 600px;'
      v-model='values'
      class='nf-transfer-select-demo-container'
      :collapse-tags='false'
      autocomplete='on'
      :clearable='false'
      :options='disableOptions'
    >
    </NfTransferSelect>
  </div>
</div>
  </div>
  </NfConfigProvider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { NfConfigProvider, NfTransferSelect } from '@94ai-plus/common-ui'

const values = ref([])

const options = ref([{
  value: '选项1',
  label: '黄金糕'
}, {
  value: '选项2',
  label: '双皮奶'
}, {
  value: '选项3',
  label: '蚵仔煎'
}, {
  value: '选项4',
  label: '龙须面'
}, {
  value: '选项5',
  label: '北京烤鸭'
}])
const disableOptions = ref([{
  value: '选项1',
  label: '黄金糕',
  disabled: true
}, {
  value: '选项2',
  label: '双皮奶'
}])
</script>

<style scoped>
.select-demo { display: flex; flex-direction: column; gap: 16px; max-width: 100%; }
.select-demo-result > pre { margin: 0; }
.select-demo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 100%; }
.select-demo-controls > * { max-width: 100%; }
</style>
```

### Extended slots {#example-4}

### Extended slots
```vue
<template>
  <NfConfigProvider theme="chalk" locale="en-US">
<div class="select-demo">
  <div class="select-demo-result"><pre>{{ values }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
    style="width: 600px"
    class='nf-transfer-select-demo-container'
    :collapse-tags='false'
    v-model="values"
    autocomplete='on'
    :clearable='false'
    :options='options'
  >
    <template #left-footer><ElButton class="left-footer" size="small" style='margin-left: 20px;'>Left action</ElButton></template>
    <template #right-footer><ElButton class="right-footer" size="small" style='margin-left: 20px;'>Right action</ElButton></template>
  </NfTransferSelect>
  </div>
</div>
  </NfConfigProvider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { NfConfigProvider, NfTransferSelect } from '@94ai-plus/common-ui'
import { ElButton } from 'element-plus'

const values = ref([])
const options = ref([{
  value: '选项1',
  label: '黄金糕'
}, {
  value: '选项2',
  label: '双皮奶'
}, {
  value: '选项3',
  label: '蚵仔煎'
}, {
  value: '选项4',
  label: '龙须面'
}, {
  value: '选项5',
  label: '北京烤鸭'
}])
</script>

<style scoped>
.select-demo { display: flex; flex-direction: column; gap: 16px; max-width: 100%; }
.select-demo-result > pre { margin: 0; }
.select-demo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 100%; }
.select-demo-controls > * { max-width: 100%; }
</style>
```

### Default selection / custom items / custom rendering {#example-5}

### Default selection / custom items / custom rendering
```vue
<template>
  <NfConfigProvider theme="chalk" locale="en-US">
<div class='nf-transfer-select-demo-container' >
    <div class="select-demo">
  <div class="select-demo-result"><pre>{{ defaultValues }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
      style="width: 600px"
      :left-render-content="leftRenderContent"
      :right-render-content="rightRenderContent"
      left-filter-placeholder='Search left panel'
      right-filter-placeholder='Search right panel'
      :collapse-tags='false'
      :options='options'
      v-model='defaultValues'
    >
    </NfTransferSelect>
  </div>
</div>

    <ElDivider class="select-demo-divider">Above: floating select panel </ElDivider>
    <ElDivider class="select-demo-divider">Below: inline div panel </ElDivider>

    <div class="select-demo">
  <div class="select-demo-result"><pre>{{ defaultValues }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
      style="width: 600px"
      :left-render-content="leftRenderContent"
      :right-render-content="rightRenderContent"
      left-filter-placeholder='Search left panel'
      right-filter-placeholder='Search right panel'
      :collapse-tags='false'
      :options='options'
      v-model='defaultValues'
      tag="div"
    >
    </NfTransferSelect>
  </div>
</div>
  </div>
  </NfConfigProvider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { NfConfigProvider, NfTransferSelect } from '@94ai-plus/common-ui'
import { ElDivider } from 'element-plus'
import { Delete } from '@element-plus/icons-vue'

const defaultValues = ref(['选项1'])

const leftRenderContent = (h, option) => {
  return h("span",{class: "xxx"},['Left' + '-' + option.label]);
}

const rightRenderContent = (h, option) => {
  return h("span",{class: "xxx", style: 'margin-right: 10px;' },['Right' + '-' + option.label, h(Delete)]);
}

const options = ref([{
  value: '选项1',
  label: '黄金糕'
}, {
  value: '选项2',
  label: '双皮奶'
}, {
  value: '选项3',
  label: '蚵仔煎'
}, {
  value: '选项4',
  label: '龙须面'
}, {
  value: '选项5',
  label: '北京烤鸭'
}])
</script>

<style scoped>
.select-demo { display: flex; flex-direction: column; gap: 16px; max-width: 100%; }
.select-demo-result > pre { margin: 0; }
.select-demo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 100%; }
.select-demo-controls > * { max-width: 100%; }
.select-demo-divider { display: flex; align-items: center; gap: 12px; height: auto; border-top: 0; }
.select-demo-divider::before, .select-demo-divider::after { content: ''; flex: 1; min-width: 12px; border-top: 1px solid var(--el-border-color); }
.select-demo-divider :deep(.el-divider__text) { position: static; transform: none; flex: 0 1 auto; min-width: 0; max-width: calc(100% - 48px); padding: 0; text-align: center; white-space: normal; }
</style>
```

### Missing selected options / left action slot {#example-6}

### Missing selected options / left action slot
```vue
<template>
  <NfConfigProvider theme="chalk" locale="en-US">
<div class='nf-transfer-select-demo-container' >
    <div class="select-demo">
  <div class="select-demo-result"><pre>{{ defaultValues }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
      style="width: 600px"
      left-filter-placeholder='Search left panel'
      right-filter-placeholder='Search right panel'
      :collapse-tags='false'
      :options='options'
      v-model='defaultValues'
      @left-item-click="leftItemClick"
      :copyValType='1'
      @copySuccess="copyCallback"
    >
    <template #left-item-button><span>Details</span></template>
    </NfTransferSelect>
  </div>
</div>


  <NfButton type="primary" size="mini" style="margin: 10px 0" @click="options = []" >Clear options</NfButton>
  </div>
  </NfConfigProvider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { NfConfigProvider, NfTransferSelect, NfButton } from '@94ai-plus/common-ui'

const defaultValues = ref(['选项1','选项9','选项10'])

const options = ref([{
  value: '选项1',
  label: '双皮奶-双皮奶'
}, {
  value: '选项2',
  label: '双皮奶-双皮奶-双皮奶-双皮奶-双皮奶-双皮奶-双皮奶-双皮奶双皮奶双皮奶双皮奶双皮奶双皮奶双皮奶双皮奶双皮奶双皮奶双皮奶双皮奶',
}, {
  value: '选项3',
  label: '蚵仔煎'
}, {
  value: '选项4',
  label: '55-11试通用55-11试通用55-11试通用55-11试通用'
}, {
  value: '选项5',
  label: '55-11试通用'
}, {
  value: '选项6',
  label: '双皮奶44'
}, {
  value: '选项7',
  label: '双皮奶777888888'
}])
const leftItemClick = function(value) {
  console.log(value)
}
const copyCallback = (val) => {
  alert(val)
}
</script>

<style scoped>
.select-demo { display: flex; flex-direction: column; gap: 16px; max-width: 100%; }
.select-demo-result > pre { margin: 0; }
.select-demo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 100%; }
.select-demo-controls > * { max-width: 100%; }
</style>
```

### Link options to prerequisites and update prompts {#example-7}

### Link options to prerequisites and update prompts
```vue
<template>
  <NfConfigProvider theme="chalk" locale="en-US">
<div class='nf-transfer-select-demo-container' >

    <div class="select-demo">
  <div class="select-demo-result"><pre>{{ defaultValues }}</pre></div>
  <div class="select-demo-controls">
<NfTransferSelect
      ref="transferRef1"
      style="width: 600px"
      left-filter-placeholder='Search left panel'
      right-filter-placeholder='Search right panel'
      :collapse-tags='false'
      :options='options'
      :queryRequired="true"
      v-model='defaultValues'
      :preTip="dynamicTip"
      :virtualList="true"
      :copyValType='1'
      tag='div'
    >
    </NfTransferSelect>
  </div>
</div>
    <NfButton type="primary" size="mini" style="margin: 10px 0" @click="setOptions">Update options</NfButton>
    <NfButton type="primary" size="mini" style="margin: 10px 0" @click="setOptionsEmpty">Reduce available options</NfButton>
    <NfButton type="primary" size="mini" style="margin: 10px 0" @click="clearVal">Clear selected values</NfButton>
  </div>
  </NfConfigProvider>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { NfConfigProvider, NfTransferSelect, NfButton } from '@94ai-plus/common-ui'

const defaultValues = ref(['选项4'])
const dynamicTip = ref('Choose a company first!')
const options = ref([])
const transferRef1 = ref(null)
const setOptions = () => {
  options.value = [
  { value: '选项1', label: '黄金糕' },
  { value: '选项2', label: '双皮奶' },
  { value: '选项3', label: '蚵仔煎' },
  { value: '选项4', label: '龙须面' },
  { value: '选项5', label: '北京烤鸭' },
  { value: '选项6', label: '小笼包' },
  { value: '选项7', label: '麻辣烫' },
  { value: '选项8', label: '酸辣粉' },
  { value: '选项9', label: '重庆火锅' },
  { value: '选项10', label: '兰州拉面' },
  { value: '选项11', label: '扬州炒饭' },
  { value: '选项12', label: '西湖醋鱼' },
  { value: '选项13', label: '东坡肉' },
  { value: '选项14', label: '佛跳墙' },
  { value: '选项15', label: '宫保鸡丁' },
  { value: '选项16', label: '水煮鱼' },
  { value: '选项17', label: '回锅肉' },
  { value: '选项18', label: '麻婆豆腐' },
  { value: '选项19', label: '糖醋排骨' },
  { value: '选项20', label: '红烧狮子头' },
  { value: '选项21', label: '清蒸鲈鱼' },
  { value: '选项22', label: '葱油拌面' },
  { value: '选项23', label: '担担面' },
  { value: '选项24', label: '热干面' },
  { value: '选项25', label: '刀削面' },
  { value: '选项26', label: '臊子面' },
  { value: '选项27', label: '牛肉面' },
  { value: '选项28', label: '炸酱面' },
  { value: '选项29', label: '阳春面' },
  { value: '选项30', label: '云吞面' },
  { value: '选项31', label: '肠粉' },
  { value: '选项32', label: '煲仔饭' },
  { value: '选项33', label: '叉烧包' },
  { value: '选项34', label: '虾饺' },
  { value: '选项35', label: '烧麦' },
  { value: '选项36', label: '糯米鸡' },
  { value: '选项37', label: '萝卜糕' },
  { value: '选项38', label: '凤爪' },
  { value: '选项39', label: '豉汁排骨' },
  { value: '选项40', label: '干炒牛河' },
  { value: '选项41', label: '白切鸡' },
  { value: '选项42', label: '盐焗鸡' },
  { value: '选项43', label: '梅菜扣肉' },
  { value: '选项44', label: '客家酿豆腐' },
  { value: '选项45', label: '三杯鸡' },
  { value: '选项46', label: '蚵仔米线' },
  { value: '选项47', label: '沙县小吃' },
  { value: '选项48', label: '黄焖鸡' },
  { value: '选项49', label: '大盘鸡' },
  { value: '选项50', label: '手抓羊肉' },
  { value: '选项51', label: '羊肉泡馍' },
  { value: '选项52', label: '肉夹馍' },
  { value: '选项53', label: '凉皮' },
  { value: '选项54', label: '驴肉火烧' },
  { value: '选项55', label: '狗不理包子' },
  { value: '选项56', label: '煎饼果子' },
  { value: '选项57', label: '鸡蛋灌饼' },
  { value: '选项58', label: '臭豆腐' },
  { value: '选项59', label: '毛血旺' },
  { value: '选项60', label: '夫妻肺片' }
]
  dynamicTip.value = 'Enter a search query first'
}
const setOptionsEmpty = () => {
  options.value = [
    { value: '选项59', label: '毛血旺' }
  ]
}
// 清空数据
const clearVal = () => {
  defaultValues.value = []
}
</script>

<style scoped>
.select-demo { display: flex; flex-direction: column; gap: 16px; max-width: 100%; }
.select-demo-result > pre { margin: 0; }
.select-demo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 100%; }
.select-demo-controls > * { max-width: 100%; }
</style>
```

## Props {#props}

Descriptions preserve common-ui semantics; defaults and signatures follow the current Vue 3 implementation. Compatibility props do not enable unsupported legacy rendering.

| Attribute | Description | Type | Values | Default |
| --- | --- | --- | --- | --- |
| `modelValue / v-model (value)` | Bound value; value remains compatible; prefer v-model in Vue 3 | `OptionValue[]` | — | `[]` |
| `options` | List of selectable options | `SelectOption[]` | — | `[]` |
| `valueKey` | Field used as the unique option value | `string` | — | `'value'` |
| `labelKey` | Field used as the option label | `string` | — | `'label'` |
| `tag` | Rendering mode; div displays inline panels; other values use Popover | `string \| Component` | — | `'el-select'` |
| `disabled` | Disable interaction | `boolean` | — | `false` |
| `size` | Input size; mini / medium map to small / default | `SelectSize` | `small / default / large / mini / medium` | `Inherited configuration` |
| `clearable` | Show the clear selection control | `boolean` | — | `true` |
| `collapseTags` | Collapse selected tags in multiple mode | `boolean` | — | `true` |
| `multipleLimit` | Maximum selected items; 0 means unlimited | `number` | — | `0` |
| `allowCreate` | Allow new options; requires filterable | `boolean` | — | `false` |
| `popperClass` | Dropdown CSS class | `string` | — | `undefined` |
| `reserveKeyword` | Keep the search keyword after selection | `boolean` | — | `false` |
| `popperAppendToBody` | Teleport dropdown to body; maps to Element Plus teleported | `boolean` | — | `false` |
| `automaticDropdown` | Open non-filterable select on focus | `boolean` | — | `false` |
| `filterable` | Enable searching | `boolean` | — | `true` |
| `filterMethod` | Custom filtering function | `(query: string, option: Option) => boolean` | — | `undefined` |
| `leftFormat` | Left panel selection count format | `TransferFormat` | — | `{ noChecked: '(${total})', hasChecked: '(${checked}/${total})' }` |
| `rightFormat` | Right panel selection count format | `TransferFormat` | — | `{ noChecked: '(${total})', hasChecked: '(${checked}/${total})' }` |
| `leftRenderContent` | Custom left item renderer (h, option) | `(h, option) => VNodeChild` | — | `undefined` |
| `rightRenderContent` | Custom right item renderer (h, option) | `(h, option) => VNodeChild` | — | `undefined` |
| `targetOrder` | Right order: original follows source; push appends; unshift prepends | `string` | `original / push / unshift` | `'original'` |
| `placeholder` | Input placeholder | `string` | — | `Locale configuration` |
| `leftFilterPlaceholder` | Left panel search placeholder | `string` | — | `Locale configuration` |
| `rightFilterPlaceholder` | Right panel search placeholder | `string` | — | `Locale configuration` |
| `titles` | Left and right panel titles | `string[]` | — | `Locale configuration` |
| `isCheckValid` | Check and mark missing selected options | `boolean` | — | `true` |
| `preTip` | Transfer panel hint | `string` | — | `''` |
| `copyValType` | Copy mode: 1 labels, 2 values; unset disables copying | `number \| string` | `1 / 2` | `undefined` |
| `copySucessDesc` | Copy success message | `string` | — | `Locale configuration` |
| `virtualList` | Enable virtual scrolling | `boolean` | — | `false` |
| `queryRequired` | Show list only after entering a query | `boolean` | — | `false` |
| `name` | Native input name | `string` | — | `undefined` |

## Events {#events}

| Event | Description | Arguments |
| --- | --- | --- |
| `update:modelValue` | Selection changed; update v-model | `(value: OptionValue[])` |
| `update:value` | Selection changed; compatibility event | `(value: OptionValue[])` |
| `input` | Selection changed; compatibility event | `(value: OptionValue[])` |
| `change` | Fires when selection changes | `(value: OptionValue[])` |
| `focus` | Input gains focus | `(event: FocusEvent)` |
| `blur` | Input loses focus | `(event: FocusEvent)` |
| `clear` | Clear control activated | `()` |
| `remove-tag` | Tag removed in multiple mode | `(value: SelectValue)` |
| `visible-change` | Dropdown shown: true; hidden: false | `(visible: boolean)` |
| `left-check-change` | Left check changed; returns the final selected values | `(values: OptionValue[])` |
| `right-check-change` | Right check changed; returns affected valid values | `(values: OptionValue[])` |
| `left-item-click` | Left item button clicked; returns full option | `(option: Option)` |
| `copySuccess` | Copy succeeded; returns copied text | `(text: string)` |
| `copyError` | Copy failed; returns error | `(error: unknown)` |

## Slots {#slots}

| Slot | Description | Scope |
| --- | --- | --- |
| `left-item` | Custom left item content | `{ option: Option }` |
| `right-item` | Custom right item content | `{ option: Option }` |
| `left-footer` | Left panel footer | — |
| `right-footer` | Right panel footer | — |
| `prefix` | Input prefix | — |
| `empty` | Empty option list content | — |
| `left-item-button` | Left item action button; fires left-item-click | — |

## Exposed methods and state {#methods}

- `cachedValue`
- `optionsData`
- `nfLeftTransferSelect`
- `nfRightTransferSelect`
- `nfTransferSelectFormContainer`
- `clearAll()`
- `removeTag(value)`
- `visibleChange(boolean)`

## Migration notes {#migration}

Vue 3 uses `modelValue` / `update:modelValue`; legacy `value`, `update:value` and `input` remain available on selection components. The implementation uses public Element Plus APIs, not Element UI internals. `mini` maps to `small`; `medium` maps to `default`.

`tag="div"` renders inline panels. Disabled options survive bulk removal. `copyValType=1` copies labels; `2` copies keys. Scoped slots receive `{ option }`; render callbacks use Vue 3 `h`.
