create-weapp-vite 2.0.12 → 2.0.14
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/dist/{chunk-LBA673EX.js → chunk-RU4I2F55.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/default/project.config.json +2 -1
- package/templates/tailwindcss/package.json +1 -1
- package/templates/tdesign/package.json +1 -1
- package/templates/vant/package.json +1 -1
- package/templates/wevu/package.json +1 -1
- package/templates/wevu-tdesign/package.json +2 -2
- package/templates/wevu-tdesign/src/components/KpiBoard/index.vue +2 -0
- package/templates/wevu-tdesign/src/pages/ability/index.vue +3 -2
|
@@ -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.
|
|
8
|
+
var version = "6.4.3";
|
|
9
9
|
|
|
10
10
|
// ../wevu/package.json
|
|
11
|
-
var version2 = "2.
|
|
11
|
+
var version2 = "2.1.1";
|
|
12
12
|
|
|
13
13
|
// src/enums.ts
|
|
14
14
|
var TemplateName = /* @__PURE__ */ ((TemplateName2) => {
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -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 }}
|