@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.
- package/dom/bin/jsview-browser-debug-dom.min.js +1 -1
- package/dom/bin/jsview-dom.min.js +1 -1
- package/package.json +1 -1
- package/patches/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +277 -276
- package/patches/node_modules/vite/dist/node/chunks/dep-0fc8e132.js +27 -1
- package/patches/node_modules/vite/dist/node/jsview.vite.config.js +50 -0
- package/patches/node_modules/vue-router/dist/vue-router.mjs +3595 -0
- package/samples/DemoHomepage/router.js +1 -1
- package/samples/DemoHomepage/views/Homepage.vue +1 -1
- package/samples/HashHistory/router.js +1 -1
- package/samples/NinePatchDemo/Item.vue +1 -1
- package/samples/SoundPool/App.vue +4 -4
- package/samples/VideoDemo/components/Controllor.vue +2 -2
- package/scripts/jsview-run-android.js +1 -1
- package/utils/JsViewVueWidget/BrowserDebugWidget/BrowserQrcode.vue +2 -1
- package/patches/node_modules/vite/dist/node/chunks/dep-0fc8e132.origin.js +0 -63120
|
@@ -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
|
|
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,
|
|
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 =
|
|
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
|
|
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();
|