persagy-vant 0.0.37 → 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/index.d.ts +1 -1
- 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/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/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/switch/style/index.mjs +2 -0
- package/es/switch/style/less.mjs +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/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/index.d.ts +1 -1
- 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/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/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/switch/style/index.js +2 -0
- package/lib/switch/style/less.js +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/vant.cjs.js +308 -128
- package/lib/vant.es.js +308 -128
- package/lib/vant.js +308 -128
- 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/references/component-documentation.md +4 -4
- package/skills/use-persagy-vant/references/component-variant-selection.md +2 -2
- 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 +2 -2
- /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
package/lib/icon/Icon.js
CHANGED
|
@@ -24,8 +24,9 @@ var import_vue = require("vue");
|
|
|
24
24
|
var import_utils = require("../utils");
|
|
25
25
|
var import_badge = require("../badge");
|
|
26
26
|
var import_ConfigProvider = require("../config-provider/ConfigProvider");
|
|
27
|
+
var import_gif = require("./gif");
|
|
27
28
|
const [name, bem] = (0, import_utils.createNamespace)("icon");
|
|
28
|
-
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
|
29
|
+
const isImage = (name2) => (name2 == null ? void 0 : name2.includes("/")) || Boolean((0, import_gif.getIconGif)(name2));
|
|
29
30
|
const iconProps = {
|
|
30
31
|
dot: Boolean,
|
|
31
32
|
tag: (0, import_utils.makeStringProp)("i"),
|
|
@@ -45,6 +46,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
45
46
|
const config = (0, import_vue.inject)(import_ConfigProvider.CONFIG_PROVIDER_KEY, null);
|
|
46
47
|
const classPrefix = (0, import_vue.computed)(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem());
|
|
47
48
|
return () => {
|
|
49
|
+
var _a;
|
|
48
50
|
const {
|
|
49
51
|
tag,
|
|
50
52
|
dot,
|
|
@@ -54,6 +56,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
54
56
|
color
|
|
55
57
|
} = props;
|
|
56
58
|
const isImageIcon = isImage(name2);
|
|
59
|
+
const imageName = (_a = (0, import_gif.getIconGif)(name2)) != null ? _a : name2;
|
|
57
60
|
return (0, import_vue.createVNode)(import_badge.Badge, (0, import_vue.mergeProps)({
|
|
58
61
|
"dot": dot,
|
|
59
62
|
"tag": tag,
|
|
@@ -65,10 +68,10 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
65
68
|
"content": badge
|
|
66
69
|
}, props.badgeProps), {
|
|
67
70
|
default: () => {
|
|
68
|
-
var
|
|
69
|
-
return [(
|
|
71
|
+
var _a2;
|
|
72
|
+
return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots), isImageIcon && (0, import_vue.createVNode)("img", {
|
|
70
73
|
"class": bem("image"),
|
|
71
|
-
"src":
|
|
74
|
+
"src": imageName
|
|
72
75
|
}, null)];
|
|
73
76
|
}
|
|
74
77
|
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M19 6.25C20.5188 6.25 21.75 7.48122 21.75 9V19C21.75 20.5188 20.5188 21.75 19 21.75H9C7.48122 21.75 6.25 20.5188 6.25 19V9C6.25 7.48122 7.48122 6.25 9 6.25H19ZM9 7.75C8.30964 7.75 7.75 8.30964 7.75 9V19C7.75 19.6904 8.30964 20.25 9 20.25H19C19.6904 20.25 20.25 19.6904 20.25 19V9C20.25 8.30964 19.6904 7.75 19 7.75H9Z" fill="currentColor"/>
|
|
3
|
+
<path d="M15 2.25C16.5142 2.25 17.75 3.48579 17.75 5C17.75 5.41421 17.4142 5.75 17 5.75C16.5858 5.75 16.25 5.41421 16.25 5C16.25 4.31421 15.6858 3.75 15 3.75H5C4.31421 3.75 3.75 4.31421 3.75 5V15C3.75 15.6858 4.31421 16.25 5 16.25C5.41421 16.25 5.75 16.5858 5.75 17C5.75 17.4142 5.41421 17.75 5 17.75C3.48579 17.75 2.25 16.5142 2.25 15V5C2.25 3.48579 3.48579 2.25 5 2.25H15Z" fill="currentColor"/>
|
|
4
|
+
</svg>
|
package/lib/icon/config.d.ts
CHANGED