persagy-vant 0.0.36 → 0.0.38
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/area/style/index.mjs +2 -0
- package/es/area/style/less.mjs +2 -0
- package/es/cell/Cell.d.ts +9 -0
- package/es/cell/Cell.mjs +15 -3
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +6 -1
- package/es/cell/index.less +24 -2
- package/es/cell/var.less +6 -0
- package/es/cell-group/CellGroup.d.ts +4 -0
- package/es/cell-group/CellGroup.mjs +4 -2
- package/es/cell-group/index.css +1 -1
- package/es/cell-group/index.d.ts +3 -0
- package/es/cell-group/index.less +27 -0
- package/es/cell-group/var.less +3 -0
- package/es/collapse-item/CollapseItem.d.ts +7 -0
- package/es/collapse-item/index.d.ts +5 -0
- package/es/field/Field.d.ts +7 -0
- package/es/field/index.d.ts +5 -0
- package/es/icon/Icon.mjs +7 -4
- package/es/icon/assets/copy.svg +4 -0
- package/es/icon/config.d.ts +1 -0
- package/es/icon/config.mjs +1 -0
- package/es/icon/gif.d.ts +6 -0
- package/es/icon/gif.mjs +9 -0
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +2 -0
- package/es/icon/index.mjs +4 -1
- package/es/icon/latest-iconfont.css +1 -1
- package/es/icon/latest-iconfont.less +11 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/info-card/InfoCard.d.ts +31 -0
- package/es/info-card/InfoCard.mjs +45 -3
- package/es/info-card/index.css +1 -1
- package/es/info-card/index.d.ts +22 -1
- package/es/info-card/index.less +57 -0
- package/es/info-card/var.less +1 -1
- package/es/label/Label.d.ts +21 -0
- package/es/label/Label.mjs +12 -2
- package/es/label/index.css +1 -1
- package/es/label/index.d.ts +15 -0
- package/es/label/index.less +27 -0
- package/es/label/var.less +1 -0
- package/es/list/style/index.mjs +2 -0
- package/es/list/style/less.mjs +2 -0
- package/es/loading/Loading.mjs +8 -26
- package/es/loading/index.css +1 -1
- package/es/loading/index.less +1 -1
- package/es/loading/style/index.mjs +2 -0
- package/es/loading/style/less.mjs +2 -0
- package/es/material-action-bar/index.css +1 -1
- package/es/material-action-bar/index.less +3 -1
- package/es/material-add/MaterialAdd.mjs +158 -63
- package/es/material-add/index.css +1 -1
- package/es/material-add/index.d.ts +1 -1
- package/es/material-add/index.less +0 -14
- package/es/material-add/types.d.ts +7 -4
- package/es/material-detail/MaterialDetail.mjs +14 -9
- package/es/material-display-bar/index.css +1 -1
- package/es/material-display-bar/index.less +2 -1
- package/es/material-display-bar/var.less +1 -0
- package/es/number-keyboard/style/index.mjs +2 -0
- package/es/number-keyboard/style/less.mjs +2 -0
- package/es/object-select/ObjectSelect.mjs +13 -1
- package/es/picker/style/index.mjs +2 -0
- package/es/picker/style/less.mjs +2 -0
- package/es/progress/Progress.d.ts +17 -0
- package/es/progress/Progress.mjs +14 -9
- package/es/progress/index.css +1 -1
- package/es/progress/index.d.ts +12 -1
- package/es/progress/index.less +24 -14
- package/es/progress/types.d.ts +1 -0
- package/es/progress/var.less +10 -7
- package/es/pull-refresh/style/index.mjs +2 -0
- package/es/pull-refresh/style/less.mjs +2 -0
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/style/css-variables.css +1 -1
- package/es/style/css-variables.less +1 -0
- package/es/style/var.less +1 -0
- package/es/switch/style/index.mjs +2 -0
- package/es/switch/style/less.mjs +2 -0
- package/es/title-bar/TitleBar.d.ts +5 -1
- package/es/title-bar/TitleBar.mjs +5 -3
- package/es/title-bar/index.css +1 -1
- package/es/title-bar/index.d.ts +4 -1
- package/es/title-bar/index.less +6 -1
- package/es/title-bar/var.less +2 -0
- package/es/tree-select/TreeSelect.mjs +9 -4
- package/es/tree-select/index.css +1 -1
- package/es/tree-select/index.less +29 -1
- package/es/uploader/Uploader.d.ts +7 -0
- package/es/uploader/Uploader.mjs +55 -30
- package/es/uploader/UploaderPreviewItem.d.ts +2 -1
- package/es/uploader/UploaderPreviewItem.mjs +13 -6
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +5 -0
- package/es/uploader/index.less +30 -0
- package/es/uploader/types.d.ts +1 -0
- package/es/uploader/utils.d.ts +2 -0
- package/es/uploader/utils.mjs +74 -0
- package/es/uploader/var.less +5 -0
- package/es/work-order-card/WorkOrderCard.mjs +52 -11
- package/es/work-order-card/index.css +1 -1
- package/es/work-order-card/index.less +3 -4
- package/es/work-order-card/style/index.mjs +2 -0
- package/es/work-order-card/style/less.mjs +2 -0
- package/es/work-order-card/types.d.ts +14 -1
- package/lib/area/style/index.js +2 -0
- package/lib/area/style/less.js +2 -0
- package/lib/cell/Cell.d.ts +9 -0
- package/lib/cell/Cell.js +15 -3
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +6 -1
- package/lib/cell/index.less +24 -2
- package/lib/cell/var.less +6 -0
- package/lib/cell-group/CellGroup.d.ts +4 -0
- package/lib/cell-group/CellGroup.js +4 -2
- package/lib/cell-group/index.css +1 -1
- package/lib/cell-group/index.d.ts +3 -0
- package/lib/cell-group/index.less +27 -0
- package/lib/cell-group/var.less +3 -0
- package/lib/collapse-item/CollapseItem.d.ts +7 -0
- package/lib/collapse-item/index.d.ts +5 -0
- package/lib/field/Field.d.ts +7 -0
- package/lib/field/index.d.ts +5 -0
- package/lib/icon/Icon.js +7 -4
- package/lib/icon/assets/copy.svg +4 -0
- package/lib/icon/config.d.ts +1 -0
- package/lib/icon/config.js +1 -0
- package/lib/icon/gif.d.ts +6 -0
- package/lib/icon/gif.js +28 -0
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/index.js +4 -1
- package/lib/icon/latest-iconfont.css +1 -1
- package/lib/icon/latest-iconfont.less +11 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/info-card/InfoCard.d.ts +31 -0
- package/lib/info-card/InfoCard.js +45 -3
- package/lib/info-card/index.css +1 -1
- package/lib/info-card/index.d.ts +22 -1
- package/lib/info-card/index.less +57 -0
- package/lib/info-card/var.less +1 -1
- package/lib/label/Label.d.ts +21 -0
- package/lib/label/Label.js +12 -2
- package/lib/label/index.css +1 -1
- package/lib/label/index.d.ts +15 -0
- package/lib/label/index.less +27 -0
- package/lib/label/var.less +1 -0
- package/lib/list/style/index.js +2 -0
- package/lib/list/style/less.js +2 -0
- package/lib/loading/Loading.js +8 -26
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.less +1 -1
- package/lib/loading/style/index.js +2 -0
- package/lib/loading/style/less.js +2 -0
- package/lib/material-action-bar/index.css +1 -1
- package/lib/material-action-bar/index.less +3 -1
- package/lib/material-add/MaterialAdd.js +158 -63
- package/lib/material-add/index.css +1 -1
- package/lib/material-add/index.d.ts +1 -1
- package/lib/material-add/index.less +0 -14
- package/lib/material-add/types.d.ts +7 -4
- package/lib/material-detail/MaterialDetail.js +14 -9
- package/lib/material-display-bar/index.css +1 -1
- package/lib/material-display-bar/index.less +2 -1
- package/lib/material-display-bar/var.less +1 -0
- package/lib/number-keyboard/style/index.js +2 -0
- package/lib/number-keyboard/style/less.js +2 -0
- package/lib/object-select/ObjectSelect.js +13 -1
- package/lib/picker/style/index.js +2 -0
- package/lib/picker/style/less.js +2 -0
- package/lib/progress/Progress.d.ts +17 -0
- package/lib/progress/Progress.js +13 -8
- package/lib/progress/index.css +1 -1
- package/lib/progress/index.d.ts +12 -1
- package/lib/progress/index.less +24 -14
- package/lib/progress/types.d.ts +1 -0
- package/lib/progress/var.less +10 -7
- package/lib/pull-refresh/style/index.js +2 -0
- package/lib/pull-refresh/style/less.js +2 -0
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/style/css-variables.css +1 -1
- package/lib/style/css-variables.less +1 -0
- package/lib/style/var.less +1 -0
- package/lib/switch/style/index.js +2 -0
- package/lib/switch/style/less.js +2 -0
- package/lib/title-bar/TitleBar.d.ts +5 -1
- package/lib/title-bar/TitleBar.js +5 -3
- package/lib/title-bar/index.css +1 -1
- package/lib/title-bar/index.d.ts +4 -1
- package/lib/title-bar/index.less +6 -1
- package/lib/title-bar/var.less +2 -0
- package/lib/tree-select/TreeSelect.js +9 -4
- package/lib/tree-select/index.css +1 -1
- package/lib/tree-select/index.less +29 -1
- package/lib/uploader/Uploader.d.ts +7 -0
- package/lib/uploader/Uploader.js +53 -28
- package/lib/uploader/UploaderPreviewItem.d.ts +2 -1
- package/lib/uploader/UploaderPreviewItem.js +12 -5
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +5 -0
- package/lib/uploader/index.less +30 -0
- package/lib/uploader/types.d.ts +1 -0
- package/lib/uploader/utils.d.ts +2 -0
- package/lib/uploader/utils.js +74 -0
- package/lib/uploader/var.less +5 -0
- package/lib/vant.cjs.js +482 -170
- package/lib/vant.es.js +482 -170
- package/lib/vant.js +482 -170
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/lib/work-order-card/WorkOrderCard.js +52 -11
- package/lib/work-order-card/index.css +1 -1
- package/lib/work-order-card/index.less +3 -4
- package/lib/work-order-card/style/index.js +2 -0
- package/lib/work-order-card/style/less.js +2 -0
- package/lib/work-order-card/types.d.ts +14 -1
- package/package.json +2 -2
- package/skills/use-persagy-vant/SKILL.md +4 -3
- package/skills/use-persagy-vant/references/component-documentation.md +8 -8
- package/skills/use-persagy-vant/references/component-variant-selection.md +53 -0
- package/skills/use-persagy-vant/references/design-interaction-baseline.md +2 -1
- package/skills/use-persagy-vant/references/page-recipes.md +4 -0
- package/skills/use-persagy-vant/references/reuse-policy.md +9 -6
- /package/es/{loading/assets/building.gif → icon/assets/gif/loading-building.gif} +0 -0
- /package/lib/{loading/assets/building.gif → icon/assets/gif/loading-building.gif} +0 -0
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--van-material-display-bar-field-label-max-width: @material-detail-field-label-max-width;
|
|
9
9
|
--van-material-display-bar-title-color: @material-detail-title-color;
|
|
10
10
|
--van-material-display-bar-title-font-size: @material-detail-title-font-size;
|
|
11
|
+
--van-material-display-bar-title-font-weight: @material-detail-title-font-weight;
|
|
11
12
|
--van-material-display-bar-title-line-height: @material-detail-title-line-height;
|
|
12
13
|
--van-material-display-bar-title-gap: @material-detail-title-gap;
|
|
13
14
|
--van-material-display-bar-title-icon-size: @material-detail-title-icon-size;
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
color: var(--van-material-display-bar-title-color);
|
|
52
53
|
font: inherit;
|
|
53
54
|
font-size: var(--van-material-display-bar-title-font-size);
|
|
54
|
-
font-weight:
|
|
55
|
+
font-weight: var(--van-material-display-bar-title-font-weight);
|
|
55
56
|
line-height: var(--van-material-display-bar-title-line-height);
|
|
56
57
|
text-align: left;
|
|
57
58
|
background: transparent;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@material-detail-field-label-max-width: 120px;
|
|
6
6
|
@material-detail-title-color: var(--van-gray-8);
|
|
7
7
|
@material-detail-title-font-size: var(--van-font-size-md);
|
|
8
|
+
@material-detail-title-font-weight: var(--van-font-weight-bold);
|
|
8
9
|
@material-detail-title-line-height: var(--van-line-height-lg);
|
|
9
10
|
@material-detail-title-gap: 2px;
|
|
10
11
|
@material-detail-title-icon-size: 12px;
|
|
@@ -391,6 +391,15 @@ var stdin_default = defineComponent({
|
|
|
391
391
|
const expandedSelected = ref(false);
|
|
392
392
|
const searching = ref(false);
|
|
393
393
|
const keyword = ref("");
|
|
394
|
+
const currentSpecialtyItems = (specialty) => specialtyType.value === 0 ? specialty.deviceItems : specialty.systemItems;
|
|
395
|
+
const expandOnlySpecialty = () => {
|
|
396
|
+
if (props.specialties.length === 1) {
|
|
397
|
+
const [specialty] = props.specialties;
|
|
398
|
+
expandedSpecialties.value = extend({}, expandedSpecialties.value, {
|
|
399
|
+
[specialty.id]: true
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
};
|
|
394
403
|
const reset = () => {
|
|
395
404
|
view.value = 0;
|
|
396
405
|
specialtyType.value = 0;
|
|
@@ -400,6 +409,7 @@ var stdin_default = defineComponent({
|
|
|
400
409
|
expandedSpecialties.value = {
|
|
401
410
|
"strong-electricity": true
|
|
402
411
|
};
|
|
412
|
+
expandOnlySpecialty();
|
|
403
413
|
};
|
|
404
414
|
watch(() => props.show, (show) => show && reset(), {
|
|
405
415
|
immediate: true
|
|
@@ -467,7 +477,7 @@ var stdin_default = defineComponent({
|
|
|
467
477
|
const renderSpecialty = (specialty) => {
|
|
468
478
|
var _a;
|
|
469
479
|
const expanded = (_a = expandedSpecialties.value[specialty.id]) != null ? _a : false;
|
|
470
|
-
const items =
|
|
480
|
+
const items = currentSpecialtyItems(specialty);
|
|
471
481
|
return _createVNode("section", {
|
|
472
482
|
"class": bem("specialty"),
|
|
473
483
|
"key": specialty.id
|
|
@@ -555,6 +565,7 @@ var stdin_default = defineComponent({
|
|
|
555
565
|
"selected": specialtyType.value === 0,
|
|
556
566
|
"onClick": () => {
|
|
557
567
|
specialtyType.value = 0;
|
|
568
|
+
expandOnlySpecialty();
|
|
558
569
|
}
|
|
559
570
|
}, {
|
|
560
571
|
default: () => [_createTextVNode("\u8BBE\u5907")]
|
|
@@ -562,6 +573,7 @@ var stdin_default = defineComponent({
|
|
|
562
573
|
"selected": specialtyType.value === 1,
|
|
563
574
|
"onClick": () => {
|
|
564
575
|
specialtyType.value = 1;
|
|
576
|
+
expandOnlySpecialty();
|
|
565
577
|
}
|
|
566
578
|
}, {
|
|
567
579
|
default: () => [_createTextVNode("\u7CFB\u7EDF")]
|
package/es/picker/style/less.mjs
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
|
2
2
|
import { type Numeric } from '../utils';
|
|
3
|
+
import type { ProgressSize } from './types';
|
|
3
4
|
declare const progressProps: {
|
|
5
|
+
size: {
|
|
6
|
+
type: import("vue").PropType<ProgressSize>;
|
|
7
|
+
default: ProgressSize;
|
|
8
|
+
};
|
|
4
9
|
color: StringConstructor;
|
|
5
10
|
inactive: BooleanConstructor;
|
|
6
11
|
pivotText: StringConstructor;
|
|
7
12
|
textColor: StringConstructor;
|
|
13
|
+
textSize: (NumberConstructor | StringConstructor)[];
|
|
8
14
|
showPivot: {
|
|
9
15
|
type: BooleanConstructor;
|
|
10
16
|
default: true;
|
|
@@ -20,10 +26,15 @@ declare const progressProps: {
|
|
|
20
26
|
};
|
|
21
27
|
export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
|
22
28
|
declare const _default: import("vue").DefineComponent<{
|
|
29
|
+
size: {
|
|
30
|
+
type: import("vue").PropType<ProgressSize>;
|
|
31
|
+
default: ProgressSize;
|
|
32
|
+
};
|
|
23
33
|
color: StringConstructor;
|
|
24
34
|
inactive: BooleanConstructor;
|
|
25
35
|
pivotText: StringConstructor;
|
|
26
36
|
textColor: StringConstructor;
|
|
37
|
+
textSize: (NumberConstructor | StringConstructor)[];
|
|
27
38
|
showPivot: {
|
|
28
39
|
type: BooleanConstructor;
|
|
29
40
|
default: true;
|
|
@@ -37,10 +48,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
48
|
validator: (value: Numeric) => boolean;
|
|
38
49
|
};
|
|
39
50
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
51
|
+
size: {
|
|
52
|
+
type: import("vue").PropType<ProgressSize>;
|
|
53
|
+
default: ProgressSize;
|
|
54
|
+
};
|
|
40
55
|
color: StringConstructor;
|
|
41
56
|
inactive: BooleanConstructor;
|
|
42
57
|
pivotText: StringConstructor;
|
|
43
58
|
textColor: StringConstructor;
|
|
59
|
+
textSize: (NumberConstructor | StringConstructor)[];
|
|
44
60
|
showPivot: {
|
|
45
61
|
type: BooleanConstructor;
|
|
46
62
|
default: true;
|
|
@@ -54,6 +70,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
70
|
validator: (value: Numeric) => boolean;
|
|
55
71
|
};
|
|
56
72
|
}>>, {
|
|
73
|
+
size: ProgressSize;
|
|
57
74
|
inactive: boolean;
|
|
58
75
|
showPivot: boolean;
|
|
59
76
|
percentage: string | number;
|
package/es/progress/Progress.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { computed, defineComponent, createVNode as _createVNode } from "vue";
|
|
2
|
-
import { addUnit, truthProp, numericProp, createNamespace } from "../utils/index.mjs";
|
|
2
|
+
import { addUnit, truthProp, numericProp, createNamespace, makeStringProp } from "../utils/index.mjs";
|
|
3
3
|
const [name, bem] = createNamespace("progress");
|
|
4
4
|
const progressProps = {
|
|
5
|
+
size: makeStringProp("default"),
|
|
5
6
|
color: String,
|
|
6
7
|
inactive: Boolean,
|
|
7
8
|
pivotText: String,
|
|
8
9
|
textColor: String,
|
|
10
|
+
textSize: numericProp,
|
|
9
11
|
showPivot: truthProp,
|
|
10
12
|
pivotColor: String,
|
|
11
13
|
trackColor: String,
|
|
@@ -24,6 +26,7 @@ var stdin_default = defineComponent({
|
|
|
24
26
|
const renderPivot = () => {
|
|
25
27
|
const {
|
|
26
28
|
textColor,
|
|
29
|
+
textSize,
|
|
27
30
|
pivotText,
|
|
28
31
|
pivotColor,
|
|
29
32
|
percentage
|
|
@@ -31,10 +34,8 @@ var stdin_default = defineComponent({
|
|
|
31
34
|
const text = pivotText != null ? pivotText : `${percentage}%`;
|
|
32
35
|
if (props.showPivot && text) {
|
|
33
36
|
const style = {
|
|
34
|
-
color: textColor,
|
|
35
|
-
|
|
36
|
-
transform: `translate(-${+percentage}%,-50%)`,
|
|
37
|
-
background: pivotColor || background.value
|
|
37
|
+
color: textColor || pivotColor,
|
|
38
|
+
fontSize: addUnit(textSize)
|
|
38
39
|
};
|
|
39
40
|
return _createVNode("span", {
|
|
40
41
|
"style": style,
|
|
@@ -50,7 +51,7 @@ var stdin_default = defineComponent({
|
|
|
50
51
|
percentage,
|
|
51
52
|
strokeWidth
|
|
52
53
|
} = props;
|
|
53
|
-
const
|
|
54
|
+
const trackStyle = {
|
|
54
55
|
background: trackColor,
|
|
55
56
|
height: addUnit(strokeWidth)
|
|
56
57
|
};
|
|
@@ -59,14 +60,18 @@ var stdin_default = defineComponent({
|
|
|
59
60
|
background: background.value
|
|
60
61
|
};
|
|
61
62
|
return _createVNode("div", {
|
|
62
|
-
"class": bem(
|
|
63
|
-
|
|
63
|
+
"class": bem({
|
|
64
|
+
large: props.size === "large"
|
|
65
|
+
})
|
|
66
|
+
}, [_createVNode("div", {
|
|
67
|
+
"class": bem("track"),
|
|
68
|
+
"style": trackStyle
|
|
64
69
|
}, [_createVNode("span", {
|
|
65
70
|
"class": bem("portion", {
|
|
66
71
|
inactive: props.inactive
|
|
67
72
|
}),
|
|
68
73
|
"style": portionStyle
|
|
69
|
-
}, null), renderPivot()]);
|
|
74
|
+
}, null)]), renderPivot()]);
|
|
70
75
|
};
|
|
71
76
|
}
|
|
72
77
|
});
|
package/es/progress/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-progress-height:
|
|
1
|
+
:root{--van-progress-height: 6px;--van-progress-large-height: 8px;--van-progress-color: var(--van-primary-color);--van-progress-inactive-color: var(--van-gray-5);--van-progress-background-color: var(--van-gray-2);--van-progress-pivot-padding: 0;--van-progress-pivot-text-color: var(--van-progress-pivot-background-color);--van-progress-pivot-font-size: var(--van-font-size-sm);--van-progress-large-pivot-font-size: var(--van-font-size-md);--van-progress-pivot-line-height: var(--van-line-height-lg);--van-progress-pivot-background-color: var(--van-text-color-2);--van-progress-text-gap: var(--van-padding-sm)}.van-progress{display:flex;align-items:center;gap:var(--van-progress-text-gap)}.van-progress--large{--van-progress-height: var(--van-progress-large-height);--van-progress-pivot-font-size: var(--van-progress-large-pivot-font-size)}.van-progress__track{position:relative;flex:1;height:var(--van-progress-height);overflow:hidden;background:var(--van-progress-background-color);border-radius:var(--van-border-radius-max)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:var(--van-border-radius-max);transform-origin:0;transition:all var(--van-animation-duration-base) var(--van-animation-timing-function-enter)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{flex:none;box-sizing:border-box;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all}.van-progress__pivot--inactive{color:var(--van-progress-inactive-color)}
|
package/es/progress/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ProgressProps } from './Progress';
|
|
2
2
|
export declare const Progress: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
3
|
+
size: {
|
|
4
|
+
type: import("vue").PropType<import("./types").ProgressSize>;
|
|
5
|
+
default: import("./types").ProgressSize;
|
|
6
|
+
};
|
|
3
7
|
color: StringConstructor;
|
|
4
8
|
inactive: BooleanConstructor;
|
|
5
9
|
pivotText: StringConstructor;
|
|
6
10
|
textColor: StringConstructor;
|
|
11
|
+
textSize: (NumberConstructor | StringConstructor)[];
|
|
7
12
|
showPivot: {
|
|
8
13
|
type: BooleanConstructor;
|
|
9
14
|
default: true;
|
|
@@ -17,10 +22,15 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
|
17
22
|
validator: (value: import("../utils").Numeric) => boolean;
|
|
18
23
|
};
|
|
19
24
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
size: {
|
|
26
|
+
type: import("vue").PropType<import("./types").ProgressSize>;
|
|
27
|
+
default: import("./types").ProgressSize;
|
|
28
|
+
};
|
|
20
29
|
color: StringConstructor;
|
|
21
30
|
inactive: BooleanConstructor;
|
|
22
31
|
pivotText: StringConstructor;
|
|
23
32
|
textColor: StringConstructor;
|
|
33
|
+
textSize: (NumberConstructor | StringConstructor)[];
|
|
24
34
|
showPivot: {
|
|
25
35
|
type: BooleanConstructor;
|
|
26
36
|
default: true;
|
|
@@ -34,13 +44,14 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
|
34
44
|
validator: (value: import("../utils").Numeric) => boolean;
|
|
35
45
|
};
|
|
36
46
|
}>>, {
|
|
47
|
+
size: import("./types").ProgressSize;
|
|
37
48
|
inactive: boolean;
|
|
38
49
|
showPivot: boolean;
|
|
39
50
|
percentage: string | number;
|
|
40
51
|
}>>;
|
|
41
52
|
export default Progress;
|
|
42
53
|
export type { ProgressProps };
|
|
43
|
-
export type { ProgressInstance } from './types';
|
|
54
|
+
export type { ProgressInstance, ProgressSize } from './types';
|
|
44
55
|
declare module 'vue' {
|
|
45
56
|
interface GlobalComponents {
|
|
46
57
|
VanProgress: typeof Progress;
|
package/es/progress/index.less
CHANGED
|
@@ -2,21 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--van-progress-height: @progress-height;
|
|
5
|
+
--van-progress-large-height: @progress-large-height;
|
|
5
6
|
--van-progress-color: @progress-color;
|
|
6
7
|
--van-progress-inactive-color: @progress-inactive-color;
|
|
7
8
|
--van-progress-background-color: @progress-background-color;
|
|
8
9
|
--van-progress-pivot-padding: @progress-pivot-padding;
|
|
9
|
-
--van-progress-pivot-text-color:
|
|
10
|
+
--van-progress-pivot-text-color: var(--van-progress-pivot-background-color);
|
|
10
11
|
--van-progress-pivot-font-size: @progress-pivot-font-size;
|
|
12
|
+
--van-progress-large-pivot-font-size: @progress-large-pivot-font-size;
|
|
11
13
|
--van-progress-pivot-line-height: @progress-pivot-line-height;
|
|
12
14
|
--van-progress-pivot-background-color: @progress-pivot-background-color;
|
|
15
|
+
--van-progress-text-gap: @progress-text-gap;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
.van-progress {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: var(--van-progress-text-gap);
|
|
22
|
+
|
|
23
|
+
&--large {
|
|
24
|
+
--van-progress-height: var(--van-progress-large-height);
|
|
25
|
+
--van-progress-pivot-font-size: var(--van-progress-large-pivot-font-size);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__track {
|
|
29
|
+
position: relative;
|
|
30
|
+
flex: 1;
|
|
31
|
+
height: var(--van-progress-height);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
background: var(--van-progress-background-color);
|
|
34
|
+
border-radius: var(--van-border-radius-max);
|
|
35
|
+
}
|
|
20
36
|
|
|
21
37
|
&__portion {
|
|
22
38
|
position: absolute;
|
|
@@ -24,7 +40,7 @@
|
|
|
24
40
|
width: 100%;
|
|
25
41
|
height: 100%;
|
|
26
42
|
background: var(--van-progress-color);
|
|
27
|
-
border-radius:
|
|
43
|
+
border-radius: var(--van-border-radius-max);
|
|
28
44
|
transform-origin: 0;
|
|
29
45
|
transition: all var(--van-animation-duration-base)
|
|
30
46
|
var(--van-animation-timing-function-enter);
|
|
@@ -35,23 +51,17 @@
|
|
|
35
51
|
}
|
|
36
52
|
|
|
37
53
|
&__pivot {
|
|
38
|
-
|
|
39
|
-
top: 50%;
|
|
54
|
+
flex: none;
|
|
40
55
|
box-sizing: border-box;
|
|
41
|
-
min-width: 3.6em;
|
|
42
56
|
padding: var(--van-progress-pivot-padding);
|
|
43
57
|
color: var(--van-progress-pivot-text-color);
|
|
44
58
|
font-size: var(--van-progress-pivot-font-size);
|
|
45
59
|
line-height: var(--van-progress-pivot-line-height);
|
|
46
60
|
text-align: center;
|
|
47
61
|
word-break: keep-all;
|
|
48
|
-
background: var(--van-progress-pivot-background-color);
|
|
49
|
-
border-radius: 1em;
|
|
50
|
-
transition: all var(--van-animation-duration-base)
|
|
51
|
-
var(--van-animation-timing-function-enter);
|
|
52
62
|
|
|
53
63
|
&--inactive {
|
|
54
|
-
|
|
64
|
+
color: var(--van-progress-inactive-color);
|
|
55
65
|
}
|
|
56
66
|
}
|
|
57
67
|
}
|
package/es/progress/types.d.ts
CHANGED
package/es/progress/var.less
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
@import '../style/var.less';
|
|
2
2
|
|
|
3
|
-
@progress-height:
|
|
3
|
+
@progress-height: 6px;
|
|
4
|
+
@progress-large-height: 8px;
|
|
4
5
|
@progress-color: var(--van-primary-color);
|
|
5
6
|
@progress-inactive-color: var(--van-gray-5);
|
|
6
|
-
@progress-background-color: var(--van-gray-
|
|
7
|
-
@progress-pivot-padding: 0
|
|
8
|
-
@progress-pivot-text-color: var(--van-
|
|
9
|
-
@progress-pivot-font-size: var(--van-font-size-
|
|
10
|
-
@progress-pivot-
|
|
11
|
-
@progress-pivot-
|
|
7
|
+
@progress-background-color: var(--van-gray-2);
|
|
8
|
+
@progress-pivot-padding: 0;
|
|
9
|
+
@progress-pivot-text-color: var(--van-text-color-2);
|
|
10
|
+
@progress-pivot-font-size: var(--van-font-size-sm);
|
|
11
|
+
@progress-large-pivot-font-size: var(--van-font-size-md);
|
|
12
|
+
@progress-pivot-line-height: var(--van-line-height-lg);
|
|
13
|
+
@progress-pivot-background-color: var(--van-text-color-2);
|
|
14
|
+
@progress-text-gap: var(--van-padding-sm);
|
package/es/style/base.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-black: #1b2129;--van-white: #fff;--van-gray-1: #f7f9fa;--van-gray-2: #f1f4f6;--van-gray-3: #edf1f5;--van-gray-4: #e1e5eb;--van-gray-5: #c4c9cf;--van-gray-6: #8b949e;--van-gray-7: #626c78;--van-gray-8: #2e3742;--van-red: #f55047;--van-orange: #ffb800;--van-orange-dark: #1b2129;--van-orange-light: #fffbe8;--van-green: #3fbe72;--van-blue: #246fe5;--van-blue-900: #1034b2;--van-blue-800: #1241bf;--van-blue-700: #1b4acc;--van-blue-600: #215dd9;--van-blue-500: #246fe5;--van-blue-400: #2481f2;--van-blue-300: #64a6f7;--van-blue-200: #9fc9fb;--van-blue-100: #d9ebff;--van-blue-50: #ebf6ff;--van-green-900: #13753f;--van-green-800: #0f8843;--van-green-700: #0c9b4a;--van-green-600: #15ae55;--van-green-500: #3fbe72;--van-green-400: #69cd90;--van-green-300: #8edbab;--van-green-200: #b6e9c7;--van-green-100: #daf7e1;--van-green-50: #ebffeb;--van-red-900: #b80000;--van-red-800: #c71412;--van-red-700: #d72824;--van-red-600: #e63c35;--van-red-500: #f55047;--van-red-400: #f8766f;--van-red-300: #fa9b96;--van-red-200: #fdc1be;--van-red-100: #ffe6e5;--van-red-50: #fff5f5;--van-orange-900: #cc5300;--van-orange-800: #d96c00;--van-orange-700: #e68600;--van-orange-600: #f29f00;--van-orange-500: #ffb800;--van-orange-400: #ffcc47;--van-orange-300: #ffd873;--van-orange-200: #ffe399;--van-orange-100: #fff0cc;--van-orange-50: #fffbe6;--van-grey-50: #f7f9fa;--van-grey-100: #f1f4f6;--van-grey-200: #e8ecf0;--van-grey-300: #e1e5eb;--van-grey-400: #c4c9cf;--van-grey-500: #8b949e;--van-grey-600: #626c78;--van-grey-700: #424c59;--van-grey-800: #2e3742;--van-grey-900: #1b2129;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-background-color-black: var(--van-black);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-size-xl: 20px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-line-height-xl: 24px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-4);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}:root.van-theme-dark{--van-text-color: #f1f4f6;--van-text-color-2: #c4c9cf;--van-text-color-3: #8b949e;--van-active-color: #2e3742;--van-background-color: #151a20;--van-background-color-light: #1b2129;--van-border-color: #424c59}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
|
|
1
|
+
:root{--van-black: #1b2129;--van-white: #fff;--van-gray-1: #f7f9fa;--van-gray-2: #f1f4f6;--van-gray-3: #edf1f5;--van-gray-4: #e1e5eb;--van-gray-5: #c4c9cf;--van-gray-6: #8b949e;--van-gray-7: #626c78;--van-gray-8: #2e3742;--van-red: #f55047;--van-orange: #ffb800;--van-orange-dark: #1b2129;--van-orange-light: #fffbe8;--van-green: #3fbe72;--van-blue: #246fe5;--van-blue-900: #1034b2;--van-blue-800: #1241bf;--van-blue-700: #1b4acc;--van-blue-600: #215dd9;--van-blue-500: #246fe5;--van-blue-400: #2481f2;--van-blue-300: #64a6f7;--van-blue-200: #9fc9fb;--van-blue-100: #d9ebff;--van-blue-50: #ebf6ff;--van-green-900: #13753f;--van-green-800: #0f8843;--van-green-700: #0c9b4a;--van-green-600: #15ae55;--van-green-500: #3fbe72;--van-green-400: #69cd90;--van-green-300: #8edbab;--van-green-200: #b6e9c7;--van-green-100: #daf7e1;--van-green-50: #ebffeb;--van-red-900: #b80000;--van-red-800: #c71412;--van-red-700: #d72824;--van-red-600: #e63c35;--van-red-500: #f55047;--van-red-400: #f8766f;--van-red-300: #fa9b96;--van-red-200: #fdc1be;--van-red-100: #ffe6e5;--van-red-50: #fff5f5;--van-orange-900: #cc5300;--van-orange-800: #d96c00;--van-orange-700: #e68600;--van-orange-600: #f29f00;--van-orange-500: #ffb800;--van-orange-400: #ffcc47;--van-orange-300: #ffd873;--van-orange-200: #ffe399;--van-orange-100: #fff0cc;--van-orange-50: #fffbe6;--van-grey-50: #f7f9fa;--van-grey-100: #f1f4f6;--van-grey-200: #e8ecf0;--van-grey-300: #e1e5eb;--van-grey-400: #c4c9cf;--van-grey-500: #8b949e;--van-grey-600: #626c78;--van-grey-700: #424c59;--van-grey-800: #2e3742;--van-grey-900: #1b2129;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-gradient-gray: linear-gradient(90deg, var(--van-gray-2), rgba(241, 244, 246, 0));--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-background-color-black: var(--van-black);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-size-xl: 20px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-line-height-xl: 24px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-4);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}:root.van-theme-dark{--van-text-color: #f1f4f6;--van-text-color-2: #c4c9cf;--van-text-color-3: #8b949e;--van-active-color: #2e3742;--van-background-color: #151a20;--van-background-color-light: #1b2129;--van-border-color: #424c59}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.gradient-gray,.van-gradient-gray{background:var(--van-gradient-gray)}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
|
package/es/style/base.less
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-black: #1b2129;--van-white: #fff;--van-gray-1: #f7f9fa;--van-gray-2: #f1f4f6;--van-gray-3: #edf1f5;--van-gray-4: #e1e5eb;--van-gray-5: #c4c9cf;--van-gray-6: #8b949e;--van-gray-7: #626c78;--van-gray-8: #2e3742;--van-red: #f55047;--van-orange: #ffb800;--van-orange-dark: #1b2129;--van-orange-light: #fffbe8;--van-green: #3fbe72;--van-blue: #246fe5;--van-blue-900: #1034b2;--van-blue-800: #1241bf;--van-blue-700: #1b4acc;--van-blue-600: #215dd9;--van-blue-500: #246fe5;--van-blue-400: #2481f2;--van-blue-300: #64a6f7;--van-blue-200: #9fc9fb;--van-blue-100: #d9ebff;--van-blue-50: #ebf6ff;--van-green-900: #13753f;--van-green-800: #0f8843;--van-green-700: #0c9b4a;--van-green-600: #15ae55;--van-green-500: #3fbe72;--van-green-400: #69cd90;--van-green-300: #8edbab;--van-green-200: #b6e9c7;--van-green-100: #daf7e1;--van-green-50: #ebffeb;--van-red-900: #b80000;--van-red-800: #c71412;--van-red-700: #d72824;--van-red-600: #e63c35;--van-red-500: #f55047;--van-red-400: #f8766f;--van-red-300: #fa9b96;--van-red-200: #fdc1be;--van-red-100: #ffe6e5;--van-red-50: #fff5f5;--van-orange-900: #cc5300;--van-orange-800: #d96c00;--van-orange-700: #e68600;--van-orange-600: #f29f00;--van-orange-500: #ffb800;--van-orange-400: #ffcc47;--van-orange-300: #ffd873;--van-orange-200: #ffe399;--van-orange-100: #fff0cc;--van-orange-50: #fffbe6;--van-grey-50: #f7f9fa;--van-grey-100: #f1f4f6;--van-grey-200: #e8ecf0;--van-grey-300: #e1e5eb;--van-grey-400: #c4c9cf;--van-grey-500: #8b949e;--van-grey-600: #626c78;--van-grey-700: #424c59;--van-grey-800: #2e3742;--van-grey-900: #1b2129;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-background-color-black: var(--van-black);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-size-xl: 20px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-line-height-xl: 24px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-4);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}:root.van-theme-dark{--van-text-color: #f1f4f6;--van-text-color-2: #c4c9cf;--van-text-color-3: #8b949e;--van-active-color: #2e3742;--van-background-color: #151a20;--van-background-color-light: #1b2129;--van-border-color: #424c59}
|
|
1
|
+
:root{--van-black: #1b2129;--van-white: #fff;--van-gray-1: #f7f9fa;--van-gray-2: #f1f4f6;--van-gray-3: #edf1f5;--van-gray-4: #e1e5eb;--van-gray-5: #c4c9cf;--van-gray-6: #8b949e;--van-gray-7: #626c78;--van-gray-8: #2e3742;--van-red: #f55047;--van-orange: #ffb800;--van-orange-dark: #1b2129;--van-orange-light: #fffbe8;--van-green: #3fbe72;--van-blue: #246fe5;--van-blue-900: #1034b2;--van-blue-800: #1241bf;--van-blue-700: #1b4acc;--van-blue-600: #215dd9;--van-blue-500: #246fe5;--van-blue-400: #2481f2;--van-blue-300: #64a6f7;--van-blue-200: #9fc9fb;--van-blue-100: #d9ebff;--van-blue-50: #ebf6ff;--van-green-900: #13753f;--van-green-800: #0f8843;--van-green-700: #0c9b4a;--van-green-600: #15ae55;--van-green-500: #3fbe72;--van-green-400: #69cd90;--van-green-300: #8edbab;--van-green-200: #b6e9c7;--van-green-100: #daf7e1;--van-green-50: #ebffeb;--van-red-900: #b80000;--van-red-800: #c71412;--van-red-700: #d72824;--van-red-600: #e63c35;--van-red-500: #f55047;--van-red-400: #f8766f;--van-red-300: #fa9b96;--van-red-200: #fdc1be;--van-red-100: #ffe6e5;--van-red-50: #fff5f5;--van-orange-900: #cc5300;--van-orange-800: #d96c00;--van-orange-700: #e68600;--van-orange-600: #f29f00;--van-orange-500: #ffb800;--van-orange-400: #ffcc47;--van-orange-300: #ffd873;--van-orange-200: #ffe399;--van-orange-100: #fff0cc;--van-orange-50: #fffbe6;--van-grey-50: #f7f9fa;--van-grey-100: #f1f4f6;--van-grey-200: #e8ecf0;--van-grey-300: #e1e5eb;--van-grey-400: #c4c9cf;--van-grey-500: #8b949e;--van-grey-600: #626c78;--van-grey-700: #424c59;--van-grey-800: #2e3742;--van-grey-900: #1b2129;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-gradient-gray: linear-gradient(90deg, var(--van-gray-2), rgba(241, 244, 246, 0));--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-background-color-black: var(--van-black);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-size-xl: 20px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-line-height-xl: 24px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-4);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}:root.van-theme-dark{--van-text-color: #f1f4f6;--van-text-color-2: #c4c9cf;--van-text-color-3: #8b949e;--van-active-color: #2e3742;--van-background-color: #151a20;--van-background-color-light: #1b2129;--van-border-color: #424c59}
|
package/es/style/var.less
CHANGED
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
// Gradient Colors
|
|
80
80
|
@gradient-red: linear-gradient(to right, #ff6034, #ee0a24);
|
|
81
81
|
@gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);
|
|
82
|
+
@gradient-gray: linear-gradient(90deg, var(--van-gray-2), rgb(241 244 246 / 0%));
|
|
82
83
|
|
|
83
84
|
// Component Colors
|
|
84
85
|
@primary-color: var(--van-blue);
|
package/es/switch/style/less.mjs
CHANGED
|
@@ -27,6 +27,7 @@ declare const titleBarProps: {
|
|
|
27
27
|
type: BooleanConstructor;
|
|
28
28
|
default: true;
|
|
29
29
|
};
|
|
30
|
+
required: BooleanConstructor;
|
|
30
31
|
};
|
|
31
32
|
export declare type TitleBarProps = ExtractPropTypes<typeof titleBarProps>;
|
|
32
33
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -56,6 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
57
|
type: BooleanConstructor;
|
|
57
58
|
default: true;
|
|
58
59
|
};
|
|
60
|
+
required: BooleanConstructor;
|
|
59
61
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "update:modelValue" | "click-action")[], "click" | "change" | "update:modelValue" | "click-action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
60
62
|
title: {
|
|
61
63
|
type: import("vue").PropType<string>;
|
|
@@ -83,16 +85,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
85
|
type: BooleanConstructor;
|
|
84
86
|
default: true;
|
|
85
87
|
};
|
|
88
|
+
required: BooleanConstructor;
|
|
86
89
|
}>> & {
|
|
87
90
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
88
91
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
89
92
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
90
93
|
"onClick-action"?: ((...args: any[]) => any) | undefined;
|
|
91
94
|
}, {
|
|
95
|
+
required: boolean;
|
|
92
96
|
title: string;
|
|
93
97
|
size: TitleBarSize;
|
|
94
|
-
modelValue: boolean;
|
|
95
98
|
description: string;
|
|
99
|
+
modelValue: boolean;
|
|
96
100
|
actionText: string;
|
|
97
101
|
expandable: boolean;
|
|
98
102
|
showArrow: boolean;
|
|
@@ -14,7 +14,8 @@ const titleBarProps = {
|
|
|
14
14
|
showAction: Boolean,
|
|
15
15
|
size: makeStringProp("default"),
|
|
16
16
|
expandable: Boolean,
|
|
17
|
-
modelValue: truthProp
|
|
17
|
+
modelValue: truthProp,
|
|
18
|
+
required: Boolean
|
|
18
19
|
};
|
|
19
20
|
var stdin_default = defineComponent({
|
|
20
21
|
name,
|
|
@@ -51,7 +52,8 @@ var stdin_default = defineComponent({
|
|
|
51
52
|
return _createVNode("section", {
|
|
52
53
|
"class": bem({
|
|
53
54
|
mini: props.size === "mini",
|
|
54
|
-
expandable: props.expandable
|
|
55
|
+
expandable: props.expandable,
|
|
56
|
+
required: props.required
|
|
55
57
|
})
|
|
56
58
|
}, [_createVNode("div", {
|
|
57
59
|
"class": bem("header"),
|
|
@@ -73,7 +75,7 @@ var stdin_default = defineComponent({
|
|
|
73
75
|
"class": bem("action-divider")
|
|
74
76
|
}, null), _createVNode(Button, {
|
|
75
77
|
"type": "text",
|
|
76
|
-
"size": "
|
|
78
|
+
"size": "normal",
|
|
77
79
|
"text": props.actionText,
|
|
78
80
|
"onClick": onActionClick
|
|
79
81
|
}, null)])]), props.size !== "mini" && props.showDescription && props.description && _createVNode("span", {
|
package/es/title-bar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--van-title-bar-padding: 12px var(--van-padding-md) 4px;--van-title-bar-gap: 4px;--van-title-bar-title-color: var(--van-gray-8);--van-title-bar-description-color: var(--van-gray-6);--van-title-bar-action-divider-before-gap: 8px;--van-title-bar-action-divider-after-gap: 2px;--van-title-bar-action-divider-color: var(--van-gray-4);--van-title-bar-action-divider-height: 12px}.van-title-bar{color:var(--van-title-bar-title-color)}.van-title-bar__header{display:flex;align-items:flex-start;width:100%;padding:var(--van-title-bar-padding);color:inherit;font:inherit;text-align:left;background:transparent;border:0}.van-title-bar--expandable .van-title-bar__header{cursor:pointer}.van-title-bar--expandable .van-title-bar__header:active{background:var(--van-active-color)}.van-title-bar__icon{flex:none;margin:3px 4px 0 0;font-size:16px}.van-title-bar__text{display:flex;flex:1;flex-direction:column;min-width:0}.van-title-bar__title-row{display:flex;align-items:center;min-width:0}.van-title-bar__text strong{flex:0 1 auto;min-width:0;overflow:hidden;font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__description{overflow:hidden;color:var(--van-title-bar-description-color);font-size:var(--van-font-size-sm);font-weight:400;line-height:var(--van-line-height-md);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__action{display:flex;flex:none;align-items:center;margin-left:var(--van-title-bar-action-divider-before-gap)}.van-title-bar__action-divider{width:1px;height:var(--van-title-bar-action-divider-height);margin-right:var(--van-title-bar-action-divider-after-gap);background:var(--van-title-bar-action-divider-color)}.van-title-bar__action .van-button{flex:none}.van-title-bar__arrow{flex:none;margin:4px 0 0 8px;color:var(--van-gray-6);font-size:14px;transition:transform var(--van-animation-duration-fast);transform:rotate(180deg)}.van-title-bar__arrow--expanded{transform:rotate(0)}.van-title-bar--mini .van-title-bar__header{padding-top:12px;padding-bottom:4px}.van-title-bar--mini .van-title-bar__text strong{font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}.van-title-bar--mini .van-title-bar__icon{margin-top:3px;font-size:14px}.van-title-bar--mini .van-title-bar__arrow{margin-top:3px}
|
|
1
|
+
:root{--van-title-bar-padding: 12px var(--van-padding-md) 4px;--van-title-bar-gap: 4px;--van-title-bar-title-color: var(--van-gray-8);--van-title-bar-description-color: var(--van-gray-6);--van-title-bar-required-color: var(--van-danger-color);--van-title-bar-action-divider-before-gap: 8px;--van-title-bar-action-divider-after-gap: 2px;--van-title-bar-action-divider-color: var(--van-gray-4);--van-title-bar-action-divider-height: 12px;--van-title-bar-action-padding: 0 8px}.van-title-bar{color:var(--van-title-bar-title-color)}.van-title-bar__header{display:flex;align-items:flex-start;width:100%;padding:var(--van-title-bar-padding);color:inherit;font:inherit;text-align:left;background:transparent;border:0}.van-title-bar--required .van-title-bar__header{position:relative;overflow:visible}.van-title-bar--required .van-title-bar__header:before{position:absolute;top:12px;left:var(--van-padding-xs);color:var(--van-title-bar-required-color);font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg);content:"*"}.van-title-bar--expandable .van-title-bar__header{cursor:pointer}.van-title-bar--expandable .van-title-bar__header:active{background:var(--van-active-color)}.van-title-bar__icon{flex:none;margin:3px 4px 0 0;font-size:16px}.van-title-bar__text{display:flex;flex:1;flex-direction:column;min-width:0}.van-title-bar__title-row{display:flex;align-items:center;min-width:0}.van-title-bar__text strong{flex:0 1 auto;min-width:0;overflow:hidden;font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__description{overflow:hidden;color:var(--van-title-bar-description-color);font-size:var(--van-font-size-sm);font-weight:400;line-height:var(--van-line-height-md);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__action{display:flex;flex:none;align-items:center;margin-left:var(--van-title-bar-action-divider-before-gap)}.van-title-bar__action-divider{width:1px;height:var(--van-title-bar-action-divider-height);margin-right:var(--van-title-bar-action-divider-after-gap);background:var(--van-title-bar-action-divider-color)}.van-title-bar__action .van-button{flex:none;height:var(--van-line-height-lg);padding:var(--van-title-bar-action-padding);font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg)}.van-title-bar__arrow{flex:none;margin:4px 0 0 8px;color:var(--van-gray-6);font-size:14px;transition:transform var(--van-animation-duration-fast);transform:rotate(180deg)}.van-title-bar__arrow--expanded{transform:rotate(0)}.van-title-bar--mini .van-title-bar__header{padding-top:12px;padding-bottom:4px}.van-title-bar--mini .van-title-bar__text strong{font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}.van-title-bar--mini .van-title-bar__icon{margin-top:3px;font-size:14px}.van-title-bar--mini .van-title-bar__arrow{margin-top:3px}.van-title-bar--mini .van-title-bar__action .van-button{height:var(--van-line-height-md);font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}
|
package/es/title-bar/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare const TitleBar: import("../utils").WithInstall<import("vue").Defi
|
|
|
25
25
|
type: BooleanConstructor;
|
|
26
26
|
default: true;
|
|
27
27
|
};
|
|
28
|
+
required: BooleanConstructor;
|
|
28
29
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "change" | "update:modelValue" | "click-action")[], "click" | "change" | "update:modelValue" | "click-action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
30
|
title: {
|
|
30
31
|
type: import("vue").PropType<string>;
|
|
@@ -52,16 +53,18 @@ export declare const TitleBar: import("../utils").WithInstall<import("vue").Defi
|
|
|
52
53
|
type: BooleanConstructor;
|
|
53
54
|
default: true;
|
|
54
55
|
};
|
|
56
|
+
required: BooleanConstructor;
|
|
55
57
|
}>> & {
|
|
56
58
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
57
59
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
58
60
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
61
|
"onClick-action"?: ((...args: any[]) => any) | undefined;
|
|
60
62
|
}, {
|
|
63
|
+
required: boolean;
|
|
61
64
|
title: string;
|
|
62
65
|
size: import("./TitleBar").TitleBarSize;
|
|
63
|
-
modelValue: boolean;
|
|
64
66
|
description: string;
|
|
67
|
+
modelValue: boolean;
|
|
65
68
|
actionText: string;
|
|
66
69
|
expandable: boolean;
|
|
67
70
|
showArrow: boolean;
|