persagy-vant 0.0.40 → 0.0.41
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/es/checkbox-panel/CheckboxPanel.d.ts +46 -1
- package/es/checkbox-panel/CheckboxPanel.mjs +121 -35
- package/es/checkbox-panel/index.css +1 -1
- package/es/checkbox-panel/index.d.ts +35 -1
- package/es/checkbox-panel/index.less +8 -2
- package/es/checkbox-panel/style/index.mjs +5 -0
- package/es/checkbox-panel/style/less.mjs +5 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/label/Label.d.ts +13 -0
- package/es/label/Label.mjs +11 -4
- package/es/label/index.css +1 -1
- package/es/label/index.d.ts +9 -0
- package/es/label/index.less +5 -0
- package/es/location-select/style/index.mjs +1 -1
- package/es/location-select/style/less.mjs +1 -1
- package/es/material-action-bar/MaterialActionBar.d.ts +19 -0
- package/es/material-action-bar/MaterialActionBar.mjs +9 -5
- package/es/material-action-bar/index.css +1 -1
- package/es/material-action-bar/index.d.ts +36 -0
- package/es/material-action-bar/index.less +4 -2
- package/es/material-add/index.css +1 -1
- package/es/material-add/style/index.mjs +1 -1
- package/es/material-add/style/less.mjs +1 -1
- package/es/material-display-bar/MaterialDisplayBar.mjs +0 -1
- package/es/material-display-bar/index.css +1 -1
- package/es/material-display-bar/index.less +2 -1
- package/es/material-display-bar/var.less +3 -2
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.less +19 -0
- package/es/title-bar/TitleBar.d.ts +30 -0
- package/es/title-bar/TitleBar.mjs +7 -1
- package/es/title-bar/index.css +1 -1
- package/es/title-bar/index.d.ts +21 -0
- package/es/title-bar/index.less +4 -2
- package/lib/checkbox-panel/CheckboxPanel.d.ts +46 -1
- package/lib/checkbox-panel/CheckboxPanel.js +120 -34
- package/lib/checkbox-panel/index.css +1 -1
- package/lib/checkbox-panel/index.d.ts +35 -1
- package/lib/checkbox-panel/index.less +8 -2
- package/lib/checkbox-panel/style/index.js +5 -0
- package/lib/checkbox-panel/style/less.js +5 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +5 -5
- package/lib/label/Label.d.ts +13 -0
- package/lib/label/Label.js +11 -4
- package/lib/label/index.css +1 -1
- package/lib/label/index.d.ts +9 -0
- package/lib/label/index.less +5 -0
- package/lib/location-select/style/index.js +1 -1
- package/lib/location-select/style/less.js +1 -1
- package/lib/material-action-bar/MaterialActionBar.d.ts +19 -0
- package/lib/material-action-bar/MaterialActionBar.js +8 -4
- package/lib/material-action-bar/index.css +1 -1
- package/lib/material-action-bar/index.d.ts +36 -0
- package/lib/material-action-bar/index.less +4 -2
- package/lib/material-add/index.css +1 -1
- package/lib/material-add/style/index.js +1 -1
- package/lib/material-add/style/less.js +1 -1
- package/lib/material-display-bar/MaterialDisplayBar.js +0 -1
- package/lib/material-display-bar/index.css +1 -1
- package/lib/material-display-bar/index.less +2 -1
- package/lib/material-display-bar/var.less +3 -2
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.less +19 -0
- package/lib/title-bar/TitleBar.d.ts +30 -0
- package/lib/title-bar/TitleBar.js +7 -1
- package/lib/title-bar/index.css +1 -1
- package/lib/title-bar/index.d.ts +21 -0
- package/lib/title-bar/index.less +4 -2
- package/lib/vant.cjs.js +753 -655
- package/lib/vant.es.js +754 -656
- package/lib/vant.js +753 -655
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
- package/skills/use-persagy-vant/references/component-catalog.md +1 -1
- package/skills/use-persagy-vant/references/design-interaction-baseline.md +1 -0
- package/skills/use-persagy-vant/references/element-component-matching.md +1 -0
- package/skills/use-persagy-vant/references/page-recipes.md +1 -0
- package/skills/use-persagy-vant/references/public-style-system.md +6 -0
|
@@ -12,6 +12,17 @@ declare const checkboxPanelProps: {
|
|
|
12
12
|
default: () => never[];
|
|
13
13
|
};
|
|
14
14
|
modelValue: PropType<string[]>;
|
|
15
|
+
searchable: BooleanConstructor;
|
|
16
|
+
searchPlaceholder: StringConstructor;
|
|
17
|
+
filterable: BooleanConstructor;
|
|
18
|
+
filterActive: BooleanConstructor;
|
|
19
|
+
loading: BooleanConstructor;
|
|
20
|
+
finished: BooleanConstructor;
|
|
21
|
+
error: BooleanConstructor;
|
|
22
|
+
lazy: BooleanConstructor;
|
|
23
|
+
loadingText: StringConstructor;
|
|
24
|
+
finishedText: StringConstructor;
|
|
25
|
+
errorText: StringConstructor;
|
|
15
26
|
confirmText: {
|
|
16
27
|
type: PropType<string>;
|
|
17
28
|
default: string;
|
|
@@ -34,6 +45,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
45
|
default: () => never[];
|
|
35
46
|
};
|
|
36
47
|
modelValue: PropType<string[]>;
|
|
48
|
+
searchable: BooleanConstructor;
|
|
49
|
+
searchPlaceholder: StringConstructor;
|
|
50
|
+
filterable: BooleanConstructor;
|
|
51
|
+
filterActive: BooleanConstructor;
|
|
52
|
+
loading: BooleanConstructor;
|
|
53
|
+
finished: BooleanConstructor;
|
|
54
|
+
error: BooleanConstructor;
|
|
55
|
+
lazy: BooleanConstructor;
|
|
56
|
+
loadingText: StringConstructor;
|
|
57
|
+
finishedText: StringConstructor;
|
|
58
|
+
errorText: StringConstructor;
|
|
37
59
|
confirmText: {
|
|
38
60
|
type: PropType<string>;
|
|
39
61
|
default: string;
|
|
@@ -46,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
68
|
type: PropType<string>;
|
|
47
69
|
default: string;
|
|
48
70
|
};
|
|
49
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:show" | "confirm")[], "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
71
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "load" | "update:show" | "confirm" | "filter" | "update:error" | "update:loading")[], "search" | "filter" | "update:modelValue" | "load" | "update:show" | "confirm" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
50
72
|
show: BooleanConstructor;
|
|
51
73
|
title: StringConstructor;
|
|
52
74
|
options: {
|
|
@@ -54,6 +76,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
76
|
default: () => never[];
|
|
55
77
|
};
|
|
56
78
|
modelValue: PropType<string[]>;
|
|
79
|
+
searchable: BooleanConstructor;
|
|
80
|
+
searchPlaceholder: StringConstructor;
|
|
81
|
+
filterable: BooleanConstructor;
|
|
82
|
+
filterActive: BooleanConstructor;
|
|
83
|
+
loading: BooleanConstructor;
|
|
84
|
+
finished: BooleanConstructor;
|
|
85
|
+
error: BooleanConstructor;
|
|
86
|
+
lazy: BooleanConstructor;
|
|
87
|
+
loadingText: StringConstructor;
|
|
88
|
+
finishedText: StringConstructor;
|
|
89
|
+
errorText: StringConstructor;
|
|
57
90
|
confirmText: {
|
|
58
91
|
type: PropType<string>;
|
|
59
92
|
default: string;
|
|
@@ -67,13 +100,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
100
|
default: string;
|
|
68
101
|
};
|
|
69
102
|
}>> & {
|
|
103
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
70
104
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
71
105
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
72
106
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
"onUpdate:error"?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
110
|
+
onFilter?: ((...args: any[]) => any) | undefined;
|
|
73
111
|
}, {
|
|
74
112
|
show: boolean;
|
|
113
|
+
error: boolean;
|
|
114
|
+
loading: boolean;
|
|
75
115
|
options: CheckboxPanelOption[];
|
|
76
116
|
confirmText: string;
|
|
117
|
+
finished: boolean;
|
|
118
|
+
searchable: boolean;
|
|
119
|
+
filterable: boolean;
|
|
120
|
+
filterActive: boolean;
|
|
121
|
+
lazy: boolean;
|
|
77
122
|
selectAllText: string;
|
|
78
123
|
cancelSelectAllText: string;
|
|
79
124
|
}>;
|
|
@@ -25,16 +25,32 @@ var import_utils = require("../utils");
|
|
|
25
25
|
var import_action_sheet = require("../action-sheet");
|
|
26
26
|
var import_nav_bar = require("../nav-bar");
|
|
27
27
|
var import_icon = require("../icon");
|
|
28
|
+
var import_badge = require("../badge");
|
|
28
29
|
var import_cell = require("../cell");
|
|
30
|
+
var import_empty = require("../empty");
|
|
31
|
+
var import_list = require("../list");
|
|
29
32
|
var import_checkbox = require("../checkbox");
|
|
30
33
|
var import_checkbox_group = require("../checkbox-group");
|
|
31
|
-
var
|
|
34
|
+
var import_bottom_action_bar = require("../bottom-action-bar");
|
|
35
|
+
var import_search = require("../search");
|
|
32
36
|
const [name, bem] = (0, import_utils.createNamespace)("checkbox-panel");
|
|
37
|
+
const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
33
38
|
const checkboxPanelProps = {
|
|
34
39
|
show: Boolean,
|
|
35
40
|
title: String,
|
|
36
41
|
options: (0, import_utils.makeArrayProp)(),
|
|
37
42
|
modelValue: Array,
|
|
43
|
+
searchable: Boolean,
|
|
44
|
+
searchPlaceholder: String,
|
|
45
|
+
filterable: Boolean,
|
|
46
|
+
filterActive: Boolean,
|
|
47
|
+
loading: Boolean,
|
|
48
|
+
finished: Boolean,
|
|
49
|
+
error: Boolean,
|
|
50
|
+
lazy: Boolean,
|
|
51
|
+
loadingText: String,
|
|
52
|
+
finishedText: String,
|
|
53
|
+
errorText: String,
|
|
38
54
|
confirmText: (0, import_utils.makeStringProp)("\u786E\u5B9A"),
|
|
39
55
|
selectAllText: (0, import_utils.makeStringProp)("\u5168\u9009"),
|
|
40
56
|
cancelSelectAllText: (0, import_utils.makeStringProp)("\u53D6\u6D88\u5168\u9009")
|
|
@@ -42,12 +58,20 @@ const checkboxPanelProps = {
|
|
|
42
58
|
var stdin_default = (0, import_vue.defineComponent)({
|
|
43
59
|
name,
|
|
44
60
|
props: checkboxPanelProps,
|
|
45
|
-
emits: ["update:show", "update:modelValue", "confirm"],
|
|
61
|
+
emits: ["update:show", "update:modelValue", "update:loading", "update:error", "confirm", "search", "filter", "load"],
|
|
46
62
|
setup(props, {
|
|
47
|
-
emit
|
|
63
|
+
emit,
|
|
64
|
+
slots
|
|
48
65
|
}) {
|
|
66
|
+
const keyword = (0, import_vue.ref)("");
|
|
49
67
|
const selectedValues = (0, import_vue.computed)(() => props.modelValue || []);
|
|
50
|
-
const
|
|
68
|
+
const filteredOptions = (0, import_vue.computed)(() => {
|
|
69
|
+
const query = keyword.value.trim().toLocaleLowerCase();
|
|
70
|
+
if (!query)
|
|
71
|
+
return props.options;
|
|
72
|
+
return props.options.filter((option) => option.label.toLocaleLowerCase().includes(query));
|
|
73
|
+
});
|
|
74
|
+
const selectableOptions = (0, import_vue.computed)(() => filteredOptions.value.filter((option) => !option.disabled));
|
|
51
75
|
const isAllSelected = (0, import_vue.computed)(() => selectableOptions.value.length > 0 && selectableOptions.value.every((option) => selectedValues.value.includes(option.value)));
|
|
52
76
|
const close = () => emit("update:show", false);
|
|
53
77
|
const toggleOption = (option) => {
|
|
@@ -58,11 +82,51 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
58
82
|
index === -1 ? values.push(option.value) : values.splice(index, 1);
|
|
59
83
|
emit("update:modelValue", values);
|
|
60
84
|
};
|
|
61
|
-
const toggleAll = () =>
|
|
85
|
+
const toggleAll = () => {
|
|
86
|
+
const selectableValues = selectableOptions.value.map((option) => option.value);
|
|
87
|
+
const values = isAllSelected.value ? selectedValues.value.filter((value) => !selectableValues.includes(value)) : [.../* @__PURE__ */ new Set([...selectedValues.value, ...selectableValues])];
|
|
88
|
+
emit("update:modelValue", values);
|
|
89
|
+
};
|
|
62
90
|
const confirm = () => {
|
|
63
91
|
emit("confirm", selectedValues.value);
|
|
64
92
|
close();
|
|
65
93
|
};
|
|
94
|
+
const renderOptionLabel = (label) => {
|
|
95
|
+
const query = keyword.value.trim();
|
|
96
|
+
if (!query)
|
|
97
|
+
return label;
|
|
98
|
+
const normalizedQuery = query.toLocaleLowerCase();
|
|
99
|
+
return label.split(new RegExp(`(${escapeRegExp(query)})`, "ig")).map((part) => part.toLocaleLowerCase() === normalizedQuery ? (0, import_vue.createVNode)("span", {
|
|
100
|
+
"class": bem("match")
|
|
101
|
+
}, [part]) : part);
|
|
102
|
+
};
|
|
103
|
+
const renderOptions = () => {
|
|
104
|
+
if (!filteredOptions.value.length) {
|
|
105
|
+
return (0, import_vue.createVNode)(import_empty.Empty, {
|
|
106
|
+
"imageSize": 60,
|
|
107
|
+
"description": "\u6682\u65E0\u5339\u914D\u9009\u9879"
|
|
108
|
+
}, null);
|
|
109
|
+
}
|
|
110
|
+
return (0, import_vue.createVNode)(import_checkbox_group.CheckboxGroup, {
|
|
111
|
+
"modelValue": selectedValues.value,
|
|
112
|
+
"class": bem("card"),
|
|
113
|
+
"onUpdate:modelValue": (value) => emit("update:modelValue", value)
|
|
114
|
+
}, {
|
|
115
|
+
default: () => [filteredOptions.value.map((option) => (0, import_vue.createVNode)(import_cell.Cell, {
|
|
116
|
+
"key": option.value,
|
|
117
|
+
"clickable": !option.disabled,
|
|
118
|
+
"title": option.label,
|
|
119
|
+
"onClick": () => toggleOption(option)
|
|
120
|
+
}, {
|
|
121
|
+
title: () => renderOptionLabel(option.label),
|
|
122
|
+
"right-icon": () => (0, import_vue.createVNode)(import_checkbox.Checkbox, {
|
|
123
|
+
"name": option.value,
|
|
124
|
+
"disabled": option.disabled,
|
|
125
|
+
"onClick": (event) => event.stopPropagation()
|
|
126
|
+
}, null)
|
|
127
|
+
}))]
|
|
128
|
+
});
|
|
129
|
+
};
|
|
66
130
|
return () => (0, import_vue.createVNode)(import_action_sheet.ActionSheet, {
|
|
67
131
|
"show": props.show,
|
|
68
132
|
"class": bem(),
|
|
@@ -82,38 +146,60 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
82
146
|
"size": "22",
|
|
83
147
|
"onClick": close
|
|
84
148
|
}, null),
|
|
85
|
-
right: () =>
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
149
|
+
right: () => {
|
|
150
|
+
if (slots.filter)
|
|
151
|
+
return slots.filter();
|
|
152
|
+
if (!props.filterable)
|
|
153
|
+
return;
|
|
154
|
+
return (0, import_vue.createVNode)("button", {
|
|
155
|
+
"type": "button",
|
|
156
|
+
"class": bem("filter"),
|
|
157
|
+
"aria-label": "\u7B5B\u9009",
|
|
158
|
+
"onClick": () => emit("filter")
|
|
159
|
+
}, [(0, import_vue.createVNode)(import_badge.Badge, {
|
|
160
|
+
"dot": props.filterActive
|
|
161
|
+
}, {
|
|
162
|
+
default: () => [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
163
|
+
"name": "filter-o",
|
|
164
|
+
"size": "22"
|
|
165
|
+
}, null)]
|
|
166
|
+
})]);
|
|
167
|
+
}
|
|
168
|
+
})]), props.searchable && (0, import_vue.createVNode)(import_search.Search, {
|
|
169
|
+
"modelValue": keyword.value,
|
|
170
|
+
"class": bem("search"),
|
|
171
|
+
"shape": "round",
|
|
172
|
+
"inputAlign": "left",
|
|
173
|
+
"placeholder": props.searchPlaceholder || "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD",
|
|
174
|
+
"maxlength": 200,
|
|
175
|
+
"onUpdate:modelValue": (value) => {
|
|
176
|
+
keyword.value = value;
|
|
177
|
+
emit("search", value);
|
|
178
|
+
},
|
|
179
|
+
"onSearch": (value) => emit("search", value)
|
|
180
|
+
}, null), (0, import_vue.createVNode)("div", {
|
|
90
181
|
"class": bem("body")
|
|
91
|
-
}, [(0, import_vue.createVNode)(
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
182
|
+
}, [props.lazy ? (0, import_vue.createVNode)(import_list.List, {
|
|
183
|
+
"loading": props.loading,
|
|
184
|
+
"finished": props.finished,
|
|
185
|
+
"error": props.error,
|
|
186
|
+
"loadingText": props.loadingText,
|
|
187
|
+
"finishedText": props.finishedText,
|
|
188
|
+
"errorText": props.errorText,
|
|
189
|
+
"onUpdate:loading": (value) => emit("update:loading", value),
|
|
190
|
+
"onUpdate:error": (value) => emit("update:error", value),
|
|
191
|
+
"onLoad": () => emit("load")
|
|
95
192
|
}, {
|
|
96
|
-
default: () => [
|
|
97
|
-
|
|
98
|
-
"clickable": !option.disabled,
|
|
99
|
-
"title": option.label,
|
|
100
|
-
"onClick": () => toggleOption(option)
|
|
101
|
-
}, {
|
|
102
|
-
"right-icon": () => (0, import_vue.createVNode)(import_checkbox.Checkbox, {
|
|
103
|
-
"name": option.value,
|
|
104
|
-
"disabled": option.disabled,
|
|
105
|
-
"onClick": (event) => event.stopPropagation()
|
|
106
|
-
}, null)
|
|
107
|
-
}))]
|
|
108
|
-
})]), (0, import_vue.createVNode)("div", {
|
|
193
|
+
default: () => [renderOptions()]
|
|
194
|
+
}) : renderOptions()]), (0, import_vue.createVNode)("div", {
|
|
109
195
|
"class": bem("footer")
|
|
110
|
-
}, [(0, import_vue.createVNode)(
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
})])])]
|
|
196
|
+
}, [(0, import_vue.createVNode)(import_bottom_action_bar.BottomActionBar, {
|
|
197
|
+
"fixed": false,
|
|
198
|
+
"secondaryText": isAllSelected.value ? props.cancelSelectAllText : props.selectAllText,
|
|
199
|
+
"confirmText": props.confirmText,
|
|
200
|
+
"onSecondary": toggleAll,
|
|
201
|
+
"onConfirm": confirm
|
|
202
|
+
}, null)])])]
|
|
117
203
|
});
|
|
118
204
|
}
|
|
119
205
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.van-checkbox-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-checkbox-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;gap:0;padding:0;overflow:hidden}.van-checkbox-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-checkbox-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-checkbox-panel__nav{box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;--van-nav-bar-background-color: var(--van-gray-1)}.van-checkbox-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-checkbox-panel__nav .van-nav-bar__left--slot,.van-checkbox-panel__nav .van-nav-bar__right--slot{padding:0}.van-checkbox-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-checkbox-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-checkbox-
|
|
1
|
+
.van-checkbox-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-gray-1)}.van-checkbox-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;gap:0;padding:0;overflow:hidden}.van-checkbox-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-gray-1)}.van-checkbox-panel__nav-wrapper{flex:none;width:100%;min-width:0;max-width:100%;overflow:hidden}.van-checkbox-panel__nav{box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;--van-nav-bar-background-color: var(--van-gray-1)}.van-checkbox-panel__nav .van-nav-bar__content{box-sizing:border-box;width:100%;overflow:hidden}.van-checkbox-panel__nav .van-nav-bar__left--slot,.van-checkbox-panel__nav .van-nav-bar__right--slot{padding:0}.van-checkbox-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md)}.van-checkbox-panel__nav .van-nav-bar__right--slot{right:var(--van-padding-md)}.van-checkbox-panel__filter{display:flex;align-items:center;justify-content:center;width:34px;height:46px;padding:0;color:inherit;background:transparent;border:0}.van-checkbox-panel__search{--van-search-padding: 8px var(--van-padding-md);--van-search-background-color: var(--van-gray-1);--van-search-content-background-color: var(--van-white)}.van-checkbox-panel__match{color:var(--van-primary-color)}.van-checkbox-panel__body{flex:1;min-height:0;padding:0 var(--van-padding-md);overflow-y:auto}.van-checkbox-panel__card{overflow:hidden;background:var(--van-white);border-radius:var(--van-border-radius-lg)}.van-checkbox-panel__footer{flex:none}.van-checkbox-panel .van-cell{min-height:44px}.van-checkbox-panel .van-checkbox{margin:0}
|
|
@@ -6,6 +6,17 @@ export declare const CheckboxPanel: import("../utils").WithInstall<import("vue")
|
|
|
6
6
|
default: () => never[];
|
|
7
7
|
};
|
|
8
8
|
modelValue: import("vue").PropType<string[]>;
|
|
9
|
+
searchable: BooleanConstructor;
|
|
10
|
+
searchPlaceholder: StringConstructor;
|
|
11
|
+
filterable: BooleanConstructor;
|
|
12
|
+
filterActive: BooleanConstructor;
|
|
13
|
+
loading: BooleanConstructor;
|
|
14
|
+
finished: BooleanConstructor;
|
|
15
|
+
error: BooleanConstructor;
|
|
16
|
+
lazy: BooleanConstructor;
|
|
17
|
+
loadingText: StringConstructor;
|
|
18
|
+
finishedText: StringConstructor;
|
|
19
|
+
errorText: StringConstructor;
|
|
9
20
|
confirmText: {
|
|
10
21
|
type: import("vue").PropType<string>;
|
|
11
22
|
default: string;
|
|
@@ -18,7 +29,7 @@ export declare const CheckboxPanel: import("../utils").WithInstall<import("vue")
|
|
|
18
29
|
type: import("vue").PropType<string>;
|
|
19
30
|
default: string;
|
|
20
31
|
};
|
|
21
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:show" | "confirm")[], "update:modelValue" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "load" | "update:show" | "confirm" | "filter" | "update:error" | "update:loading")[], "search" | "filter" | "update:modelValue" | "load" | "update:show" | "confirm" | "update:error" | "update:loading", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
33
|
show: BooleanConstructor;
|
|
23
34
|
title: StringConstructor;
|
|
24
35
|
options: {
|
|
@@ -26,6 +37,17 @@ export declare const CheckboxPanel: import("../utils").WithInstall<import("vue")
|
|
|
26
37
|
default: () => never[];
|
|
27
38
|
};
|
|
28
39
|
modelValue: import("vue").PropType<string[]>;
|
|
40
|
+
searchable: BooleanConstructor;
|
|
41
|
+
searchPlaceholder: StringConstructor;
|
|
42
|
+
filterable: BooleanConstructor;
|
|
43
|
+
filterActive: BooleanConstructor;
|
|
44
|
+
loading: BooleanConstructor;
|
|
45
|
+
finished: BooleanConstructor;
|
|
46
|
+
error: BooleanConstructor;
|
|
47
|
+
lazy: BooleanConstructor;
|
|
48
|
+
loadingText: StringConstructor;
|
|
49
|
+
finishedText: StringConstructor;
|
|
50
|
+
errorText: StringConstructor;
|
|
29
51
|
confirmText: {
|
|
30
52
|
type: import("vue").PropType<string>;
|
|
31
53
|
default: string;
|
|
@@ -39,13 +61,25 @@ export declare const CheckboxPanel: import("../utils").WithInstall<import("vue")
|
|
|
39
61
|
default: string;
|
|
40
62
|
};
|
|
41
63
|
}>> & {
|
|
64
|
+
onLoad?: ((...args: any[]) => any) | undefined;
|
|
42
65
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
66
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
44
67
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
"onUpdate:error"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
"onUpdate:loading"?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onFilter?: ((...args: any[]) => any) | undefined;
|
|
45
72
|
}, {
|
|
46
73
|
show: boolean;
|
|
74
|
+
error: boolean;
|
|
75
|
+
loading: boolean;
|
|
47
76
|
options: import("./CheckboxPanel").CheckboxPanelOption[];
|
|
48
77
|
confirmText: string;
|
|
78
|
+
finished: boolean;
|
|
79
|
+
searchable: boolean;
|
|
80
|
+
filterable: boolean;
|
|
81
|
+
filterActive: boolean;
|
|
82
|
+
lazy: boolean;
|
|
49
83
|
selectAllText: string;
|
|
50
84
|
cancelSelectAllText: string;
|
|
51
85
|
}>>;
|
|
@@ -17,10 +17,16 @@
|
|
|
17
17
|
.van-nav-bar__left--slot { left: var(--van-padding-md); }
|
|
18
18
|
.van-nav-bar__right--slot { right: var(--van-padding-md); }
|
|
19
19
|
}
|
|
20
|
+
&__filter { display: flex; align-items: center; justify-content: center; width: 34px; height: 46px; padding: 0; color: inherit; background: transparent; border: 0; }
|
|
21
|
+
&__search {
|
|
22
|
+
--van-search-padding: 8px var(--van-padding-md);
|
|
23
|
+
--van-search-background-color: var(--van-gray-1);
|
|
24
|
+
--van-search-content-background-color: var(--van-white);
|
|
25
|
+
}
|
|
26
|
+
&__match { color: var(--van-primary-color); }
|
|
20
27
|
&__body { flex: 1; min-height: 0; padding: 0 var(--van-padding-md); overflow-y: auto; }
|
|
21
28
|
&__card { overflow: hidden; background: var(--van-white); border-radius: var(--van-border-radius-lg); }
|
|
22
|
-
&__footer { flex: none;
|
|
23
|
-
&__select-all { color: var(--van-primary-color); font-weight: var(--van-font-weight-bold); font-size: var(--van-font-size-md); }
|
|
29
|
+
&__footer { flex: none; }
|
|
24
30
|
.van-cell { min-height: 44px; }
|
|
25
31
|
.van-checkbox { margin: 0; }
|
|
26
32
|
}
|
|
@@ -3,6 +3,7 @@ require("../../badge/index.css");
|
|
|
3
3
|
require("../../icon/index.css");
|
|
4
4
|
require("../../tag/index.css");
|
|
5
5
|
require("../../loading/index.css");
|
|
6
|
+
require("../../list/index.css");
|
|
6
7
|
require("../../button/index.css");
|
|
7
8
|
require("../../overlay/index.css");
|
|
8
9
|
require("../../popup/index.css");
|
|
@@ -11,7 +12,11 @@ require("../../nav-bar/index.css");
|
|
|
11
12
|
require("../../action-sheet/index.css");
|
|
12
13
|
require("../../checkbox-group/index.css");
|
|
13
14
|
require("../../checkbox/index.css");
|
|
15
|
+
require("../../bottom-action-bar/index.css");
|
|
14
16
|
require("../../radio-group/index.css");
|
|
15
17
|
require("../../radio/index.css");
|
|
16
18
|
require("../../cell/index.css");
|
|
19
|
+
require("../../field/index.css");
|
|
20
|
+
require("../../search/index.css");
|
|
21
|
+
require("../../empty/index.css");
|
|
17
22
|
require("../index.css");
|
|
@@ -3,6 +3,7 @@ require("../../badge/index.less");
|
|
|
3
3
|
require("../../icon/index.less");
|
|
4
4
|
require("../../tag/index.less");
|
|
5
5
|
require("../../loading/index.less");
|
|
6
|
+
require("../../list/index.less");
|
|
6
7
|
require("../../button/index.less");
|
|
7
8
|
require("../../overlay/index.less");
|
|
8
9
|
require("../../popup/index.less");
|
|
@@ -11,7 +12,11 @@ require("../../nav-bar/index.less");
|
|
|
11
12
|
require("../../action-sheet/index.less");
|
|
12
13
|
require("../../checkbox-group/index.less");
|
|
13
14
|
require("../../checkbox/index.less");
|
|
15
|
+
require("../../bottom-action-bar/index.less");
|
|
14
16
|
require("../../radio-group/index.less");
|
|
15
17
|
require("../../radio/index.less");
|
|
16
18
|
require("../../cell/index.less");
|
|
19
|
+
require("../../field/index.less");
|
|
20
|
+
require("../../search/index.less");
|
|
21
|
+
require("../../empty/index.less");
|
|
17
22
|
require("../index.less");
|