create-weapp-vite 2.0.13 → 2.0.15

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.
@@ -5,10 +5,10 @@ import fs2 from "fs-extra";
5
5
  import path2 from "pathe";
6
6
 
7
7
  // ../weapp-vite/package.json
8
- var version = "6.4.2";
8
+ var version = "6.4.4";
9
9
 
10
10
  // ../wevu/package.json
11
- var version2 = "2.1.0";
11
+ var version2 = "2.1.2";
12
12
 
13
13
  // src/enums.ts
14
14
  var TemplateName = /* @__PURE__ */ ((TemplateName2) => {
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProject
3
- } from "./chunk-KG6BS6TS.js";
3
+ } from "./chunk-FM4SX544.js";
4
4
 
5
5
  // src/cli.ts
6
6
  import path from "path";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TemplateName,
3
3
  createProject
4
- } from "./chunk-KG6BS6TS.js";
4
+ } from "./chunk-FM4SX544.js";
5
5
  export {
6
6
  TemplateName,
7
7
  createProject
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.0.13",
4
+ "version": "2.0.15",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "tabIndent": "insertSpaces",
35
35
  "tabSize": 2
36
36
  },
37
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
38
38
  "packOptions": {
39
39
  "ignore": [],
40
40
  "include": []
@@ -34,7 +34,7 @@
34
34
  "tabIndent": "insertSpaces",
35
35
  "tabSize": 2
36
36
  },
37
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
38
38
  "packOptions": {
39
39
  "ignore": [],
40
40
  "include": []
@@ -36,7 +36,7 @@
36
36
  "tabIndent": "insertSpaces",
37
37
  "tabSize": 2
38
38
  },
39
- "libVersion": "2.32.3",
39
+ "libVersion": "3.13.2",
40
40
  "packOptions": {
41
41
  "ignore": [],
42
42
  "include": []
@@ -23,7 +23,8 @@
23
23
  "compileHotReLoad": false,
24
24
  "skylineRenderEnable": true,
25
25
  "packNpmManually": true,
26
- "es6": true
26
+ "es6": true,
27
+ "minifyWXML": true
27
28
  },
28
29
  "simulatorType": "wechat",
29
30
  "simulatorPluginLibVersion": {},
@@ -33,7 +34,7 @@
33
34
  "tabIndent": "insertSpaces",
34
35
  "tabSize": 2
35
36
  },
36
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
37
38
  "packOptions": {
38
39
  "ignore": [],
39
40
  "include": []
@@ -4,5 +4,5 @@
4
4
  "setting": {
5
5
  "compileHotReLoad": true
6
6
  },
7
- "libVersion": "development"
7
+ "libVersion": "3.14.0"
8
8
  }
@@ -34,7 +34,7 @@
34
34
  "tabIndent": "insertSpaces",
35
35
  "tabSize": 2
36
36
  },
37
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
38
38
  "packOptions": {
39
39
  "ignore": [],
40
40
  "include": []
@@ -34,7 +34,7 @@
34
34
  "tabIndent": "insertSpaces",
35
35
  "tabSize": 2
36
36
  },
37
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
38
38
  "packOptions": {
39
39
  "ignore": [],
40
40
  "include": []
@@ -43,7 +43,8 @@ const capabilityCards = ref([
43
43
 
44
44
  const subscribeTemplateId = ''
45
45
 
46
- function handleCapability(key: string) {
46
+ function handleCapability(key: string, what: any) {
47
+ console.log('handleCapability', key, what)
47
48
  switch (key) {
48
49
  case 'scan':
49
50
  wx.scanCode({
@@ -129,7 +130,7 @@ function navigateTo(url: string) {
129
130
  v-for="item in capabilityCards"
130
131
  :key="item.key"
131
132
  class="rounded-[18rpx] bg-[#f0f9ff] p-[16rpx]"
132
- @tap="handleCapability(item.key)"
133
+ @tap="handleCapability(item.key, 'test')"
133
134
  >
134
135
  <text class="text-[24rpx] font-semibold text-[#1f1a3f]">
135
136
  {{ item.title }}