vant 4.9.0 → 4.9.1
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/README.md +5 -4
- package/es/address-list/AddressList.d.ts +13 -13
- package/es/address-list/AddressList.mjs +20 -4
- package/es/address-list/AddressListItem.d.ts +3 -0
- package/es/address-list/AddressListItem.mjs +19 -7
- package/es/address-list/index.d.ts +2 -2
- package/es/address-list/style/index.mjs +1 -0
- package/es/area/utils.mjs +3 -3
- package/es/floating-panel/FloatingPanel.mjs +11 -5
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/stepper/Stepper.mjs +1 -0
- package/es/tabs/index.css +1 -1
- package/lib/address-list/AddressList.d.ts +13 -13
- package/lib/address-list/AddressList.js +19 -3
- package/lib/address-list/AddressListItem.d.ts +3 -0
- package/lib/address-list/AddressListItem.js +19 -7
- package/lib/address-list/index.d.ts +2 -2
- package/lib/address-list/style/index.js +1 -0
- package/lib/area/utils.js +3 -3
- package/lib/floating-panel/FloatingPanel.js +11 -5
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/stepper/Stepper.js +1 -0
- package/lib/tabs/index.css +1 -1
- package/lib/vant.cjs.js +328 -295
- package/lib/vant.es.js +328 -295
- package/lib/vant.js +330 -297
- package/lib/vant.min.js +3 -3
- package/lib/web-types.json +1 -1
- package/package.json +11 -11
package/lib/vant.js
CHANGED
@@ -2369,7 +2369,7 @@
|
|
2369
2369
|
return propRef;
|
2370
2370
|
};
|
2371
2371
|
/**
|
2372
|
-
* @vue/shared v3.4.
|
2372
|
+
* @vue/shared v3.4.27
|
2373
2373
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
2374
2374
|
* @license MIT
|
2375
2375
|
**/
|
@@ -2424,8 +2424,8 @@
|
|
2424
2424
|
}
|
2425
2425
|
for (const key in styles) {
|
2426
2426
|
const value = styles[key];
|
2427
|
-
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
|
2428
2427
|
if (isString(value) || typeof value === "number") {
|
2428
|
+
const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
|
2429
2429
|
ret += `${normalizedKey}:${value};`;
|
2430
2430
|
}
|
2431
2431
|
}
|
@@ -4033,9 +4033,9 @@
|
|
4033
4033
|
const showCounty = +columnsNum > 2;
|
4034
4034
|
const getProvinceChildren = () => {
|
4035
4035
|
if (showCity) {
|
4036
|
-
return placeholder.length ? [
|
4036
|
+
return placeholder.length > 1 ? [
|
4037
4037
|
makeOption(
|
4038
|
-
placeholder[
|
4038
|
+
placeholder[1],
|
4039
4039
|
AREA_EMPTY_CODE,
|
4040
4040
|
showCounty ? [] : void 0
|
4041
4041
|
)
|
@@ -4053,7 +4053,7 @@
|
|
4053
4053
|
if (showCity) {
|
4054
4054
|
const getCityChildren = () => {
|
4055
4055
|
if (showCounty) {
|
4056
|
-
return placeholder.length ? [makeOption(placeholder[
|
4056
|
+
return placeholder.length > 2 ? [makeOption(placeholder[2])] : [];
|
4057
4057
|
}
|
4058
4058
|
};
|
4059
4059
|
Object.keys(city).forEach((code) => {
|
@@ -5791,7 +5791,71 @@
|
|
5791
5791
|
}
|
5792
5792
|
});
|
5793
5793
|
const RadioGroup = withInstall(stdin_default$1q);
|
5794
|
-
const [name$1f, bem$1b] = createNamespace("
|
5794
|
+
const [name$1f, bem$1b] = createNamespace("checkbox-group");
|
5795
|
+
const checkboxGroupProps = {
|
5796
|
+
max: numericProp,
|
5797
|
+
shape: makeStringProp("round"),
|
5798
|
+
disabled: Boolean,
|
5799
|
+
iconSize: numericProp,
|
5800
|
+
direction: String,
|
5801
|
+
modelValue: makeArrayProp(),
|
5802
|
+
checkedColor: String
|
5803
|
+
};
|
5804
|
+
const CHECKBOX_GROUP_KEY = Symbol(name$1f);
|
5805
|
+
var stdin_default$1p = vue.defineComponent({
|
5806
|
+
name: name$1f,
|
5807
|
+
props: checkboxGroupProps,
|
5808
|
+
emits: ["change", "update:modelValue"],
|
5809
|
+
setup(props2, {
|
5810
|
+
emit,
|
5811
|
+
slots
|
5812
|
+
}) {
|
5813
|
+
const {
|
5814
|
+
children,
|
5815
|
+
linkChildren
|
5816
|
+
} = useChildren(CHECKBOX_GROUP_KEY);
|
5817
|
+
const updateValue = (value) => emit("update:modelValue", value);
|
5818
|
+
const toggleAll = (options = {}) => {
|
5819
|
+
if (typeof options === "boolean") {
|
5820
|
+
options = {
|
5821
|
+
checked: options
|
5822
|
+
};
|
5823
|
+
}
|
5824
|
+
const {
|
5825
|
+
checked,
|
5826
|
+
skipDisabled
|
5827
|
+
} = options;
|
5828
|
+
const checkedChildren = children.filter((item) => {
|
5829
|
+
if (!item.props.bindGroup) {
|
5830
|
+
return false;
|
5831
|
+
}
|
5832
|
+
if (item.props.disabled && skipDisabled) {
|
5833
|
+
return item.checked.value;
|
5834
|
+
}
|
5835
|
+
return checked != null ? checked : !item.checked.value;
|
5836
|
+
});
|
5837
|
+
const names = checkedChildren.map((item) => item.name);
|
5838
|
+
updateValue(names);
|
5839
|
+
};
|
5840
|
+
vue.watch(() => props2.modelValue, (value) => emit("change", value));
|
5841
|
+
useExpose({
|
5842
|
+
toggleAll
|
5843
|
+
});
|
5844
|
+
useCustomFieldValue(() => props2.modelValue);
|
5845
|
+
linkChildren({
|
5846
|
+
props: props2,
|
5847
|
+
updateValue
|
5848
|
+
});
|
5849
|
+
return () => {
|
5850
|
+
var _a;
|
5851
|
+
return vue.createVNode("div", {
|
5852
|
+
"class": bem$1b([props2.direction])
|
5853
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
5854
|
+
};
|
5855
|
+
}
|
5856
|
+
});
|
5857
|
+
const CheckboxGroup = withInstall(stdin_default$1p);
|
5858
|
+
const [name$1e, bem$1a] = createNamespace("tag");
|
5795
5859
|
const tagProps = {
|
5796
5860
|
size: String,
|
5797
5861
|
mark: Boolean,
|
@@ -5803,8 +5867,8 @@
|
|
5803
5867
|
textColor: String,
|
5804
5868
|
closeable: Boolean
|
5805
5869
|
};
|
5806
|
-
var stdin_default$
|
5807
|
-
name: name$
|
5870
|
+
var stdin_default$1o = vue.defineComponent({
|
5871
|
+
name: name$1e,
|
5808
5872
|
props: tagProps,
|
5809
5873
|
emits: ["close"],
|
5810
5874
|
setup(props2, {
|
@@ -5847,12 +5911,12 @@
|
|
5847
5911
|
}
|
5848
5912
|
const CloseIcon = closeable && vue.createVNode(Icon, {
|
5849
5913
|
"name": "cross",
|
5850
|
-
"class": [bem$
|
5914
|
+
"class": [bem$1a("close"), HAPTICS_FEEDBACK],
|
5851
5915
|
"onClick": onClose
|
5852
5916
|
}, null);
|
5853
5917
|
return vue.createVNode("span", {
|
5854
5918
|
"style": getStyle(),
|
5855
|
-
"class": bem$
|
5919
|
+
"class": bem$1a([classes, type])
|
5856
5920
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
5857
5921
|
};
|
5858
5922
|
return () => vue.createVNode(vue.Transition, {
|
@@ -5862,7 +5926,7 @@
|
|
5862
5926
|
});
|
5863
5927
|
}
|
5864
5928
|
});
|
5865
|
-
const Tag = withInstall(stdin_default$
|
5929
|
+
const Tag = withInstall(stdin_default$1o);
|
5866
5930
|
const checkerProps = {
|
5867
5931
|
name: unknownProp,
|
5868
5932
|
disabled: Boolean,
|
@@ -5872,7 +5936,7 @@
|
|
5872
5936
|
labelPosition: String,
|
5873
5937
|
labelDisabled: Boolean
|
5874
5938
|
};
|
5875
|
-
var stdin_default$
|
5939
|
+
var stdin_default$1n = vue.defineComponent({
|
5876
5940
|
props: extend({}, checkerProps, {
|
5877
5941
|
bem: makeRequiredProp(Function),
|
5878
5942
|
role: String,
|
@@ -6001,9 +6065,9 @@
|
|
6001
6065
|
const radioProps = extend({}, checkerProps, {
|
6002
6066
|
shape: String
|
6003
6067
|
});
|
6004
|
-
const [name$
|
6005
|
-
var stdin_default$
|
6006
|
-
name: name$
|
6068
|
+
const [name$1d, bem$19] = createNamespace("radio");
|
6069
|
+
var stdin_default$1m = vue.defineComponent({
|
6070
|
+
name: name$1d,
|
6007
6071
|
props: radioProps,
|
6008
6072
|
emits: ["update:modelValue"],
|
6009
6073
|
setup(props2, {
|
@@ -6024,8 +6088,8 @@
|
|
6024
6088
|
emit("update:modelValue", props2.name);
|
6025
6089
|
}
|
6026
6090
|
};
|
6027
|
-
return () => vue.createVNode(stdin_default$
|
6028
|
-
"bem": bem$
|
6091
|
+
return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
|
6092
|
+
"bem": bem$19,
|
6029
6093
|
"role": "radio",
|
6030
6094
|
"parent": parent,
|
6031
6095
|
"checked": checked(),
|
@@ -6033,14 +6097,97 @@
|
|
6033
6097
|
}, props2), pick(slots, ["default", "icon"]));
|
6034
6098
|
}
|
6035
6099
|
});
|
6036
|
-
const Radio = withInstall(stdin_default$
|
6037
|
-
const [name$
|
6038
|
-
|
6039
|
-
|
6100
|
+
const Radio = withInstall(stdin_default$1m);
|
6101
|
+
const [name$1c, bem$18] = createNamespace("checkbox");
|
6102
|
+
const checkboxProps = extend({}, checkerProps, {
|
6103
|
+
shape: String,
|
6104
|
+
bindGroup: truthProp,
|
6105
|
+
indeterminate: {
|
6106
|
+
type: Boolean,
|
6107
|
+
default: null
|
6108
|
+
}
|
6109
|
+
});
|
6110
|
+
var stdin_default$1l = vue.defineComponent({
|
6111
|
+
name: name$1c,
|
6112
|
+
props: checkboxProps,
|
6113
|
+
emits: ["change", "update:modelValue"],
|
6114
|
+
setup(props2, {
|
6115
|
+
emit,
|
6116
|
+
slots
|
6117
|
+
}) {
|
6118
|
+
const {
|
6119
|
+
parent
|
6120
|
+
} = useParent(CHECKBOX_GROUP_KEY);
|
6121
|
+
const setParentValue = (checked2) => {
|
6122
|
+
const {
|
6123
|
+
name: name2
|
6124
|
+
} = props2;
|
6125
|
+
const {
|
6126
|
+
max,
|
6127
|
+
modelValue
|
6128
|
+
} = parent.props;
|
6129
|
+
const value = modelValue.slice();
|
6130
|
+
if (checked2) {
|
6131
|
+
const overlimit = max && value.length >= +max;
|
6132
|
+
if (!overlimit && !value.includes(name2)) {
|
6133
|
+
value.push(name2);
|
6134
|
+
if (props2.bindGroup) {
|
6135
|
+
parent.updateValue(value);
|
6136
|
+
}
|
6137
|
+
}
|
6138
|
+
} else {
|
6139
|
+
const index = value.indexOf(name2);
|
6140
|
+
if (index !== -1) {
|
6141
|
+
value.splice(index, 1);
|
6142
|
+
if (props2.bindGroup) {
|
6143
|
+
parent.updateValue(value);
|
6144
|
+
}
|
6145
|
+
}
|
6146
|
+
}
|
6147
|
+
};
|
6148
|
+
const checked = vue.computed(() => {
|
6149
|
+
if (parent && props2.bindGroup) {
|
6150
|
+
return parent.props.modelValue.indexOf(props2.name) !== -1;
|
6151
|
+
}
|
6152
|
+
return !!props2.modelValue;
|
6153
|
+
});
|
6154
|
+
const toggle = (newValue = !checked.value) => {
|
6155
|
+
if (parent && props2.bindGroup) {
|
6156
|
+
setParentValue(newValue);
|
6157
|
+
} else {
|
6158
|
+
emit("update:modelValue", newValue);
|
6159
|
+
}
|
6160
|
+
if (props2.indeterminate !== null)
|
6161
|
+
emit("change", newValue);
|
6162
|
+
};
|
6163
|
+
vue.watch(() => props2.modelValue, (value) => {
|
6164
|
+
if (props2.indeterminate === null)
|
6165
|
+
emit("change", value);
|
6166
|
+
});
|
6167
|
+
useExpose({
|
6168
|
+
toggle,
|
6169
|
+
props: props2,
|
6170
|
+
checked
|
6171
|
+
});
|
6172
|
+
useCustomFieldValue(() => props2.modelValue);
|
6173
|
+
return () => vue.createVNode(stdin_default$1n, vue.mergeProps({
|
6174
|
+
"bem": bem$18,
|
6175
|
+
"role": "checkbox",
|
6176
|
+
"parent": parent,
|
6177
|
+
"checked": checked.value,
|
6178
|
+
"onToggle": toggle
|
6179
|
+
}, props2), pick(slots, ["default", "icon"]));
|
6180
|
+
}
|
6181
|
+
});
|
6182
|
+
const Checkbox = withInstall(stdin_default$1l);
|
6183
|
+
const [name$1b, bem$17] = createNamespace("address-item");
|
6184
|
+
var stdin_default$1k = vue.defineComponent({
|
6185
|
+
name: name$1b,
|
6040
6186
|
props: {
|
6041
6187
|
address: makeRequiredProp(Object),
|
6042
6188
|
disabled: Boolean,
|
6043
6189
|
switchable: Boolean,
|
6190
|
+
singleChoice: Boolean,
|
6044
6191
|
defaultTagText: String,
|
6045
6192
|
rightIcon: makeStringProp("edit")
|
6046
6193
|
},
|
@@ -6057,7 +6204,7 @@
|
|
6057
6204
|
};
|
6058
6205
|
const renderRightIcon = () => vue.createVNode(Icon, {
|
6059
6206
|
"name": props2.rightIcon,
|
6060
|
-
"class": bem$
|
6207
|
+
"class": bem$17("edit"),
|
6061
6208
|
"onClick": (event) => {
|
6062
6209
|
event.stopPropagation();
|
6063
6210
|
emit("edit");
|
@@ -6072,7 +6219,7 @@
|
|
6072
6219
|
return vue.createVNode(Tag, {
|
6073
6220
|
"type": "primary",
|
6074
6221
|
"round": true,
|
6075
|
-
"class": bem$
|
6222
|
+
"class": bem$17("tag")
|
6076
6223
|
}, {
|
6077
6224
|
default: () => [props2.defaultTagText]
|
6078
6225
|
});
|
@@ -6082,20 +6229,30 @@
|
|
6082
6229
|
const {
|
6083
6230
|
address,
|
6084
6231
|
disabled,
|
6085
|
-
switchable
|
6232
|
+
switchable,
|
6233
|
+
singleChoice
|
6086
6234
|
} = props2;
|
6087
6235
|
const Info = [vue.createVNode("div", {
|
6088
|
-
"class": bem$
|
6236
|
+
"class": bem$17("name")
|
6089
6237
|
}, [`${address.name} ${address.tel}`, renderTag()]), vue.createVNode("div", {
|
6090
|
-
"class": bem$
|
6238
|
+
"class": bem$17("address")
|
6091
6239
|
}, [address.address])];
|
6092
6240
|
if (switchable && !disabled) {
|
6093
|
-
|
6094
|
-
|
6095
|
-
|
6096
|
-
|
6097
|
-
|
6098
|
-
|
6241
|
+
if (singleChoice) {
|
6242
|
+
return vue.createVNode(Radio, {
|
6243
|
+
"name": address.id,
|
6244
|
+
"iconSize": 18
|
6245
|
+
}, {
|
6246
|
+
default: () => [Info]
|
6247
|
+
});
|
6248
|
+
} else {
|
6249
|
+
return vue.createVNode(Checkbox, {
|
6250
|
+
"name": address.id,
|
6251
|
+
"iconSize": 18
|
6252
|
+
}, {
|
6253
|
+
default: () => [Info]
|
6254
|
+
});
|
6255
|
+
}
|
6099
6256
|
}
|
6100
6257
|
return Info;
|
6101
6258
|
};
|
@@ -6105,13 +6262,13 @@
|
|
6105
6262
|
disabled
|
6106
6263
|
} = props2;
|
6107
6264
|
return vue.createVNode("div", {
|
6108
|
-
"class": bem$
|
6265
|
+
"class": bem$17({
|
6109
6266
|
disabled
|
6110
6267
|
}),
|
6111
6268
|
"onClick": onClick
|
6112
6269
|
}, [vue.createVNode(Cell, {
|
6113
6270
|
"border": false,
|
6114
|
-
"titleClass": bem$
|
6271
|
+
"titleClass": bem$17("title")
|
6115
6272
|
}, {
|
6116
6273
|
title: renderContent,
|
6117
6274
|
"right-icon": renderRightIcon
|
@@ -6121,10 +6278,10 @@
|
|
6121
6278
|
};
|
6122
6279
|
}
|
6123
6280
|
});
|
6124
|
-
const [name$
|
6281
|
+
const [name$1a, bem$16, t$h] = createNamespace("address-list");
|
6125
6282
|
const addressListProps = {
|
6126
6283
|
list: makeArrayProp(),
|
6127
|
-
modelValue: numericProp,
|
6284
|
+
modelValue: [...numericProp, Array],
|
6128
6285
|
switchable: truthProp,
|
6129
6286
|
disabledText: String,
|
6130
6287
|
disabledList: makeArrayProp(),
|
@@ -6133,14 +6290,15 @@
|
|
6133
6290
|
defaultTagText: String,
|
6134
6291
|
rightIcon: makeStringProp("edit")
|
6135
6292
|
};
|
6136
|
-
var stdin_default$
|
6137
|
-
name: name$
|
6293
|
+
var stdin_default$1j = vue.defineComponent({
|
6294
|
+
name: name$1a,
|
6138
6295
|
props: addressListProps,
|
6139
6296
|
emits: ["add", "edit", "select", "clickItem", "editDisabled", "selectDisabled", "update:modelValue"],
|
6140
6297
|
setup(props2, {
|
6141
6298
|
slots,
|
6142
6299
|
emit
|
6143
6300
|
}) {
|
6301
|
+
const singleChoice = vue.computed(() => !Array.isArray(props2.modelValue));
|
6144
6302
|
const renderItem = (item, index, disabled) => {
|
6145
6303
|
const onEdit = () => emit(disabled ? "editDisabled" : "edit", item, index);
|
6146
6304
|
const onClick = (event) => emit("clickItem", item, index, {
|
@@ -6149,14 +6307,24 @@
|
|
6149
6307
|
const onSelect = () => {
|
6150
6308
|
emit(disabled ? "selectDisabled" : "select", item, index);
|
6151
6309
|
if (!disabled) {
|
6152
|
-
|
6310
|
+
if (singleChoice.value) {
|
6311
|
+
emit("update:modelValue", item.id);
|
6312
|
+
} else {
|
6313
|
+
const value = props2.modelValue;
|
6314
|
+
if (value.includes(item.id)) {
|
6315
|
+
emit("update:modelValue", value.filter((id) => id !== item.id));
|
6316
|
+
} else {
|
6317
|
+
emit("update:modelValue", [...value, item.id]);
|
6318
|
+
}
|
6319
|
+
}
|
6153
6320
|
}
|
6154
6321
|
};
|
6155
|
-
return vue.createVNode(stdin_default$
|
6322
|
+
return vue.createVNode(stdin_default$1k, {
|
6156
6323
|
"key": item.id,
|
6157
6324
|
"address": item,
|
6158
6325
|
"disabled": disabled,
|
6159
6326
|
"switchable": props2.switchable,
|
6327
|
+
"singleChoice": singleChoice.value,
|
6160
6328
|
"defaultTagText": props2.defaultTagText,
|
6161
6329
|
"rightIcon": props2.rightIcon,
|
6162
6330
|
"onEdit": onEdit,
|
@@ -6173,13 +6341,13 @@
|
|
6173
6341
|
}
|
6174
6342
|
};
|
6175
6343
|
const renderBottom = () => props2.showAddButton ? vue.createVNode("div", {
|
6176
|
-
"class": [bem$
|
6344
|
+
"class": [bem$16("bottom"), "van-safe-area-bottom"]
|
6177
6345
|
}, [vue.createVNode(Button, {
|
6178
6346
|
"round": true,
|
6179
6347
|
"block": true,
|
6180
6348
|
"type": "primary",
|
6181
6349
|
"text": props2.addButtonText || t$h("add"),
|
6182
|
-
"class": bem$
|
6350
|
+
"class": bem$16("add"),
|
6183
6351
|
"onClick": () => emit("add")
|
6184
6352
|
}, null)]) : void 0;
|
6185
6353
|
return () => {
|
@@ -6187,11 +6355,15 @@
|
|
6187
6355
|
const List2 = renderList(props2.list);
|
6188
6356
|
const DisabledList = renderList(props2.disabledList, true);
|
6189
6357
|
const DisabledText = props2.disabledText && vue.createVNode("div", {
|
6190
|
-
"class": bem$
|
6358
|
+
"class": bem$16("disabled-text")
|
6191
6359
|
}, [props2.disabledText]);
|
6192
6360
|
return vue.createVNode("div", {
|
6193
|
-
"class": bem$
|
6194
|
-
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), vue.createVNode(
|
6361
|
+
"class": bem$16()
|
6362
|
+
}, [(_a = slots.top) == null ? void 0 : _a.call(slots), !singleChoice.value && Array.isArray(props2.modelValue) ? vue.createVNode(CheckboxGroup, {
|
6363
|
+
"modelValue": props2.modelValue
|
6364
|
+
}, {
|
6365
|
+
default: () => [List2]
|
6366
|
+
}) : vue.createVNode(RadioGroup, {
|
6195
6367
|
"modelValue": props2.modelValue
|
6196
6368
|
}, {
|
6197
6369
|
default: () => [List2]
|
@@ -6199,7 +6371,7 @@
|
|
6199
6371
|
};
|
6200
6372
|
}
|
6201
6373
|
});
|
6202
|
-
const AddressList = withInstall(stdin_default$
|
6374
|
+
const AddressList = withInstall(stdin_default$1j);
|
6203
6375
|
const hasIntersectionObserver = inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype;
|
6204
6376
|
const modeType = {
|
6205
6377
|
event: "event",
|
@@ -6352,7 +6524,7 @@
|
|
6352
6524
|
this.caches.shift();
|
6353
6525
|
}
|
6354
6526
|
}
|
6355
|
-
const [name$
|
6527
|
+
const [name$19, bem$15] = createNamespace("back-top");
|
6356
6528
|
const backTopProps = {
|
6357
6529
|
right: numericProp,
|
6358
6530
|
bottom: numericProp,
|
@@ -6365,8 +6537,8 @@
|
|
6365
6537
|
default: "body"
|
6366
6538
|
}
|
6367
6539
|
};
|
6368
|
-
var stdin_default$
|
6369
|
-
name: name$
|
6540
|
+
var stdin_default$1i = vue.defineComponent({
|
6541
|
+
name: name$19,
|
6370
6542
|
inheritAttrs: false,
|
6371
6543
|
props: backTopProps,
|
6372
6544
|
emits: ["click"],
|
@@ -6435,19 +6607,19 @@
|
|
6435
6607
|
return () => {
|
6436
6608
|
const Content = vue.createVNode("div", vue.mergeProps({
|
6437
6609
|
"ref": !props2.teleport ? root : void 0,
|
6438
|
-
"class": bem$
|
6610
|
+
"class": bem$15({
|
6439
6611
|
active: show.value
|
6440
6612
|
}),
|
6441
6613
|
"style": style.value,
|
6442
6614
|
"onClick": onClick
|
6443
6615
|
}, attrs), [slots.default ? slots.default() : vue.createVNode(Icon, {
|
6444
6616
|
"name": "back-top",
|
6445
|
-
"class": bem$
|
6617
|
+
"class": bem$15("icon")
|
6446
6618
|
}, null)]);
|
6447
6619
|
if (props2.teleport) {
|
6448
6620
|
return [vue.createVNode("div", {
|
6449
6621
|
"ref": root,
|
6450
|
-
"class": bem$
|
6622
|
+
"class": bem$15("placeholder")
|
6451
6623
|
}, null), vue.createVNode(vue.Teleport, {
|
6452
6624
|
"to": props2.teleport
|
6453
6625
|
}, {
|
@@ -6458,7 +6630,7 @@
|
|
6458
6630
|
};
|
6459
6631
|
}
|
6460
6632
|
});
|
6461
|
-
const BackTop = withInstall(stdin_default$
|
6633
|
+
const BackTop = withInstall(stdin_default$1i);
|
6462
6634
|
var __async = (__this, __arguments, generator) => {
|
6463
6635
|
return new Promise((resolve, reject) => {
|
6464
6636
|
var fulfilled = (value) => {
|
@@ -6487,9 +6659,9 @@
|
|
6487
6659
|
delay: makeNumberProp(300),
|
6488
6660
|
modelValue: makeArrayProp()
|
6489
6661
|
};
|
6490
|
-
const [name$
|
6491
|
-
var stdin_default$
|
6492
|
-
name: name$
|
6662
|
+
const [name$18, bem$14] = createNamespace("barrage");
|
6663
|
+
var stdin_default$1h = vue.defineComponent({
|
6664
|
+
name: name$18,
|
6493
6665
|
props: barrageProps,
|
6494
6666
|
emits: ["update:modelValue"],
|
6495
6667
|
setup(props2, {
|
@@ -6497,7 +6669,7 @@
|
|
6497
6669
|
slots
|
6498
6670
|
}) {
|
6499
6671
|
const barrageWrapper = vue.ref();
|
6500
|
-
const className = bem$
|
6672
|
+
const className = bem$14("item");
|
6501
6673
|
const total = vue.ref(0);
|
6502
6674
|
const barrageItems = [];
|
6503
6675
|
const createBarrageItem = (text, delay = props2.delay) => {
|
@@ -6578,15 +6750,15 @@
|
|
6578
6750
|
return () => {
|
6579
6751
|
var _a;
|
6580
6752
|
return vue.createVNode("div", {
|
6581
|
-
"class": bem$
|
6753
|
+
"class": bem$14(),
|
6582
6754
|
"ref": barrageWrapper,
|
6583
6755
|
"style": rootStyle.value
|
6584
6756
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
6585
6757
|
};
|
6586
6758
|
}
|
6587
6759
|
});
|
6588
|
-
const Barrage = withInstall(stdin_default$
|
6589
|
-
const [name$
|
6760
|
+
const Barrage = withInstall(stdin_default$1h);
|
6761
|
+
const [name$17, bem$13, t$g] = createNamespace("calendar");
|
6590
6762
|
const formatMonthTitle = (date) => t$g("monthTitle", date.getFullYear(), date.getMonth() + 1);
|
6591
6763
|
function compareMonth(date1, date2) {
|
6592
6764
|
const year1 = date1.getFullYear();
|
@@ -6680,9 +6852,9 @@
|
|
6680
6852
|
}
|
6681
6853
|
return value;
|
6682
6854
|
});
|
6683
|
-
const [name$
|
6684
|
-
var stdin_default$
|
6685
|
-
name: name$
|
6855
|
+
const [name$16] = createNamespace("calendar-day");
|
6856
|
+
var stdin_default$1g = vue.defineComponent({
|
6857
|
+
name: name$16,
|
6686
6858
|
props: {
|
6687
6859
|
item: makeRequiredProp(Object),
|
6688
6860
|
color: String,
|
@@ -6746,7 +6918,7 @@
|
|
6746
6918
|
} = props2.item;
|
6747
6919
|
if (topInfo || slots["top-info"]) {
|
6748
6920
|
return vue.createVNode("div", {
|
6749
|
-
"class": bem$
|
6921
|
+
"class": bem$13("top-info")
|
6750
6922
|
}, [slots["top-info"] ? slots["top-info"](props2.item) : topInfo]);
|
6751
6923
|
}
|
6752
6924
|
};
|
@@ -6756,7 +6928,7 @@
|
|
6756
6928
|
} = props2.item;
|
6757
6929
|
if (bottomInfo || slots["bottom-info"]) {
|
6758
6930
|
return vue.createVNode("div", {
|
6759
|
-
"class": bem$
|
6931
|
+
"class": bem$13("bottom-info")
|
6760
6932
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
6761
6933
|
}
|
6762
6934
|
};
|
@@ -6773,7 +6945,7 @@
|
|
6773
6945
|
const Nodes = [renderTopInfo(), text, renderBottomInfo()];
|
6774
6946
|
if (type === "selected") {
|
6775
6947
|
return vue.createVNode("div", {
|
6776
|
-
"class": bem$
|
6948
|
+
"class": bem$13("selected-day"),
|
6777
6949
|
"style": {
|
6778
6950
|
width: rowHeight,
|
6779
6951
|
height: rowHeight,
|
@@ -6790,21 +6962,21 @@
|
|
6790
6962
|
} = props2.item;
|
6791
6963
|
if (type === "placeholder") {
|
6792
6964
|
return vue.createVNode("div", {
|
6793
|
-
"class": bem$
|
6965
|
+
"class": bem$13("day"),
|
6794
6966
|
"style": style.value
|
6795
6967
|
}, null);
|
6796
6968
|
}
|
6797
6969
|
return vue.createVNode("div", {
|
6798
6970
|
"role": "gridcell",
|
6799
6971
|
"style": style.value,
|
6800
|
-
"class": [bem$
|
6972
|
+
"class": [bem$13("day", type), className],
|
6801
6973
|
"tabindex": type === "disabled" ? void 0 : -1,
|
6802
6974
|
"onClick": onClick
|
6803
6975
|
}, [renderContent()]);
|
6804
6976
|
};
|
6805
6977
|
}
|
6806
6978
|
});
|
6807
|
-
const [name$
|
6979
|
+
const [name$15] = createNamespace("calendar-month");
|
6808
6980
|
const calendarMonthProps = {
|
6809
6981
|
date: makeRequiredProp(Date),
|
6810
6982
|
type: String,
|
@@ -6821,8 +6993,8 @@
|
|
6821
6993
|
showMonthTitle: Boolean,
|
6822
6994
|
firstDayOfWeek: Number
|
6823
6995
|
};
|
6824
|
-
var stdin_default$
|
6825
|
-
name: name$
|
6996
|
+
var stdin_default$1f = vue.defineComponent({
|
6997
|
+
name: name$15,
|
6826
6998
|
props: calendarMonthProps,
|
6827
6999
|
emits: ["click", "clickDisabledDate"],
|
6828
7000
|
setup(props2, {
|
@@ -6929,7 +7101,7 @@
|
|
6929
7101
|
const renderTitle = () => {
|
6930
7102
|
if (props2.showMonthTitle) {
|
6931
7103
|
return vue.createVNode("div", {
|
6932
|
-
"class": bem$
|
7104
|
+
"class": bem$13("month-title")
|
6933
7105
|
}, [slots["month-title"] ? slots["month-title"]({
|
6934
7106
|
date: props2.date,
|
6935
7107
|
text: title.value
|
@@ -6939,7 +7111,7 @@
|
|
6939
7111
|
const renderMark = () => {
|
6940
7112
|
if (props2.showMark && shouldRender.value) {
|
6941
7113
|
return vue.createVNode("div", {
|
6942
|
-
"class": bem$
|
7114
|
+
"class": bem$13("month-mark")
|
6943
7115
|
}, [props2.date.getMonth() + 1]);
|
6944
7116
|
}
|
6945
7117
|
};
|
@@ -6979,7 +7151,7 @@
|
|
6979
7151
|
setScrollTop(body, daysRect.top + rowOffset + body.scrollTop - useRect(body).top);
|
6980
7152
|
}
|
6981
7153
|
};
|
6982
|
-
const renderDay = (item, index) => vue.createVNode(stdin_default$
|
7154
|
+
const renderDay = (item, index) => vue.createVNode(stdin_default$1g, {
|
6983
7155
|
"item": item,
|
6984
7156
|
"index": index,
|
6985
7157
|
"color": props2.color,
|
@@ -6991,7 +7163,7 @@
|
|
6991
7163
|
const renderDays = () => vue.createVNode("div", {
|
6992
7164
|
"ref": daysRef,
|
6993
7165
|
"role": "grid",
|
6994
|
-
"class": bem$
|
7166
|
+
"class": bem$13("days")
|
6995
7167
|
}, [renderMark(), (shouldRender.value ? days : placeholders).value.map(renderDay)]);
|
6996
7168
|
useExpose({
|
6997
7169
|
getTitle,
|
@@ -7001,14 +7173,14 @@
|
|
7001
7173
|
disabledDays
|
7002
7174
|
});
|
7003
7175
|
return () => vue.createVNode("div", {
|
7004
|
-
"class": bem$
|
7176
|
+
"class": bem$13("month"),
|
7005
7177
|
"ref": monthRef
|
7006
7178
|
}, [renderTitle(), renderDays()]);
|
7007
7179
|
}
|
7008
7180
|
});
|
7009
|
-
const [name$
|
7010
|
-
var stdin_default$
|
7011
|
-
name: name$
|
7181
|
+
const [name$14] = createNamespace("calendar-header");
|
7182
|
+
var stdin_default$1e = vue.defineComponent({
|
7183
|
+
name: name$14,
|
7012
7184
|
props: {
|
7013
7185
|
date: Date,
|
7014
7186
|
minDate: Date,
|
@@ -7046,7 +7218,7 @@
|
|
7046
7218
|
const text = props2.title || t$g("title");
|
7047
7219
|
const title = slots.title ? slots.title() : text;
|
7048
7220
|
return vue.createVNode("div", {
|
7049
|
-
"class": bem$
|
7221
|
+
"class": bem$13("header-title")
|
7050
7222
|
}, [title]);
|
7051
7223
|
}
|
7052
7224
|
};
|
@@ -7063,7 +7235,7 @@
|
|
7063
7235
|
const onMonthChange = () => onPanelChange((isNext ? getNextMonth : getPrevMonth)(props2.date));
|
7064
7236
|
const onYearChange = () => onPanelChange((isNext ? getNextYear : getPrevYear)(props2.date));
|
7065
7237
|
const MonthAction = vue.createVNode("view", {
|
7066
|
-
"class": bem$
|
7238
|
+
"class": bem$13("header-action", {
|
7067
7239
|
disabled: monthDisabled
|
7068
7240
|
}),
|
7069
7241
|
"onClick": monthDisabled ? void 0 : onMonthChange
|
@@ -7076,7 +7248,7 @@
|
|
7076
7248
|
"name": monthIconName
|
7077
7249
|
}, null)]);
|
7078
7250
|
const YearAction = showYearAction && vue.createVNode("view", {
|
7079
|
-
"class": bem$
|
7251
|
+
"class": bem$13("header-action", {
|
7080
7252
|
disabled: yearDisabled
|
7081
7253
|
}),
|
7082
7254
|
"onClick": yearDisabled ? void 0 : onYearChange
|
@@ -7098,12 +7270,12 @@
|
|
7098
7270
|
}) : props2.subtitle;
|
7099
7271
|
const canSwitch = props2.switchMode !== "none";
|
7100
7272
|
return vue.createVNode("div", {
|
7101
|
-
"class": bem$
|
7273
|
+
"class": bem$13("header-subtitle", {
|
7102
7274
|
"with-swicth": canSwitch
|
7103
7275
|
}),
|
7104
7276
|
"onClick": onClickSubtitle
|
7105
7277
|
}, [canSwitch ? [renderAction(), vue.createVNode("div", {
|
7106
|
-
"class": bem$
|
7278
|
+
"class": bem$13("header-subtitle-text")
|
7107
7279
|
}, [title]), renderAction(true)] : title]);
|
7108
7280
|
}
|
7109
7281
|
};
|
@@ -7114,13 +7286,13 @@
|
|
7114
7286
|
const weekdays = t$g("weekdays");
|
7115
7287
|
const renderWeekDays2 = [...weekdays.slice(firstDayOfWeek, 7), ...weekdays.slice(0, firstDayOfWeek)];
|
7116
7288
|
return vue.createVNode("div", {
|
7117
|
-
"class": bem$
|
7289
|
+
"class": bem$13("weekdays")
|
7118
7290
|
}, [renderWeekDays2.map((text) => vue.createVNode("span", {
|
7119
|
-
"class": bem$
|
7291
|
+
"class": bem$13("weekday")
|
7120
7292
|
}, [text]))]);
|
7121
7293
|
};
|
7122
7294
|
return () => vue.createVNode("div", {
|
7123
|
-
"class": bem$
|
7295
|
+
"class": bem$13("header")
|
7124
7296
|
}, [renderTitle(), renderSubtitle(), renderWeekDays()]);
|
7125
7297
|
}
|
7126
7298
|
});
|
@@ -7167,8 +7339,8 @@
|
|
7167
7339
|
validator: (val) => val >= 0 && val <= 6
|
7168
7340
|
}
|
7169
7341
|
};
|
7170
|
-
var stdin_default$
|
7171
|
-
name: name$
|
7342
|
+
var stdin_default$1d = vue.defineComponent({
|
7343
|
+
name: name$17,
|
7172
7344
|
props: calendarProps,
|
7173
7345
|
emits: ["select", "confirm", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle", "clickDisabledDate", "panelChange"],
|
7174
7346
|
setup(props2, {
|
@@ -7458,7 +7630,7 @@
|
|
7458
7630
|
const updateShow = (value) => emit("update:show", value);
|
7459
7631
|
const renderMonth = (date, index) => {
|
7460
7632
|
const showMonthTitle = index !== 0 || !props2.showSubtitle;
|
7461
|
-
return vue.createVNode(stdin_default$
|
7633
|
+
return vue.createVNode(stdin_default$1f, vue.mergeProps({
|
7462
7634
|
"ref": canSwitch.value ? currentMonthRef : setMonthRefs(index),
|
7463
7635
|
"date": date,
|
7464
7636
|
"currentDate": currentDate.value,
|
@@ -7485,7 +7657,7 @@
|
|
7485
7657
|
"block": true,
|
7486
7658
|
"type": "primary",
|
7487
7659
|
"color": props2.color,
|
7488
|
-
"class": bem$
|
7660
|
+
"class": bem$13("confirm"),
|
7489
7661
|
"disabled": disabled,
|
7490
7662
|
"nativeType": "button",
|
7491
7663
|
"onClick": onConfirm
|
@@ -7497,15 +7669,15 @@
|
|
7497
7669
|
}
|
7498
7670
|
};
|
7499
7671
|
const renderFooter = () => vue.createVNode("div", {
|
7500
|
-
"class": [bem$
|
7672
|
+
"class": [bem$13("footer"), {
|
7501
7673
|
"van-safe-area-bottom": props2.safeAreaInsetBottom
|
7502
7674
|
}]
|
7503
7675
|
}, [renderFooterButton()]);
|
7504
7676
|
const renderCalendar = () => {
|
7505
7677
|
var _a, _b;
|
7506
7678
|
return vue.createVNode("div", {
|
7507
|
-
"class": bem$
|
7508
|
-
}, [vue.createVNode(stdin_default$
|
7679
|
+
"class": bem$13()
|
7680
|
+
}, [vue.createVNode(stdin_default$1e, {
|
7509
7681
|
"date": (_a = currentMonthRef.value) == null ? void 0 : _a.date,
|
7510
7682
|
"maxDate": maxDate.value,
|
7511
7683
|
"minDate": minDate.value,
|
@@ -7519,7 +7691,7 @@
|
|
7519
7691
|
"onPanelChange": onPanelChange
|
7520
7692
|
}, pick(slots, ["title", "subtitle", "prev-month", "prev-year", "next-month", "next-year"])), vue.createVNode("div", {
|
7521
7693
|
"ref": bodyRef,
|
7522
|
-
"class": bem$
|
7694
|
+
"class": bem$13("body"),
|
7523
7695
|
"onScroll": canSwitch.value ? void 0 : onScroll
|
7524
7696
|
}, [canSwitch.value ? renderMonth(currentPanelDate.value, 0) : months.value.map(renderMonth)]), renderFooter()]);
|
7525
7697
|
};
|
@@ -7539,7 +7711,7 @@
|
|
7539
7711
|
if (props2.poppable) {
|
7540
7712
|
return vue.createVNode(Popup, {
|
7541
7713
|
"show": props2.show,
|
7542
|
-
"class": bem$
|
7714
|
+
"class": bem$13("popup"),
|
7543
7715
|
"round": props2.round,
|
7544
7716
|
"position": props2.position,
|
7545
7717
|
"closeable": props2.showTitle || props2.showSubtitle,
|
@@ -7556,8 +7728,8 @@
|
|
7556
7728
|
};
|
7557
7729
|
}
|
7558
7730
|
});
|
7559
|
-
const Calendar = withInstall(stdin_default$
|
7560
|
-
const [name$
|
7731
|
+
const Calendar = withInstall(stdin_default$1d);
|
7732
|
+
const [name$13, bem$12] = createNamespace("image");
|
7561
7733
|
const imageProps = {
|
7562
7734
|
src: String,
|
7563
7735
|
alt: String,
|
@@ -7578,8 +7750,8 @@
|
|
7578
7750
|
crossorigin: String,
|
7579
7751
|
referrerpolicy: String
|
7580
7752
|
};
|
7581
|
-
var stdin_default$
|
7582
|
-
name: name$
|
7753
|
+
var stdin_default$1c = vue.defineComponent({
|
7754
|
+
name: name$13,
|
7583
7755
|
props: imageProps,
|
7584
7756
|
emits: ["load", "error"],
|
7585
7757
|
setup(props2, {
|
@@ -7640,13 +7812,13 @@
|
|
7640
7812
|
const renderPlaceholder = () => {
|
7641
7813
|
if (loading.value && props2.showLoading) {
|
7642
7814
|
return vue.createVNode("div", {
|
7643
|
-
"class": bem$
|
7644
|
-
}, [renderIcon(props2.loadingIcon, bem$
|
7815
|
+
"class": bem$12("loading")
|
7816
|
+
}, [renderIcon(props2.loadingIcon, bem$12("loading-icon"), slots.loading)]);
|
7645
7817
|
}
|
7646
7818
|
if (error.value && props2.showError) {
|
7647
7819
|
return vue.createVNode("div", {
|
7648
|
-
"class": bem$
|
7649
|
-
}, [renderIcon(props2.errorIcon, bem$
|
7820
|
+
"class": bem$12("error")
|
7821
|
+
}, [renderIcon(props2.errorIcon, bem$12("error-icon"), slots.error)]);
|
7650
7822
|
}
|
7651
7823
|
};
|
7652
7824
|
const renderImage = () => {
|
@@ -7655,7 +7827,7 @@
|
|
7655
7827
|
}
|
7656
7828
|
const attrs = {
|
7657
7829
|
alt: props2.alt,
|
7658
|
-
class: bem$
|
7830
|
+
class: bem$12("img"),
|
7659
7831
|
style: {
|
7660
7832
|
objectFit: props2.fit,
|
7661
7833
|
objectPosition: props2.position
|
@@ -7715,7 +7887,7 @@
|
|
7715
7887
|
return () => {
|
7716
7888
|
var _a;
|
7717
7889
|
return vue.createVNode("div", {
|
7718
|
-
"class": bem$
|
7890
|
+
"class": bem$12({
|
7719
7891
|
round: props2.round,
|
7720
7892
|
block: props2.block
|
7721
7893
|
}),
|
@@ -7724,8 +7896,8 @@
|
|
7724
7896
|
};
|
7725
7897
|
}
|
7726
7898
|
});
|
7727
|
-
const Image$1 = withInstall(stdin_default$
|
7728
|
-
const [name$
|
7899
|
+
const Image$1 = withInstall(stdin_default$1c);
|
7900
|
+
const [name$12, bem$11] = createNamespace("card");
|
7729
7901
|
const cardProps = {
|
7730
7902
|
tag: String,
|
7731
7903
|
num: numericProp,
|
@@ -7739,8 +7911,8 @@
|
|
7739
7911
|
thumbLink: String,
|
7740
7912
|
originPrice: numericProp
|
7741
7913
|
};
|
7742
|
-
var stdin_default$
|
7743
|
-
name: name$
|
7914
|
+
var stdin_default$1b = vue.defineComponent({
|
7915
|
+
name: name$12,
|
7744
7916
|
props: cardProps,
|
7745
7917
|
emits: ["clickThumb"],
|
7746
7918
|
setup(props2, {
|
@@ -7753,14 +7925,14 @@
|
|
7753
7925
|
}
|
7754
7926
|
if (props2.title) {
|
7755
7927
|
return vue.createVNode("div", {
|
7756
|
-
"class": [bem$
|
7928
|
+
"class": [bem$11("title"), "van-multi-ellipsis--l2"]
|
7757
7929
|
}, [props2.title]);
|
7758
7930
|
}
|
7759
7931
|
};
|
7760
7932
|
const renderThumbTag = () => {
|
7761
7933
|
if (slots.tag || props2.tag) {
|
7762
7934
|
return vue.createVNode("div", {
|
7763
|
-
"class": bem$
|
7935
|
+
"class": bem$11("tag")
|
7764
7936
|
}, [slots.tag ? slots.tag() : vue.createVNode(Tag, {
|
7765
7937
|
"mark": true,
|
7766
7938
|
"type": "primary"
|
@@ -7785,7 +7957,7 @@
|
|
7785
7957
|
if (slots.thumb || props2.thumb) {
|
7786
7958
|
return vue.createVNode("a", {
|
7787
7959
|
"href": props2.thumbLink,
|
7788
|
-
"class": bem$
|
7960
|
+
"class": bem$11("thumb"),
|
7789
7961
|
"onClick": (event) => emit("clickThumb", event)
|
7790
7962
|
}, [renderThumbImage(), renderThumbTag()]);
|
7791
7963
|
}
|
@@ -7796,18 +7968,18 @@
|
|
7796
7968
|
}
|
7797
7969
|
if (props2.desc) {
|
7798
7970
|
return vue.createVNode("div", {
|
7799
|
-
"class": [bem$
|
7971
|
+
"class": [bem$11("desc"), "van-ellipsis"]
|
7800
7972
|
}, [props2.desc]);
|
7801
7973
|
}
|
7802
7974
|
};
|
7803
7975
|
const renderPriceText = () => {
|
7804
7976
|
const priceArr = props2.price.toString().split(".");
|
7805
7977
|
return vue.createVNode("div", null, [vue.createVNode("span", {
|
7806
|
-
"class": bem$
|
7978
|
+
"class": bem$11("price-currency")
|
7807
7979
|
}, [props2.currency]), vue.createVNode("span", {
|
7808
|
-
"class": bem$
|
7980
|
+
"class": bem$11("price-integer")
|
7809
7981
|
}, [priceArr[0]]), vue.createTextVNode("."), vue.createVNode("span", {
|
7810
|
-
"class": bem$
|
7982
|
+
"class": bem$11("price-decimal")
|
7811
7983
|
}, [priceArr[1]])]);
|
7812
7984
|
};
|
7813
7985
|
return () => {
|
@@ -7817,34 +7989,34 @@
|
|
7817
7989
|
const showOriginPrice = slots["origin-price"] || isDef(props2.originPrice);
|
7818
7990
|
const showBottom = showNum || showPrice || showOriginPrice || slots.bottom;
|
7819
7991
|
const Price = showPrice && vue.createVNode("div", {
|
7820
|
-
"class": bem$
|
7992
|
+
"class": bem$11("price")
|
7821
7993
|
}, [slots.price ? slots.price() : renderPriceText()]);
|
7822
7994
|
const OriginPrice = showOriginPrice && vue.createVNode("div", {
|
7823
|
-
"class": bem$
|
7995
|
+
"class": bem$11("origin-price")
|
7824
7996
|
}, [slots["origin-price"] ? slots["origin-price"]() : `${props2.currency} ${props2.originPrice}`]);
|
7825
7997
|
const Num = showNum && vue.createVNode("div", {
|
7826
|
-
"class": bem$
|
7998
|
+
"class": bem$11("num")
|
7827
7999
|
}, [slots.num ? slots.num() : `x${props2.num}`]);
|
7828
8000
|
const Footer = slots.footer && vue.createVNode("div", {
|
7829
|
-
"class": bem$
|
8001
|
+
"class": bem$11("footer")
|
7830
8002
|
}, [slots.footer()]);
|
7831
8003
|
const Bottom = showBottom && vue.createVNode("div", {
|
7832
|
-
"class": bem$
|
8004
|
+
"class": bem$11("bottom")
|
7833
8005
|
}, [(_a = slots["price-top"]) == null ? void 0 : _a.call(slots), Price, OriginPrice, Num, (_b = slots.bottom) == null ? void 0 : _b.call(slots)]);
|
7834
8006
|
return vue.createVNode("div", {
|
7835
|
-
"class": bem$
|
8007
|
+
"class": bem$11()
|
7836
8008
|
}, [vue.createVNode("div", {
|
7837
|
-
"class": bem$
|
8009
|
+
"class": bem$11("header")
|
7838
8010
|
}, [renderThumb(), vue.createVNode("div", {
|
7839
|
-
"class": bem$
|
8011
|
+
"class": bem$11("content", {
|
7840
8012
|
centered: props2.centered
|
7841
8013
|
})
|
7842
8014
|
}, [vue.createVNode("div", null, [renderTitle(), renderDesc(), (_c = slots.tags) == null ? void 0 : _c.call(slots)]), Bottom])]), Footer]);
|
7843
8015
|
};
|
7844
8016
|
}
|
7845
8017
|
});
|
7846
|
-
const Card = withInstall(stdin_default$
|
7847
|
-
const [name$
|
8018
|
+
const Card = withInstall(stdin_default$1b);
|
8019
|
+
const [name$11, bem$10, t$f] = createNamespace("cascader");
|
7848
8020
|
const cascaderProps = {
|
7849
8021
|
title: String,
|
7850
8022
|
options: makeArrayProp(),
|
@@ -7857,8 +8029,8 @@
|
|
7857
8029
|
placeholder: String,
|
7858
8030
|
activeColor: String
|
7859
8031
|
};
|
7860
|
-
var stdin_default$
|
7861
|
-
name: name$
|
8032
|
+
var stdin_default$1a = vue.defineComponent({
|
8033
|
+
name: name$11,
|
7862
8034
|
props: cascaderProps,
|
7863
8035
|
emits: ["close", "change", "finish", "clickTab", "update:modelValue"],
|
7864
8036
|
setup(props2, {
|
@@ -7967,12 +8139,12 @@
|
|
7967
8139
|
title
|
7968
8140
|
}) => emit("clickTab", name2, title);
|
7969
8141
|
const renderHeader = () => props2.showHeader ? vue.createVNode("div", {
|
7970
|
-
"class": bem$
|
8142
|
+
"class": bem$10("header")
|
7971
8143
|
}, [vue.createVNode("h2", {
|
7972
|
-
"class": bem$
|
8144
|
+
"class": bem$10("title")
|
7973
8145
|
}, [slots.title ? slots.title() : props2.title]), props2.closeable ? vue.createVNode(Icon, {
|
7974
8146
|
"name": props2.closeIcon,
|
7975
|
-
"class": [bem$
|
8147
|
+
"class": [bem$10("close-icon"), HAPTICS_FEEDBACK],
|
7976
8148
|
"onClick": onClose
|
7977
8149
|
}, null) : null]) : null;
|
7978
8150
|
const renderOption = (option, selectedOption, tabIndex) => {
|
@@ -7988,7 +8160,7 @@
|
|
7988
8160
|
return vue.createVNode("li", {
|
7989
8161
|
"ref": selected ? setSelectedElementRefs(tabIndex) : void 0,
|
7990
8162
|
"role": "menuitemradio",
|
7991
|
-
"class": [bem$
|
8163
|
+
"class": [bem$10("option", {
|
7992
8164
|
selected,
|
7993
8165
|
disabled
|
7994
8166
|
}), option.className],
|
@@ -8001,12 +8173,12 @@
|
|
8001
8173
|
"onClick": () => onSelect(option, tabIndex)
|
8002
8174
|
}, [Text, selected ? vue.createVNode(Icon, {
|
8003
8175
|
"name": "success",
|
8004
|
-
"class": bem$
|
8176
|
+
"class": bem$10("selected-icon")
|
8005
8177
|
}, null) : null]);
|
8006
8178
|
};
|
8007
8179
|
const renderOptions = (options, selectedOption, tabIndex) => vue.createVNode("ul", {
|
8008
8180
|
"role": "menu",
|
8009
|
-
"class": bem$
|
8181
|
+
"class": bem$10("options")
|
8010
8182
|
}, [options.map((option) => renderOption(option, selectedOption, tabIndex))]);
|
8011
8183
|
const renderTab = (tab, tabIndex) => {
|
8012
8184
|
const {
|
@@ -8017,7 +8189,7 @@
|
|
8017
8189
|
const title = selected ? selected[textKey] : placeholder;
|
8018
8190
|
return vue.createVNode(Tab, {
|
8019
8191
|
"title": title,
|
8020
|
-
"titleClass": bem$
|
8192
|
+
"titleClass": bem$10("tab", {
|
8021
8193
|
unselected: !selected
|
8022
8194
|
})
|
8023
8195
|
}, {
|
@@ -8036,7 +8208,7 @@
|
|
8036
8208
|
"onUpdate:active": ($event) => activeTab.value = $event,
|
8037
8209
|
"shrink": true,
|
8038
8210
|
"animated": true,
|
8039
|
-
"class": bem$
|
8211
|
+
"class": bem$10("tabs"),
|
8040
8212
|
"color": props2.activeColor,
|
8041
8213
|
"swipeable": props2.swipeable,
|
8042
8214
|
"onClickTab": onClickTab
|
@@ -8071,19 +8243,19 @@
|
|
8071
8243
|
updateTabs();
|
8072
8244
|
});
|
8073
8245
|
return () => vue.createVNode("div", {
|
8074
|
-
"class": bem$
|
8246
|
+
"class": bem$10()
|
8075
8247
|
}, [renderHeader(), renderTabs()]);
|
8076
8248
|
}
|
8077
8249
|
});
|
8078
|
-
const Cascader = withInstall(stdin_default$
|
8079
|
-
const [name$
|
8250
|
+
const Cascader = withInstall(stdin_default$1a);
|
8251
|
+
const [name$10, bem$$] = createNamespace("cell-group");
|
8080
8252
|
const cellGroupProps = {
|
8081
8253
|
title: String,
|
8082
8254
|
inset: Boolean,
|
8083
8255
|
border: truthProp
|
8084
8256
|
};
|
8085
|
-
var stdin_default$
|
8086
|
-
name: name$
|
8257
|
+
var stdin_default$19 = vue.defineComponent({
|
8258
|
+
name: name$10,
|
8087
8259
|
inheritAttrs: false,
|
8088
8260
|
props: cellGroupProps,
|
8089
8261
|
setup(props2, {
|
@@ -8093,7 +8265,7 @@
|
|
8093
8265
|
const renderGroup = () => {
|
8094
8266
|
var _a;
|
8095
8267
|
return vue.createVNode("div", vue.mergeProps({
|
8096
|
-
"class": [bem
|
8268
|
+
"class": [bem$$({
|
8097
8269
|
inset: props2.inset
|
8098
8270
|
}), {
|
8099
8271
|
[BORDER_TOP_BOTTOM]: props2.border && !props2.inset
|
@@ -8101,7 +8273,7 @@
|
|
8101
8273
|
}, attrs, useScopeId()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8102
8274
|
};
|
8103
8275
|
const renderTitle = () => vue.createVNode("div", {
|
8104
|
-
"class": bem
|
8276
|
+
"class": bem$$("title", {
|
8105
8277
|
inset: props2.inset
|
8106
8278
|
})
|
8107
8279
|
}, [slots.title ? slots.title() : props2.title]);
|
@@ -8113,153 +8285,7 @@
|
|
8113
8285
|
};
|
8114
8286
|
}
|
8115
8287
|
});
|
8116
|
-
const CellGroup = withInstall(stdin_default$
|
8117
|
-
const [name$11, bem$10] = createNamespace("checkbox-group");
|
8118
|
-
const checkboxGroupProps = {
|
8119
|
-
max: numericProp,
|
8120
|
-
shape: makeStringProp("round"),
|
8121
|
-
disabled: Boolean,
|
8122
|
-
iconSize: numericProp,
|
8123
|
-
direction: String,
|
8124
|
-
modelValue: makeArrayProp(),
|
8125
|
-
checkedColor: String
|
8126
|
-
};
|
8127
|
-
const CHECKBOX_GROUP_KEY = Symbol(name$11);
|
8128
|
-
var stdin_default$1a = vue.defineComponent({
|
8129
|
-
name: name$11,
|
8130
|
-
props: checkboxGroupProps,
|
8131
|
-
emits: ["change", "update:modelValue"],
|
8132
|
-
setup(props2, {
|
8133
|
-
emit,
|
8134
|
-
slots
|
8135
|
-
}) {
|
8136
|
-
const {
|
8137
|
-
children,
|
8138
|
-
linkChildren
|
8139
|
-
} = useChildren(CHECKBOX_GROUP_KEY);
|
8140
|
-
const updateValue = (value) => emit("update:modelValue", value);
|
8141
|
-
const toggleAll = (options = {}) => {
|
8142
|
-
if (typeof options === "boolean") {
|
8143
|
-
options = {
|
8144
|
-
checked: options
|
8145
|
-
};
|
8146
|
-
}
|
8147
|
-
const {
|
8148
|
-
checked,
|
8149
|
-
skipDisabled
|
8150
|
-
} = options;
|
8151
|
-
const checkedChildren = children.filter((item) => {
|
8152
|
-
if (!item.props.bindGroup) {
|
8153
|
-
return false;
|
8154
|
-
}
|
8155
|
-
if (item.props.disabled && skipDisabled) {
|
8156
|
-
return item.checked.value;
|
8157
|
-
}
|
8158
|
-
return checked != null ? checked : !item.checked.value;
|
8159
|
-
});
|
8160
|
-
const names = checkedChildren.map((item) => item.name);
|
8161
|
-
updateValue(names);
|
8162
|
-
};
|
8163
|
-
vue.watch(() => props2.modelValue, (value) => emit("change", value));
|
8164
|
-
useExpose({
|
8165
|
-
toggleAll
|
8166
|
-
});
|
8167
|
-
useCustomFieldValue(() => props2.modelValue);
|
8168
|
-
linkChildren({
|
8169
|
-
props: props2,
|
8170
|
-
updateValue
|
8171
|
-
});
|
8172
|
-
return () => {
|
8173
|
-
var _a;
|
8174
|
-
return vue.createVNode("div", {
|
8175
|
-
"class": bem$10([props2.direction])
|
8176
|
-
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
8177
|
-
};
|
8178
|
-
}
|
8179
|
-
});
|
8180
|
-
const [name$10, bem$$] = createNamespace("checkbox");
|
8181
|
-
const checkboxProps = extend({}, checkerProps, {
|
8182
|
-
shape: String,
|
8183
|
-
bindGroup: truthProp,
|
8184
|
-
indeterminate: {
|
8185
|
-
type: Boolean,
|
8186
|
-
default: null
|
8187
|
-
}
|
8188
|
-
});
|
8189
|
-
var stdin_default$19 = vue.defineComponent({
|
8190
|
-
name: name$10,
|
8191
|
-
props: checkboxProps,
|
8192
|
-
emits: ["change", "update:modelValue"],
|
8193
|
-
setup(props2, {
|
8194
|
-
emit,
|
8195
|
-
slots
|
8196
|
-
}) {
|
8197
|
-
const {
|
8198
|
-
parent
|
8199
|
-
} = useParent(CHECKBOX_GROUP_KEY);
|
8200
|
-
const setParentValue = (checked2) => {
|
8201
|
-
const {
|
8202
|
-
name: name2
|
8203
|
-
} = props2;
|
8204
|
-
const {
|
8205
|
-
max,
|
8206
|
-
modelValue
|
8207
|
-
} = parent.props;
|
8208
|
-
const value = modelValue.slice();
|
8209
|
-
if (checked2) {
|
8210
|
-
const overlimit = max && value.length >= +max;
|
8211
|
-
if (!overlimit && !value.includes(name2)) {
|
8212
|
-
value.push(name2);
|
8213
|
-
if (props2.bindGroup) {
|
8214
|
-
parent.updateValue(value);
|
8215
|
-
}
|
8216
|
-
}
|
8217
|
-
} else {
|
8218
|
-
const index = value.indexOf(name2);
|
8219
|
-
if (index !== -1) {
|
8220
|
-
value.splice(index, 1);
|
8221
|
-
if (props2.bindGroup) {
|
8222
|
-
parent.updateValue(value);
|
8223
|
-
}
|
8224
|
-
}
|
8225
|
-
}
|
8226
|
-
};
|
8227
|
-
const checked = vue.computed(() => {
|
8228
|
-
if (parent && props2.bindGroup) {
|
8229
|
-
return parent.props.modelValue.indexOf(props2.name) !== -1;
|
8230
|
-
}
|
8231
|
-
return !!props2.modelValue;
|
8232
|
-
});
|
8233
|
-
const toggle = (newValue = !checked.value) => {
|
8234
|
-
if (parent && props2.bindGroup) {
|
8235
|
-
setParentValue(newValue);
|
8236
|
-
} else {
|
8237
|
-
emit("update:modelValue", newValue);
|
8238
|
-
}
|
8239
|
-
if (props2.indeterminate !== null)
|
8240
|
-
emit("change", newValue);
|
8241
|
-
};
|
8242
|
-
vue.watch(() => props2.modelValue, (value) => {
|
8243
|
-
if (props2.indeterminate === null)
|
8244
|
-
emit("change", value);
|
8245
|
-
});
|
8246
|
-
useExpose({
|
8247
|
-
toggle,
|
8248
|
-
props: props2,
|
8249
|
-
checked
|
8250
|
-
});
|
8251
|
-
useCustomFieldValue(() => props2.modelValue);
|
8252
|
-
return () => vue.createVNode(stdin_default$1o, vue.mergeProps({
|
8253
|
-
"bem": bem$$,
|
8254
|
-
"role": "checkbox",
|
8255
|
-
"parent": parent,
|
8256
|
-
"checked": checked.value,
|
8257
|
-
"onToggle": toggle
|
8258
|
-
}, props2), pick(slots, ["default", "icon"]));
|
8259
|
-
}
|
8260
|
-
});
|
8261
|
-
const Checkbox = withInstall(stdin_default$19);
|
8262
|
-
const CheckboxGroup = withInstall(stdin_default$1a);
|
8288
|
+
const CellGroup = withInstall(stdin_default$19);
|
8263
8289
|
const [name$$, bem$_] = createNamespace("circle");
|
8264
8290
|
let uid = 0;
|
8265
8291
|
const format = (rate) => Math.min(Math.max(+rate, 0), 100);
|
@@ -10766,6 +10792,16 @@
|
|
10766
10792
|
useEventListener("touchmove", onTouchmove, {
|
10767
10793
|
target: rootRef
|
10768
10794
|
});
|
10795
|
+
const renderHeader = () => {
|
10796
|
+
if (slots.header) {
|
10797
|
+
return slots.header();
|
10798
|
+
}
|
10799
|
+
return vue.createVNode("div", {
|
10800
|
+
"class": bem$I("header")
|
10801
|
+
}, [vue.createVNode("div", {
|
10802
|
+
"class": bem$I("header-bar")
|
10803
|
+
}, null)]);
|
10804
|
+
};
|
10769
10805
|
return () => {
|
10770
10806
|
var _a;
|
10771
10807
|
return vue.createVNode("div", {
|
@@ -10777,11 +10813,7 @@
|
|
10777
10813
|
"onTouchstartPassive": onTouchstart,
|
10778
10814
|
"onTouchend": onTouchend,
|
10779
10815
|
"onTouchcancel": onTouchend
|
10780
|
-
}, [vue.createVNode("div", {
|
10781
|
-
"class": bem$I("header")
|
10782
|
-
}, [vue.createVNode("div", {
|
10783
|
-
"class": bem$I("header-bar")
|
10784
|
-
}, null)]), vue.createVNode("div", {
|
10816
|
+
}, [renderHeader(), vue.createVNode("div", {
|
10785
10817
|
"class": bem$I("content"),
|
10786
10818
|
"ref": contentRef
|
10787
10819
|
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
@@ -15937,6 +15969,7 @@
|
|
15937
15969
|
"readonly": props2.disableInput,
|
15938
15970
|
"inputmode": props2.integer ? "numeric" : "decimal",
|
15939
15971
|
"placeholder": props2.placeholder,
|
15972
|
+
"autocomplete": "off",
|
15940
15973
|
"aria-valuemax": props2.max,
|
15941
15974
|
"aria-valuemin": props2.min,
|
15942
15975
|
"aria-valuenow": current2.value,
|
@@ -18214,7 +18247,7 @@
|
|
18214
18247
|
});
|
18215
18248
|
}
|
18216
18249
|
};
|
18217
|
-
const version = "4.9.
|
18250
|
+
const version = "4.9.1";
|
18218
18251
|
function install(app) {
|
18219
18252
|
const components = [
|
18220
18253
|
ActionBar,
|