@opentiny/vue-search-box 2.28.5 → 2.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.css +54 -5
- package/index.js +1279 -1147
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types/{index.type.d.ts → index.d.ts} +22 -6
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tag类型, radio-默认单选,
|
|
3
|
-
* dateRange-日期范围tag。tag 的分类是根据键值的结果划分
|
|
2
|
+
* tag类型, radio-默认单选, input-输入型, checkbox-多选,map-键值tag, numRange-数字范围tag,
|
|
3
|
+
* dateRange-日期范围tag, datetimeRange-日期时间范围tag, custom-自定义面板tag。tag 的分类是根据键值的结果划分
|
|
4
4
|
*/
|
|
5
|
-
export type ISearchBoxTagType = 'radio' | '
|
|
5
|
+
export type ISearchBoxTagType = 'radio' | 'input' | 'checkbox' | 'map' | 'numRange' | 'dateRange' | 'datetimeRange' | 'custom';
|
|
6
6
|
/**
|
|
7
7
|
* 候选tag数据配置项
|
|
8
8
|
*/
|
|
@@ -74,13 +74,29 @@ export interface ISearchBoxItem {
|
|
|
74
74
|
*/
|
|
75
75
|
idMapKey?: string;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* 标签分隔符数组[3.14.0新增]
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
operators?: Array<string>;
|
|
80
80
|
/**
|
|
81
81
|
* type=checkbox时,设置是否合并成一个标签[3.16.0新增]
|
|
82
82
|
*/
|
|
83
83
|
mergeTag?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* 编辑状态此属性禁用状态,常用以设置不可变更
|
|
86
|
+
*/
|
|
87
|
+
editAttrDisabled?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* type=dateRange/datetimeRange时生效,设置用户只能选择某个时间跨度,只接受毫秒数
|
|
90
|
+
*/
|
|
91
|
+
maxTimeLength?: number;
|
|
92
|
+
/**
|
|
93
|
+
* type=custom时生效,用于指定二级面板的插槽名,对应的编辑态自定义面板插槽名为item.slotName + '-edit'
|
|
94
|
+
*/
|
|
95
|
+
slotName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* 自定义分组名,默认为:'0'
|
|
98
|
+
*/
|
|
99
|
+
groupKey?: string;
|
|
84
100
|
[propName: string]: any;
|
|
85
101
|
}
|
|
86
102
|
export interface ISearchBoxOption {
|
|
@@ -146,7 +162,7 @@ interface ISearchBoxMatchItem {
|
|
|
146
162
|
type?: string;
|
|
147
163
|
}
|
|
148
164
|
export interface ISearchBoxMatchOptions {
|
|
149
|
-
getMatchList: (arg1: string) => ISearchBoxMatchItem[]
|
|
165
|
+
getMatchList: (arg1: string) => ISearchBoxMatchItem[] | Promise<ISearchBoxMatchItem[]>;
|
|
150
166
|
}
|
|
151
167
|
export interface ISearchBoxNewTag {
|
|
152
168
|
/**
|