Skip to content

Commit 47389b4

Browse files
author
w-xuefeng
committed
feat: modify init-plugin
1 parent 1e741de commit 47389b4

File tree

30 files changed

+1301
-279
lines changed

30 files changed

+1301
-279
lines changed

.syncignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{**/*.js.map,**/node_modules/**,src/**,script/**,public/**,dist/**,.vscode/**}
1+
{**/*.js.map,**/node_modules/**,src/**,script/**,public/**,dist/**,.vscode/**,widget/**,**.zip}

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
A Vue.js project in APICloud
1212
</div>
1313

14-
1514
> ## apicloud 代码文件的命名规范
1615
>
1716
> 文件夹命名,文件命名不能带 - 或多个. 不要有大写字符
@@ -22,4 +21,28 @@ A Vue.js project in APICloud
2221
>
2322
> 正确文件夹命名格式举例: loginhtml
2423
>
25-
> 错误文件夹命名格式举例: login-html; login.html
24+
> 错误文件夹命名格式举例: login-html; login.html
25+
26+
27+
# 挂载在 Vue 原型上的工具方法和属性
28+
### 可在 Vue 实例中直接通过 this 访问
29+
30+
- 方法
31+
32+
- $getPageMap
33+
- $bindKeyBackExitApp
34+
- $getQueryString
35+
- $getSafeArea
36+
- $getWinSize
37+
- $n2p
38+
- $headerRH
39+
- $tabRH
40+
- $pageWithHead
41+
42+
- 属性
43+
44+
- api
45+
- $api
46+
- $pageMap
47+
- $page
48+
- $frame

babel.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
module.exports = {
2-
presets: ["@vue/cli-plugin-babel/preset"]
2+
presets: ['@vue/cli-plugin-babel/preset'],
3+
plugins: [
4+
[
5+
'import',
6+
{
7+
libraryName: 'vant',
8+
libraryDirectory: 'es',
9+
style: true
10+
},
11+
'vant'
12+
]
13+
]
314
};

config.xml

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,33 @@
1-
<widget id="A6029291824708" version="0.0.1">
1+
<widget id="A6012345678900" version="0.0.1">
22

33
<name>vue示例</name>
4-
54
<description>
6-
7-
Example For APICloud.
8-
5+
Example For APICloud.
96
</description>
10-
11-
<author email="developer@apicloud.com" href="http://www.apicloud.com">
12-
13-
Developer
14-
7+
<author email="w-xuefeng@qq.com" href="http://www.apicloud.com">
8+
w-xuefeng
159
</author>
16-
1710
<content src="index.html" />
18-
1911
<access origin="*" />
20-
2112
<preference name="pageBounce" value="false"/>
22-
2313
<preference name="appBackground" value="rgba(0,0,0,0.0)"/>
24-
2514
<preference name="windowBackground" value="rgba(0,0,0,0.0)"/>
26-
2715
<preference name="frameBackgroundColor" value="rgba(0,0,0,0.0)"/>
28-
2916
<preference name="hScrollBarEnabled" value="true"/>
30-
3117
<preference name="vScrollBarEnabled" value="true"/>
32-
3318
<preference name="autoLaunch" value="true"/>
34-
3519
<preference name="fullScreen" value="false"/>
36-
3720
<preference name="autoUpdate" value="true" />
38-
3921
<preference name="smartUpdate" value="false" />
40-
4122
<preference name="debug" value="true"/>
42-
4323
<preference name="statusBarAppearance" value="true"/>
44-
4524
<permission name="readPhoneState" />
46-
4725
<permission name="camera" />
48-
4926
<permission name="record" />
50-
5127
<permission name="location" />
52-
5328
<permission name="fileSystem" />
54-
5529
<permission name="internet" />
56-
5730
<permission name="bootCompleted" />
58-
5931
<permission name="hardware" />
60-
6132
</widget>
6233

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
</head>
1010

1111
<body>
12-
<div id="app"></div>
1312
<script>
1413
window.apiready = function () {
1514
api.openWin({
1615
name: 'index',
17-
url: 'http://192.168.30.15:8080/indexindex.html',
16+
url: 'http://192.168.30.15:8080/indexindex.html'
1817
});
1918
};
2019
</script>

0 commit comments

Comments
 (0)