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
package/es/field/index.d.ts
CHANGED
|
@@ -60,7 +60,10 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
60
60
|
type: (NumberConstructor | StringConstructor)[];
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
|
-
inputAlign:
|
|
63
|
+
inputAlign: {
|
|
64
|
+
type: import("vue").PropType<import("./types").FieldTextAlign>;
|
|
65
|
+
default: import("./types").FieldTextAlign;
|
|
66
|
+
};
|
|
64
67
|
placeholder: StringConstructor;
|
|
65
68
|
autocomplete: StringConstructor;
|
|
66
69
|
errorMessage: StringConstructor;
|
|
@@ -172,7 +175,10 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
172
175
|
type: (NumberConstructor | StringConstructor)[];
|
|
173
176
|
default: string;
|
|
174
177
|
};
|
|
175
|
-
inputAlign:
|
|
178
|
+
inputAlign: {
|
|
179
|
+
type: import("vue").PropType<import("./types").FieldTextAlign>;
|
|
180
|
+
default: import("./types").FieldTextAlign;
|
|
181
|
+
};
|
|
176
182
|
placeholder: StringConstructor;
|
|
177
183
|
autocomplete: StringConstructor;
|
|
178
184
|
errorMessage: StringConstructor;
|
|
@@ -252,6 +258,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
252
258
|
modelValue: string | number;
|
|
253
259
|
clearable: boolean;
|
|
254
260
|
clearIcon: string;
|
|
261
|
+
inputAlign: import("./types").FieldTextAlign;
|
|
255
262
|
clearTrigger: import("./types").FieldClearTrigger;
|
|
256
263
|
formatTrigger: import("./types").FieldFormatTrigger;
|
|
257
264
|
error: boolean;
|
package/es/field/var.less
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import '../style/var.less';
|
|
2
2
|
|
|
3
3
|
@field-label-width: 6.2em;
|
|
4
|
-
@field-label-color: var(--van-gray-
|
|
4
|
+
@field-label-color: var(--van-gray-8);
|
|
5
5
|
@field-label-margin-right: var(--van-padding-sm);
|
|
6
6
|
@field-input-font-size: var(--van-font-size-lg);
|
|
7
7
|
@field-input-text-color: var(--van-text-color);
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare type FilterTagIconPosition = 'left' | 'right';
|
|
3
|
+
export declare type FilterTagSize = 'normal' | 'large';
|
|
3
4
|
declare const filterTagProps: {
|
|
4
5
|
selected: BooleanConstructor;
|
|
5
6
|
disabled: BooleanConstructor;
|
|
7
|
+
size: {
|
|
8
|
+
type: PropType<FilterTagSize>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
6
11
|
icon: StringConstructor;
|
|
7
12
|
iconPrefix: StringConstructor;
|
|
8
13
|
iconPosition: {
|
|
@@ -16,6 +21,10 @@ export declare type FilterTagProps = ExtractPropTypes<typeof filterTagProps>;
|
|
|
16
21
|
declare const _default: import("vue").DefineComponent<{
|
|
17
22
|
selected: BooleanConstructor;
|
|
18
23
|
disabled: BooleanConstructor;
|
|
24
|
+
size: {
|
|
25
|
+
type: PropType<FilterTagSize>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
19
28
|
icon: StringConstructor;
|
|
20
29
|
iconPrefix: StringConstructor;
|
|
21
30
|
iconPosition: {
|
|
@@ -27,6 +36,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
36
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
28
37
|
selected: BooleanConstructor;
|
|
29
38
|
disabled: BooleanConstructor;
|
|
39
|
+
size: {
|
|
40
|
+
type: PropType<FilterTagSize>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
30
43
|
icon: StringConstructor;
|
|
31
44
|
iconPrefix: StringConstructor;
|
|
32
45
|
iconPosition: {
|
|
@@ -39,6 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
52
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
40
53
|
}, {
|
|
41
54
|
dot: boolean;
|
|
55
|
+
size: FilterTagSize;
|
|
42
56
|
disabled: boolean;
|
|
43
57
|
selected: boolean;
|
|
44
58
|
iconPosition: FilterTagIconPosition;
|
|
@@ -6,6 +6,10 @@ const [name, bem] = createNamespace("filter-tag");
|
|
|
6
6
|
const filterTagProps = {
|
|
7
7
|
selected: Boolean,
|
|
8
8
|
disabled: Boolean,
|
|
9
|
+
size: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "normal"
|
|
12
|
+
},
|
|
9
13
|
icon: String,
|
|
10
14
|
iconPrefix: String,
|
|
11
15
|
iconPosition: {
|
|
@@ -48,7 +52,8 @@ var stdin_default = defineComponent({
|
|
|
48
52
|
"type": "button",
|
|
49
53
|
"class": bem({
|
|
50
54
|
selected: props.selected,
|
|
51
|
-
disabled: props.disabled
|
|
55
|
+
disabled: props.disabled,
|
|
56
|
+
large: props.size === "large"
|
|
52
57
|
}),
|
|
53
58
|
"disabled": props.disabled,
|
|
54
59
|
"onClick": (event) => emit("click", event)
|
package/es/filter-tag/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-filter-tag-padding: 4px 12px;--van-filter-tag-gap: 4px;--van-filter-tag-font-size: var(--van-font-size-md);--van-filter-tag-font-weight: var(--van-font-weight-bold);--van-filter-tag-line-height: var(--van-line-height-lg);--van-filter-tag-border-radius: var(--van-border-radius-lg);--van-filter-tag-color: var(--van-gray-8);--van-filter-tag-background-color: var(--van-gray-2);--van-filter-tag-selected-color: var(--van-primary-color);--van-filter-tag-selected-background-color: var(--van-blue-100);--van-filter-tag-disabled-color: var(--van-gray-5);--van-filter-tag-active-opacity: var(--van-active-opacity)}.van-filter-tag{display:inline-flex;align-items:center;justify-content:center;gap:var(--van-filter-tag-gap);min-width:0;padding:var(--van-filter-tag-padding);color:var(--van-filter-tag-color);font:inherit;font-size:var(--van-filter-tag-font-size);font-weight:400;line-height:var(--van-filter-tag-line-height);white-space:nowrap;background:var(--van-filter-tag-background-color);border:0;border-radius:var(--van-filter-tag-border-radius)}.van-filter-tag:not(:disabled){cursor:pointer}.van-filter-tag:not(:disabled):active{opacity:var(--van-filter-tag-active-opacity)}.van-filter-tag--selected{color:var(--van-filter-tag-selected-color);font-weight:var(--van-filter-tag-font-weight);background:var(--van-filter-tag-selected-background-color)}.van-filter-tag--disabled{color:var(--van-filter-tag-disabled-color);cursor:not-allowed}.van-filter-tag__icon{flex:none;font-size:16px}.van-filter-tag__text{overflow:hidden;text-overflow:ellipsis}.van-filter-tag .van-badge{position:static;display:inline-flex;box-sizing:border-box;flex:none;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;line-height:16px;border:0;transform:none}.van-filter-tag .van-badge--dot{width:8px;min-width:0;height:8px;padding:0}
|
|
1
|
+
:root{--van-filter-tag-padding: 4px 12px;--van-filter-tag-gap: 4px;--van-filter-tag-font-size: var(--van-font-size-md);--van-filter-tag-font-weight: var(--van-font-weight-bold);--van-filter-tag-line-height: var(--van-line-height-lg);--van-filter-tag-border-radius: var(--van-border-radius-lg);--van-filter-tag-color: var(--van-gray-8);--van-filter-tag-background-color: var(--van-gray-2);--van-filter-tag-selected-color: var(--van-primary-color);--van-filter-tag-selected-background-color: var(--van-blue-100);--van-filter-tag-disabled-color: var(--van-gray-5);--van-filter-tag-active-opacity: var(--van-active-opacity);--van-filter-tag-large-padding: 6px 16px;--van-filter-tag-large-gap: 6px;--van-filter-tag-large-font-size: var(--van-font-size-lg);--van-filter-tag-large-line-height: var(--van-line-height-xl);--van-filter-tag-large-icon-size: 18px}.van-filter-tag{display:inline-flex;align-items:center;justify-content:center;gap:var(--van-filter-tag-gap);min-width:0;padding:var(--van-filter-tag-padding);color:var(--van-filter-tag-color);font:inherit;font-size:var(--van-filter-tag-font-size);font-weight:400;line-height:var(--van-filter-tag-line-height);white-space:nowrap;background:var(--van-filter-tag-background-color);border:0;border-radius:var(--van-filter-tag-border-radius)}.van-filter-tag:not(:disabled){cursor:pointer}.van-filter-tag:not(:disabled):active{opacity:var(--van-filter-tag-active-opacity)}.van-filter-tag--selected{color:var(--van-filter-tag-selected-color);font-weight:var(--van-filter-tag-font-weight);background:var(--van-filter-tag-selected-background-color)}.van-filter-tag--disabled{color:var(--van-filter-tag-disabled-color);cursor:not-allowed}.van-filter-tag--large{gap:var(--van-filter-tag-large-gap);padding:var(--van-filter-tag-large-padding);font-size:var(--van-filter-tag-large-font-size);line-height:var(--van-filter-tag-large-line-height)}.van-filter-tag--large .van-filter-tag__icon{font-size:var(--van-filter-tag-large-icon-size)}.van-filter-tag__icon{flex:none;font-size:16px}.van-filter-tag__text{overflow:hidden;text-overflow:ellipsis}.van-filter-tag .van-badge{position:static;display:inline-flex;box-sizing:border-box;flex:none;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;line-height:16px;border:0;transform:none}.van-filter-tag .van-badge--dot{width:8px;min-width:0;height:8px;padding:0}
|
package/es/filter-tag/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare const FilterTag: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
2
|
selected: BooleanConstructor;
|
|
3
3
|
disabled: BooleanConstructor;
|
|
4
|
+
size: {
|
|
5
|
+
type: import("vue").PropType<import("./FilterTag").FilterTagSize>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
4
8
|
icon: StringConstructor;
|
|
5
9
|
iconPrefix: StringConstructor;
|
|
6
10
|
iconPosition: {
|
|
@@ -12,6 +16,10 @@ export declare const FilterTag: import("../utils").WithInstall<import("vue").Def
|
|
|
12
16
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
17
|
selected: BooleanConstructor;
|
|
14
18
|
disabled: BooleanConstructor;
|
|
19
|
+
size: {
|
|
20
|
+
type: import("vue").PropType<import("./FilterTag").FilterTagSize>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
15
23
|
icon: StringConstructor;
|
|
16
24
|
iconPrefix: StringConstructor;
|
|
17
25
|
iconPosition: {
|
|
@@ -24,12 +32,13 @@ export declare const FilterTag: import("../utils").WithInstall<import("vue").Def
|
|
|
24
32
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
25
33
|
}, {
|
|
26
34
|
dot: boolean;
|
|
35
|
+
size: import("./FilterTag").FilterTagSize;
|
|
27
36
|
disabled: boolean;
|
|
28
37
|
selected: boolean;
|
|
29
38
|
iconPosition: import("./FilterTag").FilterTagIconPosition;
|
|
30
39
|
}>>;
|
|
31
40
|
export default FilterTag;
|
|
32
|
-
export type { FilterTagIconPosition, FilterTagProps } from './FilterTag';
|
|
41
|
+
export type { FilterTagIconPosition, FilterTagProps, FilterTagSize, } from './FilterTag';
|
|
33
42
|
declare module 'vue' {
|
|
34
43
|
interface GlobalComponents {
|
|
35
44
|
VanFilterTag: typeof FilterTag;
|
package/es/filter-tag/index.less
CHANGED
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
--van-filter-tag-selected-background-color: @filter-tag-selected-background-color;
|
|
14
14
|
--van-filter-tag-disabled-color: @filter-tag-disabled-color;
|
|
15
15
|
--van-filter-tag-active-opacity: @filter-tag-active-opacity;
|
|
16
|
+
--van-filter-tag-large-padding: @filter-tag-large-padding;
|
|
17
|
+
--van-filter-tag-large-gap: @filter-tag-large-gap;
|
|
18
|
+
--van-filter-tag-large-font-size: @filter-tag-large-font-size;
|
|
19
|
+
--van-filter-tag-large-line-height: @filter-tag-large-line-height;
|
|
20
|
+
--van-filter-tag-large-icon-size: @filter-tag-large-icon-size;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
.van-filter-tag {
|
|
@@ -51,6 +56,17 @@
|
|
|
51
56
|
cursor: not-allowed;
|
|
52
57
|
}
|
|
53
58
|
|
|
59
|
+
&--large {
|
|
60
|
+
gap: var(--van-filter-tag-large-gap);
|
|
61
|
+
padding: var(--van-filter-tag-large-padding);
|
|
62
|
+
font-size: var(--van-filter-tag-large-font-size);
|
|
63
|
+
line-height: var(--van-filter-tag-large-line-height);
|
|
64
|
+
|
|
65
|
+
.van-filter-tag__icon {
|
|
66
|
+
font-size: var(--van-filter-tag-large-icon-size);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
54
70
|
&__icon {
|
|
55
71
|
flex: none;
|
|
56
72
|
font-size: 16px;
|
package/es/filter-tag/var.less
CHANGED
|
@@ -12,3 +12,8 @@
|
|
|
12
12
|
@filter-tag-selected-background-color: var(--van-blue-100);
|
|
13
13
|
@filter-tag-disabled-color: var(--van-gray-5);
|
|
14
14
|
@filter-tag-active-opacity: var(--van-active-opacity);
|
|
15
|
+
@filter-tag-large-padding: 6px 16px;
|
|
16
|
+
@filter-tag-large-gap: 6px;
|
|
17
|
+
@filter-tag-large-font-size: var(--van-font-size-lg);
|
|
18
|
+
@filter-tag-large-line-height: var(--van-line-height-xl);
|
|
19
|
+
@filter-tag-large-icon-size: 18px;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
2
|
+
import { type Numeric } from '../utils';
|
|
3
|
+
import type { FloorSelectBuilding } from './types';
|
|
4
|
+
declare const floorSelectProps: {
|
|
5
|
+
modelValue: PropType<Numeric | undefined>;
|
|
6
|
+
activeBuilding: PropType<Numeric | undefined>;
|
|
7
|
+
buildings: {
|
|
8
|
+
type: PropType<FloorSelectBuilding[]>;
|
|
9
|
+
default: () => FloorSelectBuilding[];
|
|
10
|
+
};
|
|
11
|
+
more: BooleanConstructor;
|
|
12
|
+
};
|
|
13
|
+
export declare type FloorSelectProps = ExtractPropTypes<typeof floorSelectProps>;
|
|
14
|
+
declare const _default: import("vue").DefineComponent<{
|
|
15
|
+
modelValue: PropType<Numeric | undefined>;
|
|
16
|
+
activeBuilding: PropType<Numeric | undefined>;
|
|
17
|
+
buildings: {
|
|
18
|
+
type: PropType<FloorSelectBuilding[]>;
|
|
19
|
+
default: () => FloorSelectBuilding[];
|
|
20
|
+
};
|
|
21
|
+
more: BooleanConstructor;
|
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:activeBuilding")[], "change" | "update:modelValue" | "update:activeBuilding", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
23
|
+
modelValue: PropType<Numeric | undefined>;
|
|
24
|
+
activeBuilding: PropType<Numeric | undefined>;
|
|
25
|
+
buildings: {
|
|
26
|
+
type: PropType<FloorSelectBuilding[]>;
|
|
27
|
+
default: () => FloorSelectBuilding[];
|
|
28
|
+
};
|
|
29
|
+
more: BooleanConstructor;
|
|
30
|
+
}>> & {
|
|
31
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
"onUpdate:activeBuilding"?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
more: boolean;
|
|
36
|
+
buildings: FloorSelectBuilding[];
|
|
37
|
+
}>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { computed, defineComponent, ref, watch, createVNode as _createVNode } from "vue";
|
|
2
|
+
import { createNamespace } from "../utils/index.mjs";
|
|
3
|
+
import { Cell } from "../cell/index.mjs";
|
|
4
|
+
import { Sidebar } from "../sidebar/index.mjs";
|
|
5
|
+
import { SidebarItem } from "../sidebar-item/index.mjs";
|
|
6
|
+
import { Tab } from "../tab/index.mjs";
|
|
7
|
+
import { Tabs } from "../tabs/index.mjs";
|
|
8
|
+
const [name, bem] = createNamespace("floor-select");
|
|
9
|
+
const defaultBuildings = [{
|
|
10
|
+
id: "building-a",
|
|
11
|
+
text: "\u5EFA\u7B51A\u5EA7",
|
|
12
|
+
floors: [{
|
|
13
|
+
id: "a-b3",
|
|
14
|
+
text: "B3",
|
|
15
|
+
spaces: [{
|
|
16
|
+
id: "a-b3-01",
|
|
17
|
+
text: "B3 \u8BBE\u5907\u673A\u623F"
|
|
18
|
+
}, {
|
|
19
|
+
id: "a-b3-02",
|
|
20
|
+
text: "B3 \u914D\u7535\u5BA4"
|
|
21
|
+
}, {
|
|
22
|
+
id: "a-b3-03",
|
|
23
|
+
text: "B3 \u7269\u4E1A\u4ED3\u5E93"
|
|
24
|
+
}]
|
|
25
|
+
}, {
|
|
26
|
+
id: "a-b2",
|
|
27
|
+
text: "B2",
|
|
28
|
+
spaces: [{
|
|
29
|
+
id: "a-b2-01",
|
|
30
|
+
text: "B2 \u505C\u8F66\u533A"
|
|
31
|
+
}, {
|
|
32
|
+
id: "a-b2-02",
|
|
33
|
+
text: "B2 \u6C34\u6CF5\u623F"
|
|
34
|
+
}]
|
|
35
|
+
}, {
|
|
36
|
+
id: "a-b1",
|
|
37
|
+
text: "B1",
|
|
38
|
+
dot: true,
|
|
39
|
+
spaces: [{
|
|
40
|
+
id: "a-b1-01",
|
|
41
|
+
text: "B1 \u6D88\u9632\u63A7\u5236\u5BA4"
|
|
42
|
+
}, {
|
|
43
|
+
id: "a-b1-02",
|
|
44
|
+
text: "B1 \u8BBE\u5907\u95F4"
|
|
45
|
+
}, {
|
|
46
|
+
id: "a-b1-03",
|
|
47
|
+
text: "B1 \u5458\u5DE5\u9910\u5385"
|
|
48
|
+
}]
|
|
49
|
+
}, {
|
|
50
|
+
id: "a-f1",
|
|
51
|
+
text: "F1",
|
|
52
|
+
spaces: [{
|
|
53
|
+
id: "a-f1-01",
|
|
54
|
+
text: "F1 \u5927\u5802"
|
|
55
|
+
}, {
|
|
56
|
+
id: "a-f1-02",
|
|
57
|
+
text: "F1 \u7269\u4E1A\u670D\u52A1\u4E2D\u5FC3"
|
|
58
|
+
}, {
|
|
59
|
+
id: "a-f1-03",
|
|
60
|
+
text: "F1 \u4F1A\u8BAE\u5BA4"
|
|
61
|
+
}, {
|
|
62
|
+
id: "a-f1-04",
|
|
63
|
+
text: "F1 \u8BBE\u5907\u8D70\u5ECA"
|
|
64
|
+
}]
|
|
65
|
+
}]
|
|
66
|
+
}, {
|
|
67
|
+
id: "building-b",
|
|
68
|
+
text: "\u5EFA\u7B51B\u5EA7",
|
|
69
|
+
floors: [{
|
|
70
|
+
id: "b-b1",
|
|
71
|
+
text: "B1",
|
|
72
|
+
spaces: [{
|
|
73
|
+
id: "b-b1-01",
|
|
74
|
+
text: "B\u5EA7 B1 \u8BBE\u5907\u95F4"
|
|
75
|
+
}]
|
|
76
|
+
}, {
|
|
77
|
+
id: "b-f1",
|
|
78
|
+
text: "F1",
|
|
79
|
+
spaces: [{
|
|
80
|
+
id: "b-f1-01",
|
|
81
|
+
text: "B\u5EA7 F1 \u5927\u5802"
|
|
82
|
+
}]
|
|
83
|
+
}, {
|
|
84
|
+
id: "b-f2",
|
|
85
|
+
text: "F2",
|
|
86
|
+
spaces: [{
|
|
87
|
+
id: "b-f2-01",
|
|
88
|
+
text: "B\u5EA7 F2 \u529E\u516C\u533A"
|
|
89
|
+
}]
|
|
90
|
+
}]
|
|
91
|
+
}, {
|
|
92
|
+
id: "building-c",
|
|
93
|
+
text: "\u5EFA\u7B51C\u5EA7",
|
|
94
|
+
floors: [{
|
|
95
|
+
id: "c-f1",
|
|
96
|
+
text: "F1",
|
|
97
|
+
spaces: [{
|
|
98
|
+
id: "c-f1-01",
|
|
99
|
+
text: "C\u5EA7 F1 \u8BBE\u5907\u95F4"
|
|
100
|
+
}]
|
|
101
|
+
}]
|
|
102
|
+
}, {
|
|
103
|
+
id: "building-d",
|
|
104
|
+
text: "\u5EFA\u7B51D\u5EA7",
|
|
105
|
+
floors: [{
|
|
106
|
+
id: "d-f1",
|
|
107
|
+
text: "F1",
|
|
108
|
+
spaces: [{
|
|
109
|
+
id: "d-f1-01",
|
|
110
|
+
text: "D\u5EA7 F1 \u529E\u516C\u533A"
|
|
111
|
+
}]
|
|
112
|
+
}]
|
|
113
|
+
}];
|
|
114
|
+
const floorSelectProps = {
|
|
115
|
+
modelValue: [String, Number],
|
|
116
|
+
activeBuilding: [String, Number],
|
|
117
|
+
buildings: {
|
|
118
|
+
type: Array,
|
|
119
|
+
default: () => defaultBuildings
|
|
120
|
+
},
|
|
121
|
+
more: Boolean
|
|
122
|
+
};
|
|
123
|
+
var stdin_default = defineComponent({
|
|
124
|
+
name,
|
|
125
|
+
props: floorSelectProps,
|
|
126
|
+
emits: ["change", "update:activeBuilding", "update:modelValue"],
|
|
127
|
+
setup(props, {
|
|
128
|
+
emit,
|
|
129
|
+
slots
|
|
130
|
+
}) {
|
|
131
|
+
const activeBuilding = ref();
|
|
132
|
+
const activeFloor = ref(0);
|
|
133
|
+
const showMore = ref(false);
|
|
134
|
+
const currentBuilding = computed(() => props.buildings.find((building) => building.id === activeBuilding.value));
|
|
135
|
+
const floors = computed(() => {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
return (_b = (_a = currentBuilding.value) == null ? void 0 : _a.floors) != null ? _b : [];
|
|
138
|
+
});
|
|
139
|
+
const spaces = computed(() => {
|
|
140
|
+
var _a, _b;
|
|
141
|
+
return (_b = (_a = floors.value[activeFloor.value]) == null ? void 0 : _a.spaces) != null ? _b : [];
|
|
142
|
+
});
|
|
143
|
+
const syncBuilding = () => {
|
|
144
|
+
var _a, _b, _c;
|
|
145
|
+
const selectedBuilding = props.buildings.find((building) => building.id === props.activeBuilding);
|
|
146
|
+
const containsSelectedSpace = props.buildings.find((building) => building.floors.some((floor) => floor.spaces.some((space) => space.id === props.modelValue)));
|
|
147
|
+
activeBuilding.value = (_c = (_a = selectedBuilding == null ? void 0 : selectedBuilding.id) != null ? _a : containsSelectedSpace == null ? void 0 : containsSelectedSpace.id) != null ? _c : (_b = props.buildings[0]) == null ? void 0 : _b.id;
|
|
148
|
+
};
|
|
149
|
+
watch(() => [props.activeBuilding, props.modelValue, props.buildings], () => {
|
|
150
|
+
syncBuilding();
|
|
151
|
+
}, {
|
|
152
|
+
immediate: true,
|
|
153
|
+
deep: true
|
|
154
|
+
});
|
|
155
|
+
watch([activeBuilding, floors], () => {
|
|
156
|
+
const selectedIndex = floors.value.findIndex((floor) => floor.spaces.some((space) => space.id === props.modelValue));
|
|
157
|
+
activeFloor.value = selectedIndex >= 0 ? selectedIndex : 0;
|
|
158
|
+
}, {
|
|
159
|
+
immediate: true
|
|
160
|
+
});
|
|
161
|
+
const selectBuilding = (id) => {
|
|
162
|
+
activeBuilding.value = id;
|
|
163
|
+
emit("update:activeBuilding", id);
|
|
164
|
+
};
|
|
165
|
+
const selectSpace = (item) => {
|
|
166
|
+
if (item.disabled) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
emit("update:modelValue", item.id);
|
|
170
|
+
emit("change", item, activeBuilding.value);
|
|
171
|
+
};
|
|
172
|
+
const renderCell = (item, index) => {
|
|
173
|
+
var _a;
|
|
174
|
+
const selected = props.modelValue === item.id;
|
|
175
|
+
const cell = (_a = slots.cell) == null ? void 0 : _a.call(slots, {
|
|
176
|
+
item,
|
|
177
|
+
selected,
|
|
178
|
+
select: () => selectSpace(item)
|
|
179
|
+
});
|
|
180
|
+
return _createVNode("div", {
|
|
181
|
+
"key": item.id,
|
|
182
|
+
"class": bem("cell")
|
|
183
|
+
}, [cell || _createVNode(Cell, {
|
|
184
|
+
"title": item.text,
|
|
185
|
+
"border": index < spaces.value.length - 1,
|
|
186
|
+
"clickable": !item.disabled,
|
|
187
|
+
"rightSelect": selected,
|
|
188
|
+
"selectType": "radio",
|
|
189
|
+
"onClick": () => selectSpace(item),
|
|
190
|
+
"onUpdate:rightSelect": () => selectSpace(item)
|
|
191
|
+
}, null)]);
|
|
192
|
+
};
|
|
193
|
+
return () => _createVNode("div", {
|
|
194
|
+
"class": bem()
|
|
195
|
+
}, [_createVNode(Tabs, {
|
|
196
|
+
"active": activeBuilding.value,
|
|
197
|
+
"type": "filter",
|
|
198
|
+
"shrink": true,
|
|
199
|
+
"more": props.more,
|
|
200
|
+
"showMore": showMore.value,
|
|
201
|
+
"class": bem("tabs"),
|
|
202
|
+
"onUpdate:active": selectBuilding,
|
|
203
|
+
"onUpdate:showMore": (value) => {
|
|
204
|
+
showMore.value = value;
|
|
205
|
+
}
|
|
206
|
+
}, {
|
|
207
|
+
default: () => [props.buildings.map((building) => _createVNode(Tab, {
|
|
208
|
+
"key": building.id,
|
|
209
|
+
"name": building.id,
|
|
210
|
+
"title": building.text
|
|
211
|
+
}, null))]
|
|
212
|
+
}), _createVNode("div", {
|
|
213
|
+
"class": bem("content")
|
|
214
|
+
}, [_createVNode(Sidebar, {
|
|
215
|
+
"modelValue": activeFloor.value,
|
|
216
|
+
"class": bem("sidebar"),
|
|
217
|
+
"onUpdate:modelValue": (value) => {
|
|
218
|
+
activeFloor.value = +value;
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
default: () => [floors.value.map((floor) => _createVNode(SidebarItem, {
|
|
222
|
+
"key": floor.id,
|
|
223
|
+
"title": floor.text,
|
|
224
|
+
"dot": floor.dot,
|
|
225
|
+
"badgeProps": {
|
|
226
|
+
color: "var(--van-danger-color)"
|
|
227
|
+
},
|
|
228
|
+
"disabled": floor.disabled
|
|
229
|
+
}, null))]
|
|
230
|
+
}), _createVNode("div", {
|
|
231
|
+
"class": bem("cells")
|
|
232
|
+
}, [spaces.value.map(renderCell)])])]);
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
export {
|
|
236
|
+
stdin_default as default
|
|
237
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.van-floor-select{display:flex;flex-direction:column;min-height:100vh;color:var(--van-text-color);background:var(--van-background-color-light)}.van-floor-select__tabs{flex:none;padding:var(--van-padding-xs) 0;background:var(--van-gray-1);--van-tabs-line-height: 38px;--van-tabs-nav-background-color: transparent;--van-tabs-filter-background-color: var(--van-gray-2);--van-tabs-filter-active-background-color: var(--van-blue-100);--van-tabs-filter-border-radius: var(--van-border-radius-lg)}.van-floor-select__tabs .van-tabs__nav{gap:6px}.van-floor-select__tabs .van-tabs__more{z-index:3;width:40px;color:var(--van-gray-8);background:linear-gradient(90deg,transparent,var(--van-gray-1) 36%)}.van-floor-select__content{display:flex;flex:1;min-height:0}.van-floor-select__sidebar{flex:none;height:auto;background:var(--van-gray-1);--van-sidebar-width: 80px;--van-sidebar-padding: var(--van-padding-sm);--van-sidebar-background-color: var(--van-gray-1);--van-sidebar-selected-background-color: var(--van-background-color-light);--van-sidebar-selected-text-color: var(--van-primary-color);--van-sidebar-selected-font-weight: var(--van-font-weight-bold)}.van-floor-select__cells{flex:1;min-width:0;overflow-y:auto;background:var(--van-background-color-light)}.van-floor-select__cell .van-cell{--van-cell-vertical-padding: var(--van-padding-sm)}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const FloorSelect: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
modelValue: import("vue").PropType<import("../utils").Numeric | undefined>;
|
|
3
|
+
activeBuilding: import("vue").PropType<import("../utils").Numeric | undefined>;
|
|
4
|
+
buildings: {
|
|
5
|
+
type: import("vue").PropType<import("./types").FloorSelectBuilding[]>;
|
|
6
|
+
default: () => import("./types").FloorSelectBuilding[];
|
|
7
|
+
};
|
|
8
|
+
more: BooleanConstructor;
|
|
9
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:activeBuilding")[], "change" | "update:modelValue" | "update:activeBuilding", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
modelValue: import("vue").PropType<import("../utils").Numeric | undefined>;
|
|
11
|
+
activeBuilding: import("vue").PropType<import("../utils").Numeric | undefined>;
|
|
12
|
+
buildings: {
|
|
13
|
+
type: import("vue").PropType<import("./types").FloorSelectBuilding[]>;
|
|
14
|
+
default: () => import("./types").FloorSelectBuilding[];
|
|
15
|
+
};
|
|
16
|
+
more: BooleanConstructor;
|
|
17
|
+
}>> & {
|
|
18
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
"onUpdate:activeBuilding"?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
more: boolean;
|
|
23
|
+
buildings: import("./types").FloorSelectBuilding[];
|
|
24
|
+
}>>;
|
|
25
|
+
export default FloorSelect;
|
|
26
|
+
export type { FloorSelectProps } from './FloorSelect';
|
|
27
|
+
export type { FloorSelectBuilding, FloorSelectItem, FloorSelectSpace } from './types';
|
|
28
|
+
declare module 'vue' {
|
|
29
|
+
interface GlobalComponents {
|
|
30
|
+
VanFloorSelect: typeof FloorSelect;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.van-floor-select {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
min-height: 100vh;
|
|
5
|
+
color: var(--van-text-color);
|
|
6
|
+
background: var(--van-background-color-light);
|
|
7
|
+
|
|
8
|
+
&__tabs {
|
|
9
|
+
flex: none;
|
|
10
|
+
padding: var(--van-padding-xs) 0;
|
|
11
|
+
background: var(--van-gray-1);
|
|
12
|
+
--van-tabs-line-height: 38px;
|
|
13
|
+
--van-tabs-nav-background-color: transparent;
|
|
14
|
+
--van-tabs-filter-background-color: var(--van-gray-2);
|
|
15
|
+
--van-tabs-filter-active-background-color: var(--van-blue-100);
|
|
16
|
+
--van-tabs-filter-border-radius: var(--van-border-radius-lg);
|
|
17
|
+
|
|
18
|
+
.van-tabs__nav { gap: 6px; }
|
|
19
|
+
|
|
20
|
+
.van-tabs__more {
|
|
21
|
+
z-index: 3;
|
|
22
|
+
width: 40px;
|
|
23
|
+
color: var(--van-gray-8);
|
|
24
|
+
background: linear-gradient(90deg, transparent, var(--van-gray-1) 36%);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__content {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex: 1;
|
|
31
|
+
min-height: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__sidebar {
|
|
35
|
+
flex: none;
|
|
36
|
+
height: auto;
|
|
37
|
+
background: var(--van-gray-1);
|
|
38
|
+
--van-sidebar-width: 80px;
|
|
39
|
+
--van-sidebar-padding: var(--van-padding-sm);
|
|
40
|
+
--van-sidebar-background-color: var(--van-gray-1);
|
|
41
|
+
--van-sidebar-selected-background-color: var(--van-background-color-light);
|
|
42
|
+
--van-sidebar-selected-text-color: var(--van-primary-color);
|
|
43
|
+
--van-sidebar-selected-font-weight: var(--van-font-weight-bold);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__cells {
|
|
47
|
+
flex: 1;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
overflow-y: auto;
|
|
50
|
+
background: var(--van-background-color-light);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__cell {
|
|
54
|
+
.van-cell {
|
|
55
|
+
--van-cell-vertical-padding: var(--van-padding-sm);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "../../style/base.css";
|
|
2
|
+
import "../../badge/index.css";
|
|
3
|
+
import "../../icon/index.css";
|
|
4
|
+
import "../../loading/index.css";
|
|
5
|
+
import "../../overlay/index.css";
|
|
6
|
+
import "../../popup/index.css";
|
|
7
|
+
import "../../action-sheet/index.css";
|
|
8
|
+
import "../../checkbox-group/index.css";
|
|
9
|
+
import "../../checkbox/index.css";
|
|
10
|
+
import "../../radio-group/index.css";
|
|
11
|
+
import "../../radio/index.css";
|
|
12
|
+
import "../../cell/index.css";
|
|
13
|
+
import "../../sticky/index.css";
|
|
14
|
+
import "../../swipe/index.css";
|
|
15
|
+
import "../../swipe-item/index.css";
|
|
16
|
+
import "../../tabs/index.css";
|
|
17
|
+
import "../../tab/index.css";
|
|
18
|
+
import "../../sidebar/index.css";
|
|
19
|
+
import "../../sidebar-item/index.css";
|
|
20
|
+
import "../index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "../../style/base.less";
|
|
2
|
+
import "../../badge/index.less";
|
|
3
|
+
import "../../icon/index.less";
|
|
4
|
+
import "../../loading/index.less";
|
|
5
|
+
import "../../overlay/index.less";
|
|
6
|
+
import "../../popup/index.less";
|
|
7
|
+
import "../../action-sheet/index.less";
|
|
8
|
+
import "../../checkbox-group/index.less";
|
|
9
|
+
import "../../checkbox/index.less";
|
|
10
|
+
import "../../radio-group/index.less";
|
|
11
|
+
import "../../radio/index.less";
|
|
12
|
+
import "../../cell/index.less";
|
|
13
|
+
import "../../sticky/index.less";
|
|
14
|
+
import "../../swipe/index.less";
|
|
15
|
+
import "../../swipe-item/index.less";
|
|
16
|
+
import "../../tabs/index.less";
|
|
17
|
+
import "../../tab/index.less";
|
|
18
|
+
import "../../sidebar/index.less";
|
|
19
|
+
import "../../sidebar-item/index.less";
|
|
20
|
+
import "../index.less";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Numeric } from '../utils';
|
|
2
|
+
export declare type FloorSelectSpace = {
|
|
3
|
+
id: Numeric;
|
|
4
|
+
text: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare type FloorSelectItem = {
|
|
8
|
+
id: Numeric;
|
|
9
|
+
text: string;
|
|
10
|
+
dot?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
spaces: FloorSelectSpace[];
|
|
13
|
+
};
|
|
14
|
+
export declare type FloorSelectBuilding = {
|
|
15
|
+
id: Numeric;
|
|
16
|
+
text: string;
|
|
17
|
+
floors: FloorSelectItem[];
|
|
18
|
+
};
|
|
File without changes
|