@weitutech/by-components-v3 1.1.15 → 1.1.16
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.js +10 -8
- 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 +3 -1
- package/dist/types/packages/common-selector/src/types.d.ts +6 -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;
|
|
@@ -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
|
*/
|