You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kgdxpr e69712b1d2
'commit'
1 year ago
..
README.en-US.md 'commit' 1 year ago
README.md 'commit' 1 year ago
picker.d.ts 'commit' 1 year ago
picker.js 'commit' 1 year ago
picker.json 'commit' 1 year ago
picker.wxml 'commit' 1 year ago
picker.wxss 'commit' 1 year ago
props.d.ts 'commit' 1 year ago
props.js 'commit' 1 year ago
type.d.ts 'commit' 1 year ago
type.js 'commit' 1 year ago

README.en-US.md

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

:: BASE_DOC ::

API

Picker Props

name type default description required
auto-close Boolean true - N
cancel-btn String / Boolean / Object true Typescriptboolean | string | ButtonProps N
columns Array / Function [] required。TypescriptArray<PickerColumn> | ((item: Array<PickerValue>) => Array<PickerColumn>) type PickerColumn = PickerColumnItem[] interface PickerColumnItem { label: string,value: string}see more ts definition Y
confirm-btn String / Boolean / Object true Typescriptboolean | string | ButtonPropsButton API Documentssee more ts definition N
footer Slot - - N
header Boolean / Slot true - N
render-label String / Function - Typescript(item: PickerColumnItem) => string N
title String '' - N
value Array - TypescriptArray<PickerValue> type PickerValue = string | numbersee more ts definition N
default-value Array undefined uncontrolled property。TypescriptArray<PickerValue> type PickerValue = string | numbersee more ts definition N
visible Boolean false - N

Picker Events

name params description
cancel - -
change (value: Array<PickerValue>, label: string, columns: Array<{ column: number; index: number }> ) -
close (trigger: TriggerSource) 1.0.1see more ts definition
type TriggerSource = 'overlay' | 'cancel-btn' | 'confrim-btn'
confirm (value: Array<PickerValue>, label: string, columns: Array<{ column: number; index: number }> ) -
pick (value: Array<PickerValue>, label: string, column: number, index: number) -

PickerItem Props

name type default description required
format Function - Typescript(option: PickerItemOption) => string N
options Array [] TypescriptPickerItemOption[] interface PickerItemOption { label: string; value: string | number }see more ts definition N