@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.
- package/CHANGELOG.md +4 -0
- package/index.d.ts +0 -2
- package/index.js +18 -22
- package/index10.js +25 -15
- package/index11.js +4 -3
- package/index12.js +2 -29
- package/index13.js +2 -5
- package/index14.js +1 -1
- package/index15.js +1 -1
- package/index2.js +1 -1
- package/index3.js +115 -261
- package/index4.js +185 -114
- package/index5.js +271 -184
- package/index6.js +56 -278
- package/index7.js +27 -61
- package/index8.js +17 -374
- package/index9.js +4 -28
- package/package.json +1 -1
- package/cascader/index.d.ts +0 -1
- package/cascader/index.scss +0 -65
- package/cascader/index.vue.d.ts +0 -40
- package/cascader/typings.d.ts +0 -5
- package/index16.js +0 -4
- package/index17.js +0 -4
- package/index18.js +0 -4
- package/index19.js +0 -4
- package/index20.js +0 -9
- package/index21.js +0 -42
- package/index22.js +0 -27
- package/selector/index.d.ts +0 -1
- package/selector/index.scss +0 -62
- package/selector/index.vue.d.ts +0 -93
- package/selector/typings.d.ts +0 -9
package/selector/index.scss
DELETED
|
@@ -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
|
-
}
|
package/selector/index.vue.d.ts
DELETED
|
@@ -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
|
-
} & {};
|
package/selector/typings.d.ts
DELETED