@shijiu/jsview-vue 1.9.631 → 1.9.642

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.
@@ -136,7 +136,7 @@ const routeList = [
136
136
  },
137
137
  {
138
138
  name: "公祭日黑白效果",
139
- path: "/feature/GrayDown",
139
+ path: "/feature/FilterDemo",
140
140
  component: () => import("jsview/samples/FilterDemo/App.vue"),
141
141
  },
142
142
 
@@ -133,7 +133,7 @@ export default {
133
133
  <div class="address">
134
134
  {{ address }}
135
135
  </div>
136
- <div class="logo">JsView-Vue3</div>
136
+ <div class="logo">JsView-Vue3(Vite3)</div>
137
137
 
138
138
  <jsv-focus-block
139
139
  autoFocus
@@ -6,7 +6,7 @@ const routeList = [
6
6
  {
7
7
  name: "Home",
8
8
  path: "/",
9
- redirect: "/__MainJsvApp/MainPage.vue",
9
+ redirect: "/__MainJsvApp/MainPage",
10
10
  },
11
11
  {
12
12
  name: "MainPage",
@@ -50,7 +50,7 @@ props.onAction.register("onClick", onClicked);
50
50
 
51
51
  <template>
52
52
  <div :class="focused ? 'focus' : 'blur'" :style="styleValue">
53
- {{ "" + props.data.content + (testData != null ? testData.MyName : "") }}
53
+ {{ "" + props.data.content }}
54
54
  </div>
55
55
  </template>
56
56
 
@@ -10,7 +10,7 @@ import coin from "./coin.mp3";
10
10
  import lose from "./lose.mp3";
11
11
  import bgmusic from "./bgmusic.mp3";
12
12
  import { JsvSoundPool, jJsvRuntimeBridge } from "jsview";
13
- import { onMounted, onBeforeUnmount, ref } from "vue";
13
+ import { onMounted, onBeforeUnmount, shallowRef } from "vue";
14
14
  import { useRouter } from "vue-router";
15
15
 
16
16
  const router = useRouter();
@@ -19,7 +19,7 @@ let coinController1 = null;
19
19
  let coinController2 = null;
20
20
  let loseController1 = null;
21
21
  let loseController2 = null;
22
- let bgm = ref(null);
22
+ let bgm = shallowRef(null);
23
23
  const _onKeyDown = (ev) => {
24
24
  if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
25
25
  router.go(-1); // 有router时,是从DemoHomepage进入,回退
@@ -128,7 +128,7 @@ onBeforeUnmount(() => {
128
128
  `[确定]: 播放背景音乐\n[左]: 播放失败音乐1\n[右]: 播放失败音乐2\n[上]: 播放硬币音乐1\n[下]: 播放硬币音乐2`
129
129
  }}
130
130
  </div>
131
- <audiotrack ref="bgm" :src="bgmusic" loop="loop" />
131
+ <jsv-audiotrack ref="bgm" :src="bgmusic" loop="loop" />
132
132
  </div>
133
133
  </jsv-focus-block>
134
- </template>
134
+ </template>
@@ -145,7 +145,7 @@ const onKeyDown = (ev) => {
145
145
  }
146
146
  if (changeFocusTo >= 0) {
147
147
  ev.ownerNode
148
- .findBlockByName("video-" + (changeFocusTo + 10).toString())
148
+ .findBlockByName("controllor.video-" + (changeFocusTo + 10).toString())
149
149
  .requestFocus();
150
150
  focusedItemIndex = changeFocusTo;
151
151
  return true;
@@ -173,7 +173,7 @@ enableAnimation.value = false;
173
173
 
174
174
  <template>
175
175
  <div :style="style" :key="useTexture" :set="(leftOffset = 0)">
176
- <jsv-focus-block :namespace="controllor" :onKeyDown="onKeyDown">
176
+ <jsv-focus-block namespace="controllor" :onKeyDown="onKeyDown">
177
177
  <Button
178
178
  v-for="(item, index) in getButtonData()"
179
179
  :key="index"
@@ -26,7 +26,7 @@ async function getOptions() {
26
26
  const homepageUrlFile = path.resolve(modulesDir, '.vite', 'jsview', 'network.mjs');
27
27
  let { default: homepageDomain } = await import(homepageUrlFile);
28
28
  homepageDomain = homepageDomain.replace(/\u001b\[.*?m/g, '')
29
- options.homepageUrl = homepageDomain + "js/main.jsv.js";
29
+ options.homepageUrl = homepageDomain + "js/main.jsv.js?module=true";
30
30
 
31
31
  return options;
32
32
  }
@@ -1,5 +1,7 @@
1
1
  <script>
2
2
  import QRCodeImpl from "qr.js/lib/QRCode";
3
+ import ErrorCorrectLevel from "qr.js/lib/ErrorCorrectLevel";
4
+
3
5
  export default {
4
6
  props: {
5
7
  value: String,
@@ -114,7 +116,6 @@ export default {
114
116
  },
115
117
  renderQrcode() {
116
118
  // const { value, size, level, bgColor, fgColor, imageSettings,} = this.props;
117
- const ErrorCorrectLevel = require("qr.js/lib/ErrorCorrectLevel");
118
119
  const qrcode = new QRCodeImpl(-1, ErrorCorrectLevel[this.level]);
119
120
  qrcode.addData(this.convertStr(this.value));
120
121
  qrcode.make();