@bpui/picker
Advanced tools
Comparing version 1.1.0 to 1.1.2
/*! | ||
* bpui picker v1.1.0 | ||
* bpui picker v1.1.2 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* bpui picker v1.1.0 | ||
* bpui picker v1.1.2 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* bpui picker v1.1.0 | ||
* bpui picker v1.1.2 | ||
* Copyright (c) 2021 Copyright bpoint.lee@live.com All Rights Reserved. | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
{ | ||
"description": "picker", | ||
"dependencies": { | ||
"@bpui/dialog": "^1.1.1" | ||
"@bpui/dialog": "^1.1.2" | ||
}, | ||
@@ -37,3 +37,3 @@ "directories": {}, | ||
"name": "@bpui/picker", | ||
"version": "1.1.0" | ||
"version": "1.1.2" | ||
} |
@@ -15,4 +15,33 @@ /// <reference types="@bpui/dialog" /> | ||
interface Picker extends Widget { | ||
/** | ||
* @desc 强制按手机样式显示. | ||
* | ||
* default: false | ||
*/ | ||
forcePhoneStyle: boolean | 'false' | 'true'; | ||
/** | ||
* @desc toolbar 的位置. | ||
*/ | ||
toolbarPos: 'top' | 'bottom'; | ||
/** | ||
* @desc: 取消按钮文本. | ||
*/ | ||
cancelBtnText: string; | ||
/** | ||
* @desc: 确认按钮文本 | ||
*/ | ||
confirmBtnText: string; | ||
/** | ||
* @desc: 数据源. | ||
*/ | ||
datasource: bp.PickerDataSource | Array<PickerDataSourceData2>; | ||
/** | ||
* @desc: 当前值. | ||
*/ | ||
value: string | number | Array<any>; | ||
/** | ||
* @desc: 设置指定组界面上的当前选中值 (不等同于当前的value, 只是界面上的选择). | ||
@@ -19,0 +48,0 @@ * @param groupIndex: 组索引. |
@@ -14,2 +14,3 @@ /// <reference path="./IPicker.d.ts" /> | ||
type PickerDataSourceData = Array<{label:string, value:PickerDataSourceValue}>; | ||
type PickerDataSourceData2 = {label:string, value:PickerDataSourceValue, children?:PickerDataSourceData2[]}; | ||
@@ -16,0 +17,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1417737
13528
Updated@bpui/dialog@^1.1.2