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
package/lib/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/lib/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var import_action_sheet = require("./action-sheet");
|
|
|
30
30
|
var import_address_edit = require("./address-edit");
|
|
31
31
|
var import_address_list = require("./address-list");
|
|
32
32
|
var import_area = require("./area");
|
|
33
|
+
var import_background = require("./background");
|
|
33
34
|
var import_badge = require("./badge");
|
|
34
35
|
var import_blue_mark = require("./blue-mark");
|
|
35
36
|
var import_bottom_action_bar = require("./bottom-action-bar");
|
|
@@ -41,6 +42,7 @@ var import_cell = require("./cell");
|
|
|
41
42
|
var import_cell_group = require("./cell-group");
|
|
42
43
|
var import_checkbox = require("./checkbox");
|
|
43
44
|
var import_checkbox_group = require("./checkbox-group");
|
|
45
|
+
var import_checkbox_panel = require("./checkbox-panel");
|
|
44
46
|
var import_circle = require("./circle");
|
|
45
47
|
var import_col = require("./col");
|
|
46
48
|
var import_collapse = require("./collapse");
|
|
@@ -61,7 +63,10 @@ var import_dropdown_menu = require("./dropdown-menu");
|
|
|
61
63
|
var import_empty = require("./empty");
|
|
62
64
|
var import_field = require("./field");
|
|
63
65
|
var import_filter_tag = require("./filter-tag");
|
|
66
|
+
var import_floor_select = require("./floor-select");
|
|
64
67
|
var import_form = require("./form");
|
|
68
|
+
var import_form_panel = require("./form-panel");
|
|
69
|
+
var import_friendly_tip = require("./friendly-tip");
|
|
65
70
|
var import_grid = require("./grid");
|
|
66
71
|
var import_grid_item = require("./grid-item");
|
|
67
72
|
var import_icon = require("./icon");
|
|
@@ -91,6 +96,7 @@ var import_pull_refresh = require("./pull-refresh");
|
|
|
91
96
|
var import_quantity_input = require("./quantity-input");
|
|
92
97
|
var import_radio = require("./radio");
|
|
93
98
|
var import_radio_group = require("./radio-group");
|
|
99
|
+
var import_radio_panel = require("./radio-panel");
|
|
94
100
|
var import_rate = require("./rate");
|
|
95
101
|
var import_row = require("./row");
|
|
96
102
|
var import_search = require("./search");
|
|
@@ -127,6 +133,7 @@ __reExport(stdin_exports, require("./action-sheet"), module.exports);
|
|
|
127
133
|
__reExport(stdin_exports, require("./address-edit"), module.exports);
|
|
128
134
|
__reExport(stdin_exports, require("./address-list"), module.exports);
|
|
129
135
|
__reExport(stdin_exports, require("./area"), module.exports);
|
|
136
|
+
__reExport(stdin_exports, require("./background"), module.exports);
|
|
130
137
|
__reExport(stdin_exports, require("./badge"), module.exports);
|
|
131
138
|
__reExport(stdin_exports, require("./blue-mark"), module.exports);
|
|
132
139
|
__reExport(stdin_exports, require("./bottom-action-bar"), module.exports);
|
|
@@ -138,6 +145,7 @@ __reExport(stdin_exports, require("./cell"), module.exports);
|
|
|
138
145
|
__reExport(stdin_exports, require("./cell-group"), module.exports);
|
|
139
146
|
__reExport(stdin_exports, require("./checkbox"), module.exports);
|
|
140
147
|
__reExport(stdin_exports, require("./checkbox-group"), module.exports);
|
|
148
|
+
__reExport(stdin_exports, require("./checkbox-panel"), module.exports);
|
|
141
149
|
__reExport(stdin_exports, require("./circle"), module.exports);
|
|
142
150
|
__reExport(stdin_exports, require("./col"), module.exports);
|
|
143
151
|
__reExport(stdin_exports, require("./collapse"), module.exports);
|
|
@@ -158,7 +166,10 @@ __reExport(stdin_exports, require("./dropdown-menu"), module.exports);
|
|
|
158
166
|
__reExport(stdin_exports, require("./empty"), module.exports);
|
|
159
167
|
__reExport(stdin_exports, require("./field"), module.exports);
|
|
160
168
|
__reExport(stdin_exports, require("./filter-tag"), module.exports);
|
|
169
|
+
__reExport(stdin_exports, require("./floor-select"), module.exports);
|
|
161
170
|
__reExport(stdin_exports, require("./form"), module.exports);
|
|
171
|
+
__reExport(stdin_exports, require("./form-panel"), module.exports);
|
|
172
|
+
__reExport(stdin_exports, require("./friendly-tip"), module.exports);
|
|
162
173
|
__reExport(stdin_exports, require("./grid"), module.exports);
|
|
163
174
|
__reExport(stdin_exports, require("./grid-item"), module.exports);
|
|
164
175
|
__reExport(stdin_exports, require("./icon"), module.exports);
|
|
@@ -189,6 +200,7 @@ __reExport(stdin_exports, require("./pull-refresh"), module.exports);
|
|
|
189
200
|
__reExport(stdin_exports, require("./quantity-input"), module.exports);
|
|
190
201
|
__reExport(stdin_exports, require("./radio"), module.exports);
|
|
191
202
|
__reExport(stdin_exports, require("./radio-group"), module.exports);
|
|
203
|
+
__reExport(stdin_exports, require("./radio-panel"), module.exports);
|
|
192
204
|
__reExport(stdin_exports, require("./rate"), module.exports);
|
|
193
205
|
__reExport(stdin_exports, require("./row"), module.exports);
|
|
194
206
|
__reExport(stdin_exports, require("./search"), module.exports);
|
|
@@ -218,7 +230,7 @@ __reExport(stdin_exports, require("./tree-select"), module.exports);
|
|
|
218
230
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
219
231
|
__reExport(stdin_exports, require("./video-preview"), module.exports);
|
|
220
232
|
__reExport(stdin_exports, require("./work-order-filter"), module.exports);
|
|
221
|
-
const version = "0.0.
|
|
233
|
+
const version = "0.0.24";
|
|
222
234
|
function install(app) {
|
|
223
235
|
const components = [
|
|
224
236
|
import_action_bar.ActionBar,
|
|
@@ -228,6 +240,7 @@ function install(app) {
|
|
|
228
240
|
import_address_edit.AddressEdit,
|
|
229
241
|
import_address_list.AddressList,
|
|
230
242
|
import_area.Area,
|
|
243
|
+
import_background.Background,
|
|
231
244
|
import_badge.Badge,
|
|
232
245
|
import_blue_mark.BlueMark,
|
|
233
246
|
import_bottom_action_bar.BottomActionBar,
|
|
@@ -239,6 +252,7 @@ function install(app) {
|
|
|
239
252
|
import_cell_group.CellGroup,
|
|
240
253
|
import_checkbox.Checkbox,
|
|
241
254
|
import_checkbox_group.CheckboxGroup,
|
|
255
|
+
import_checkbox_panel.CheckboxPanel,
|
|
242
256
|
import_circle.Circle,
|
|
243
257
|
import_col.Col,
|
|
244
258
|
import_collapse.Collapse,
|
|
@@ -259,7 +273,10 @@ function install(app) {
|
|
|
259
273
|
import_empty.Empty,
|
|
260
274
|
import_field.Field,
|
|
261
275
|
import_filter_tag.FilterTag,
|
|
276
|
+
import_floor_select.FloorSelect,
|
|
262
277
|
import_form.Form,
|
|
278
|
+
import_form_panel.FormPanel,
|
|
279
|
+
import_friendly_tip.FriendlyTip,
|
|
263
280
|
import_grid.Grid,
|
|
264
281
|
import_grid_item.GridItem,
|
|
265
282
|
import_icon.Icon,
|
|
@@ -289,6 +306,7 @@ function install(app) {
|
|
|
289
306
|
import_quantity_input.QuantityInput,
|
|
290
307
|
import_radio.Radio,
|
|
291
308
|
import_radio_group.RadioGroup,
|
|
309
|
+
import_radio_panel.RadioPanel,
|
|
292
310
|
import_rate.Rate,
|
|
293
311
|
import_row.Row,
|
|
294
312
|
import_search.Search,
|
package/lib/index.less
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@import "./action-bar/index.less";
|
|
3
3
|
@import "./badge/index.less";
|
|
4
4
|
@import "./icon/index.less";
|
|
5
|
-
@import "./rate/index.less";
|
|
6
5
|
@import "./notice-bar/index.less";
|
|
7
6
|
@import "./image/index.less";
|
|
8
7
|
@import "./filter-tag/index.less";
|
|
@@ -25,10 +24,13 @@
|
|
|
25
24
|
@import "./video-preview/index.less";
|
|
26
25
|
@import "./share-sheet/index.less";
|
|
27
26
|
@import "./notify/index.less";
|
|
28
|
-
@import "./toast/index.less";
|
|
29
|
-
@import "./calendar/index.less";
|
|
30
27
|
@import "./popover/index.less";
|
|
28
|
+
@import "./friendly-tip/index.less";
|
|
31
29
|
@import "./nav-bar/index.less";
|
|
30
|
+
@import "./toast/index.less";
|
|
31
|
+
@import "./calendar/index.less";
|
|
32
|
+
@import "./action-sheet/index.less";
|
|
33
|
+
@import "./form-panel/index.less";
|
|
32
34
|
@import "./checkbox-group/index.less";
|
|
33
35
|
@import "./checkbox/index.less";
|
|
34
36
|
@import "./coupon/index.less";
|
|
@@ -36,22 +38,25 @@
|
|
|
36
38
|
@import "./radio-group/index.less";
|
|
37
39
|
@import "./radio/index.less";
|
|
38
40
|
@import "./cell/index.less";
|
|
41
|
+
@import "./work-order-filter/index.less";
|
|
42
|
+
@import "./rate/index.less";
|
|
43
|
+
@import "./radio-panel/index.less";
|
|
39
44
|
@import "./quantity-input/index.less";
|
|
40
45
|
@import "./tree-select/index.less";
|
|
41
46
|
@import "./coupon-cell/index.less";
|
|
42
47
|
@import "./contact-list/index.less";
|
|
43
48
|
@import "./contact-card/index.less";
|
|
44
49
|
@import "./collapse-item/index.less";
|
|
50
|
+
@import "./checkbox-panel/index.less";
|
|
45
51
|
@import "./address-list/index.less";
|
|
46
52
|
@import "./field/index.less";
|
|
47
53
|
@import "./search/index.less";
|
|
54
|
+
@import "./single-person-select/index.less";
|
|
55
|
+
@import "./multi-person-select/index.less";
|
|
48
56
|
@import "./dialog/index.less";
|
|
49
57
|
@import "./contact-edit/index.less";
|
|
50
58
|
@import "./address-edit/index.less";
|
|
51
|
-
@import "./
|
|
52
|
-
@import "./work-order-filter/index.less";
|
|
53
|
-
@import "./single-person-select/index.less";
|
|
54
|
-
@import "./multi-person-select/index.less";
|
|
59
|
+
@import "./background/index.less";
|
|
55
60
|
@import "./sticky/index.less";
|
|
56
61
|
@import "./swipe/index.less";
|
|
57
62
|
@import "./swipe-item/index.less";
|
|
@@ -72,6 +77,9 @@
|
|
|
72
77
|
@import "./divider/index.less";
|
|
73
78
|
@import "./dropdown-menu/index.less";
|
|
74
79
|
@import "./dropdown-item/index.less";
|
|
80
|
+
@import "./sidebar/index.less";
|
|
81
|
+
@import "./sidebar-item/index.less";
|
|
82
|
+
@import "./floor-select/index.less";
|
|
75
83
|
@import "./grid/index.less";
|
|
76
84
|
@import "./grid-item/index.less";
|
|
77
85
|
@import "./index-bar/index.less";
|
|
@@ -81,8 +89,6 @@
|
|
|
81
89
|
@import "./pagination/index.less";
|
|
82
90
|
@import "./password-input/index.less";
|
|
83
91
|
@import "./progress/index.less";
|
|
84
|
-
@import "./sidebar/index.less";
|
|
85
|
-
@import "./sidebar-item/index.less";
|
|
86
92
|
@import "./skeleton/index.less";
|
|
87
93
|
@import "./slider/index.less";
|
|
88
94
|
@import "./space/index.less";
|
|
@@ -9,6 +9,7 @@ require("../../overlay/index.css");
|
|
|
9
9
|
require("../../popup/index.css");
|
|
10
10
|
require("../../popover/index.css");
|
|
11
11
|
require("../../nav-bar/index.css");
|
|
12
|
+
require("../../action-sheet/index.css");
|
|
12
13
|
require("../../checkbox-group/index.css");
|
|
13
14
|
require("../../checkbox/index.css");
|
|
14
15
|
require("../../radio-group/index.css");
|
|
@@ -18,7 +19,6 @@ require("../../tree-select/index.css");
|
|
|
18
19
|
require("../../field/index.css");
|
|
19
20
|
require("../../search/index.css");
|
|
20
21
|
require("../../dialog/index.css");
|
|
21
|
-
require("../../action-sheet/index.css");
|
|
22
22
|
require("../../sticky/index.css");
|
|
23
23
|
require("../../swipe/index.css");
|
|
24
24
|
require("../../swipe-item/index.css");
|
|
@@ -9,6 +9,7 @@ require("../../overlay/index.less");
|
|
|
9
9
|
require("../../popup/index.less");
|
|
10
10
|
require("../../popover/index.less");
|
|
11
11
|
require("../../nav-bar/index.less");
|
|
12
|
+
require("../../action-sheet/index.less");
|
|
12
13
|
require("../../checkbox-group/index.less");
|
|
13
14
|
require("../../checkbox/index.less");
|
|
14
15
|
require("../../radio-group/index.less");
|
|
@@ -18,7 +19,6 @@ require("../../tree-select/index.less");
|
|
|
18
19
|
require("../../field/index.less");
|
|
19
20
|
require("../../search/index.less");
|
|
20
21
|
require("../../dialog/index.less");
|
|
21
|
-
require("../../action-sheet/index.less");
|
|
22
22
|
require("../../sticky/index.less");
|
|
23
23
|
require("../../swipe/index.less");
|
|
24
24
|
require("../../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;
|
|
@@ -208,6 +208,83 @@ const defaultItems = [{
|
|
|
208
208
|
category: "cleaning-tool",
|
|
209
209
|
kind: "tool"
|
|
210
210
|
}];
|
|
211
|
+
const defaultCategories = [{
|
|
212
|
+
id: "material-root",
|
|
213
|
+
text: "\u7EF4\u4FEE\u7269\u8D44",
|
|
214
|
+
kind: "material",
|
|
215
|
+
categories: [{
|
|
216
|
+
value: "air-conditioner",
|
|
217
|
+
text: "\u7A7A\u8C03\u8BBE\u5907"
|
|
218
|
+
}, {
|
|
219
|
+
value: "pipe",
|
|
220
|
+
text: "\u7BA1\u6750\u914D\u4EF6"
|
|
221
|
+
}]
|
|
222
|
+
}, {
|
|
223
|
+
id: "safety-root",
|
|
224
|
+
text: "\u5B89\u5168\u7269\u8D44",
|
|
225
|
+
kind: "material",
|
|
226
|
+
categories: [{
|
|
227
|
+
value: "safety-protection",
|
|
228
|
+
text: "\u52B3\u52A8\u9632\u62A4"
|
|
229
|
+
}, {
|
|
230
|
+
value: "safety-signage",
|
|
231
|
+
text: "\u5B89\u5168\u6807\u8BC6"
|
|
232
|
+
}]
|
|
233
|
+
}, {
|
|
234
|
+
id: "office-root",
|
|
235
|
+
text: "\u529E\u516C\u7269\u8D44",
|
|
236
|
+
kind: "material",
|
|
237
|
+
categories: [{
|
|
238
|
+
value: "office-supply",
|
|
239
|
+
text: "\u529E\u516C\u8017\u6750"
|
|
240
|
+
}, {
|
|
241
|
+
value: "office-records",
|
|
242
|
+
text: "\u8BB0\u5F55\u7528\u54C1"
|
|
243
|
+
}]
|
|
244
|
+
}, {
|
|
245
|
+
id: "other-root",
|
|
246
|
+
text: "\u5176\u4ED6\u7269\u8D44",
|
|
247
|
+
kind: "material",
|
|
248
|
+
categories: [{
|
|
249
|
+
value: "other-cleaning",
|
|
250
|
+
text: "\u6E05\u6D01\u7528\u54C1"
|
|
251
|
+
}, {
|
|
252
|
+
value: "other-consumables",
|
|
253
|
+
text: "\u901A\u7528\u8017\u6750"
|
|
254
|
+
}]
|
|
255
|
+
}, {
|
|
256
|
+
id: "tool-root",
|
|
257
|
+
text: "\u7EF4\u4FEE\u5DE5\u5177",
|
|
258
|
+
kind: "tool",
|
|
259
|
+
categories: [{
|
|
260
|
+
value: "hand-tool",
|
|
261
|
+
text: "\u624B\u52A8\u5DE5\u5177"
|
|
262
|
+
}]
|
|
263
|
+
}, {
|
|
264
|
+
id: "meter-root",
|
|
265
|
+
text: "\u6D4B\u91CF\u5DE5\u5177",
|
|
266
|
+
kind: "tool",
|
|
267
|
+
categories: [{
|
|
268
|
+
value: "meter",
|
|
269
|
+
text: "\u6D4B\u91CF\u4EEA\u8868"
|
|
270
|
+
}]
|
|
271
|
+
}, {
|
|
272
|
+
id: "installation-root",
|
|
273
|
+
text: "\u5B89\u88C5\u5DE5\u5177",
|
|
274
|
+
kind: "tool",
|
|
275
|
+
categories: [{
|
|
276
|
+
value: "installation",
|
|
277
|
+
text: "\u5B89\u88C5\u5DE5\u5177"
|
|
278
|
+
}]
|
|
279
|
+
}, {
|
|
280
|
+
id: "cleaning-tool-root",
|
|
281
|
+
text: "\u6E05\u6D01\u5DE5\u5177",
|
|
282
|
+
kind: "tool",
|
|
283
|
+
categories: [{
|
|
284
|
+
value: "cleaning-tool",
|
|
285
|
+
text: "\u6E05\u6D01\u5DE5\u5177"
|
|
286
|
+
}]
|
|
287
|
+
}];
|
|
211
288
|
const materialAddProps = {
|
|
212
289
|
show: Boolean,
|
|
213
290
|
modelValue: (0, import_utils.makeArrayProp)(),
|
|
@@ -215,6 +292,10 @@ const materialAddProps = {
|
|
|
215
292
|
type: Array,
|
|
216
293
|
default: () => defaultItems
|
|
217
294
|
},
|
|
295
|
+
categories: {
|
|
296
|
+
type: Array,
|
|
297
|
+
default: () => defaultCategories
|
|
298
|
+
},
|
|
218
299
|
title: (0, import_utils.makeStringProp)("\u6DFB\u52A0\u7269\u6599"),
|
|
219
300
|
confirmText: (0, import_utils.makeStringProp)("\u786E\u5B9A")
|
|
220
301
|
};
|
|
@@ -307,44 +388,23 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
307
388
|
"class": bem("empty")
|
|
308
389
|
}, [(0, import_vue.createTextVNode)("\u6682\u65E0\u5339\u914D\u7269\u6599")])]);
|
|
309
390
|
const renderCatalog = () => {
|
|
310
|
-
const rootGroups =
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
categories:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
id: "other-root",
|
|
324
|
-
text: "\u5176\u4ED6\u7269\u8D44",
|
|
325
|
-
categories: ["other-cleaning", "other-consumables"]
|
|
326
|
-
}] : [{
|
|
327
|
-
id: "tool-root",
|
|
328
|
-
text: "\u7EF4\u4FEE\u5DE5\u5177",
|
|
329
|
-
categories: ["hand-tool"]
|
|
330
|
-
}, {
|
|
331
|
-
id: "meter-root",
|
|
332
|
-
text: "\u6D4B\u91CF\u5DE5\u5177",
|
|
333
|
-
categories: ["meter"]
|
|
334
|
-
}, {
|
|
335
|
-
id: "installation-root",
|
|
336
|
-
text: "\u5B89\u88C5\u5DE5\u5177",
|
|
337
|
-
categories: ["installation"]
|
|
338
|
-
}, {
|
|
339
|
-
id: "cleaning-tool-root",
|
|
340
|
-
text: "\u6E05\u6D01\u5DE5\u5177",
|
|
341
|
-
categories: ["cleaning-tool"]
|
|
342
|
-
}];
|
|
343
|
-
const items = rootGroups.map((root) => ({
|
|
391
|
+
const rootGroups = props.categories.filter((category) => category.kind === activeKind.value);
|
|
392
|
+
const configuredValues = new Set(rootGroups.flatMap((group) => group.categories.map((category) => category.value)));
|
|
393
|
+
const ungroupedCategories = [...new Set(props.items.filter((item) => item.kind === activeKind.value && !configuredValues.has(item.category)).map((item) => item.category))];
|
|
394
|
+
const groups = ungroupedCategories.length ? [...rootGroups, {
|
|
395
|
+
id: `${activeKind.value}-other`,
|
|
396
|
+
text: "\u672A\u5206\u7C7B",
|
|
397
|
+
kind: activeKind.value,
|
|
398
|
+
categories: ungroupedCategories.map((value) => ({
|
|
399
|
+
value,
|
|
400
|
+
text: value
|
|
401
|
+
}))
|
|
402
|
+
}] : rootGroups;
|
|
403
|
+
const items = groups.map((root) => ({
|
|
344
404
|
id: root.id,
|
|
345
405
|
text: root.text,
|
|
346
406
|
selectable: false,
|
|
347
|
-
children: props.items.filter((item) => root.categories.
|
|
407
|
+
children: props.items.filter((item) => item.kind === activeKind.value && root.categories.some((category) => category.value === item.category)).map((material) => ({
|
|
348
408
|
id: material.id,
|
|
349
409
|
text: material.name,
|
|
350
410
|
selectable: false,
|
|
@@ -378,21 +438,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
378
438
|
const renderDetail = () => {
|
|
379
439
|
const item = detailItem.value;
|
|
380
440
|
const [brand = "-", specification = "-", warehouse = "-"] = item.detail.split("\uFF5C");
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
"safety-protection": "\u5B89\u5168\u7269\u8D44/\u52B3\u52A8\u9632\u62A4",
|
|
385
|
-
"safety-signage": "\u5B89\u5168\u7269\u8D44/\u5B89\u5168\u6807\u8BC6",
|
|
386
|
-
"office-supply": "\u529E\u516C\u7269\u8D44/\u529E\u516C\u8017\u6750",
|
|
387
|
-
"office-records": "\u529E\u516C\u7269\u8D44/\u8BB0\u5F55\u7528\u54C1",
|
|
388
|
-
"other-cleaning": "\u5176\u4ED6\u7269\u8D44/\u6E05\u6D01\u7528\u54C1",
|
|
389
|
-
"other-consumables": "\u5176\u4ED6\u7269\u8D44/\u901A\u7528\u8017\u6750",
|
|
390
|
-
"hand-tool": "\u7EF4\u4FEE\u5DE5\u5177",
|
|
391
|
-
meter: "\u6D4B\u91CF\u5DE5\u5177",
|
|
392
|
-
installation: "\u5B89\u88C5\u5DE5\u5177",
|
|
393
|
-
"cleaning-tool": "\u6E05\u6D01\u5DE5\u5177"
|
|
394
|
-
};
|
|
395
|
-
const infoRows = [["\u7269\u6599\u540D\u79F0", item.name], ["\u53EF\u7533\u8BF7", String(item.available || 0)], ["\u5F85\u5165\u5E93", "12"], ["\u6240\u5C5E\u5206\u7C7B", categoryNames[item.category] || (item.kind === "material" ? "\u7EF4\u4FEE\u7269\u8D44" : "\u7EF4\u4FEE\u5DE5\u5177")], ["\u54C1\u724C", brand], ["\u89C4\u683C", specification], ["\u5355\u4F4D", item.unit], ["\u4F9B\u5E94\u5546", "\u6DF1\u5733\u96C6\u5B89"], ["\u4ED3\u5E93\u540D\u79F0", warehouse], ["\u4ED3\u5E93\u4F4D\u7F6E", "A\u5EA7/B3/\u505C\u8F66\u573A\u5E93\u623F"], ["\u5E93\u7BA1\u5458", "\u674E\u590D\u6052 13880588688\n\u674E\u5175 16885885868"]];
|
|
441
|
+
const categoryGroup = props.categories.find((group) => group.categories.some((category2) => category2.value === item.category));
|
|
442
|
+
const category = categoryGroup == null ? void 0 : categoryGroup.categories.find((entry) => entry.value === item.category);
|
|
443
|
+
const infoRows = [["\u7269\u6599\u540D\u79F0", item.name], ["\u53EF\u7533\u8BF7", String(item.available || 0)], ["\u5F85\u5165\u5E93", "12"], ["\u6240\u5C5E\u5206\u7C7B", category && categoryGroup ? `${categoryGroup.text}/${category.text}` : item.category], ["\u54C1\u724C", brand], ["\u89C4\u683C", specification], ["\u5355\u4F4D", item.unit], ["\u4F9B\u5E94\u5546", "\u6DF1\u5733\u96C6\u5B89"], ["\u4ED3\u5E93\u540D\u79F0", warehouse], ["\u4ED3\u5E93\u4F4D\u7F6E", "A\u5EA7/B3/\u505C\u8F66\u573A\u5E93\u623F"], ["\u5E93\u7BA1\u5458", "\u674E\u590D\u6052 13880588688\n\u674E\u5175 16885885868"]];
|
|
396
444
|
return (0, import_vue.createVNode)("div", {
|
|
397
445
|
"class": bem("detail-page")
|
|
398
446
|
}, [(0, import_vue.createVNode)("div", {
|
|
@@ -8,6 +8,10 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
|
|
|
8
8
|
type: import("vue").PropType<import("./types").MaterialAddItem[]>;
|
|
9
9
|
default: () => import("./types").MaterialAddItem[];
|
|
10
10
|
};
|
|
11
|
+
categories: {
|
|
12
|
+
type: import("vue").PropType<import("./types").MaterialAddCategory[]>;
|
|
13
|
+
default: () => import("./types").MaterialAddCategory[];
|
|
14
|
+
};
|
|
11
15
|
title: {
|
|
12
16
|
type: import("vue").PropType<string>;
|
|
13
17
|
default: string;
|
|
@@ -26,6 +30,10 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
|
|
|
26
30
|
type: import("vue").PropType<import("./types").MaterialAddItem[]>;
|
|
27
31
|
default: () => import("./types").MaterialAddItem[];
|
|
28
32
|
};
|
|
33
|
+
categories: {
|
|
34
|
+
type: import("vue").PropType<import("./types").MaterialAddCategory[]>;
|
|
35
|
+
default: () => import("./types").MaterialAddCategory[];
|
|
36
|
+
};
|
|
29
37
|
title: {
|
|
30
38
|
type: import("vue").PropType<string>;
|
|
31
39
|
default: string;
|
|
@@ -45,10 +53,11 @@ export declare const MaterialAdd: import("../utils").WithInstall<import("vue").D
|
|
|
45
53
|
show: boolean;
|
|
46
54
|
confirmText: string;
|
|
47
55
|
items: import("./types").MaterialAddItem[];
|
|
56
|
+
categories: import("./types").MaterialAddCategory[];
|
|
48
57
|
}>>;
|
|
49
58
|
export default MaterialAdd;
|
|
50
59
|
export type { MaterialAddProps } from './MaterialAdd';
|
|
51
|
-
export type { MaterialAddItem } from './types';
|
|
60
|
+
export type { MaterialAddCategory, MaterialAddItem } from './types';
|
|
52
61
|
declare module 'vue' {
|
|
53
62
|
interface GlobalComponents {
|
|
54
63
|
VanMaterialAdd: typeof MaterialAdd;
|
|
@@ -10,6 +10,7 @@ require("../../overlay/index.css");
|
|
|
10
10
|
require("../../popup/index.css");
|
|
11
11
|
require("../../popover/index.css");
|
|
12
12
|
require("../../nav-bar/index.css");
|
|
13
|
+
require("../../action-sheet/index.css");
|
|
13
14
|
require("../../checkbox-group/index.css");
|
|
14
15
|
require("../../checkbox/index.css");
|
|
15
16
|
require("../../bottom-action-bar/index.css");
|
|
@@ -19,7 +20,6 @@ require("../../cell/index.css");
|
|
|
19
20
|
require("../../tree-select/index.css");
|
|
20
21
|
require("../../field/index.css");
|
|
21
22
|
require("../../search/index.css");
|
|
22
|
-
require("../../action-sheet/index.css");
|
|
23
23
|
require("../../sticky/index.css");
|
|
24
24
|
require("../../swipe/index.css");
|
|
25
25
|
require("../../swipe-item/index.css");
|
|
@@ -10,6 +10,7 @@ require("../../overlay/index.less");
|
|
|
10
10
|
require("../../popup/index.less");
|
|
11
11
|
require("../../popover/index.less");
|
|
12
12
|
require("../../nav-bar/index.less");
|
|
13
|
+
require("../../action-sheet/index.less");
|
|
13
14
|
require("../../checkbox-group/index.less");
|
|
14
15
|
require("../../checkbox/index.less");
|
|
15
16
|
require("../../bottom-action-bar/index.less");
|
|
@@ -19,7 +20,6 @@ require("../../cell/index.less");
|
|
|
19
20
|
require("../../tree-select/index.less");
|
|
20
21
|
require("../../field/index.less");
|
|
21
22
|
require("../../search/index.less");
|
|
22
|
-
require("../../action-sheet/index.less");
|
|
23
23
|
require("../../sticky/index.less");
|
|
24
24
|
require("../../swipe/index.less");
|
|
25
25
|
require("../../swipe-item/index.less");
|
|
@@ -8,3 +8,12 @@ export declare type MaterialAddItem = {
|
|
|
8
8
|
category: string;
|
|
9
9
|
kind: 'material' | 'tool';
|
|
10
10
|
};
|
|
11
|
+
export declare type MaterialAddCategory = {
|
|
12
|
+
id: Numeric;
|
|
13
|
+
text: string;
|
|
14
|
+
kind: 'material' | 'tool';
|
|
15
|
+
categories: Array<{
|
|
16
|
+
value: string;
|
|
17
|
+
text: string;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
@@ -115,9 +115,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
115
|
title: string;
|
|
116
116
|
modelValue: string[];
|
|
117
117
|
show: boolean;
|
|
118
|
-
confirmText: string;
|
|
119
118
|
expandText: string;
|
|
120
119
|
collapseText: string;
|
|
120
|
+
confirmText: string;
|
|
121
121
|
searchPlaceholder: string;
|
|
122
122
|
clearText: string;
|
|
123
123
|
groups: MultiPersonGroup[];
|
|
@@ -77,9 +77,9 @@ export declare const MultiPersonSelect: import("../utils").WithInstall<import("v
|
|
|
77
77
|
title: string;
|
|
78
78
|
modelValue: string[];
|
|
79
79
|
show: boolean;
|
|
80
|
-
confirmText: string;
|
|
81
80
|
expandText: string;
|
|
82
81
|
collapseText: string;
|
|
82
|
+
confirmText: string;
|
|
83
83
|
searchPlaceholder: string;
|
|
84
84
|
clearText: string;
|
|
85
85
|
groups: import("./types").MultiPersonGroup[];
|
|
@@ -8,6 +8,7 @@ require("../../overlay/index.css");
|
|
|
8
8
|
require("../../popup/index.css");
|
|
9
9
|
require("../../popover/index.css");
|
|
10
10
|
require("../../nav-bar/index.css");
|
|
11
|
+
require("../../action-sheet/index.css");
|
|
11
12
|
require("../../checkbox-group/index.css");
|
|
12
13
|
require("../../checkbox/index.css");
|
|
13
14
|
require("../../bottom-action-bar/index.css");
|
|
@@ -16,5 +17,4 @@ require("../../radio/index.css");
|
|
|
16
17
|
require("../../cell/index.css");
|
|
17
18
|
require("../../field/index.css");
|
|
18
19
|
require("../../search/index.css");
|
|
19
|
-
require("../../action-sheet/index.css");
|
|
20
20
|
require("../index.css");
|
|
@@ -8,6 +8,7 @@ require("../../overlay/index.less");
|
|
|
8
8
|
require("../../popup/index.less");
|
|
9
9
|
require("../../popover/index.less");
|
|
10
10
|
require("../../nav-bar/index.less");
|
|
11
|
+
require("../../action-sheet/index.less");
|
|
11
12
|
require("../../checkbox-group/index.less");
|
|
12
13
|
require("../../checkbox/index.less");
|
|
13
14
|
require("../../bottom-action-bar/index.less");
|
|
@@ -16,5 +17,4 @@ require("../../radio/index.less");
|
|
|
16
17
|
require("../../cell/index.less");
|
|
17
18
|
require("../../field/index.less");
|
|
18
19
|
require("../../search/index.less");
|
|
19
|
-
require("../../action-sheet/index.less");
|
|
20
20
|
require("../index.less");
|
package/lib/notify/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-notify-text-color: var(--van-white);--van-notify-padding: var(--van-padding-xs) var(--van-padding-md);--van-notify-font-size: var(--van-font-size-md);--van-notify-line-height: var(--van-line-height-md);--van-notify-primary-background-color: var(--van-primary-color);--van-notify-success-background-color: var(--van-success-color);--van-notify-danger-background-color: var(--van-danger-color);--van-notify-warning-background-color: var(--van-warning-color)}.van-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-notify-padding);color:var(--van-notify-text-color);font-size:var(--van-notify-font-size);line-height:var(--van-notify-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word}.van-notify--primary{background:var(--van-notify-primary-background-color)}.van-notify--success{background:var(--van-notify-success-background-color)}.van-notify--danger{background:var(--van-notify-danger-background-color)}.van-notify--warning{background:var(--van-notify-warning-background-color)}
|
|
1
|
+
:root{--van-notify-text-color: var(--van-white);--van-notify-padding: var(--van-padding-xs) var(--van-padding-md);--van-notify-top-offset: 8px;--van-notify-horizontal-margin: 16px;--van-notify-border-radius: 8px;--van-notify-font-size: var(--van-font-size-md);--van-notify-line-height: var(--van-line-height-md);--van-notify-primary-background-color: var(--van-primary-color);--van-notify-success-background-color: var(--van-success-color);--van-notify-danger-background-color: var(--van-danger-color);--van-notify-warning-background-color: var(--van-warning-color)}.van-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-notify-padding);color:var(--van-notify-text-color);font-size:var(--van-notify-font-size);line-height:var(--van-notify-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word}.van-notify.van-popup--top{top:var(--van-notify-top-offset);left:var(--van-notify-horizontal-margin);width:calc(100% - var(--van-notify-horizontal-margin) * 2);border-radius:var(--van-notify-border-radius)}.van-notify--primary{background:var(--van-notify-primary-background-color)}.van-notify--success{background:var(--van-notify-success-background-color)}.van-notify--danger{background:var(--van-notify-danger-background-color)}.van-notify--warning{background:var(--van-notify-warning-background-color)}
|
package/lib/notify/index.less
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
:root {
|
|
4
4
|
--van-notify-text-color: @notify-text-color;
|
|
5
5
|
--van-notify-padding: @notify-padding;
|
|
6
|
+
--van-notify-top-offset: @notify-top-offset;
|
|
7
|
+
--van-notify-horizontal-margin: @notify-horizontal-margin;
|
|
8
|
+
--van-notify-border-radius: @notify-border-radius;
|
|
6
9
|
--van-notify-font-size: @notify-font-size;
|
|
7
10
|
--van-notify-line-height: @notify-line-height;
|
|
8
11
|
--van-notify-primary-background-color: @notify-primary-background-color;
|
|
@@ -26,6 +29,13 @@
|
|
|
26
29
|
text-align: center;
|
|
27
30
|
word-wrap: break-word;
|
|
28
31
|
|
|
32
|
+
&.van-popup--top {
|
|
33
|
+
top: var(--van-notify-top-offset);
|
|
34
|
+
left: var(--van-notify-horizontal-margin);
|
|
35
|
+
width: calc(100% - var(--van-notify-horizontal-margin) * 2);
|
|
36
|
+
border-radius: var(--van-notify-border-radius);
|
|
37
|
+
}
|
|
38
|
+
|
|
29
39
|
&--primary {
|
|
30
40
|
background: var(--van-notify-primary-background-color);
|
|
31
41
|
}
|
package/lib/notify/var.less
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
@notify-text-color: var(--van-white);
|
|
4
4
|
@notify-padding: var(--van-padding-xs) var(--van-padding-md);
|
|
5
|
+
@notify-top-offset: 8px;
|
|
6
|
+
@notify-horizontal-margin: 16px;
|
|
7
|
+
@notify-border-radius: 8px;
|
|
5
8
|
@notify-font-size: var(--van-font-size-md);
|
|
6
9
|
@notify-line-height: var(--van-line-height-md);
|
|
7
10
|
@notify-primary-background-color: var(--van-primary-color);
|