persagy-vant 0.0.24 → 0.0.26
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/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +0 -63
- package/es/action-sheet/index.less +0 -96
- package/es/action-sheet/index.mjs +0 -3
- package/es/action-sheet/style/index.mjs +0 -8
- package/es/action-sheet/style/less.mjs +0 -8
- package/es/background/Background.d.ts +23 -0
- package/es/background/Background.mjs +23 -0
- package/es/background/assets/background-default.png +0 -0
- package/es/background/assets/background-light.png +0 -0
- package/es/background/assets/background-style-1.png +0 -0
- package/es/background/assets/background-style-2.png +0 -0
- package/es/background/assets/background-style-3.png +0 -0
- package/es/background/index.css +1 -0
- package/es/background/index.d.ts +21 -0
- package/es/background/index.less +51 -0
- package/es/background/index.mjs +8 -0
- package/es/background/style/index.d.ts +1 -0
- package/es/background/style/index.mjs +2 -0
- package/es/background/style/less.d.ts +1 -0
- package/es/background/style/less.mjs +2 -0
- package/es/background/types.d.ts +1 -0
- package/es/background/types.mjs +0 -0
- package/es/background/var.css +0 -0
- package/es/background/var.less +6 -0
- package/es/cascader/style/index.mjs +0 -8
- package/es/cascader/style/less.mjs +0 -8
- package/es/{action-sheet/ActionSheetPanel.d.ts → checkbox-panel/CheckboxPanel.d.ts} +11 -26
- package/es/checkbox-panel/CheckboxPanel.mjs +100 -0
- package/es/checkbox-panel/index.css +1 -0
- package/es/checkbox-panel/index.d.ts +58 -0
- package/es/checkbox-panel/index.less +26 -0
- package/es/checkbox-panel/index.mjs +8 -0
- package/es/checkbox-panel/style/index.d.ts +1 -0
- package/es/checkbox-panel/style/index.mjs +16 -0
- package/es/checkbox-panel/style/less.d.ts +1 -0
- package/es/checkbox-panel/style/less.mjs +16 -0
- package/es/coupon-list/style/index.mjs +1 -3
- package/es/coupon-list/style/less.mjs +1 -3
- package/es/datetime-picker/DatetimePicker.mjs +1 -3
- package/es/empty/Empty.mjs +6 -274
- package/es/empty/assets/default.png +0 -0
- package/es/empty/assets/network.png +0 -0
- package/es/empty/index.css +1 -1
- package/es/empty/index.less +19 -1
- package/es/empty/var.less +6 -5
- package/es/field/Field.d.ts +17 -4
- package/es/field/Field.mjs +1 -1
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +9 -2
- package/es/field/var.less +1 -1
- package/es/filter-tag/FilterTag.d.ts +14 -0
- package/es/filter-tag/FilterTag.mjs +6 -1
- package/es/filter-tag/index.css +1 -1
- package/es/filter-tag/index.d.ts +10 -1
- package/es/filter-tag/index.less +16 -0
- package/es/filter-tag/var.less +5 -0
- package/es/floor-select/FloorSelect.d.ts +38 -0
- package/es/floor-select/FloorSelect.mjs +237 -0
- package/es/floor-select/index.css +1 -0
- package/es/floor-select/index.d.ts +32 -0
- package/es/floor-select/index.less +58 -0
- package/es/floor-select/index.mjs +8 -0
- package/es/floor-select/style/index.d.ts +1 -0
- package/es/floor-select/style/index.mjs +20 -0
- package/es/floor-select/style/less.d.ts +1 -0
- package/es/floor-select/style/less.mjs +20 -0
- package/es/floor-select/types.d.ts +18 -0
- package/es/floor-select/types.mjs +0 -0
- package/es/form-panel/FormPanel.d.ts +32 -0
- package/es/form-panel/FormPanel.mjs +64 -0
- package/es/form-panel/index.css +1 -0
- package/es/form-panel/index.d.ts +28 -0
- package/es/form-panel/index.less +95 -0
- package/es/form-panel/index.mjs +8 -0
- package/es/form-panel/style/index.d.ts +1 -0
- package/es/form-panel/style/index.mjs +11 -0
- package/es/form-panel/style/less.d.ts +1 -0
- package/es/form-panel/style/less.mjs +11 -0
- package/es/friendly-tip/FriendlyTip.d.ts +86 -0
- package/es/friendly-tip/FriendlyTip.mjs +60 -0
- package/es/friendly-tip/index.css +1 -0
- package/es/friendly-tip/index.d.ts +64 -0
- package/es/friendly-tip/index.less +48 -0
- package/es/friendly-tip/index.mjs +8 -0
- package/es/friendly-tip/style/index.d.ts +1 -0
- package/es/friendly-tip/style/index.mjs +7 -0
- package/es/friendly-tip/style/less.d.ts +1 -0
- package/es/friendly-tip/style/less.mjs +7 -0
- package/es/friendly-tip/var.css +0 -0
- package/es/friendly-tip/var.less +10 -0
- package/es/index.d.ts +8 -1
- package/es/index.mjs +22 -1
- package/es/location-select/style/index.mjs +1 -1
- package/es/location-select/style/less.mjs +1 -1
- package/es/material-add/MaterialAdd.d.ts +14 -1
- package/es/material-add/MaterialAdd.mjs +98 -50
- package/es/material-add/index.d.ts +10 -1
- package/es/material-add/style/index.mjs +1 -1
- package/es/material-add/style/less.mjs +1 -1
- package/es/material-add/types.d.ts +9 -0
- package/es/multi-person-select/MultiPersonSelect.d.ts +1 -1
- package/es/multi-person-select/index.d.ts +1 -1
- package/es/multi-person-select/style/index.mjs +1 -1
- package/es/multi-person-select/style/less.mjs +1 -1
- package/es/notify/index.css +1 -1
- package/es/notify/index.less +10 -0
- package/es/notify/var.less +3 -0
- package/es/object-select/style/index.mjs +1 -1
- package/es/object-select/style/less.mjs +1 -1
- package/es/popover/Popover.mjs +5 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.less +12 -5
- package/es/popover/var.less +1 -1
- package/es/quantity-input/QuantityInput.d.ts +1 -1
- package/es/quantity-input/index.d.ts +2 -2
- package/es/radio-panel/RadioPanel.d.ts +41 -0
- package/es/radio-panel/RadioPanel.mjs +83 -0
- package/es/radio-panel/index.css +1 -0
- package/es/radio-panel/index.d.ts +31 -0
- package/es/radio-panel/index.less +26 -0
- package/es/radio-panel/index.mjs +8 -0
- package/es/radio-panel/style/index.d.ts +1 -0
- package/es/radio-panel/style/index.mjs +15 -0
- package/es/radio-panel/style/less.d.ts +1 -0
- package/es/radio-panel/style/less.mjs +15 -0
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/Rate.mjs +2 -1
- package/es/rate/RateCell.d.ts +196 -0
- package/es/rate/RateCell.mjs +60 -0
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +136 -0
- package/es/rate/index.less +35 -0
- package/es/rate/index.mjs +8 -0
- package/es/rate/style/index.mjs +5 -0
- package/es/rate/style/less.mjs +5 -0
- package/es/rate/var.less +1 -1
- package/es/search/Search.d.ts +13 -3
- package/es/search/index.d.ts +9 -2
- package/es/sidebar-item/SidebarItem.mjs +1 -2
- package/es/single-person-select/style/index.mjs +1 -2
- package/es/single-person-select/style/less.mjs +1 -2
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +10 -0
- package/es/tab/style/index.mjs +0 -8
- package/es/tab/style/less.mjs +0 -8
- package/es/tabbar/index.css +1 -1
- package/es/tabbar/var.less +1 -1
- package/es/tabs/Tabs.mjs +5 -1
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.less +4 -0
- package/es/tabs/style/index.mjs +0 -8
- package/es/tabs/style/less.mjs +0 -8
- package/es/tag/Tag.d.ts +13 -3
- package/es/tag/Tag.mjs +1 -1
- package/es/tag/index.d.ts +9 -2
- package/es/work-order-card/WorkOrderCard.d.ts +145 -0
- package/es/work-order-card/WorkOrderCard.mjs +121 -0
- package/es/work-order-card/index.css +1 -0
- package/es/work-order-card/index.d.ts +107 -0
- package/es/work-order-card/index.less +34 -0
- package/es/work-order-card/index.mjs +8 -0
- package/es/work-order-card/style/index.d.ts +1 -0
- package/es/work-order-card/style/index.mjs +8 -0
- package/es/work-order-card/style/less.d.ts +1 -0
- package/es/work-order-card/style/less.mjs +8 -0
- package/es/work-order-card/types.d.ts +16 -0
- package/es/work-order-card/types.mjs +0 -0
- package/es/work-order-card/var.css +0 -0
- package/es/work-order-card/var.less +6 -0
- package/es/work-order-filter/style/index.mjs +1 -1
- package/es/work-order-filter/style/less.mjs +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +0 -63
- package/lib/action-sheet/index.js +0 -3
- package/lib/action-sheet/index.less +0 -96
- package/lib/action-sheet/style/index.js +0 -8
- package/lib/action-sheet/style/less.js +0 -8
- package/lib/background/Background.d.ts +23 -0
- package/lib/background/Background.js +42 -0
- package/lib/background/assets/background-default.png +0 -0
- package/lib/background/assets/background-light.png +0 -0
- package/lib/background/assets/background-style-1.png +0 -0
- package/lib/background/assets/background-style-2.png +0 -0
- package/lib/background/assets/background-style-3.png +0 -0
- package/lib/background/index.css +1 -0
- package/lib/background/index.d.ts +21 -0
- package/lib/background/index.js +37 -0
- package/lib/background/index.less +51 -0
- package/lib/background/style/index.d.ts +1 -0
- package/lib/background/style/index.js +2 -0
- package/lib/background/style/less.d.ts +1 -0
- package/lib/background/style/less.js +2 -0
- package/lib/background/types.d.ts +1 -0
- package/lib/background/types.js +15 -0
- package/lib/background/var.css +0 -0
- package/lib/background/var.less +6 -0
- package/lib/cascader/style/index.js +0 -8
- package/lib/cascader/style/less.js +0 -8
- package/lib/{action-sheet/ActionSheetPanel.d.ts → checkbox-panel/CheckboxPanel.d.ts} +11 -26
- package/lib/checkbox-panel/CheckboxPanel.js +119 -0
- package/lib/checkbox-panel/index.css +1 -0
- package/lib/checkbox-panel/index.d.ts +58 -0
- package/lib/checkbox-panel/index.js +37 -0
- package/lib/checkbox-panel/index.less +26 -0
- package/lib/checkbox-panel/style/index.d.ts +1 -0
- package/lib/checkbox-panel/style/index.js +16 -0
- package/lib/checkbox-panel/style/less.d.ts +1 -0
- package/lib/checkbox-panel/style/less.js +16 -0
- package/lib/coupon-list/style/index.js +1 -3
- package/lib/coupon-list/style/less.js +1 -3
- package/lib/datetime-picker/DatetimePicker.js +1 -3
- package/lib/empty/Empty.js +6 -274
- package/lib/empty/assets/default.png +0 -0
- package/lib/empty/assets/network.png +0 -0
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.less +19 -1
- package/lib/empty/var.less +6 -5
- package/lib/field/Field.d.ts +17 -4
- package/lib/field/Field.js +1 -1
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +9 -2
- package/lib/field/var.less +1 -1
- package/lib/filter-tag/FilterTag.d.ts +14 -0
- package/lib/filter-tag/FilterTag.js +6 -1
- package/lib/filter-tag/index.css +1 -1
- package/lib/filter-tag/index.d.ts +10 -1
- package/lib/filter-tag/index.less +16 -0
- package/lib/filter-tag/var.less +5 -0
- package/lib/floor-select/FloorSelect.d.ts +38 -0
- package/lib/floor-select/FloorSelect.js +256 -0
- package/lib/floor-select/index.css +1 -0
- package/lib/floor-select/index.d.ts +32 -0
- package/lib/floor-select/index.js +37 -0
- package/lib/floor-select/index.less +58 -0
- package/lib/floor-select/style/index.d.ts +1 -0
- package/lib/floor-select/style/index.js +20 -0
- package/lib/floor-select/style/less.d.ts +1 -0
- package/lib/floor-select/style/less.js +20 -0
- package/lib/floor-select/types.d.ts +18 -0
- package/lib/floor-select/types.js +15 -0
- package/lib/form-panel/FormPanel.d.ts +32 -0
- package/lib/form-panel/FormPanel.js +83 -0
- package/lib/form-panel/index.css +1 -0
- package/lib/form-panel/index.d.ts +28 -0
- package/lib/form-panel/index.js +37 -0
- package/lib/form-panel/index.less +95 -0
- package/lib/form-panel/style/index.d.ts +1 -0
- package/lib/form-panel/style/index.js +11 -0
- package/lib/form-panel/style/less.d.ts +1 -0
- package/lib/form-panel/style/less.js +11 -0
- package/lib/friendly-tip/FriendlyTip.d.ts +86 -0
- package/lib/friendly-tip/FriendlyTip.js +79 -0
- package/lib/friendly-tip/index.css +1 -0
- package/lib/friendly-tip/index.d.ts +64 -0
- package/lib/friendly-tip/index.js +37 -0
- package/lib/friendly-tip/index.less +48 -0
- package/lib/friendly-tip/style/index.d.ts +1 -0
- package/lib/friendly-tip/style/index.js +7 -0
- package/lib/friendly-tip/style/less.d.ts +1 -0
- package/lib/friendly-tip/style/less.js +7 -0
- package/lib/friendly-tip/var.css +0 -0
- package/lib/friendly-tip/var.less +10 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +22 -1
- package/lib/index.less +16 -9
- package/lib/location-select/style/index.js +1 -1
- package/lib/location-select/style/less.js +1 -1
- package/lib/material-add/MaterialAdd.d.ts +14 -1
- package/lib/material-add/MaterialAdd.js +98 -50
- package/lib/material-add/index.d.ts +10 -1
- package/lib/material-add/style/index.js +1 -1
- package/lib/material-add/style/less.js +1 -1
- package/lib/material-add/types.d.ts +9 -0
- package/lib/multi-person-select/MultiPersonSelect.d.ts +1 -1
- package/lib/multi-person-select/index.d.ts +1 -1
- package/lib/multi-person-select/style/index.js +1 -1
- package/lib/multi-person-select/style/less.js +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.less +10 -0
- package/lib/notify/var.less +3 -0
- package/lib/object-select/style/index.js +1 -1
- package/lib/object-select/style/less.js +1 -1
- package/lib/popover/Popover.js +5 -4
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.less +12 -5
- package/lib/popover/var.less +1 -1
- package/lib/quantity-input/QuantityInput.d.ts +1 -1
- package/lib/quantity-input/index.d.ts +2 -2
- package/lib/radio-panel/RadioPanel.d.ts +41 -0
- package/lib/radio-panel/RadioPanel.js +102 -0
- package/lib/radio-panel/index.css +1 -0
- package/lib/radio-panel/index.d.ts +31 -0
- package/lib/radio-panel/index.js +37 -0
- package/lib/radio-panel/index.less +26 -0
- package/lib/radio-panel/style/index.d.ts +1 -0
- package/lib/radio-panel/style/index.js +15 -0
- package/lib/radio-panel/style/less.d.ts +1 -0
- package/lib/radio-panel/style/less.js +15 -0
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/Rate.js +2 -1
- package/lib/rate/RateCell.d.ts +196 -0
- package/lib/rate/RateCell.js +89 -0
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +136 -0
- package/lib/rate/index.js +8 -0
- package/lib/rate/index.less +35 -0
- package/lib/rate/style/index.js +5 -0
- package/lib/rate/style/less.js +5 -0
- package/lib/rate/var.less +1 -1
- package/lib/search/Search.d.ts +13 -3
- package/lib/search/index.d.ts +9 -2
- package/lib/sidebar-item/SidebarItem.js +1 -2
- package/lib/single-person-select/style/index.js +1 -2
- package/lib/single-person-select/style/less.js +1 -2
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +10 -0
- package/lib/tab/style/index.js +0 -8
- package/lib/tab/style/less.js +0 -8
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar/var.less +1 -1
- package/lib/tabs/Tabs.js +5 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.less +4 -0
- package/lib/tabs/style/index.js +0 -8
- package/lib/tabs/style/less.js +0 -8
- package/lib/tag/Tag.d.ts +13 -3
- package/lib/tag/Tag.js +1 -1
- package/lib/tag/index.d.ts +9 -2
- package/lib/vant.cjs.js +3497 -3138
- package/lib/vant.es.js +3498 -3139
- package/lib/vant.js +5700 -5341
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/lib/work-order-card/WorkOrderCard.d.ts +145 -0
- package/lib/work-order-card/WorkOrderCard.js +140 -0
- package/lib/work-order-card/index.css +1 -0
- package/lib/work-order-card/index.d.ts +107 -0
- package/lib/work-order-card/index.js +37 -0
- package/lib/work-order-card/index.less +34 -0
- package/lib/work-order-card/style/index.d.ts +1 -0
- package/lib/work-order-card/style/index.js +8 -0
- package/lib/work-order-card/style/less.d.ts +1 -0
- package/lib/work-order-card/style/less.js +8 -0
- package/lib/work-order-card/types.d.ts +16 -0
- package/lib/work-order-card/types.js +15 -0
- package/lib/work-order-card/var.css +0 -0
- package/lib/work-order-card/var.less +6 -0
- package/lib/work-order-filter/style/index.js +1 -1
- package/lib/work-order-filter/style/less.js +1 -1
- package/package.json +2 -2
- package/skills/use-persagy-vant/SKILL.md +8 -7
- package/skills/use-persagy-vant/references/business-component-catalog.md +5 -0
- package/skills/use-persagy-vant/references/component-catalog.md +7 -4
- package/skills/use-persagy-vant/references/design-interaction-baseline.md +71 -0
- package/skills/use-persagy-vant/references/page-recipes.md +22 -5
- package/es/action-sheet/ActionSheetPanel.mjs +0 -145
- package/lib/action-sheet/ActionSheetPanel.js +0 -174
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const CheckboxPanel: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
show: BooleanConstructor;
|
|
3
|
+
title: StringConstructor;
|
|
4
|
+
options: {
|
|
5
|
+
type: import("vue").PropType<import("./CheckboxPanel").CheckboxPanelOption[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
modelValue: import("vue").PropType<string[]>;
|
|
9
|
+
confirmText: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
selectAllText: {
|
|
14
|
+
type: import("vue").PropType<string>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
cancelSelectAllText: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
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<{
|
|
22
|
+
show: BooleanConstructor;
|
|
23
|
+
title: StringConstructor;
|
|
24
|
+
options: {
|
|
25
|
+
type: import("vue").PropType<import("./CheckboxPanel").CheckboxPanelOption[]>;
|
|
26
|
+
default: () => never[];
|
|
27
|
+
};
|
|
28
|
+
modelValue: import("vue").PropType<string[]>;
|
|
29
|
+
confirmText: {
|
|
30
|
+
type: import("vue").PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
selectAllText: {
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
cancelSelectAllText: {
|
|
38
|
+
type: import("vue").PropType<string>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
}>> & {
|
|
42
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
show: boolean;
|
|
47
|
+
options: import("./CheckboxPanel").CheckboxPanelOption[];
|
|
48
|
+
confirmText: string;
|
|
49
|
+
selectAllText: string;
|
|
50
|
+
cancelSelectAllText: string;
|
|
51
|
+
}>>;
|
|
52
|
+
export default CheckboxPanel;
|
|
53
|
+
export type { CheckboxPanelProps, CheckboxPanelOption } from './CheckboxPanel';
|
|
54
|
+
declare module 'vue' {
|
|
55
|
+
interface GlobalComponents {
|
|
56
|
+
VanCheckboxPanel: typeof CheckboxPanel;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.van-checkbox-panel {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
height: calc(100% - 96px);
|
|
5
|
+
max-height: calc(100% - 96px);
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
background: var(--van-gray-1);
|
|
8
|
+
|
|
9
|
+
.van-action-sheet__content { display: flex; flex: 1; min-height: 0; overflow: hidden; }
|
|
10
|
+
&__content { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; background: var(--van-gray-1); }
|
|
11
|
+
&__nav-wrapper { flex: none; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
|
|
12
|
+
&__nav {
|
|
13
|
+
box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; overflow: hidden;
|
|
14
|
+
--van-nav-bar-background-color: var(--van-gray-1);
|
|
15
|
+
.van-nav-bar__content { box-sizing: border-box; width: 100%; overflow: hidden; }
|
|
16
|
+
.van-nav-bar__left--slot, .van-nav-bar__right--slot { padding: 0; }
|
|
17
|
+
.van-nav-bar__left--slot { left: var(--van-padding-md); }
|
|
18
|
+
.van-nav-bar__right--slot { right: var(--van-padding-md); }
|
|
19
|
+
}
|
|
20
|
+
&__body { flex: 1; min-height: 0; padding: 0 var(--van-padding-md); overflow-y: auto; }
|
|
21
|
+
&__card { overflow: hidden; background: var(--van-white); border-radius: var(--van-border-radius-lg); }
|
|
22
|
+
&__footer { flex: none; padding: var(--van-padding-xs) 12px; background: var(--van-white); box-shadow: 0 3px 12px rgba(27, 33, 41, 0.12), 0 0.5px 3px rgba(27, 33, 41, 0.08); }
|
|
23
|
+
&__select-all { color: var(--van-primary-color); font-weight: var(--van-font-weight-bold); font-size: var(--van-font-size-md); }
|
|
24
|
+
.van-cell { min-height: 44px; }
|
|
25
|
+
.van-checkbox { margin: 0; }
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../../style/base.css";
|
|
2
|
+
import "../../badge/index.css";
|
|
3
|
+
import "../../icon/index.css";
|
|
4
|
+
import "../../loading/index.css";
|
|
5
|
+
import "../../button/index.css";
|
|
6
|
+
import "../../overlay/index.css";
|
|
7
|
+
import "../../popup/index.css";
|
|
8
|
+
import "../../popover/index.css";
|
|
9
|
+
import "../../nav-bar/index.css";
|
|
10
|
+
import "../../action-sheet/index.css";
|
|
11
|
+
import "../../checkbox-group/index.css";
|
|
12
|
+
import "../../checkbox/index.css";
|
|
13
|
+
import "../../radio-group/index.css";
|
|
14
|
+
import "../../radio/index.css";
|
|
15
|
+
import "../../cell/index.css";
|
|
16
|
+
import "../index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../../style/base.less";
|
|
2
|
+
import "../../badge/index.less";
|
|
3
|
+
import "../../icon/index.less";
|
|
4
|
+
import "../../loading/index.less";
|
|
5
|
+
import "../../button/index.less";
|
|
6
|
+
import "../../overlay/index.less";
|
|
7
|
+
import "../../popup/index.less";
|
|
8
|
+
import "../../popover/index.less";
|
|
9
|
+
import "../../nav-bar/index.less";
|
|
10
|
+
import "../../action-sheet/index.less";
|
|
11
|
+
import "../../checkbox-group/index.less";
|
|
12
|
+
import "../../checkbox/index.less";
|
|
13
|
+
import "../../radio-group/index.less";
|
|
14
|
+
import "../../radio/index.less";
|
|
15
|
+
import "../../cell/index.less";
|
|
16
|
+
import "../index.less";
|
|
@@ -5,8 +5,7 @@ import "../../loading/index.css";
|
|
|
5
5
|
import "../../button/index.css";
|
|
6
6
|
import "../../overlay/index.css";
|
|
7
7
|
import "../../popup/index.css";
|
|
8
|
-
import "../../
|
|
9
|
-
import "../../nav-bar/index.css";
|
|
8
|
+
import "../../action-sheet/index.css";
|
|
10
9
|
import "../../checkbox-group/index.css";
|
|
11
10
|
import "../../checkbox/index.css";
|
|
12
11
|
import "../../coupon/index.css";
|
|
@@ -14,7 +13,6 @@ import "../../radio-group/index.css";
|
|
|
14
13
|
import "../../radio/index.css";
|
|
15
14
|
import "../../cell/index.css";
|
|
16
15
|
import "../../field/index.css";
|
|
17
|
-
import "../../action-sheet/index.css";
|
|
18
16
|
import "../../sticky/index.css";
|
|
19
17
|
import "../../swipe/index.css";
|
|
20
18
|
import "../../swipe-item/index.css";
|
|
@@ -5,8 +5,7 @@ import "../../loading/index.less";
|
|
|
5
5
|
import "../../button/index.less";
|
|
6
6
|
import "../../overlay/index.less";
|
|
7
7
|
import "../../popup/index.less";
|
|
8
|
-
import "../../
|
|
9
|
-
import "../../nav-bar/index.less";
|
|
8
|
+
import "../../action-sheet/index.less";
|
|
10
9
|
import "../../checkbox-group/index.less";
|
|
11
10
|
import "../../checkbox/index.less";
|
|
12
11
|
import "../../coupon/index.less";
|
|
@@ -14,7 +13,6 @@ import "../../radio-group/index.less";
|
|
|
14
13
|
import "../../radio/index.less";
|
|
15
14
|
import "../../cell/index.less";
|
|
16
15
|
import "../../field/index.less";
|
|
17
|
-
import "../../action-sheet/index.less";
|
|
18
16
|
import "../../sticky/index.less";
|
|
19
17
|
import "../../swipe/index.less";
|
|
20
18
|
import "../../swipe-item/index.less";
|
|
@@ -43,9 +43,7 @@ var stdin_default = defineComponent({
|
|
|
43
43
|
};
|
|
44
44
|
const getLaterDate = (first, second) => first.getTime() > second.getTime() ? first : second;
|
|
45
45
|
const currentTime = getCurrentTime();
|
|
46
|
-
const formatRangeStartTime = (value) =>
|
|
47
|
-
return value || (props.startTimeFromCurrent ? currentTime : props.minDate);
|
|
48
|
-
};
|
|
46
|
+
const formatRangeStartTime = (value) => value || (props.startTimeFromCurrent ? currentTime : props.minDate);
|
|
49
47
|
const rangeStartTime = ref(formatRangeStartTime(props.startTime));
|
|
50
48
|
const rangeEndTime = ref(getLaterDate(props.endTime || rangeStartTime.value, rangeStartTime.value));
|
|
51
49
|
const updateRangeStartTime = (value) => {
|
package/es/empty/Empty.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineComponent, createVNode as _createVNode } from "vue";
|
|
2
|
-
import { useId } from "../composables/use-id.mjs";
|
|
3
2
|
import { getSizeStyle, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
4
3
|
const [name, bem] = createNamespace("empty");
|
|
5
4
|
const emptyProps = {
|
|
@@ -28,283 +27,16 @@ var stdin_default = defineComponent({
|
|
|
28
27
|
}, [slots.default()]);
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
|
-
const baseId = useId();
|
|
32
|
-
const getId = (num) => `${baseId}-${num}`;
|
|
33
|
-
const getUrlById = (num) => `url(#${getId(num)})`;
|
|
34
|
-
const renderStop = (color, offset, opacity) => _createVNode("stop", {
|
|
35
|
-
"stop-color": color,
|
|
36
|
-
"offset": `${offset}%`,
|
|
37
|
-
"stop-opacity": opacity
|
|
38
|
-
}, null);
|
|
39
|
-
const renderStops = (fromColor, toColor) => [renderStop(fromColor, 0), renderStop(toColor, 100)];
|
|
40
|
-
const renderShadow = (id) => [_createVNode("defs", null, [_createVNode("radialGradient", {
|
|
41
|
-
"id": getId(id),
|
|
42
|
-
"cx": "50%",
|
|
43
|
-
"cy": "54%",
|
|
44
|
-
"fx": "50%",
|
|
45
|
-
"fy": "54%",
|
|
46
|
-
"r": "297%",
|
|
47
|
-
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
|
48
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), _createVNode("ellipse", {
|
|
49
|
-
"fill": getUrlById(id),
|
|
50
|
-
"opacity": ".8",
|
|
51
|
-
"cx": "80",
|
|
52
|
-
"cy": "140",
|
|
53
|
-
"rx": "46",
|
|
54
|
-
"ry": "8"
|
|
55
|
-
}, null)];
|
|
56
|
-
const renderBuilding = () => [_createVNode("defs", null, [_createVNode("linearGradient", {
|
|
57
|
-
"id": getId("a"),
|
|
58
|
-
"x1": "64%",
|
|
59
|
-
"y1": "100%",
|
|
60
|
-
"x2": "64%"
|
|
61
|
-
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), _createVNode("g", {
|
|
62
|
-
"opacity": ".8"
|
|
63
|
-
}, [_createVNode("path", {
|
|
64
|
-
"d": "M36 131V53H16v20H2v58h34z",
|
|
65
|
-
"fill": getUrlById("a")
|
|
66
|
-
}, null), _createVNode("path", {
|
|
67
|
-
"d": "M123 15h22v14h9v77h-31V15z",
|
|
68
|
-
"fill": getUrlById("a")
|
|
69
|
-
}, null)])];
|
|
70
|
-
const renderCloud = () => [_createVNode("defs", null, [_createVNode("linearGradient", {
|
|
71
|
-
"id": getId("b"),
|
|
72
|
-
"x1": "64%",
|
|
73
|
-
"y1": "97%",
|
|
74
|
-
"x2": "64%",
|
|
75
|
-
"y2": "0%"
|
|
76
|
-
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), _createVNode("g", {
|
|
77
|
-
"opacity": ".8"
|
|
78
|
-
}, [_createVNode("path", {
|
|
79
|
-
"d": "M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",
|
|
80
|
-
"fill": getUrlById("b")
|
|
81
|
-
}, null), _createVNode("path", {
|
|
82
|
-
"d": "M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",
|
|
83
|
-
"fill": getUrlById("b")
|
|
84
|
-
}, null)])];
|
|
85
|
-
const renderNetwork = () => _createVNode("svg", {
|
|
86
|
-
"viewBox": "0 0 160 160"
|
|
87
|
-
}, [_createVNode("defs", null, [_createVNode("linearGradient", {
|
|
88
|
-
"id": getId(1),
|
|
89
|
-
"x1": "64%",
|
|
90
|
-
"y1": "100%",
|
|
91
|
-
"x2": "64%"
|
|
92
|
-
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)]), _createVNode("linearGradient", {
|
|
93
|
-
"id": getId(2),
|
|
94
|
-
"x1": "50%",
|
|
95
|
-
"x2": "50%",
|
|
96
|
-
"y2": "84%"
|
|
97
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#DCDEE0", 100, 0)]), _createVNode("linearGradient", {
|
|
98
|
-
"id": getId(3),
|
|
99
|
-
"x1": "100%",
|
|
100
|
-
"x2": "100%",
|
|
101
|
-
"y2": "100%"
|
|
102
|
-
}, [renderStops("#EAEDF0", "#DCDEE0")]), _createVNode("radialGradient", {
|
|
103
|
-
"id": getId(4),
|
|
104
|
-
"cx": "50%",
|
|
105
|
-
"cy": "0%",
|
|
106
|
-
"fx": "50%",
|
|
107
|
-
"fy": "0%",
|
|
108
|
-
"r": "100%",
|
|
109
|
-
"gradientTransform": "matrix(0 1 -.54 0 .5 -.5)"
|
|
110
|
-
}, [renderStop("#EBEDF0", 0), renderStop("#FFF", 100, 0)])]), _createVNode("g", {
|
|
111
|
-
"fill": "none"
|
|
112
|
-
}, [renderBuilding(), _createVNode("path", {
|
|
113
|
-
"fill": getUrlById(4),
|
|
114
|
-
"d": "M0 139h160v21H0z"
|
|
115
|
-
}, null), _createVNode("path", {
|
|
116
|
-
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
|
117
|
-
"fill": getUrlById(2)
|
|
118
|
-
}, null), _createVNode("g", {
|
|
119
|
-
"opacity": ".6",
|
|
120
|
-
"stroke-linecap": "round",
|
|
121
|
-
"stroke-width": "7"
|
|
122
|
-
}, [_createVNode("path", {
|
|
123
|
-
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
|
124
|
-
"stroke": getUrlById(3)
|
|
125
|
-
}, null), _createVNode("path", {
|
|
126
|
-
"d": "M53 36a34 34 0 0 0 0 48",
|
|
127
|
-
"stroke": getUrlById(3)
|
|
128
|
-
}, null), _createVNode("path", {
|
|
129
|
-
"d": "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",
|
|
130
|
-
"stroke": getUrlById(3)
|
|
131
|
-
}, null), _createVNode("path", {
|
|
132
|
-
"d": "M106 84a34 34 0 0 0 0-48",
|
|
133
|
-
"stroke": getUrlById(3)
|
|
134
|
-
}, null)]), _createVNode("g", {
|
|
135
|
-
"transform": "translate(31 105)"
|
|
136
|
-
}, [_createVNode("rect", {
|
|
137
|
-
"fill": "#EBEDF0",
|
|
138
|
-
"width": "98",
|
|
139
|
-
"height": "34",
|
|
140
|
-
"rx": "2"
|
|
141
|
-
}, null), _createVNode("rect", {
|
|
142
|
-
"fill": "#FFF",
|
|
143
|
-
"x": "9",
|
|
144
|
-
"y": "8",
|
|
145
|
-
"width": "80",
|
|
146
|
-
"height": "18",
|
|
147
|
-
"rx": "1.1"
|
|
148
|
-
}, null), _createVNode("rect", {
|
|
149
|
-
"fill": "#EBEDF0",
|
|
150
|
-
"x": "15",
|
|
151
|
-
"y": "12",
|
|
152
|
-
"width": "18",
|
|
153
|
-
"height": "6",
|
|
154
|
-
"rx": "1.1"
|
|
155
|
-
}, null)])])]);
|
|
156
|
-
const renderMaterial = () => _createVNode("svg", {
|
|
157
|
-
"viewBox": "0 0 160 160"
|
|
158
|
-
}, [_createVNode("defs", null, [_createVNode("linearGradient", {
|
|
159
|
-
"x1": "50%",
|
|
160
|
-
"x2": "50%",
|
|
161
|
-
"y2": "100%",
|
|
162
|
-
"id": getId(5)
|
|
163
|
-
}, [renderStops("#F2F3F5", "#DCDEE0")]), _createVNode("linearGradient", {
|
|
164
|
-
"x1": "95%",
|
|
165
|
-
"y1": "48%",
|
|
166
|
-
"x2": "5.5%",
|
|
167
|
-
"y2": "51%",
|
|
168
|
-
"id": getId(6)
|
|
169
|
-
}, [renderStops("#EAEDF1", "#DCDEE0")]), _createVNode("linearGradient", {
|
|
170
|
-
"y1": "45%",
|
|
171
|
-
"x2": "100%",
|
|
172
|
-
"y2": "54%",
|
|
173
|
-
"id": getId(7)
|
|
174
|
-
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), _createVNode("g", {
|
|
175
|
-
"transform": "translate(36 50)",
|
|
176
|
-
"fill": "none"
|
|
177
|
-
}, [_createVNode("g", {
|
|
178
|
-
"transform": "translate(8)"
|
|
179
|
-
}, [_createVNode("rect", {
|
|
180
|
-
"fill": "#EBEDF0",
|
|
181
|
-
"opacity": ".6",
|
|
182
|
-
"x": "38",
|
|
183
|
-
"y": "13",
|
|
184
|
-
"width": "36",
|
|
185
|
-
"height": "53",
|
|
186
|
-
"rx": "2"
|
|
187
|
-
}, null), _createVNode("rect", {
|
|
188
|
-
"fill": getUrlById(5),
|
|
189
|
-
"width": "64",
|
|
190
|
-
"height": "66",
|
|
191
|
-
"rx": "2"
|
|
192
|
-
}, null), _createVNode("rect", {
|
|
193
|
-
"fill": "#FFF",
|
|
194
|
-
"x": "6",
|
|
195
|
-
"y": "6",
|
|
196
|
-
"width": "52",
|
|
197
|
-
"height": "55",
|
|
198
|
-
"rx": "1"
|
|
199
|
-
}, null), _createVNode("g", {
|
|
200
|
-
"transform": "translate(15 17)",
|
|
201
|
-
"fill": getUrlById(6)
|
|
202
|
-
}, [_createVNode("rect", {
|
|
203
|
-
"width": "34",
|
|
204
|
-
"height": "6",
|
|
205
|
-
"rx": "1"
|
|
206
|
-
}, null), _createVNode("path", {
|
|
207
|
-
"d": "M0 14h34v6H0z"
|
|
208
|
-
}, null), _createVNode("rect", {
|
|
209
|
-
"y": "28",
|
|
210
|
-
"width": "34",
|
|
211
|
-
"height": "6",
|
|
212
|
-
"rx": "1"
|
|
213
|
-
}, null)])]), _createVNode("rect", {
|
|
214
|
-
"fill": getUrlById(7),
|
|
215
|
-
"y": "61",
|
|
216
|
-
"width": "88",
|
|
217
|
-
"height": "28",
|
|
218
|
-
"rx": "1"
|
|
219
|
-
}, null), _createVNode("rect", {
|
|
220
|
-
"fill": "#F7F8FA",
|
|
221
|
-
"x": "29",
|
|
222
|
-
"y": "72",
|
|
223
|
-
"width": "30",
|
|
224
|
-
"height": "6",
|
|
225
|
-
"rx": "1"
|
|
226
|
-
}, null)])]);
|
|
227
|
-
const renderError = () => _createVNode("svg", {
|
|
228
|
-
"viewBox": "0 0 160 160"
|
|
229
|
-
}, [_createVNode("defs", null, [_createVNode("linearGradient", {
|
|
230
|
-
"x1": "50%",
|
|
231
|
-
"x2": "50%",
|
|
232
|
-
"y2": "100%",
|
|
233
|
-
"id": getId(8)
|
|
234
|
-
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), _createVNode("path", {
|
|
235
|
-
"d": "m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",
|
|
236
|
-
"fill": getUrlById(8)
|
|
237
|
-
}, null)]);
|
|
238
|
-
const renderSearch = () => _createVNode("svg", {
|
|
239
|
-
"viewBox": "0 0 160 160"
|
|
240
|
-
}, [_createVNode("defs", null, [_createVNode("linearGradient", {
|
|
241
|
-
"x1": "50%",
|
|
242
|
-
"y1": "100%",
|
|
243
|
-
"x2": "50%",
|
|
244
|
-
"id": getId(9)
|
|
245
|
-
}, [renderStops("#EEE", "#D8D8D8")]), _createVNode("linearGradient", {
|
|
246
|
-
"x1": "100%",
|
|
247
|
-
"y1": "50%",
|
|
248
|
-
"y2": "50%",
|
|
249
|
-
"id": getId(10)
|
|
250
|
-
}, [renderStops("#F2F3F5", "#DCDEE0")]), _createVNode("linearGradient", {
|
|
251
|
-
"x1": "50%",
|
|
252
|
-
"x2": "50%",
|
|
253
|
-
"y2": "100%",
|
|
254
|
-
"id": getId(11)
|
|
255
|
-
}, [renderStops("#F2F3F5", "#DCDEE0")]), _createVNode("linearGradient", {
|
|
256
|
-
"x1": "50%",
|
|
257
|
-
"x2": "50%",
|
|
258
|
-
"y2": "100%",
|
|
259
|
-
"id": getId(12)
|
|
260
|
-
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), _createVNode("g", {
|
|
261
|
-
"transform": "rotate(-45 113 -4)",
|
|
262
|
-
"fill": "none"
|
|
263
|
-
}, [_createVNode("rect", {
|
|
264
|
-
"fill": getUrlById(9),
|
|
265
|
-
"x": "24",
|
|
266
|
-
"y": "52.8",
|
|
267
|
-
"width": "5.8",
|
|
268
|
-
"height": "19",
|
|
269
|
-
"rx": "1"
|
|
270
|
-
}, null), _createVNode("rect", {
|
|
271
|
-
"fill": getUrlById(10),
|
|
272
|
-
"x": "22.1",
|
|
273
|
-
"y": "67.3",
|
|
274
|
-
"width": "9.9",
|
|
275
|
-
"height": "28",
|
|
276
|
-
"rx": "1"
|
|
277
|
-
}, null), _createVNode("circle", {
|
|
278
|
-
"stroke": getUrlById(11),
|
|
279
|
-
"stroke-width": "8",
|
|
280
|
-
"cx": "27",
|
|
281
|
-
"cy": "27",
|
|
282
|
-
"r": "27"
|
|
283
|
-
}, null), _createVNode("circle", {
|
|
284
|
-
"fill": getUrlById(12),
|
|
285
|
-
"cx": "27",
|
|
286
|
-
"cy": "27",
|
|
287
|
-
"r": "16"
|
|
288
|
-
}, null), _createVNode("path", {
|
|
289
|
-
"d": "M37 7c-8 0-15 5-16 12",
|
|
290
|
-
"stroke": getUrlById(11),
|
|
291
|
-
"stroke-width": "3",
|
|
292
|
-
"opacity": ".5",
|
|
293
|
-
"stroke-linecap": "round",
|
|
294
|
-
"transform": "rotate(45 29 13)"
|
|
295
|
-
}, null)])]);
|
|
296
30
|
const renderImage = () => {
|
|
297
|
-
var _a;
|
|
298
31
|
if (slots.image) {
|
|
299
32
|
return slots.image();
|
|
300
33
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return ((_a = PRESET_IMAGES[props.image]) == null ? void 0 : _a.call(PRESET_IMAGES)) || _createVNode("img", {
|
|
34
|
+
if (props.image === "default" || props.image === "network") {
|
|
35
|
+
return _createVNode("div", {
|
|
36
|
+
"class": bem("image-preset", props.image)
|
|
37
|
+
}, null);
|
|
38
|
+
}
|
|
39
|
+
return _createVNode("img", {
|
|
308
40
|
"src": props.image
|
|
309
41
|
}, null);
|
|
310
42
|
};
|
|
Binary file
|
|
Binary file
|
package/es/empty/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size:
|
|
1
|
+
:root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: 90px;--van-empty-image-height: 76px;--van-empty-description-margin-top: 8px;--van-empty-description-padding: 0 60px;--van-empty-description-color: var(--van-gray-6);--van-empty-description-font-size: 14px;--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: 8px}.van-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-height)}.van-empty__image img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.van-empty__image-preset{width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:contain}.van-empty__image-preset--default{background-image:url(./assets/default.png)}.van-empty__image-preset--network{background-image:url(./assets/network.png)}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}
|
package/es/empty/index.less
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
:root {
|
|
4
4
|
--van-empty-padding: @empty-padding;
|
|
5
5
|
--van-empty-image-size: @empty-image-size;
|
|
6
|
+
--van-empty-image-height: @empty-image-height;
|
|
6
7
|
--van-empty-description-margin-top: @empty-description-margin-top;
|
|
7
8
|
--van-empty-description-padding: @empty-description-padding;
|
|
8
9
|
--van-empty-description-color: @empty-description-color;
|
|
@@ -21,11 +22,28 @@
|
|
|
21
22
|
|
|
22
23
|
&__image {
|
|
23
24
|
width: var(--van-empty-image-size);
|
|
24
|
-
height: var(--van-empty-image-
|
|
25
|
+
height: var(--van-empty-image-height);
|
|
25
26
|
|
|
26
27
|
img {
|
|
27
28
|
width: 100%;
|
|
28
29
|
height: 100%;
|
|
30
|
+
object-fit: contain;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__image-preset {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
background-repeat: no-repeat;
|
|
38
|
+
background-position: center;
|
|
39
|
+
background-size: contain;
|
|
40
|
+
|
|
41
|
+
&--default {
|
|
42
|
+
background-image: url('./assets/default.png');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--network {
|
|
46
|
+
background-image: url('./assets/network.png');
|
|
29
47
|
}
|
|
30
48
|
}
|
|
31
49
|
|
package/es/empty/var.less
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
@import '../style/var.less';
|
|
2
2
|
|
|
3
3
|
@empty-padding: var(--van-padding-xl) 0;
|
|
4
|
-
@empty-image-size:
|
|
5
|
-
@empty-
|
|
4
|
+
@empty-image-size: 90px;
|
|
5
|
+
@empty-image-height: 76px;
|
|
6
|
+
@empty-description-margin-top: 8px;
|
|
6
7
|
@empty-description-padding: 0 60px;
|
|
7
|
-
@empty-description-color: var(--van-
|
|
8
|
-
@empty-description-font-size:
|
|
8
|
+
@empty-description-color: var(--van-gray-6);
|
|
9
|
+
@empty-description-font-size: 14px;
|
|
9
10
|
@empty-description-line-height: var(--van-line-height-md);
|
|
10
|
-
@empty-bottom-margin-top:
|
|
11
|
+
@empty-bottom-margin-top: 8px;
|
package/es/field/Field.d.ts
CHANGED
|
@@ -18,7 +18,10 @@ export declare const fieldSharedProps: {
|
|
|
18
18
|
type: (NumberConstructor | StringConstructor)[];
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
-
inputAlign:
|
|
21
|
+
inputAlign: {
|
|
22
|
+
type: PropType<FieldTextAlign>;
|
|
23
|
+
default: FieldTextAlign;
|
|
24
|
+
};
|
|
22
25
|
placeholder: StringConstructor;
|
|
23
26
|
autocomplete: StringConstructor;
|
|
24
27
|
errorMessage: StringConstructor;
|
|
@@ -105,7 +108,10 @@ declare const fieldProps: {
|
|
|
105
108
|
type: (NumberConstructor | StringConstructor)[];
|
|
106
109
|
default: string;
|
|
107
110
|
};
|
|
108
|
-
inputAlign:
|
|
111
|
+
inputAlign: {
|
|
112
|
+
type: PropType<FieldTextAlign>;
|
|
113
|
+
default: FieldTextAlign;
|
|
114
|
+
};
|
|
109
115
|
placeholder: StringConstructor;
|
|
110
116
|
autocomplete: StringConstructor;
|
|
111
117
|
errorMessage: StringConstructor;
|
|
@@ -219,7 +225,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
219
225
|
type: (NumberConstructor | StringConstructor)[];
|
|
220
226
|
default: string;
|
|
221
227
|
};
|
|
222
|
-
inputAlign:
|
|
228
|
+
inputAlign: {
|
|
229
|
+
type: PropType<FieldTextAlign>;
|
|
230
|
+
default: FieldTextAlign;
|
|
231
|
+
};
|
|
223
232
|
placeholder: StringConstructor;
|
|
224
233
|
autocomplete: StringConstructor;
|
|
225
234
|
errorMessage: StringConstructor;
|
|
@@ -331,7 +340,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
331
340
|
type: (NumberConstructor | StringConstructor)[];
|
|
332
341
|
default: string;
|
|
333
342
|
};
|
|
334
|
-
inputAlign:
|
|
343
|
+
inputAlign: {
|
|
344
|
+
type: PropType<FieldTextAlign>;
|
|
345
|
+
default: FieldTextAlign;
|
|
346
|
+
};
|
|
335
347
|
placeholder: StringConstructor;
|
|
336
348
|
autocomplete: StringConstructor;
|
|
337
349
|
errorMessage: StringConstructor;
|
|
@@ -411,6 +423,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
411
423
|
modelValue: string | number;
|
|
412
424
|
clearable: boolean;
|
|
413
425
|
clearIcon: string;
|
|
426
|
+
inputAlign: FieldTextAlign;
|
|
414
427
|
clearTrigger: FieldClearTrigger;
|
|
415
428
|
formatTrigger: FieldFormatTrigger;
|
|
416
429
|
error: boolean;
|
package/es/field/Field.mjs
CHANGED
|
@@ -19,7 +19,7 @@ const fieldSharedProps = {
|
|
|
19
19
|
formatter: Function,
|
|
20
20
|
clearIcon: makeStringProp("clear"),
|
|
21
21
|
modelValue: makeNumericProp(""),
|
|
22
|
-
inputAlign:
|
|
22
|
+
inputAlign: makeStringProp("right"),
|
|
23
23
|
placeholder: String,
|
|
24
24
|
autocomplete: String,
|
|
25
25
|
errorMessage: String,
|
package/es/field/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-gray-
|
|
1
|
+
:root{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-gray-8);--van-field-label-margin-right: var(--van-padding-sm);--van-field-input-font-size: var(--van-font-size-lg);--van-field-input-text-color: var(--van-text-color);--van-field-input-error-text-color: var(--van-danger-color);--van-field-input-disabled-text-color: var(--van-text-color-3);--van-field-placeholder-text-color: var(--van-text-color-3);--van-field-icon-size: 16px;--van-field-clear-icon-size: 16px;--van-field-clear-icon-color: var(--van-gray-5);--van-field-right-icon-color: var(--van-gray-6);--van-field-error-message-color: var(--van-danger-color);--van-field-error-message-font-size: 12px;--van-field-text-area-min-height: 60px;--van-field-word-limit-color: var(--van-gray-7);--van-field-word-limit-font-size: var(--van-font-size-sm);--van-field-word-limit-line-height: 16px;--van-field-disabled-text-color: var(--van-text-color-3);--van-field-required-mark-color: var(--van-red)}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--required{position:relative}.van-field__label--required:before{color:var(--van-field-required-mark-color);content:"*";position:absolute;left:-8px;font-size:14px}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field--label-top{flex-direction:column;align-items:stretch}.van-field--label-top .van-cell__title,.van-field--label-top .van-cell__value{flex:none;width:100%}.van-field--label-top .van-field__label{width:auto;margin-right:0;margin-bottom:var(--van-padding-xs)}.van-field.van-cell--normal{--van-field-input-font-size: var(--van-font-size-md)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);font-size:var(--van-field-input-font-size);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.van-field__control::-moz-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control:-moz-read-only{cursor:default}.van-field__control:read-only{cursor:default}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-moz-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=time],.van-field__control[type=datetime-local]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__clear,.van-field__icon,.van-field__button,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}
|