bkui-vue 0.0.1-beta.345 → 0.0.1-beta.346
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.cjs.js +31 -31
- package/dist/index.esm.js +64 -37
- package/dist/index.umd.js +31 -31
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/search-select/index.d.ts +65 -7
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.css +3 -2
- package/lib/search-select/search-select.d.ts +28 -2
- package/lib/search-select/search-select.less +8 -3
- package/lib/search-select/search-select.variable.css +3 -2
- package/lib/search-select/selected.d.ts +4 -4
- package/lib/search-select/utils.d.ts +5 -2
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InjectionKey, Ref, VNode } from 'vue';
|
1
|
+
import { ComputedRef, InjectionKey, Ref, VNode } from 'vue';
|
2
2
|
/**
|
3
3
|
* @description: 获取menu list方法
|
4
4
|
* @param {ISearchItem} item 已选择的key字段 为空则代表当前并未选择key字段
|
@@ -20,6 +20,7 @@ export interface ISearchSelectProvider {
|
|
20
20
|
onEditBlur: () => void;
|
21
21
|
onValidate: (str: string) => void;
|
22
22
|
editKey: Ref<String>;
|
23
|
+
valueSplitCode: ComputedRef<string>;
|
23
24
|
}
|
24
25
|
export declare const SEARCH_SLECT_PROVIDER_KEY: InjectionKey<ISearchSelectProvider>;
|
25
26
|
export declare const useSearchSelectProvider: (data: ISearchSelectProvider) => void;
|
@@ -48,6 +49,7 @@ export interface ISearchItem {
|
|
48
49
|
noValidate?: boolean;
|
49
50
|
placeholder?: string;
|
50
51
|
disabled?: boolean;
|
52
|
+
value?: ICommonItem;
|
51
53
|
}
|
52
54
|
export interface IMenuFooterItem {
|
53
55
|
id: 'confirm' | 'cancel';
|
@@ -58,11 +60,12 @@ export declare type SearchItemType = 'text' | 'default' | 'condition';
|
|
58
60
|
export declare class SelectedItem {
|
59
61
|
searchItem: ISearchItem;
|
60
62
|
type: SearchItemType;
|
63
|
+
splitCode: string;
|
61
64
|
id: string;
|
62
65
|
name: string;
|
63
66
|
values: ICommonItem[];
|
64
67
|
condition: string;
|
65
|
-
constructor(searchItem: ISearchItem, type?: SearchItemType);
|
68
|
+
constructor(searchItem: ISearchItem, type?: SearchItemType, splitCode?: string);
|
66
69
|
get multiple(): boolean;
|
67
70
|
get placeholder(): string;
|
68
71
|
get children(): ICommonItem[];
|