@solar-taro/ui-vant 4.6.0 → 4.7.0

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.
@@ -1,62 +0,0 @@
1
- .sun-selector {
2
- flex: auto;
3
- display: flex;
4
- align-items: center;
5
- min-height: 24px;
6
- line-height: 1.5;
7
-
8
- &-disabled {
9
- opacity: 0.5;
10
- }
11
-
12
- &-inner {
13
- flex: auto;
14
- overflow: hidden;
15
- white-space: nowrap;
16
- text-overflow: ellipsis;
17
- }
18
-
19
- &-placeholder {
20
- flex: auto;
21
- color: var(--color-light-shade);
22
- }
23
-
24
- &-icon {
25
- flex-shrink: 0;
26
- color: var(--color-medium-tint);
27
- }
28
-
29
- &-tags {
30
- display: flex;
31
- flex-wrap: wrap;
32
- gap: 2px;
33
- }
34
-
35
- &-clear {
36
- &-icon {
37
- flex-shrink: 0;
38
- padding: 4px;
39
- color: var(--color-medium-tint);
40
- }
41
- }
42
-
43
- &-option {
44
- &-active.sun-item {
45
- --background: rgba(var(--color-primary-rgb), 0.1);
46
- }
47
-
48
- &-active {
49
- font-weight: bold;
50
- }
51
-
52
- &-icon {
53
- color: var(--color-primary);
54
- font-size: 16px;
55
- }
56
-
57
- &-divider {
58
- position: sticky;
59
- top: 0;
60
- }
61
- }
62
- }
@@ -1,93 +0,0 @@
1
- import { SelectorOption, SelectorOptionGroup } from './typings';
2
- declare const _default: <TValue, TOption extends SelectorOption<TValue>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
- readonly "onUpdate:modelValue"?: ((value: TValue | TValue[] | null) => any) | undefined;
5
- readonly onClose?: (() => any) | undefined;
6
- readonly onSelect?: ((args_0: TOption) => any) | undefined;
7
- readonly onClear?: ((args_0: unknown) => any) | undefined;
8
- readonly onConfirm?: ((args_0: TOption[]) => any) | undefined;
9
- readonly onRefresh?: (() => any) | undefined;
10
- readonly "onUpdate:keyword"?: ((value: string) => any) | undefined;
11
- readonly onUnselect?: ((args_0: TOption) => any) | undefined;
12
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onSelect" | "onConfirm" | "onRefresh" | "onClose" | "onClear" | "onUpdate:keyword" | "onUnselect"> & ({
13
- modelValue?: TValue | TValue[] | null;
14
- keyword?: string;
15
- } & {
16
- mode?: "single" | "multiple";
17
- placeholder?: string;
18
- options: SelectorOptionGroup<TOption>[] | TOption[];
19
- loading?: boolean;
20
- height?: string;
21
- required?: boolean;
22
- disabled?: boolean;
23
- /** 多选模式下,分割符 */
24
- delimiter?: string;
25
- searchable?: boolean;
26
- clearable?: boolean;
27
- filter?: (option: NoInfer<TOption>, keyword: string) => boolean;
28
- virtual?: boolean;
29
- optionSize?: number | ((option: NoInfer<TOption>) => number);
30
- refresher?: boolean;
31
- refreshing?: boolean;
32
- compareWith?: (a?: NoInfer<TValue>, b?: NoInfer<TValue>) => boolean;
33
- }) & Partial<{}>> & import('vue').PublicProps;
34
- expose(exposed: import('vue').ShallowUnwrapRef<{
35
- present: () => void;
36
- clear: () => void;
37
- keyword: import('vue').ModelRef<string, string, string, string>;
38
- }>): void;
39
- attrs: any;
40
- slots: {
41
- default?(_: {
42
- present: () => void;
43
- label: string;
44
- selectedOptions: TOption[];
45
- }): any;
46
- filter?(_: {}): any;
47
- 'option-start'?(_: {
48
- option: TOption | SelectorOptionGroup<TOption>;
49
- index: number;
50
- active: boolean;
51
- }): any;
52
- 'option-start'?(_: {
53
- option: TOption;
54
- index: number;
55
- active: boolean;
56
- }): any;
57
- option?(_: {
58
- option: TOption | SelectorOptionGroup<TOption>;
59
- index: number;
60
- active: boolean;
61
- }): any;
62
- option?(_: {
63
- option: TOption;
64
- index: number;
65
- active: boolean;
66
- }): any;
67
- 'option-end'?(_: {
68
- option: TOption | SelectorOptionGroup<TOption>;
69
- index: number;
70
- active: boolean;
71
- }): any;
72
- 'option-end'?(_: {
73
- option: TOption;
74
- index: number;
75
- active: boolean;
76
- }): any;
77
- list?(_: {
78
- ListTemplate: import('@vueuse/core').ReuseTemplateComponent<Record<string, any>, Record<"default", undefined>>;
79
- }): any;
80
- actions?(_: {
81
- confirm: () => void;
82
- }): any;
83
- };
84
- emit: (((evt: "close") => void) & ((evt: "select", args_0: TOption) => void) & ((evt: "clear", args_0: unknown) => void) & ((evt: "confirm", args_0: TOption[]) => void) & ((evt: "refresh") => void) & ((evt: "unselect", args_0: TOption) => void)) & (((evt: "update:modelValue", value: TValue | TValue[] | null) => void) & ((evt: "update:keyword", value: string) => void));
85
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
86
- [key: string]: any;
87
- }> & {
88
- __ctx?: Awaited<typeof __VLS_setup>;
89
- };
90
- export default _default;
91
- type __VLS_PrettifyLocal<T> = {
92
- [K in keyof T]: T[K];
93
- } & {};
@@ -1,9 +0,0 @@
1
- export interface SelectorOptionGroup<TOption extends SelectorOption<unknown>> {
2
- label: string;
3
- options: TOption[];
4
- }
5
- export interface SelectorOption<T> {
6
- label: string;
7
- value: T;
8
- parent?: SelectorOptionGroup<this>;
9
- }