@opentiny/vue-search-box 0.1.6 → 2.27.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/{dist/index.css → index.css} +22 -19
- package/index.js +2804 -0
- package/index.js.map +1 -0
- package/package.json +38 -56
- package/README.md +0 -134
- package/README.zh-CN.md +0 -135
- package/dist/es/components/first-level-panel.vue.es.js +0 -4
- package/dist/es/components/first-level-panel.vue.es2.js +0 -177
- package/dist/es/components/second-level-panel.vue.es.js +0 -4
- package/dist/es/components/second-level-panel.vue.es2.js +0 -466
- package/dist/es/composables/use-checkbox.es.js +0 -74
- package/dist/es/composables/use-custom.es.js +0 -49
- package/dist/es/composables/use-datepicker.es.js +0 -86
- package/dist/es/composables/use-dropdown.es.js +0 -216
- package/dist/es/composables/use-edit.es.js +0 -108
- package/dist/es/composables/use-init.es.js +0 -78
- package/dist/es/composables/use-match.es.js +0 -170
- package/dist/es/composables/use-num-range.es.js +0 -77
- package/dist/es/composables/use-placeholder.es.js +0 -41
- package/dist/es/composables/use-tag.es.js +0 -56
- package/dist/es/index-Tlzvfwv-.css +0 -401
- package/dist/es/index.es.js +0 -45
- package/dist/es/index.type.es.js +0 -1
- package/dist/es/index.vue.es.js +0 -4
- package/dist/es/index.vue.es2.js +0 -780
- package/dist/es/smb-theme.es.js +0 -18
- package/dist/es/utils/clone.es.js +0 -29
- package/dist/es/utils/date.es.js +0 -431
- package/dist/es/utils/dropdown.es.js +0 -24
- package/dist/es/utils/en_US.es.js +0 -45
- package/dist/es/utils/index.es.js +0 -13
- package/dist/es/utils/tag.es.js +0 -44
- package/dist/es/utils/type.es.js +0 -4
- package/dist/es/utils/validate.es.js +0 -179
- package/dist/es/utils/zh_CN.es.js +0 -45
- package/dist/lib/components/first-level-panel.vue.cjs.js +0 -4
- package/dist/lib/components/first-level-panel.vue.cjs2.js +0 -177
- package/dist/lib/components/second-level-panel.vue.cjs.js +0 -4
- package/dist/lib/components/second-level-panel.vue.cjs2.js +0 -466
- package/dist/lib/composables/use-checkbox.cjs.js +0 -74
- package/dist/lib/composables/use-custom.cjs.js +0 -49
- package/dist/lib/composables/use-datepicker.cjs.js +0 -86
- package/dist/lib/composables/use-dropdown.cjs.js +0 -216
- package/dist/lib/composables/use-edit.cjs.js +0 -108
- package/dist/lib/composables/use-init.cjs.js +0 -78
- package/dist/lib/composables/use-match.cjs.js +0 -170
- package/dist/lib/composables/use-num-range.cjs.js +0 -77
- package/dist/lib/composables/use-placeholder.cjs.js +0 -41
- package/dist/lib/composables/use-tag.cjs.js +0 -56
- package/dist/lib/index-Tlzvfwv-.css +0 -401
- package/dist/lib/index.cjs.js +0 -45
- package/dist/lib/index.type.cjs.js +0 -1
- package/dist/lib/index.vue.cjs.js +0 -4
- package/dist/lib/index.vue.cjs2.js +0 -780
- package/dist/lib/smb-theme.cjs.js +0 -18
- package/dist/lib/utils/clone.cjs.js +0 -29
- package/dist/lib/utils/date.cjs.js +0 -431
- package/dist/lib/utils/dropdown.cjs.js +0 -24
- package/dist/lib/utils/en_US.cjs.js +0 -45
- package/dist/lib/utils/index.cjs.js +0 -13
- package/dist/lib/utils/tag.cjs.js +0 -44
- package/dist/lib/utils/type.cjs.js +0 -4
- package/dist/lib/utils/validate.cjs.js +0 -179
- package/dist/lib/utils/zh_CN.cjs.js +0 -45
- package/dist/types/composables/use-checkbox.d.ts +0 -8
- package/dist/types/composables/use-custom.d.ts +0 -7
- package/dist/types/composables/use-datepicker.d.ts +0 -11
- package/dist/types/composables/use-dropdown.d.ts +0 -14
- package/dist/types/composables/use-edit.d.ts +0 -13
- package/dist/types/composables/use-init.d.ts +0 -10
- package/dist/types/composables/use-match.d.ts +0 -8
- package/dist/types/composables/use-num-range.d.ts +0 -9
- package/dist/types/composables/use-placeholder.d.ts +0 -8
- package/dist/types/composables/use-tag.d.ts +0 -9
- package/dist/types/smb-theme.d.ts +0 -15
- package/dist/types/utils/clone.d.ts +0 -12
- package/dist/types/utils/date.d.ts +0 -234
- package/dist/types/utils/dropdown.d.ts +0 -12
- package/dist/types/utils/en_US.d.ts +0 -43
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/tag.d.ts +0 -46
- package/dist/types/utils/type.d.ts +0 -6
- package/dist/types/utils/validate.d.ts +0 -31
- package/dist/types/utils/zh_CN.d.ts +0 -43
- /package/{dist/types → types}/index.type.d.ts +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
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;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
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
|
-
rangeMinErr: string;
|
|
23
|
-
rangeMaxErr: 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
|
-
initUse: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export default _default;
|
|
File without changes
|