@opentiny/vue-search-box 0.0.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/README.md +111 -0
- package/es/composables/use-checkbox.es.js +87 -0
- package/es/composables/use-custom.es.js +48 -0
- package/es/composables/use-datepicker.es.js +86 -0
- package/es/composables/use-dropdown.es.js +207 -0
- package/es/composables/use-edit.es.js +106 -0
- package/es/composables/use-init.es.js +64 -0
- package/es/composables/use-match.es.js +170 -0
- package/es/composables/use-num-range.es.js +77 -0
- package/es/composables/use-placeholder.es.js +41 -0
- package/es/composables/use-tag.es.js +51 -0
- package/es/index-DCPOFFNd.css +337 -0
- package/es/index.es.js +10 -0
- package/es/index.type.es.js +1 -0
- package/es/index.vue.es.js +4 -0
- package/es/index.vue.es2.js +1287 -0
- package/es/smb-theme.es.js +18 -0
- package/es/utils/clone.es.js +29 -0
- package/es/utils/date.es.js +431 -0
- package/es/utils/dropdown.es.js +20 -0
- package/es/utils/en_US.es.js +44 -0
- package/es/utils/index.es.js +13 -0
- package/es/utils/tag.es.js +46 -0
- package/es/utils/type.es.js +4 -0
- package/es/utils/validate.es.js +179 -0
- package/es/utils/zh_CN.es.js +44 -0
- package/index.css +337 -0
- package/lib/composables/use-checkbox.cjs.js +87 -0
- package/lib/composables/use-custom.cjs.js +48 -0
- package/lib/composables/use-datepicker.cjs.js +86 -0
- package/lib/composables/use-dropdown.cjs.js +207 -0
- package/lib/composables/use-edit.cjs.js +106 -0
- package/lib/composables/use-init.cjs.js +64 -0
- package/lib/composables/use-match.cjs.js +170 -0
- package/lib/composables/use-num-range.cjs.js +77 -0
- package/lib/composables/use-placeholder.cjs.js +41 -0
- package/lib/composables/use-tag.cjs.js +51 -0
- package/lib/index-DCPOFFNd.css +337 -0
- package/lib/index.cjs.js +10 -0
- package/lib/index.type.cjs.js +1 -0
- package/lib/index.vue.cjs.js +4 -0
- package/lib/index.vue.cjs2.js +1287 -0
- package/lib/smb-theme.cjs.js +18 -0
- package/lib/utils/clone.cjs.js +29 -0
- package/lib/utils/date.cjs.js +431 -0
- package/lib/utils/dropdown.cjs.js +20 -0
- package/lib/utils/en_US.cjs.js +44 -0
- package/lib/utils/index.cjs.js +13 -0
- package/lib/utils/tag.cjs.js +46 -0
- package/lib/utils/type.cjs.js +4 -0
- package/lib/utils/validate.cjs.js +179 -0
- package/lib/utils/zh_CN.cjs.js +44 -0
- package/package.json +65 -0
- package/types/composables/use-checkbox.d.ts +10 -0
- package/types/composables/use-custom.d.ts +7 -0
- package/types/composables/use-datepicker.d.ts +11 -0
- package/types/composables/use-dropdown.d.ts +13 -0
- package/types/composables/use-edit.d.ts +13 -0
- package/types/composables/use-init.d.ts +10 -0
- package/types/composables/use-match.d.ts +8 -0
- package/types/composables/use-num-range.d.ts +9 -0
- package/types/composables/use-placeholder.d.ts +8 -0
- package/types/composables/use-tag.d.ts +9 -0
- package/types/index.type.d.ts +189 -0
- package/types/smb-theme.d.ts +15 -0
- package/types/utils/clone.d.ts +12 -0
- package/types/utils/date.d.ts +234 -0
- package/types/utils/dropdown.d.ts +12 -0
- package/types/utils/en_US.d.ts +41 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/tag.d.ts +46 -0
- package/types/utils/type.d.ts +6 -0
- package/types/utils/validate.d.ts +31 -0
- package/types/utils/zh_CN.d.ts +41 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
3
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
|
6
|
+
*
|
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 填充字符串,根据填充模式参数,在字符串前面或后面补充字附到指定的长度。
|
|
14
|
+
*
|
|
15
|
+
* fillChar('1', 3) // "001"
|
|
16
|
+
* fillChar('1', 3, true) // "100"
|
|
17
|
+
* fillChar('1', 3, true, ' ') // "1 "
|
|
18
|
+
*
|
|
19
|
+
* @param {String} string 被填充的字符串
|
|
20
|
+
* @param {Number} length 填充到某个长度
|
|
21
|
+
* @param {Boolean} [append=false] 是否在后面填充,默认为在前面填充
|
|
22
|
+
* @param {String} [chr="0"] 填充的字符,默认为0
|
|
23
|
+
* @returns {String}
|
|
24
|
+
*/
|
|
25
|
+
export declare const fillChar: (string: any, length: any, append: any, chr?: string) => string;
|
|
26
|
+
export declare const toString: () => string;
|
|
27
|
+
export declare const hasOwn: (v: PropertyKey) => boolean;
|
|
28
|
+
/** 判断是否为 null / undefined */
|
|
29
|
+
export declare const isNull: (x: any) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 返回 JavaScript 对象的类型。
|
|
32
|
+
*
|
|
33
|
+
* 如果对象是 undefined 或 null,则返回相应的'undefined'或'null'。
|
|
34
|
+
*
|
|
35
|
+
* 其他一切都将返回它的类型'object'。
|
|
36
|
+
*
|
|
37
|
+
* typeOf( undefined ) === 'undefined'
|
|
38
|
+
* typeOf() === 'undefined'
|
|
39
|
+
* typeOf( window.notDefined ) === 'undefined'
|
|
40
|
+
* typeOf( null ) === 'null'
|
|
41
|
+
* typeOf( true ) === 'boolean'
|
|
42
|
+
* typeOf( 3 ) === 'number'
|
|
43
|
+
* typeOf( "test" ) === 'string'
|
|
44
|
+
* typeOf( function (){} ) === 'function'
|
|
45
|
+
* typeOf( [] ) === 'array'
|
|
46
|
+
* typeOf( new Date() ) === 'date'
|
|
47
|
+
* typeOf( new Error() ) === 'error'
|
|
48
|
+
* typeOf( /test/ ) === 'regExp'
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export declare const typeOf: (obj: any) => string;
|
|
52
|
+
/**
|
|
53
|
+
* 判断对象是否为 object 类型。
|
|
54
|
+
*
|
|
55
|
+
* isObject({}) // true
|
|
56
|
+
*/
|
|
57
|
+
export declare const isObject: (obj: any) => boolean;
|
|
58
|
+
/**
|
|
59
|
+
* 判断对象是否为 function 类型。
|
|
60
|
+
*
|
|
61
|
+
* isObject(function (){) // true
|
|
62
|
+
|
|
63
|
+
*/
|
|
64
|
+
export declare const isFunction: (fn: any) => boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 判断对象是否为简单对象。
|
|
67
|
+
*
|
|
68
|
+
* 即不是 HTML 节点对象,也不是 window 对象,而是纯粹的对象(通过 '{}' 或者 'new Object' 创建的)。
|
|
69
|
+
*
|
|
70
|
+
* let obj = {}
|
|
71
|
+
* isPlainObject(obj) //true
|
|
72
|
+
*/
|
|
73
|
+
export declare const isPlainObject: (obj: any) => boolean;
|
|
74
|
+
/**
|
|
75
|
+
* 检查对象是否为空(不包含任何属性)。
|
|
76
|
+
*
|
|
77
|
+
* let obj = {}
|
|
78
|
+
* isEmptyObject(obj) // true
|
|
79
|
+
*/
|
|
80
|
+
export declare const isEmptyObject: (obj: any) => boolean;
|
|
81
|
+
/**
|
|
82
|
+
* 判断对象是否为数字类型。
|
|
83
|
+
*
|
|
84
|
+
* isNumber(369) // true
|
|
85
|
+
*/
|
|
86
|
+
export declare const isNumber: (value: any) => boolean;
|
|
87
|
+
/**
|
|
88
|
+
* 判断对象是否代表一个数值。
|
|
89
|
+
*
|
|
90
|
+
* isNumeric('-10') // true
|
|
91
|
+
* isNumeric(16) // true
|
|
92
|
+
* isNumeric(0xFF) // true
|
|
93
|
+
* isNumeric('0xFF') // true
|
|
94
|
+
* isNumeric('8e5') // true
|
|
95
|
+
* isNumeric(3.1415) // true
|
|
96
|
+
* isNumeric(+10) // true
|
|
97
|
+
* isNumeric('') // false
|
|
98
|
+
* isNumeric({}) // false
|
|
99
|
+
* isNumeric(NaN) // false
|
|
100
|
+
* isNumeric(null) // false
|
|
101
|
+
* isNumeric(true) // false
|
|
102
|
+
* isNumeric(Infinity) // false
|
|
103
|
+
* isNumeric(undefined) // false
|
|
104
|
+
*/
|
|
105
|
+
export declare const isNumeric: (value: any) => boolean;
|
|
106
|
+
/**
|
|
107
|
+
* 判断对象是否为日期类型。
|
|
108
|
+
*
|
|
109
|
+
* let date = new Date()
|
|
110
|
+
* isDate(date) // true
|
|
111
|
+
*/
|
|
112
|
+
export declare const isDate: (value: any) => boolean;
|
|
113
|
+
/**
|
|
114
|
+
* 判断两个值是否值相同且类型相同。
|
|
115
|
+
*
|
|
116
|
+
* 注:在 JavaScript 里 NaN === NaN 为 false,因此不能简单的用 === 来判断。
|
|
117
|
+
*
|
|
118
|
+
* isSame(1, 1) // true
|
|
119
|
+
* isSame(NaN, NaN) // true
|
|
120
|
+
*/
|
|
121
|
+
export declare const isSame: (x: any, y: any) => boolean;
|
|
122
|
+
/** 判断是否是正则表达式 */
|
|
123
|
+
export declare const isRegExp: (value: any) => boolean;
|
|
124
|
+
export declare const isPromise: (val: any) => boolean;
|
|
125
|
+
/**
|
|
126
|
+
* 判断年份是否为闰年。
|
|
127
|
+
*
|
|
128
|
+
* isLeapYear(2017) // false
|
|
129
|
+
* isLeapYear(2000) // true
|
|
130
|
+
*
|
|
131
|
+
* @param {Number} year 年份
|
|
132
|
+
* @returns {Boolean}
|
|
133
|
+
*/
|
|
134
|
+
export declare const isLeapYear: (year: any) => boolean;
|
|
135
|
+
/**
|
|
136
|
+
* 将字符串或数字转换成 Date 类型。
|
|
137
|
+
*
|
|
138
|
+
* toDate('2008/02/02') // new Date(2008, 1, 2)
|
|
139
|
+
* toDate(Date.UTC(2008, 1, 2)) // new Date(Date.UTC(2008, 1, 2))
|
|
140
|
+
* toDate('2008/2/2', 'yyyy/M/d') // new Date(2008, 1, 2)
|
|
141
|
+
* toDate('2008/02') // new Date(2008, 1, 1)
|
|
142
|
+
* toDate('02/2008') // new Date(2008, 1, 1)
|
|
143
|
+
* toDate('2008-02-01T20:08+08:00') // new Date(Date.UTC(2008, 0, 31, 16))
|
|
144
|
+
* toDate('2008-02-01T04:08-08:00') // new Date(Date.UTC(2008, 1, 1, 8))
|
|
145
|
+
*
|
|
146
|
+
* @param {String|Number} value 日期类型字符串或数字
|
|
147
|
+
* @param {String} [dateFormat] 转换格式
|
|
148
|
+
*
|
|
149
|
+
* 当 value 为字符串类型时,如果不提供,则尽可能按常见格式去解析。
|
|
150
|
+
* 常见格式为 yyyy[/-]MM[/-]dd hh:mm:ss.SSS, MM[/-]dd [/-]yyyy hh:mm:ss.SSS 及 ISO8601 时间格式。
|
|
151
|
+
*
|
|
152
|
+
* 如果提供,则按具体格式严格匹配解析,并且年份必须为4位。
|
|
153
|
+
* - yyyy 代表年份
|
|
154
|
+
* - M 或 MM 代表1位或2位的月份
|
|
155
|
+
* - d 或 dd 代表1位或2位的天数
|
|
156
|
+
* - h 或 hh 代表24小时的1位或2位的小时
|
|
157
|
+
* - m 或 mm 代表1位或2位的分钟,
|
|
158
|
+
* - s 或 ss 代表1位或2位的秒
|
|
159
|
+
* - S 或 SS 或 SSS 代表1位或2位或3位的毫秒
|
|
160
|
+
*
|
|
161
|
+
* @param {String} [minDate] 最小时间,默认为 0001-01-01 00:00:00.000
|
|
162
|
+
* @returns {Date}
|
|
163
|
+
*/
|
|
164
|
+
export declare const toDate: (value: any, dateFormat: any, minDate: any) => any;
|
|
165
|
+
/**
|
|
166
|
+
* 将 Date 实例转换成日期字符串。
|
|
167
|
+
* 当 date 为日期字符串时,如果只有2个参数,则第2个参数为格式化后的格式化字符串
|
|
168
|
+
* 如果有3个参数,则第2个参数为转换的格式化参数,第3个参数为格式化后的格式化参数
|
|
169
|
+
*
|
|
170
|
+
* let date = new Date(2014, 4, 4, 1, 2, 3, 4)
|
|
171
|
+
* format(date) // "2014/05/04 01:02:03"
|
|
172
|
+
* format(date, 'yyyy/MM/dd hh:mm:ss.SSS') // "2014/05/04 01:02:03.004"
|
|
173
|
+
* format(date, 'yyyy/MM/dd hh:mm:ss.SSSZ') // "2014/05/04 01:02:03.004+0800"
|
|
174
|
+
* format(date, 'yyyy年MM月dd日 hh时mm分ss秒SSS毫秒') // "2014年05月04日 01时02分03秒004毫秒"
|
|
175
|
+
* format('2008/01/02', 'yyyy/MM/dd hh:mm:ss.SSS') // "2008/02/02 00:00:00.000"
|
|
176
|
+
* format('2014/01/02/03/04/05/06', 'yyyy/MM/dd/hh/mm/ss', 'yyyy年MM月dd日 hh时mm分ss秒') // "2014年01月02日 03时04分05秒006毫秒"
|
|
177
|
+
*
|
|
178
|
+
* @param {Date|String} date Date 实例或日期字符串
|
|
179
|
+
* @param {String} [dateFormat='yyyy/MM/dd hh:mm:ss'] 转换格式
|
|
180
|
+
*
|
|
181
|
+
* 常见格式为 yyyy[/-]MM[/-]dd hh:mm:ss.SSS, MM[/-]dd [/-]yyyy hh:mm:ss.SSS 及 ISO8601 时间格式。
|
|
182
|
+
*
|
|
183
|
+
* 如果提供,则按具体格式严格匹配解析,并且年份必须为4位。
|
|
184
|
+
* - yyyy 代表年份
|
|
185
|
+
* - M 或 MM 代表1位或2位的月份
|
|
186
|
+
* - d 或 dd 代表1位或2位的天数
|
|
187
|
+
* - h 或 hh 代表24小时的1位或2位的小时
|
|
188
|
+
* - m 或 mm 代表1位或2位的分钟,
|
|
189
|
+
* - s 或 ss 代表1位或2位的秒
|
|
190
|
+
* - S 或 SS 或 SSS 代表1位或2位或3位的毫秒
|
|
191
|
+
*
|
|
192
|
+
* @returns {String}
|
|
193
|
+
*/
|
|
194
|
+
export declare const format: (date: any, dateFormat?: string) => any;
|
|
195
|
+
/**
|
|
196
|
+
* 将当前操作的时间变更时区,主要用于转换一个其他时区的时间。
|
|
197
|
+
*
|
|
198
|
+
* var date = new Date(2017, 0, 1)
|
|
199
|
+
* getDateWithNewTimezone(date, 0, -2)
|
|
200
|
+
*
|
|
201
|
+
* @param {Date} date Date 实例或日期字符串
|
|
202
|
+
* @param {Number} otz 原时区 -12~13
|
|
203
|
+
* @param {Number} ntz 目标时区 -12~13 默认为当前时区
|
|
204
|
+
* @param {Boolean} TimezoneOffset 时区偏移量
|
|
205
|
+
* @returns {Date}
|
|
206
|
+
*/
|
|
207
|
+
export declare const getDateWithNewTimezone: (date: any, otz: any, ntz: any, timezoneOffset?: number) => Date;
|
|
208
|
+
/**
|
|
209
|
+
* 按时区将 Date 实例转换成字符串。
|
|
210
|
+
*
|
|
211
|
+
* toDateStr(new Date(2017, 0, 1, 12, 30), 'yyyy/MM/dd hh:mm', 3) // "2017/01/01 15:30"
|
|
212
|
+
* toDateStr('2008/01/02', 'yyyy/MM/dd hh:mm', 3) // "2008/01/02 03:00"
|
|
213
|
+
*
|
|
214
|
+
* @param {Date|String} date Date 实例或日期字符串
|
|
215
|
+
* @param {String} dateFormat 转换格式
|
|
216
|
+
* @param {Number} [timezone] 时区
|
|
217
|
+
* @returns {String}
|
|
218
|
+
*/
|
|
219
|
+
export declare const toDateStr: (date: any, dateFormat: any, timezone: any) => any;
|
|
220
|
+
/**
|
|
221
|
+
* 获取日期所在周的第一天,默认周一为第一天(可扩展周日为第一天)。
|
|
222
|
+
*
|
|
223
|
+
* getWeekOfFirstDay() // 返回当前日期所在周的周一同一时间
|
|
224
|
+
* getWeekOfFirstDay(true) // 返回当前日期所在周的周日同一时间
|
|
225
|
+
* getWeekOfFirstDay(new Date(2019, 8, 5)) // new Date(2019, 8, 2)
|
|
226
|
+
* getWeekOfFirstDay(new Date(2019, 8, 5)), true) // new Date(2019, 8, 1)
|
|
227
|
+
*
|
|
228
|
+
* @param {Date} [date=new Date()] date 日期实例,默认当天
|
|
229
|
+
* @param {Boolean} [isSunFirst] 是否设置周日为第一天,非必填
|
|
230
|
+
* @returns {Date}
|
|
231
|
+
*/
|
|
232
|
+
export declare const getWeekOfFirstDay: (date: any, isSunFirst: any) => Date;
|
|
233
|
+
export declare const getLocalTimezone: () => number;
|
|
234
|
+
export declare const getStrTimezone: (value: any) => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 下拉框显隐
|
|
3
|
+
* @param state 组件响应式数据
|
|
4
|
+
* @param isShow 是否展示下拉框, 默认展示
|
|
5
|
+
*/
|
|
6
|
+
export declare const showDropdown: (state: any, isShow?: boolean) => void;
|
|
7
|
+
/**
|
|
8
|
+
* 编辑下拉框显隐
|
|
9
|
+
* @param state 组件响应式数据
|
|
10
|
+
* @param isShow 是否展示编辑下拉框, 默认展示
|
|
11
|
+
*/
|
|
12
|
+
export declare const showPopover: (state: any, isShow?: boolean) => void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const enUS: {
|
|
2
|
+
tvp: {
|
|
3
|
+
tvpSearchbox: {
|
|
4
|
+
defaultPlaceholder: string;
|
|
5
|
+
addPlaceholder: string;
|
|
6
|
+
tagPlaceholder: string;
|
|
7
|
+
dynamicPlaceholder: string;
|
|
8
|
+
attributeType: string;
|
|
9
|
+
propertyValue: string;
|
|
10
|
+
matched: string;
|
|
11
|
+
allValues: string;
|
|
12
|
+
allProperty: string;
|
|
13
|
+
operator: string;
|
|
14
|
+
clearAll: string;
|
|
15
|
+
emptyValue: string;
|
|
16
|
+
help: string;
|
|
17
|
+
switchText: string;
|
|
18
|
+
tagKey: string;
|
|
19
|
+
tagValue: string;
|
|
20
|
+
minValueText: string;
|
|
21
|
+
maxValueText: string;
|
|
22
|
+
rangeMinArr: string;
|
|
23
|
+
rangeMaxArr: string;
|
|
24
|
+
rangeNumberTitle: string;
|
|
25
|
+
rangeDateTitle: string;
|
|
26
|
+
timeLengthTitle: string;
|
|
27
|
+
rangeBeginLabel: string;
|
|
28
|
+
rangeEndLabel: string;
|
|
29
|
+
rulekeyword1: string;
|
|
30
|
+
notBeNull: string;
|
|
31
|
+
noData: string;
|
|
32
|
+
selectAll: string;
|
|
33
|
+
confirm: string;
|
|
34
|
+
cancel: string;
|
|
35
|
+
equal: string;
|
|
36
|
+
notEqual: string;
|
|
37
|
+
contain: string;
|
|
38
|
+
notContain: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const debounce: (func: Function, delay?: number) => (this: any, ...args: any) => void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ISearchBoxNewTag } from '../index.type';
|
|
2
|
+
/**
|
|
3
|
+
* 判断是否已选择此标签
|
|
4
|
+
* @param state searchbox的state变量
|
|
5
|
+
* @param itemValue 标签的value值
|
|
6
|
+
* @param itemLabel 标签的label值,可选参数,默认为空字符串,一般用于当prevItem.label为空时
|
|
7
|
+
* @return 已选择则返回true,未选择则相反
|
|
8
|
+
*/
|
|
9
|
+
export declare const hasTagItem: (state: any, itemValue: any, itemLabel?: string) => any;
|
|
10
|
+
/**
|
|
11
|
+
* 清空输入框的值
|
|
12
|
+
* @param state searchbox的state变量
|
|
13
|
+
*/
|
|
14
|
+
export declare const resetInput: (state: any) => void;
|
|
15
|
+
/**
|
|
16
|
+
* update:modelValue和change事件
|
|
17
|
+
* @param emits vue的api
|
|
18
|
+
* @param state searchbox的state变量
|
|
19
|
+
* @param args 其他可选参数:
|
|
20
|
+
* @param tagList 尾部添加的新标签数组
|
|
21
|
+
* @param index 替换某标签的索引
|
|
22
|
+
* @param newTag 表示替换的新标签,主要和索引共用
|
|
23
|
+
* @param newValue 表示替换全部的model-value值
|
|
24
|
+
* @param oldValue 表示旧的model-value值
|
|
25
|
+
*/
|
|
26
|
+
export declare const emitChangeModelEvent: ({ emits, state, ...args }: {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
emits: any;
|
|
29
|
+
state: any;
|
|
30
|
+
}) => void;
|
|
31
|
+
/**
|
|
32
|
+
* 创建新标签,防止多个地方创建的标签不一致,缺少某些属性
|
|
33
|
+
* @param newTag 新标签对象
|
|
34
|
+
* @return 生成的新标签对象
|
|
35
|
+
*/
|
|
36
|
+
export declare const createNewTag: (newTag: ISearchBoxNewTag) => ISearchBoxNewTag;
|
|
37
|
+
/**
|
|
38
|
+
* 获取元素的唯一标识
|
|
39
|
+
* @param props 组件入参对象
|
|
40
|
+
* @param prevItem 当前标签父级对象
|
|
41
|
+
* @param item 要生成的新标签对象
|
|
42
|
+
* @return 此标签的唯一标识
|
|
43
|
+
*/
|
|
44
|
+
export declare const getTagId: (props: any, prevItem: any, item: any) => {
|
|
45
|
+
[x: number]: any;
|
|
46
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 校验正常标签的值,并返回相应的新标签
|
|
3
|
+
* @param instance searchbox 的 instance
|
|
4
|
+
* @param state searchbox 的 state
|
|
5
|
+
* @param props searchbox 的 props
|
|
6
|
+
* @return 验证通过则返回新标签对象,否则返回null
|
|
7
|
+
*/
|
|
8
|
+
export declare const getVerifyTag: (instance: any, state: any, props: any) => Promise<any>;
|
|
9
|
+
/**
|
|
10
|
+
* 校验 numRange 的值,并返回相应的新标签
|
|
11
|
+
* @param instance searchbox 的 instance
|
|
12
|
+
* @param state searchbox 的 state
|
|
13
|
+
* @param props searchbox 的 props
|
|
14
|
+
* @return 验证通过则返回新标签对象,否则返回null
|
|
15
|
+
*/
|
|
16
|
+
export declare const getVerifyNumTag: (instance: any, state: any, props: any) => Promise<any>;
|
|
17
|
+
/**
|
|
18
|
+
* 校验 dateRange datetimeRange 的值,并返回相应的新标签
|
|
19
|
+
* @param instance searchbox 的 instance
|
|
20
|
+
* @param state searchbox 的 state
|
|
21
|
+
* @param props searchbox 的 props
|
|
22
|
+
* @param isDateTimeType 是否 datetimeRange
|
|
23
|
+
* @return 验证通过则返回新标签对象,否则返回null
|
|
24
|
+
*/
|
|
25
|
+
export declare const getVerifyDateTag: (instance: any, state: any, props: any, isDateTimeType: any) => Promise<any>;
|
|
26
|
+
/**
|
|
27
|
+
* 按需加载 state 里 numRange 类型的变量,按需加载校验规则
|
|
28
|
+
* @param state searchbox 的 state
|
|
29
|
+
* @param item 当前选择的 item 值
|
|
30
|
+
*/
|
|
31
|
+
export declare const setStateNumRange: (state: any, item: any, t: any) => void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const zhCN: {
|
|
2
|
+
tvp: {
|
|
3
|
+
tvpSearchbox: {
|
|
4
|
+
defaultPlaceholder: string;
|
|
5
|
+
addPlaceholder: string;
|
|
6
|
+
tagPlaceholder: string;
|
|
7
|
+
dynamicPlaceholder: string;
|
|
8
|
+
attributeType: string;
|
|
9
|
+
propertyValue: string;
|
|
10
|
+
matched: string;
|
|
11
|
+
allValues: string;
|
|
12
|
+
allProperty: string;
|
|
13
|
+
operator: string;
|
|
14
|
+
clearAll: string;
|
|
15
|
+
emptyValue: string;
|
|
16
|
+
help: string;
|
|
17
|
+
switchText: string;
|
|
18
|
+
tagKey: string;
|
|
19
|
+
tagValue: string;
|
|
20
|
+
minValueText: string;
|
|
21
|
+
maxValueText: string;
|
|
22
|
+
rangeMinArr: string;
|
|
23
|
+
rangeMaxArr: string;
|
|
24
|
+
rangeNumberTitle: string;
|
|
25
|
+
rangeDateTitle: string;
|
|
26
|
+
timeLengthTitle: string;
|
|
27
|
+
rangeBeginLabel: string;
|
|
28
|
+
rangeEndLabel: string;
|
|
29
|
+
rulekeyword1: string;
|
|
30
|
+
notBeNull: string;
|
|
31
|
+
noData: string;
|
|
32
|
+
selectAll: string;
|
|
33
|
+
confirm: string;
|
|
34
|
+
cancel: string;
|
|
35
|
+
equal: string;
|
|
36
|
+
notEqual: string;
|
|
37
|
+
contain: string;
|
|
38
|
+
notContain: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|