For vue2 projects, use @94ai/common-ui
LLMs.md

nf-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 ​

Empty state / custom input ​

Loading example…
Empty state / custom input

Expanded tags / no clear button / custom rendering ​

Loading example…
Expanded tags / no clear button / custom rendering

Disabled / disabled options ​

Loading example…
Disabled / disabled options

Extended slots ​

Loading example…
Extended slots

Default selection / custom items / custom rendering ​

Loading example…
Default selection / custom items / custom rendering

Missing selected options / left action slot ​

Loading example…
Missing selected options / left action slot

Link options to prerequisites and update prompts ​

Loading example…
Link options to prerequisites and update prompts

Props ​

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

AttributeDescriptionTypeValuesDefault
modelValue / v-model (value)Bound value; value remains compatible; prefer v-model in Vue 3OptionValue[]—[]
optionsList of selectable optionsSelectOption[]—[]
valueKeyField used as the unique option valuestring—'value'
labelKeyField used as the option labelstring—'label'
tagRendering mode; div displays inline panels; other values use Popoverstring | Component—'el-select'
disabledDisable interactionboolean—false
sizeInput size; mini / medium map to small / defaultSelectSizesmall / default / large / mini / mediumInherited configuration
clearableShow the clear selection controlboolean—true
collapseTagsCollapse selected tags in multiple modeboolean—true
multipleLimitMaximum selected items; 0 means unlimitednumber—0
allowCreateAllow new options; requires filterableboolean—false
popperClassDropdown CSS classstring—undefined
reserveKeywordKeep the search keyword after selectionboolean—false
popperAppendToBodyTeleport dropdown to body; maps to Element Plus teleportedboolean—false
automaticDropdownOpen non-filterable select on focusboolean—false
filterableEnable searchingboolean—true
filterMethodCustom filtering function(query: string, option: Option) => boolean—undefined
leftFormatLeft panel selection count formatTransferFormat—{ noChecked: '(${total})', hasChecked: '(${checked}/${total})' }
rightFormatRight panel selection count formatTransferFormat—{ noChecked: '(${total})', hasChecked: '(${checked}/${total})' }
leftRenderContentCustom left item renderer (h, option)(h, option) => VNodeChild—undefined
rightRenderContentCustom right item renderer (h, option)(h, option) => VNodeChild—undefined
targetOrderRight order: original follows source; push appends; unshift prependsstringoriginal / push / unshift'original'
placeholderInput placeholderstring—Locale configuration
leftFilterPlaceholderLeft panel search placeholderstring—Locale configuration
rightFilterPlaceholderRight panel search placeholderstring—Locale configuration
titlesLeft and right panel titlesstring[]—Locale configuration
isCheckValidCheck and mark missing selected optionsboolean—true
preTipTransfer panel hintstring—''
copyValTypeCopy mode: 1 labels, 2 values; unset disables copyingnumber | string1 / 2undefined
copySucessDescCopy success messagestring—Locale configuration
virtualListEnable virtual scrollingboolean—false
queryRequiredShow list only after entering a queryboolean—false
nameNative input namestring—undefined

Events ​

EventDescriptionArguments
update:modelValueSelection changed; update v-model(value: OptionValue[])
update:valueSelection changed; compatibility event(value: OptionValue[])
inputSelection changed; compatibility event(value: OptionValue[])
changeFires when selection changes(value: OptionValue[])
focusInput gains focus(event: FocusEvent)
blurInput loses focus(event: FocusEvent)
clearClear control activated()
remove-tagTag removed in multiple mode(value: SelectValue)
visible-changeDropdown shown: true; hidden: false(visible: boolean)
left-check-changeLeft check changed; returns the final selected values(values: OptionValue[])
right-check-changeRight check changed; returns affected valid values(values: OptionValue[])
left-item-clickLeft item button clicked; returns full option(option: Option)
copySuccessCopy succeeded; returns copied text(text: string)
copyErrorCopy failed; returns error(error: unknown)

Slots ​

SlotDescriptionScope
left-itemCustom left item content{ option: Option }
right-itemCustom right item content{ option: Option }
left-footerLeft panel footer—
right-footerRight panel footer—
prefixInput prefix—
emptyEmpty option list content—
left-item-buttonLeft item action button; fires left-item-click—

Exposed methods and state ​

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

Migration notes ​

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.