@weitutech/by-components-v3 1.1.15 → 1.1.17
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/by-component-v3.css +1 -1
- package/dist/by-component-v3.js +14 -11
- package/dist/by-component-v3.umd.cjs +1 -1
- package/dist/types/packages/common-selector/index.d.ts +1 -2
- package/dist/types/packages/common-selector/src/index.vue.d.ts +4 -1
- package/dist/types/packages/common-selector/src/types.d.ts +10 -2
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import CommonSelector from './src/index.vue';
|
|
2
|
-
import { Option, SelectorValue, TCommonSelectorType } from './src/types';
|
|
3
2
|
export { CommonSelector };
|
|
4
|
-
export type {
|
|
3
|
+
export type { CommonSelectorProps as ByCommonSelectorProps } from './src/types';
|
|
5
4
|
export default CommonSelector;
|
|
@@ -10,17 +10,19 @@ declare const __VLS_component: import("vue").DefineComponent<CommonSelectorProps
|
|
|
10
10
|
forceCheckExpandButton: () => void;
|
|
11
11
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
12
|
input: (value: SelectorValue) => any;
|
|
13
|
+
"update:modelValue": (value: SelectorValue) => any;
|
|
13
14
|
"update:suffixInputValue": (value: string) => any;
|
|
14
15
|
"suffix-input-change": (value: string) => any;
|
|
15
16
|
}, string, import("vue").PublicProps, Readonly<CommonSelectorProps> & Readonly<{
|
|
16
17
|
onInput?: (value: SelectorValue) => any;
|
|
18
|
+
"onUpdate:modelValue"?: (value: SelectorValue) => any;
|
|
17
19
|
"onUpdate:suffixInputValue"?: (value: string) => any;
|
|
18
20
|
"onSuffix-input-change"?: (value: string) => any;
|
|
19
21
|
}>, {
|
|
20
22
|
size: string;
|
|
21
23
|
type: import("./types").TCommonSelectorType;
|
|
22
24
|
options: Option[];
|
|
23
|
-
|
|
25
|
+
modelValue: SelectorValue;
|
|
24
26
|
loadOptions: () => Promise<Option[]>;
|
|
25
27
|
hiddenAllOptions: boolean;
|
|
26
28
|
multiple: boolean;
|
|
@@ -29,6 +31,7 @@ declare const __VLS_component: import("vue").DefineComponent<CommonSelectorProps
|
|
|
29
31
|
pagination: boolean;
|
|
30
32
|
pageSize: number;
|
|
31
33
|
needShowLoading: boolean;
|
|
34
|
+
forceNoExpand: boolean;
|
|
32
35
|
showSuffixInput: boolean;
|
|
33
36
|
suffixInputPlaceholder: string;
|
|
34
37
|
suffixInputValue: string;
|
|
@@ -20,9 +20,13 @@ export type SelectorValue = string | number | (string | number)[];
|
|
|
20
20
|
*/
|
|
21
21
|
export interface CommonSelectorProps {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* 选择器值(用于 v-model)
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
modelValue: SelectorValue;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated 请使用 modelValue 代替
|
|
28
|
+
*/
|
|
29
|
+
value?: SelectorValue;
|
|
26
30
|
/**
|
|
27
31
|
* 选择器类型 border | checkbox | select(default)
|
|
28
32
|
*/
|
|
@@ -73,6 +77,10 @@ export interface CommonSelectorProps {
|
|
|
73
77
|
* 非select模式下,异步加载数据是否需要展示loading(加载中...)
|
|
74
78
|
*/
|
|
75
79
|
needShowLoading?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* 是否强制不展开
|
|
82
|
+
*/
|
|
83
|
+
forceNoExpand?: boolean;
|
|
76
84
|
/**
|
|
77
85
|
* 是否显示后置输入框
|
|
78
86
|
*/
|