persagy-vant 0.0.23 → 0.0.25
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 +41 -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/field/Field.d.ts +17 -4
- package/es/field/Field.mjs +1 -1
- package/es/field/index.d.ts +9 -2
- 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 +234 -0
- package/es/floor-select/index.css +1 -0
- package/es/floor-select/index.d.ts +32 -0
- package/es/floor-select/index.less +57 -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/fonts/meri-mobile-icon.ttf +0 -0
- package/es/fonts/meri-mobile-icon.woff +0 -0
- package/es/fonts/meri-mobile-icon.woff2 +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 +7 -1
- package/es/index.mjs +19 -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 +71 -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/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-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 +41 -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/field/Field.d.ts +17 -4
- package/lib/field/Field.js +1 -1
- package/lib/field/index.d.ts +9 -2
- 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 +253 -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 +57 -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/fonts/meri-mobile-icon.ttf +0 -0
- package/lib/fonts/meri-mobile-icon.woff +0 -0
- package/lib/fonts/meri-mobile-icon.woff2 +0 -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 +7 -1
- package/lib/index.js +19 -1
- package/lib/index.less +15 -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 +90 -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/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 +2919 -2420
- package/lib/vant.es.js +2920 -2421
- package/lib/vant.js +5375 -4876
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/lib/work-order-filter/style/index.js +1 -1
- package/lib/work-order-filter/style/less.js +1 -1
- package/package.json +1 -1
- package/skills/use-persagy-vant/SKILL.md +7 -6
- package/skills/use-persagy-vant/references/design-interaction-baseline.md +71 -0
- package/skills/use-persagy-vant/references/page-recipes.md +11 -4
- package/es/action-sheet/ActionSheetPanel.mjs +0 -145
- package/lib/action-sheet/ActionSheetPanel.js +0 -174
|
@@ -0,0 +1,11 @@
|
|
|
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 "../index.less";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { PopoverPlacement } from '../popover';
|
|
3
|
+
declare const friendlyTipProps: {
|
|
4
|
+
show: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: true;
|
|
7
|
+
};
|
|
8
|
+
message: StringConstructor;
|
|
9
|
+
icon: StringConstructor;
|
|
10
|
+
placement: {
|
|
11
|
+
type: PropType<PopoverPlacement>;
|
|
12
|
+
default: PopoverPlacement;
|
|
13
|
+
};
|
|
14
|
+
showArrow: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: true;
|
|
17
|
+
};
|
|
18
|
+
iconPrefix: StringConstructor;
|
|
19
|
+
offset: {
|
|
20
|
+
type: PropType<[number, number]>;
|
|
21
|
+
default: () => number[];
|
|
22
|
+
};
|
|
23
|
+
teleport: {
|
|
24
|
+
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare type FriendlyTipProps = ExtractPropTypes<typeof friendlyTipProps>;
|
|
29
|
+
declare const _default: import("vue").DefineComponent<{
|
|
30
|
+
show: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: true;
|
|
33
|
+
};
|
|
34
|
+
message: StringConstructor;
|
|
35
|
+
icon: StringConstructor;
|
|
36
|
+
placement: {
|
|
37
|
+
type: PropType<PopoverPlacement>;
|
|
38
|
+
default: PopoverPlacement;
|
|
39
|
+
};
|
|
40
|
+
showArrow: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: true;
|
|
43
|
+
};
|
|
44
|
+
iconPrefix: StringConstructor;
|
|
45
|
+
offset: {
|
|
46
|
+
type: PropType<[number, number]>;
|
|
47
|
+
default: () => number[];
|
|
48
|
+
};
|
|
49
|
+
teleport: {
|
|
50
|
+
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
54
|
+
show: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: true;
|
|
57
|
+
};
|
|
58
|
+
message: StringConstructor;
|
|
59
|
+
icon: StringConstructor;
|
|
60
|
+
placement: {
|
|
61
|
+
type: PropType<PopoverPlacement>;
|
|
62
|
+
default: PopoverPlacement;
|
|
63
|
+
};
|
|
64
|
+
showArrow: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: true;
|
|
67
|
+
};
|
|
68
|
+
iconPrefix: StringConstructor;
|
|
69
|
+
offset: {
|
|
70
|
+
type: PropType<[number, number]>;
|
|
71
|
+
default: () => number[];
|
|
72
|
+
};
|
|
73
|
+
teleport: {
|
|
74
|
+
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
}>> & {
|
|
78
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
offset: [number, number];
|
|
81
|
+
show: boolean;
|
|
82
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
83
|
+
showArrow: boolean;
|
|
84
|
+
placement: PopoverPlacement;
|
|
85
|
+
}>;
|
|
86
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent, createVNode as _createVNode } from "vue";
|
|
2
|
+
import { createNamespace, makeStringProp, truthProp } from "../utils/index.mjs";
|
|
3
|
+
import { Icon } from "../icon/index.mjs";
|
|
4
|
+
import { Popover } from "../popover/index.mjs";
|
|
5
|
+
const [name, bem] = createNamespace("friendly-tip");
|
|
6
|
+
const friendlyTipProps = {
|
|
7
|
+
show: truthProp,
|
|
8
|
+
message: String,
|
|
9
|
+
icon: String,
|
|
10
|
+
placement: makeStringProp("bottom"),
|
|
11
|
+
showArrow: truthProp,
|
|
12
|
+
iconPrefix: String,
|
|
13
|
+
offset: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => [0, 8]
|
|
16
|
+
},
|
|
17
|
+
teleport: {
|
|
18
|
+
type: [String, Object],
|
|
19
|
+
default: "body"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var stdin_default = defineComponent({
|
|
23
|
+
name,
|
|
24
|
+
props: friendlyTipProps,
|
|
25
|
+
emits: ["update:show"],
|
|
26
|
+
setup(props, {
|
|
27
|
+
emit,
|
|
28
|
+
slots
|
|
29
|
+
}) {
|
|
30
|
+
const updateShow = (show) => emit("update:show", show);
|
|
31
|
+
return () => _createVNode(Popover, {
|
|
32
|
+
"show": props.show,
|
|
33
|
+
"trigger": "manual",
|
|
34
|
+
"class": bem("popover"),
|
|
35
|
+
"placement": props.placement,
|
|
36
|
+
"showArrow": props.showArrow,
|
|
37
|
+
"iconPrefix": props.iconPrefix,
|
|
38
|
+
"offset": props.offset,
|
|
39
|
+
"teleport": props.teleport,
|
|
40
|
+
"onUpdate:show": updateShow
|
|
41
|
+
}, {
|
|
42
|
+
reference: () => {
|
|
43
|
+
var _a;
|
|
44
|
+
return (_a = slots.reference) == null ? void 0 : _a.call(slots);
|
|
45
|
+
},
|
|
46
|
+
default: () => _createVNode("div", {
|
|
47
|
+
"class": bem()
|
|
48
|
+
}, [props.icon && _createVNode(Icon, {
|
|
49
|
+
"name": props.icon,
|
|
50
|
+
"class": bem("icon"),
|
|
51
|
+
"classPrefix": props.iconPrefix
|
|
52
|
+
}, null), _createVNode("span", {
|
|
53
|
+
"class": bem("message")
|
|
54
|
+
}, [slots.default ? slots.default() : props.message])])
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
stdin_default as default
|
|
60
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--van-friendly-tip-width: 200px;--van-friendly-tip-min-height: 44px;--van-friendly-tip-padding: var(--van-padding-sm) var(--van-padding-md);--van-friendly-tip-font-size: var(--van-font-size-md);--van-friendly-tip-line-height: var(--van-line-height-md);--van-friendly-tip-icon-size: 20px;--van-friendly-tip-background-color: var(--van-blue-500);--van-friendly-tip-text-color: var(--van-white)}.van-friendly-tip__popover.van-popover--light{color:var(--van-friendly-tip-text-color)}.van-friendly-tip__popover.van-popover--light .van-popover__content{background-color:var(--van-friendly-tip-background-color)}.van-friendly-tip__popover.van-popover--light .van-popover__arrow{color:var(--van-friendly-tip-background-color)}.van-friendly-tip{display:flex;align-items:flex-start;box-sizing:border-box;width:var(--van-friendly-tip-width);min-height:var(--van-friendly-tip-min-height);padding:var(--van-friendly-tip-padding);font-size:var(--van-friendly-tip-font-size);line-height:var(--van-friendly-tip-line-height)}.van-friendly-tip__icon{display:flex;flex:none;align-items:center;height:var(--van-friendly-tip-line-height);margin-right:var(--van-padding-xs);font-size:var(--van-friendly-tip-icon-size)}.van-friendly-tip__message{flex:1}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const FriendlyTip: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
show: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: true;
|
|
5
|
+
};
|
|
6
|
+
message: StringConstructor;
|
|
7
|
+
icon: StringConstructor;
|
|
8
|
+
placement: {
|
|
9
|
+
type: import("vue").PropType<import("..").PopoverPlacement>;
|
|
10
|
+
default: import("..").PopoverPlacement;
|
|
11
|
+
};
|
|
12
|
+
showArrow: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: true;
|
|
15
|
+
};
|
|
16
|
+
iconPrefix: StringConstructor;
|
|
17
|
+
offset: {
|
|
18
|
+
type: import("vue").PropType<[number, number]>;
|
|
19
|
+
default: () => number[];
|
|
20
|
+
};
|
|
21
|
+
teleport: {
|
|
22
|
+
type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
show: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: true;
|
|
29
|
+
};
|
|
30
|
+
message: StringConstructor;
|
|
31
|
+
icon: StringConstructor;
|
|
32
|
+
placement: {
|
|
33
|
+
type: import("vue").PropType<import("..").PopoverPlacement>;
|
|
34
|
+
default: import("..").PopoverPlacement;
|
|
35
|
+
};
|
|
36
|
+
showArrow: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: true;
|
|
39
|
+
};
|
|
40
|
+
iconPrefix: StringConstructor;
|
|
41
|
+
offset: {
|
|
42
|
+
type: import("vue").PropType<[number, number]>;
|
|
43
|
+
default: () => number[];
|
|
44
|
+
};
|
|
45
|
+
teleport: {
|
|
46
|
+
type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
}>> & {
|
|
50
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
offset: [number, number];
|
|
53
|
+
show: boolean;
|
|
54
|
+
teleport: string | import("vue").RendererElement | null | undefined;
|
|
55
|
+
showArrow: boolean;
|
|
56
|
+
placement: import("..").PopoverPlacement;
|
|
57
|
+
}>>;
|
|
58
|
+
export default FriendlyTip;
|
|
59
|
+
export type { FriendlyTipProps } from './FriendlyTip';
|
|
60
|
+
declare module 'vue' {
|
|
61
|
+
interface GlobalComponents {
|
|
62
|
+
VanFriendlyTip: typeof FriendlyTip;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@import './var.less';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--van-friendly-tip-width: @friendly-tip-width;
|
|
5
|
+
--van-friendly-tip-min-height: @friendly-tip-min-height;
|
|
6
|
+
--van-friendly-tip-padding: @friendly-tip-padding;
|
|
7
|
+
--van-friendly-tip-font-size: @friendly-tip-font-size;
|
|
8
|
+
--van-friendly-tip-line-height: @friendly-tip-line-height;
|
|
9
|
+
--van-friendly-tip-icon-size: @friendly-tip-icon-size;
|
|
10
|
+
--van-friendly-tip-background-color: @friendly-tip-background-color;
|
|
11
|
+
--van-friendly-tip-text-color: @friendly-tip-text-color;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.van-friendly-tip__popover.van-popover--light {
|
|
15
|
+
color: var(--van-friendly-tip-text-color);
|
|
16
|
+
|
|
17
|
+
.van-popover__content {
|
|
18
|
+
background-color: var(--van-friendly-tip-background-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.van-popover__arrow {
|
|
22
|
+
color: var(--van-friendly-tip-background-color);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.van-friendly-tip {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
width: var(--van-friendly-tip-width);
|
|
31
|
+
min-height: var(--van-friendly-tip-min-height);
|
|
32
|
+
padding: var(--van-friendly-tip-padding);
|
|
33
|
+
font-size: var(--van-friendly-tip-font-size);
|
|
34
|
+
line-height: var(--van-friendly-tip-line-height);
|
|
35
|
+
|
|
36
|
+
&__icon {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex: none;
|
|
39
|
+
align-items: center;
|
|
40
|
+
height: var(--van-friendly-tip-line-height);
|
|
41
|
+
margin-right: var(--van-padding-xs);
|
|
42
|
+
font-size: var(--van-friendly-tip-icon-size);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__message {
|
|
46
|
+
flex: 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@import '../style/var.less';
|
|
2
|
+
|
|
3
|
+
@friendly-tip-width: 200px;
|
|
4
|
+
@friendly-tip-min-height: 44px;
|
|
5
|
+
@friendly-tip-padding: var(--van-padding-sm) var(--van-padding-md);
|
|
6
|
+
@friendly-tip-font-size: var(--van-font-size-md);
|
|
7
|
+
@friendly-tip-line-height: var(--van-line-height-md);
|
|
8
|
+
@friendly-tip-icon-size: 20px;
|
|
9
|
+
@friendly-tip-background-color: var(--van-blue-500);
|
|
10
|
+
@friendly-tip-text-color: var(--van-white);
|
package/es/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./action-sheet";
|
|
|
5
5
|
export * from "./address-edit";
|
|
6
6
|
export * from "./address-list";
|
|
7
7
|
export * from "./area";
|
|
8
|
+
export * from "./background";
|
|
8
9
|
export * from "./badge";
|
|
9
10
|
export * from "./blue-mark";
|
|
10
11
|
export * from "./bottom-action-bar";
|
|
@@ -16,6 +17,7 @@ export * from "./cell";
|
|
|
16
17
|
export * from "./cell-group";
|
|
17
18
|
export * from "./checkbox";
|
|
18
19
|
export * from "./checkbox-group";
|
|
20
|
+
export * from "./checkbox-panel";
|
|
19
21
|
export * from "./circle";
|
|
20
22
|
export * from "./col";
|
|
21
23
|
export * from "./collapse";
|
|
@@ -36,7 +38,10 @@ export * from "./dropdown-menu";
|
|
|
36
38
|
export * from "./empty";
|
|
37
39
|
export * from "./field";
|
|
38
40
|
export * from "./filter-tag";
|
|
41
|
+
export * from "./floor-select";
|
|
39
42
|
export * from "./form";
|
|
43
|
+
export * from "./form-panel";
|
|
44
|
+
export * from "./friendly-tip";
|
|
40
45
|
export * from "./grid";
|
|
41
46
|
export * from "./grid-item";
|
|
42
47
|
export * from "./icon";
|
|
@@ -67,6 +72,7 @@ export * from "./pull-refresh";
|
|
|
67
72
|
export * from "./quantity-input";
|
|
68
73
|
export * from "./radio";
|
|
69
74
|
export * from "./radio-group";
|
|
75
|
+
export * from "./radio-panel";
|
|
70
76
|
export * from "./rate";
|
|
71
77
|
export * from "./row";
|
|
72
78
|
export * from "./search";
|
|
@@ -102,4 +108,4 @@ declare namespace _default {
|
|
|
102
108
|
}
|
|
103
109
|
export default _default;
|
|
104
110
|
export function install(app: any): void;
|
|
105
|
-
export const version: "0.0.
|
|
111
|
+
export const version: "0.0.24";
|
package/es/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import { ActionSheet } from "./action-sheet/index.mjs";
|
|
|
5
5
|
import { AddressEdit } from "./address-edit/index.mjs";
|
|
6
6
|
import { AddressList } from "./address-list/index.mjs";
|
|
7
7
|
import { Area } from "./area/index.mjs";
|
|
8
|
+
import { Background } from "./background/index.mjs";
|
|
8
9
|
import { Badge } from "./badge/index.mjs";
|
|
9
10
|
import { BlueMark } from "./blue-mark/index.mjs";
|
|
10
11
|
import { BottomActionBar } from "./bottom-action-bar/index.mjs";
|
|
@@ -16,6 +17,7 @@ import { Cell } from "./cell/index.mjs";
|
|
|
16
17
|
import { CellGroup } from "./cell-group/index.mjs";
|
|
17
18
|
import { Checkbox } from "./checkbox/index.mjs";
|
|
18
19
|
import { CheckboxGroup } from "./checkbox-group/index.mjs";
|
|
20
|
+
import { CheckboxPanel } from "./checkbox-panel/index.mjs";
|
|
19
21
|
import { Circle } from "./circle/index.mjs";
|
|
20
22
|
import { Col } from "./col/index.mjs";
|
|
21
23
|
import { Collapse } from "./collapse/index.mjs";
|
|
@@ -36,7 +38,10 @@ import { DropdownMenu } from "./dropdown-menu/index.mjs";
|
|
|
36
38
|
import { Empty } from "./empty/index.mjs";
|
|
37
39
|
import { Field } from "./field/index.mjs";
|
|
38
40
|
import { FilterTag } from "./filter-tag/index.mjs";
|
|
41
|
+
import { FloorSelect } from "./floor-select/index.mjs";
|
|
39
42
|
import { Form } from "./form/index.mjs";
|
|
43
|
+
import { FormPanel } from "./form-panel/index.mjs";
|
|
44
|
+
import { FriendlyTip } from "./friendly-tip/index.mjs";
|
|
40
45
|
import { Grid } from "./grid/index.mjs";
|
|
41
46
|
import { GridItem } from "./grid-item/index.mjs";
|
|
42
47
|
import { Icon } from "./icon/index.mjs";
|
|
@@ -66,6 +71,7 @@ import { PullRefresh } from "./pull-refresh/index.mjs";
|
|
|
66
71
|
import { QuantityInput } from "./quantity-input/index.mjs";
|
|
67
72
|
import { Radio } from "./radio/index.mjs";
|
|
68
73
|
import { RadioGroup } from "./radio-group/index.mjs";
|
|
74
|
+
import { RadioPanel } from "./radio-panel/index.mjs";
|
|
69
75
|
import { Rate } from "./rate/index.mjs";
|
|
70
76
|
import { Row } from "./row/index.mjs";
|
|
71
77
|
import { Search } from "./search/index.mjs";
|
|
@@ -95,7 +101,7 @@ import { TreeSelect } from "./tree-select/index.mjs";
|
|
|
95
101
|
import { Uploader } from "./uploader/index.mjs";
|
|
96
102
|
import { VideoPreview } from "./video-preview/index.mjs";
|
|
97
103
|
import { WorkOrderFilter } from "./work-order-filter/index.mjs";
|
|
98
|
-
const version = "0.0.
|
|
104
|
+
const version = "0.0.24";
|
|
99
105
|
function install(app) {
|
|
100
106
|
const components = [
|
|
101
107
|
ActionBar,
|
|
@@ -105,6 +111,7 @@ function install(app) {
|
|
|
105
111
|
AddressEdit,
|
|
106
112
|
AddressList,
|
|
107
113
|
Area,
|
|
114
|
+
Background,
|
|
108
115
|
Badge,
|
|
109
116
|
BlueMark,
|
|
110
117
|
BottomActionBar,
|
|
@@ -116,6 +123,7 @@ function install(app) {
|
|
|
116
123
|
CellGroup,
|
|
117
124
|
Checkbox,
|
|
118
125
|
CheckboxGroup,
|
|
126
|
+
CheckboxPanel,
|
|
119
127
|
Circle,
|
|
120
128
|
Col,
|
|
121
129
|
Collapse,
|
|
@@ -136,7 +144,10 @@ function install(app) {
|
|
|
136
144
|
Empty,
|
|
137
145
|
Field,
|
|
138
146
|
FilterTag,
|
|
147
|
+
FloorSelect,
|
|
139
148
|
Form,
|
|
149
|
+
FormPanel,
|
|
150
|
+
FriendlyTip,
|
|
140
151
|
Grid,
|
|
141
152
|
GridItem,
|
|
142
153
|
Icon,
|
|
@@ -166,6 +177,7 @@ function install(app) {
|
|
|
166
177
|
QuantityInput,
|
|
167
178
|
Radio,
|
|
168
179
|
RadioGroup,
|
|
180
|
+
RadioPanel,
|
|
169
181
|
Rate,
|
|
170
182
|
Row,
|
|
171
183
|
Search,
|
|
@@ -211,6 +223,7 @@ export * from "./action-sheet/index.mjs";
|
|
|
211
223
|
export * from "./address-edit/index.mjs";
|
|
212
224
|
export * from "./address-list/index.mjs";
|
|
213
225
|
export * from "./area/index.mjs";
|
|
226
|
+
export * from "./background/index.mjs";
|
|
214
227
|
export * from "./badge/index.mjs";
|
|
215
228
|
export * from "./blue-mark/index.mjs";
|
|
216
229
|
export * from "./bottom-action-bar/index.mjs";
|
|
@@ -222,6 +235,7 @@ export * from "./cell/index.mjs";
|
|
|
222
235
|
export * from "./cell-group/index.mjs";
|
|
223
236
|
export * from "./checkbox/index.mjs";
|
|
224
237
|
export * from "./checkbox-group/index.mjs";
|
|
238
|
+
export * from "./checkbox-panel/index.mjs";
|
|
225
239
|
export * from "./circle/index.mjs";
|
|
226
240
|
export * from "./col/index.mjs";
|
|
227
241
|
export * from "./collapse/index.mjs";
|
|
@@ -242,7 +256,10 @@ export * from "./dropdown-menu/index.mjs";
|
|
|
242
256
|
export * from "./empty/index.mjs";
|
|
243
257
|
export * from "./field/index.mjs";
|
|
244
258
|
export * from "./filter-tag/index.mjs";
|
|
259
|
+
export * from "./floor-select/index.mjs";
|
|
245
260
|
export * from "./form/index.mjs";
|
|
261
|
+
export * from "./form-panel/index.mjs";
|
|
262
|
+
export * from "./friendly-tip/index.mjs";
|
|
246
263
|
export * from "./grid/index.mjs";
|
|
247
264
|
export * from "./grid-item/index.mjs";
|
|
248
265
|
export * from "./icon/index.mjs";
|
|
@@ -273,6 +290,7 @@ export * from "./pull-refresh/index.mjs";
|
|
|
273
290
|
export * from "./quantity-input/index.mjs";
|
|
274
291
|
export * from "./radio/index.mjs";
|
|
275
292
|
export * from "./radio-group/index.mjs";
|
|
293
|
+
export * from "./radio-panel/index.mjs";
|
|
276
294
|
export * from "./rate/index.mjs";
|
|
277
295
|
export * from "./row/index.mjs";
|
|
278
296
|
export * from "./search/index.mjs";
|
|
@@ -9,6 +9,7 @@ import "../../overlay/index.css";
|
|
|
9
9
|
import "../../popup/index.css";
|
|
10
10
|
import "../../popover/index.css";
|
|
11
11
|
import "../../nav-bar/index.css";
|
|
12
|
+
import "../../action-sheet/index.css";
|
|
12
13
|
import "../../checkbox-group/index.css";
|
|
13
14
|
import "../../checkbox/index.css";
|
|
14
15
|
import "../../radio-group/index.css";
|
|
@@ -18,7 +19,6 @@ import "../../tree-select/index.css";
|
|
|
18
19
|
import "../../field/index.css";
|
|
19
20
|
import "../../search/index.css";
|
|
20
21
|
import "../../dialog/index.css";
|
|
21
|
-
import "../../action-sheet/index.css";
|
|
22
22
|
import "../../sticky/index.css";
|
|
23
23
|
import "../../swipe/index.css";
|
|
24
24
|
import "../../swipe-item/index.css";
|
|
@@ -9,6 +9,7 @@ import "../../overlay/index.less";
|
|
|
9
9
|
import "../../popup/index.less";
|
|
10
10
|
import "../../popover/index.less";
|
|
11
11
|
import "../../nav-bar/index.less";
|
|
12
|
+
import "../../action-sheet/index.less";
|
|
12
13
|
import "../../checkbox-group/index.less";
|
|
13
14
|
import "../../checkbox/index.less";
|
|
14
15
|
import "../../radio-group/index.less";
|
|
@@ -18,7 +19,6 @@ import "../../tree-select/index.less";
|
|
|
18
19
|
import "../../field/index.less";
|
|
19
20
|
import "../../search/index.less";
|
|
20
21
|
import "../../dialog/index.less";
|
|
21
|
-
import "../../action-sheet/index.less";
|
|
22
22
|
import "../../sticky/index.less";
|
|
23
23
|
import "../../swipe/index.less";
|
|
24
24
|
import "../../swipe-item/index.less";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
2
|
-
import type { MaterialAddItem } from './types';
|
|
2
|
+
import type { MaterialAddCategory, MaterialAddItem } from './types';
|
|
3
3
|
declare const materialAddProps: {
|
|
4
4
|
show: BooleanConstructor;
|
|
5
5
|
modelValue: {
|
|
@@ -10,6 +10,10 @@ declare const materialAddProps: {
|
|
|
10
10
|
type: PropType<MaterialAddItem[]>;
|
|
11
11
|
default: () => MaterialAddItem[];
|
|
12
12
|
};
|
|
13
|
+
categories: {
|
|
14
|
+
type: PropType<MaterialAddCategory[]>;
|
|
15
|
+
default: () => MaterialAddCategory[];
|
|
16
|
+
};
|
|
13
17
|
title: {
|
|
14
18
|
type: PropType<string>;
|
|
15
19
|
default: string;
|
|
@@ -30,6 +34,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
34
|
type: PropType<MaterialAddItem[]>;
|
|
31
35
|
default: () => MaterialAddItem[];
|
|
32
36
|
};
|
|
37
|
+
categories: {
|
|
38
|
+
type: PropType<MaterialAddCategory[]>;
|
|
39
|
+
default: () => MaterialAddCategory[];
|
|
40
|
+
};
|
|
33
41
|
title: {
|
|
34
42
|
type: PropType<string>;
|
|
35
43
|
default: string;
|
|
@@ -48,6 +56,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
56
|
type: PropType<MaterialAddItem[]>;
|
|
49
57
|
default: () => MaterialAddItem[];
|
|
50
58
|
};
|
|
59
|
+
categories: {
|
|
60
|
+
type: PropType<MaterialAddCategory[]>;
|
|
61
|
+
default: () => MaterialAddCategory[];
|
|
62
|
+
};
|
|
51
63
|
title: {
|
|
52
64
|
type: PropType<string>;
|
|
53
65
|
default: string;
|
|
@@ -67,5 +79,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
79
|
show: boolean;
|
|
68
80
|
confirmText: string;
|
|
69
81
|
items: MaterialAddItem[];
|
|
82
|
+
categories: MaterialAddCategory[];
|
|
70
83
|
}>;
|
|
71
84
|
export default _default;
|