Skip to content

Commit 70ec661

Browse files
committed
feat: update
1 parent e31900d commit 70ec661

File tree

4 files changed

+13
-20
lines changed

4 files changed

+13
-20
lines changed

demos/vue-demo/README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
# vue-demo
22

33
## Project setup
4-
```
4+
```bash
55
npm install
66
```
77

88
### Compiles and hot-reloads for development
9-
```
10-
npm run serve
9+
```bash
10+
## 复制静态文件 node_modules/ezuikit-js/ezuikit_static 到 public/ezuikit_static
11+
npm run dev
1112
```
1213

1314
### Compiles and minifies for production
14-
```
15+
```bash
1516
npm run build
1617
```
1718

18-
### Lints and fixes files
19-
```
20-
npm run lint
21-
```
22-
2319
## QA
2420

2521
- 最近 vue2 的老版本在构建 `ezuikit-js` 时, 报错 `You may need an additional loader to handle the result of these loaders`.

demos/vue-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"core-js": "^3.6.5",
12-
"ezuikit-js": "8.2.0-beta.1",
12+
"ezuikit-js": "8.2.0-beta.2",
1313
"vue": "^2.7"
1414
},
1515
"devDependencies": {

demos/vue-demo/pnpm-lock.yaml

Lines changed: 4 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/vue-demo/src/components/Player.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<div style="display: flex;">template: <input placeholder="template" :value="template" style="width: 450px;" @input="event => template = event.target.value"/></div>
1010
<div style="display: flex;">width: <input placeholder="width" :value="width" style="width: 450px;" @input="event => width = event.target.value"/></div>
1111
<div style="display: flex;">height: <input placeholder="height" :value="height" style="width: 450px;" @input="event => height = event.target.value"/></div>
12+
<div style="display: flex;">staticPath: <input placeholder="staticPath" :value="staticPath" style="width: 450px;" @input="event => staticPath = event.target.value"/></div>
1213
</div>
1314
</div>
1415
</div>
@@ -46,6 +47,7 @@ export default {
4647
template: "pcLive",
4748
width: "100%",
4849
height: 400,
50+
staticPath: "./ezuikit_static",
4951
};
5052
},
5153
mounted: () => {
@@ -75,7 +77,7 @@ export default {
7577
},
7678
// quality: 1, //
7779
// language: "en", // zh | en
78-
staticPath: "/ezuikit_static", // 如果想使用本地静态资源,请复制根目录下ezuikit_static 到当前目录下, 然后设置该值
80+
staticPath: this.staticPath, // 如果想使用本地静态资源,请复制根目录下ezuikit_static 到当前目录下, 然后设置该值
7981
env: {
8082
// https://open.ys7.com/help/1772?h=domain
8183
// domain默认是 https://open.ys7.com, 如果是私有化部署或海外的环境,请配置对应的domain

0 commit comments

Comments
 (0)