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/es/area/style/index.mjs
CHANGED
package/es/area/style/less.mjs
CHANGED
package/es/cell/index.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
136
136
|
clickable: boolean | null;
|
|
137
137
|
}>>;
|
|
138
138
|
export default Cell;
|
|
139
|
-
export type { CellSize, CellProps, CellArrowDirection, CellSelectType } from './Cell';
|
|
139
|
+
export type { CellSize, CellProps, CellArrowDirection, CellSelectType, } from './Cell';
|
|
140
140
|
declare module 'vue' {
|
|
141
141
|
interface GlobalComponents {
|
|
142
142
|
VanCell: typeof Cell;
|
package/es/icon/Icon.mjs
CHANGED
|
@@ -2,8 +2,9 @@ import { inject, computed, defineComponent, createVNode as _createVNode, mergePr
|
|
|
2
2
|
import { addUnit, numericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
3
3
|
import { Badge } from "../badge/index.mjs";
|
|
4
4
|
import { CONFIG_PROVIDER_KEY } from "../config-provider/ConfigProvider.mjs";
|
|
5
|
+
import { getIconGif } from "./gif.mjs";
|
|
5
6
|
const [name, bem] = createNamespace("icon");
|
|
6
|
-
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
|
7
|
+
const isImage = (name2) => (name2 == null ? void 0 : name2.includes("/")) || Boolean(getIconGif(name2));
|
|
7
8
|
const iconProps = {
|
|
8
9
|
dot: Boolean,
|
|
9
10
|
tag: makeStringProp("i"),
|
|
@@ -23,6 +24,7 @@ var stdin_default = defineComponent({
|
|
|
23
24
|
const config = inject(CONFIG_PROVIDER_KEY, null);
|
|
24
25
|
const classPrefix = computed(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem());
|
|
25
26
|
return () => {
|
|
27
|
+
var _a;
|
|
26
28
|
const {
|
|
27
29
|
tag,
|
|
28
30
|
dot,
|
|
@@ -32,6 +34,7 @@ var stdin_default = defineComponent({
|
|
|
32
34
|
color
|
|
33
35
|
} = props;
|
|
34
36
|
const isImageIcon = isImage(name2);
|
|
37
|
+
const imageName = (_a = getIconGif(name2)) != null ? _a : name2;
|
|
35
38
|
return _createVNode(Badge, _mergeProps({
|
|
36
39
|
"dot": dot,
|
|
37
40
|
"tag": tag,
|
|
@@ -43,10 +46,10 @@ var stdin_default = defineComponent({
|
|
|
43
46
|
"content": badge
|
|
44
47
|
}, props.badgeProps), {
|
|
45
48
|
default: () => {
|
|
46
|
-
var
|
|
47
|
-
return [(
|
|
49
|
+
var _a2;
|
|
50
|
+
return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots), isImageIcon && _createVNode("img", {
|
|
48
51
|
"class": bem("image"),
|
|
49
|
-
"src":
|
|
52
|
+
"src": imageName
|
|
50
53
|
}, null)];
|
|
51
54
|
}
|
|
52
55
|
});
|
|
@@ -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/es/icon/config.d.ts
CHANGED