mrxy-yk 1.7.1 → 1.7.3

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.
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  themeData?: EZUIKitPlayerOptions['themeData'];
9
9
  };
10
10
  declare const __VLS_export: DefineComponent<__VLS_Props, {
11
- getPlayer: () => EZUIKit.EZUIKitPlayer;
11
+ getPlayer: () => EZUIKitPlayer;
12
12
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
13
  template: EZUIKitPlayerOptions["template"];
14
14
  autoPlay: boolean;
@@ -1,7 +1,7 @@
1
1
  import btn_play_default from "./images/btn-play.png.js";
2
2
  import BtnLineRec_default from "./components/BtnLineRec.vue.js";
3
3
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeStyle, onBeforeUnmount, onMounted, openBlock, shallowRef, toDisplayString, unref } from "vue";
4
- import EZUIKit from "ezuikit-js";
4
+ import { EZUIKitPlayer } from "ezuikit-js";
5
5
  //#region src/components/ys-video/YsVideo.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = ["id"];
7
7
  var _hoisted_2 = { class: "header" };
@@ -32,7 +32,7 @@ var YsVideo_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
32
32
  document.querySelector("#audioright").remove();
33
33
  });
34
34
  function loadVideo() {
35
- player.value = new EZUIKit.EZUIKitPlayer({
35
+ player.value = new EZUIKitPlayer({
36
36
  id: playerId.value,
37
37
  template: props.themeData ? void 0 : props.template,
38
38
  url: getPlayerUrl(),
@@ -9,11 +9,12 @@ import { onActivated, onMounted } from "vue";
9
9
  function onReactivated(hook) {
10
10
  let isMounted = false;
11
11
  onMounted(() => {
12
- isMounted = true;
12
+ setTimeout(() => {
13
+ isMounted = true;
14
+ });
13
15
  });
14
16
  onActivated(() => {
15
- if (isMounted) isMounted = false;
16
- else hook();
17
+ if (isMounted) hook();
17
18
  });
18
19
  }
19
20
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrxy-yk",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A collection of Vue 3 components and utilities",