persagy-vant 0.0.45 → 0.0.46
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/blue-mark/BlueMarkHeader.d.ts +3 -12
- package/es/blue-mark/BlueMarkHeader.mjs +2 -2
- package/es/blue-mark/index.d.ts +2 -8
- package/es/cell/index.css +1 -1
- package/es/cell/index.less +8 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/object-select/ObjectSelect.mjs +2 -1
- package/es/video-preview/VideoPreview.mjs +30 -15
- package/es/video-preview/index.css +1 -1
- package/es/video-preview/index.less +21 -0
- package/lib/blue-mark/BlueMarkHeader.d.ts +3 -12
- package/lib/blue-mark/BlueMarkHeader.js +1 -1
- package/lib/blue-mark/index.d.ts +2 -8
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.less +8 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/object-select/ObjectSelect.js +2 -1
- package/lib/vant.cjs.js +34 -18
- package/lib/vant.es.js +34 -18
- package/lib/vant.js +34 -18
- package/lib/vant.min.js +1 -1
- package/lib/video-preview/VideoPreview.js +30 -15
- package/lib/video-preview/index.css +1 -1
- package/lib/video-preview/index.less +21 -0
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
- package/skills/use-persagy-vant/SKILL.md +6 -0
- package/skills/use-persagy-vant/references/business-component-catalog.md +3 -0
- package/skills/use-persagy-vant/references/component-catalog.md +4 -3
- package/skills/use-persagy-vant/references/component-variant-selection.md +9 -4
- package/skills/use-persagy-vant/references/design-interaction-baseline.md +1 -1
- package/skills/use-persagy-vant/references/dynamic-panel-policy.md +46 -0
- package/skills/use-persagy-vant/references/element-component-matching.md +3 -1
- package/skills/use-persagy-vant/references/page-recipes.md +3 -3
- package/skills/use-persagy-vant/references/reuse-policy.md +5 -1
- package/skills/use-persagy-vant/references/usage-patterns.md +2 -2
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -248,7 +248,7 @@ __reExport(stdin_exports, require("./uploader"), module.exports);
|
|
|
248
248
|
__reExport(stdin_exports, require("./video-preview"), module.exports);
|
|
249
249
|
__reExport(stdin_exports, require("./work-order-card"), module.exports);
|
|
250
250
|
__reExport(stdin_exports, require("./work-order-filter"), module.exports);
|
|
251
|
-
const version = "0.0.
|
|
251
|
+
const version = "0.0.46";
|
|
252
252
|
function install(app) {
|
|
253
253
|
const components = [
|
|
254
254
|
import_action_bar.ActionBar,
|
|
@@ -683,7 +683,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
683
683
|
"showAction": true
|
|
684
684
|
}, null) : (0, import_vue.createVNode)(import_vue.Fragment, null, [(0, import_vue.createVNode)(import_nav_bar.NavBar, {
|
|
685
685
|
"title": props.title,
|
|
686
|
-
"class": bem("nav")
|
|
686
|
+
"class": bem("nav"),
|
|
687
|
+
"border": false
|
|
687
688
|
}, {
|
|
688
689
|
left: () => (0, import_vue.createVNode)(import_icon.Icon, {
|
|
689
690
|
"name": "cross",
|
package/lib/vant.cjs.js
CHANGED
|
@@ -5551,7 +5551,7 @@ const blueMarkHeaderProps = {
|
|
|
5551
5551
|
required: Boolean,
|
|
5552
5552
|
actionText: String,
|
|
5553
5553
|
expandable: Boolean,
|
|
5554
|
-
showExpandIcon:
|
|
5554
|
+
showExpandIcon: Boolean,
|
|
5555
5555
|
modelValue: Boolean,
|
|
5556
5556
|
expandText: String,
|
|
5557
5557
|
collapseText: String
|
|
@@ -16705,7 +16705,8 @@ var stdin_default$t = vue.defineComponent({
|
|
|
16705
16705
|
"showAction": true
|
|
16706
16706
|
}, null) : vue.createVNode(vue.Fragment, null, [vue.createVNode(NavBar, {
|
|
16707
16707
|
"title": props2.title,
|
|
16708
|
-
"class": bem$o("nav")
|
|
16708
|
+
"class": bem$o("nav"),
|
|
16709
|
+
"border": false
|
|
16709
16710
|
}, {
|
|
16710
16711
|
left: () => vue.createVNode(Icon, {
|
|
16711
16712
|
"name": "cross",
|
|
@@ -19949,24 +19950,37 @@ var stdin_default$6 = vue.defineComponent({
|
|
|
19949
19950
|
setup(props2, {
|
|
19950
19951
|
emit
|
|
19951
19952
|
}) {
|
|
19952
|
-
const
|
|
19953
|
+
const playerHost = vue.ref();
|
|
19954
|
+
let video;
|
|
19953
19955
|
const mediaEvents = ["play", "pause", "ended", "timeupdate", "error"];
|
|
19954
19956
|
let player;
|
|
19955
19957
|
const updateShow = (show) => emit("update:show", show);
|
|
19956
19958
|
const close = () => updateShow(false);
|
|
19957
19959
|
const emitMediaEvent = (event) => emit(event.type, event);
|
|
19958
19960
|
const destroyPlayer = () => {
|
|
19959
|
-
|
|
19961
|
+
var _a;
|
|
19960
19962
|
if (video) {
|
|
19961
|
-
mediaEvents.forEach((event) => video.removeEventListener(event, emitMediaEvent));
|
|
19963
|
+
mediaEvents.forEach((event) => video == null ? void 0 : video.removeEventListener(event, emitMediaEvent));
|
|
19962
19964
|
}
|
|
19963
19965
|
player == null ? void 0 : player.destroy();
|
|
19964
19966
|
player = void 0;
|
|
19967
|
+
video = void 0;
|
|
19968
|
+
(_a = playerHost.value) == null ? void 0 : _a.replaceChildren();
|
|
19965
19969
|
};
|
|
19966
19970
|
const createPlayer = () => {
|
|
19967
|
-
const
|
|
19968
|
-
if (!
|
|
19971
|
+
const host = playerHost.value;
|
|
19972
|
+
if (!host || player || !props2.show)
|
|
19969
19973
|
return;
|
|
19974
|
+
video = document.createElement("video");
|
|
19975
|
+
video.className = `${name$2}__video ${name$2}__video--${props2.fit}`;
|
|
19976
|
+
video.src = props2.src;
|
|
19977
|
+
if (props2.poster)
|
|
19978
|
+
video.poster = props2.poster;
|
|
19979
|
+
video.autoplay = props2.autoplay;
|
|
19980
|
+
video.muted = props2.muted;
|
|
19981
|
+
video.loop = props2.loop;
|
|
19982
|
+
video.playsInline = true;
|
|
19983
|
+
host.replaceChildren(video);
|
|
19970
19984
|
player = new Plyr(video, {
|
|
19971
19985
|
controls: props2.controls ? ["play", "progress", "current-time", "mute", "volume", "settings", "fullscreen"] : [],
|
|
19972
19986
|
settings: ["speed"],
|
|
@@ -19980,7 +19994,7 @@ var stdin_default$6 = vue.defineComponent({
|
|
|
19980
19994
|
active: props2.loop
|
|
19981
19995
|
}
|
|
19982
19996
|
});
|
|
19983
|
-
mediaEvents.forEach((event) => video.addEventListener(event, emitMediaEvent));
|
|
19997
|
+
mediaEvents.forEach((event) => video == null ? void 0 : video.addEventListener(event, emitMediaEvent));
|
|
19984
19998
|
};
|
|
19985
19999
|
const play = () => player == null ? void 0 : player.play();
|
|
19986
20000
|
const pause = () => player == null ? void 0 : player.pause();
|
|
@@ -19991,6 +20005,12 @@ var stdin_default$6 = vue.defineComponent({
|
|
|
19991
20005
|
close,
|
|
19992
20006
|
toggleFullscreen
|
|
19993
20007
|
});
|
|
20008
|
+
vue.watch(playerHost, () => {
|
|
20009
|
+
destroyPlayer();
|
|
20010
|
+
createPlayer();
|
|
20011
|
+
}, {
|
|
20012
|
+
flush: "post"
|
|
20013
|
+
});
|
|
19994
20014
|
vue.watch(() => props2.show, (show) => __async(this, null, function* () {
|
|
19995
20015
|
if (show) {
|
|
19996
20016
|
yield vue.nextTick();
|
|
@@ -20024,15 +20044,11 @@ var stdin_default$6 = vue.defineComponent({
|
|
|
20024
20044
|
default: () => [vue.createVNode("div", {
|
|
20025
20045
|
"class": bem$2("backdrop"),
|
|
20026
20046
|
"onClick": close
|
|
20027
|
-
}, null), vue.createVNode("
|
|
20028
|
-
"ref":
|
|
20029
|
-
"
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
"autoplay": props2.autoplay,
|
|
20033
|
-
"muted": props2.muted,
|
|
20034
|
-
"loop": props2.loop,
|
|
20035
|
-
"playsinline": true
|
|
20047
|
+
}, null), vue.createVNode("div", {
|
|
20048
|
+
"ref": playerHost,
|
|
20049
|
+
"style": {
|
|
20050
|
+
width: "100%"
|
|
20051
|
+
}
|
|
20036
20052
|
}, null)]
|
|
20037
20053
|
});
|
|
20038
20054
|
}
|
|
@@ -21774,7 +21790,7 @@ const Lazyload = {
|
|
|
21774
21790
|
});
|
|
21775
21791
|
}
|
|
21776
21792
|
};
|
|
21777
|
-
const version = "0.0.
|
|
21793
|
+
const version = "0.0.46";
|
|
21778
21794
|
function install(app) {
|
|
21779
21795
|
const components = [
|
|
21780
21796
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
|
@@ -5549,7 +5549,7 @@ const blueMarkHeaderProps = {
|
|
|
5549
5549
|
required: Boolean,
|
|
5550
5550
|
actionText: String,
|
|
5551
5551
|
expandable: Boolean,
|
|
5552
|
-
showExpandIcon:
|
|
5552
|
+
showExpandIcon: Boolean,
|
|
5553
5553
|
modelValue: Boolean,
|
|
5554
5554
|
expandText: String,
|
|
5555
5555
|
collapseText: String
|
|
@@ -16703,7 +16703,8 @@ var stdin_default$t = defineComponent({
|
|
|
16703
16703
|
"showAction": true
|
|
16704
16704
|
}, null) : createVNode(Fragment, null, [createVNode(NavBar, {
|
|
16705
16705
|
"title": props2.title,
|
|
16706
|
-
"class": bem$o("nav")
|
|
16706
|
+
"class": bem$o("nav"),
|
|
16707
|
+
"border": false
|
|
16707
16708
|
}, {
|
|
16708
16709
|
left: () => createVNode(Icon, {
|
|
16709
16710
|
"name": "cross",
|
|
@@ -19947,24 +19948,37 @@ var stdin_default$6 = defineComponent({
|
|
|
19947
19948
|
setup(props2, {
|
|
19948
19949
|
emit
|
|
19949
19950
|
}) {
|
|
19950
|
-
const
|
|
19951
|
+
const playerHost = ref();
|
|
19952
|
+
let video;
|
|
19951
19953
|
const mediaEvents = ["play", "pause", "ended", "timeupdate", "error"];
|
|
19952
19954
|
let player;
|
|
19953
19955
|
const updateShow = (show) => emit("update:show", show);
|
|
19954
19956
|
const close = () => updateShow(false);
|
|
19955
19957
|
const emitMediaEvent = (event) => emit(event.type, event);
|
|
19956
19958
|
const destroyPlayer = () => {
|
|
19957
|
-
|
|
19959
|
+
var _a;
|
|
19958
19960
|
if (video) {
|
|
19959
|
-
mediaEvents.forEach((event) => video.removeEventListener(event, emitMediaEvent));
|
|
19961
|
+
mediaEvents.forEach((event) => video == null ? void 0 : video.removeEventListener(event, emitMediaEvent));
|
|
19960
19962
|
}
|
|
19961
19963
|
player == null ? void 0 : player.destroy();
|
|
19962
19964
|
player = void 0;
|
|
19965
|
+
video = void 0;
|
|
19966
|
+
(_a = playerHost.value) == null ? void 0 : _a.replaceChildren();
|
|
19963
19967
|
};
|
|
19964
19968
|
const createPlayer = () => {
|
|
19965
|
-
const
|
|
19966
|
-
if (!
|
|
19969
|
+
const host = playerHost.value;
|
|
19970
|
+
if (!host || player || !props2.show)
|
|
19967
19971
|
return;
|
|
19972
|
+
video = document.createElement("video");
|
|
19973
|
+
video.className = `${name$2}__video ${name$2}__video--${props2.fit}`;
|
|
19974
|
+
video.src = props2.src;
|
|
19975
|
+
if (props2.poster)
|
|
19976
|
+
video.poster = props2.poster;
|
|
19977
|
+
video.autoplay = props2.autoplay;
|
|
19978
|
+
video.muted = props2.muted;
|
|
19979
|
+
video.loop = props2.loop;
|
|
19980
|
+
video.playsInline = true;
|
|
19981
|
+
host.replaceChildren(video);
|
|
19968
19982
|
player = new Plyr(video, {
|
|
19969
19983
|
controls: props2.controls ? ["play", "progress", "current-time", "mute", "volume", "settings", "fullscreen"] : [],
|
|
19970
19984
|
settings: ["speed"],
|
|
@@ -19978,7 +19992,7 @@ var stdin_default$6 = defineComponent({
|
|
|
19978
19992
|
active: props2.loop
|
|
19979
19993
|
}
|
|
19980
19994
|
});
|
|
19981
|
-
mediaEvents.forEach((event) => video.addEventListener(event, emitMediaEvent));
|
|
19995
|
+
mediaEvents.forEach((event) => video == null ? void 0 : video.addEventListener(event, emitMediaEvent));
|
|
19982
19996
|
};
|
|
19983
19997
|
const play = () => player == null ? void 0 : player.play();
|
|
19984
19998
|
const pause = () => player == null ? void 0 : player.pause();
|
|
@@ -19989,6 +20003,12 @@ var stdin_default$6 = defineComponent({
|
|
|
19989
20003
|
close,
|
|
19990
20004
|
toggleFullscreen
|
|
19991
20005
|
});
|
|
20006
|
+
watch(playerHost, () => {
|
|
20007
|
+
destroyPlayer();
|
|
20008
|
+
createPlayer();
|
|
20009
|
+
}, {
|
|
20010
|
+
flush: "post"
|
|
20011
|
+
});
|
|
19992
20012
|
watch(() => props2.show, (show) => __async(this, null, function* () {
|
|
19993
20013
|
if (show) {
|
|
19994
20014
|
yield nextTick();
|
|
@@ -20022,15 +20042,11 @@ var stdin_default$6 = defineComponent({
|
|
|
20022
20042
|
default: () => [createVNode("div", {
|
|
20023
20043
|
"class": bem$2("backdrop"),
|
|
20024
20044
|
"onClick": close
|
|
20025
|
-
}, null), createVNode("
|
|
20026
|
-
"ref":
|
|
20027
|
-
"
|
|
20028
|
-
|
|
20029
|
-
|
|
20030
|
-
"autoplay": props2.autoplay,
|
|
20031
|
-
"muted": props2.muted,
|
|
20032
|
-
"loop": props2.loop,
|
|
20033
|
-
"playsinline": true
|
|
20045
|
+
}, null), createVNode("div", {
|
|
20046
|
+
"ref": playerHost,
|
|
20047
|
+
"style": {
|
|
20048
|
+
width: "100%"
|
|
20049
|
+
}
|
|
20034
20050
|
}, null)]
|
|
20035
20051
|
});
|
|
20036
20052
|
}
|
|
@@ -21772,7 +21788,7 @@ const Lazyload = {
|
|
|
21772
21788
|
});
|
|
21773
21789
|
}
|
|
21774
21790
|
};
|
|
21775
|
-
const version = "0.0.
|
|
21791
|
+
const version = "0.0.46";
|
|
21776
21792
|
function install(app) {
|
|
21777
21793
|
const components = [
|
|
21778
21794
|
ActionBar,
|
package/lib/vant.js
CHANGED
|
@@ -6789,7 +6789,7 @@
|
|
|
6789
6789
|
required: Boolean,
|
|
6790
6790
|
actionText: String,
|
|
6791
6791
|
expandable: Boolean,
|
|
6792
|
-
showExpandIcon:
|
|
6792
|
+
showExpandIcon: Boolean,
|
|
6793
6793
|
modelValue: Boolean,
|
|
6794
6794
|
expandText: String,
|
|
6795
6795
|
collapseText: String
|
|
@@ -17898,7 +17898,8 @@
|
|
|
17898
17898
|
"showAction": true
|
|
17899
17899
|
}, null) : vue.createVNode(vue.Fragment, null, [vue.createVNode(NavBar, {
|
|
17900
17900
|
"title": props2.title,
|
|
17901
|
-
"class": bem$o("nav")
|
|
17901
|
+
"class": bem$o("nav"),
|
|
17902
|
+
"border": false
|
|
17902
17903
|
}, {
|
|
17903
17904
|
left: () => vue.createVNode(Icon, {
|
|
17904
17905
|
"name": "cross",
|
|
@@ -23553,24 +23554,37 @@
|
|
|
23553
23554
|
setup(props2, {
|
|
23554
23555
|
emit
|
|
23555
23556
|
}) {
|
|
23556
|
-
const
|
|
23557
|
+
const playerHost = vue.ref();
|
|
23558
|
+
let video;
|
|
23557
23559
|
const mediaEvents = ["play", "pause", "ended", "timeupdate", "error"];
|
|
23558
23560
|
let player;
|
|
23559
23561
|
const updateShow = (show) => emit("update:show", show);
|
|
23560
23562
|
const close = () => updateShow(false);
|
|
23561
23563
|
const emitMediaEvent = (event) => emit(event.type, event);
|
|
23562
23564
|
const destroyPlayer = () => {
|
|
23563
|
-
|
|
23565
|
+
var _a;
|
|
23564
23566
|
if (video) {
|
|
23565
|
-
mediaEvents.forEach((event) => video.removeEventListener(event, emitMediaEvent));
|
|
23567
|
+
mediaEvents.forEach((event) => video == null ? void 0 : video.removeEventListener(event, emitMediaEvent));
|
|
23566
23568
|
}
|
|
23567
23569
|
player == null ? void 0 : player.destroy();
|
|
23568
23570
|
player = void 0;
|
|
23571
|
+
video = void 0;
|
|
23572
|
+
(_a = playerHost.value) == null ? void 0 : _a.replaceChildren();
|
|
23569
23573
|
};
|
|
23570
23574
|
const createPlayer = () => {
|
|
23571
|
-
const
|
|
23572
|
-
if (!
|
|
23575
|
+
const host = playerHost.value;
|
|
23576
|
+
if (!host || player || !props2.show)
|
|
23573
23577
|
return;
|
|
23578
|
+
video = document.createElement("video");
|
|
23579
|
+
video.className = `${name$2}__video ${name$2}__video--${props2.fit}`;
|
|
23580
|
+
video.src = props2.src;
|
|
23581
|
+
if (props2.poster)
|
|
23582
|
+
video.poster = props2.poster;
|
|
23583
|
+
video.autoplay = props2.autoplay;
|
|
23584
|
+
video.muted = props2.muted;
|
|
23585
|
+
video.loop = props2.loop;
|
|
23586
|
+
video.playsInline = true;
|
|
23587
|
+
host.replaceChildren(video);
|
|
23574
23588
|
player = new Plyr(video, {
|
|
23575
23589
|
controls: props2.controls ? ["play", "progress", "current-time", "mute", "volume", "settings", "fullscreen"] : [],
|
|
23576
23590
|
settings: ["speed"],
|
|
@@ -23584,7 +23598,7 @@
|
|
|
23584
23598
|
active: props2.loop
|
|
23585
23599
|
}
|
|
23586
23600
|
});
|
|
23587
|
-
mediaEvents.forEach((event) => video.addEventListener(event, emitMediaEvent));
|
|
23601
|
+
mediaEvents.forEach((event) => video == null ? void 0 : video.addEventListener(event, emitMediaEvent));
|
|
23588
23602
|
};
|
|
23589
23603
|
const play = () => player == null ? void 0 : player.play();
|
|
23590
23604
|
const pause = () => player == null ? void 0 : player.pause();
|
|
@@ -23595,6 +23609,12 @@
|
|
|
23595
23609
|
close,
|
|
23596
23610
|
toggleFullscreen
|
|
23597
23611
|
});
|
|
23612
|
+
vue.watch(playerHost, () => {
|
|
23613
|
+
destroyPlayer();
|
|
23614
|
+
createPlayer();
|
|
23615
|
+
}, {
|
|
23616
|
+
flush: "post"
|
|
23617
|
+
});
|
|
23598
23618
|
vue.watch(() => props2.show, (show) => __async(this, null, function* () {
|
|
23599
23619
|
if (show) {
|
|
23600
23620
|
yield vue.nextTick();
|
|
@@ -23628,15 +23648,11 @@
|
|
|
23628
23648
|
default: () => [vue.createVNode("div", {
|
|
23629
23649
|
"class": bem$2("backdrop"),
|
|
23630
23650
|
"onClick": close
|
|
23631
|
-
}, null), vue.createVNode("
|
|
23632
|
-
"ref":
|
|
23633
|
-
"
|
|
23634
|
-
|
|
23635
|
-
|
|
23636
|
-
"autoplay": props2.autoplay,
|
|
23637
|
-
"muted": props2.muted,
|
|
23638
|
-
"loop": props2.loop,
|
|
23639
|
-
"playsinline": true
|
|
23651
|
+
}, null), vue.createVNode("div", {
|
|
23652
|
+
"ref": playerHost,
|
|
23653
|
+
"style": {
|
|
23654
|
+
width: "100%"
|
|
23655
|
+
}
|
|
23640
23656
|
}, null)]
|
|
23641
23657
|
});
|
|
23642
23658
|
}
|
|
@@ -25361,7 +25377,7 @@
|
|
|
25361
25377
|
});
|
|
25362
25378
|
}
|
|
25363
25379
|
};
|
|
25364
|
-
const version = "0.0.
|
|
25380
|
+
const version = "0.0.46";
|
|
25365
25381
|
function install(app) {
|
|
25366
25382
|
const components = [
|
|
25367
25383
|
ActionBar,
|