create-weapp-vite 2.0.57 → 2.0.58

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.0.57",
4
+ "version": "2.0.58",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-wevu-tailwindcss-tdesign-template",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "private": true,
6
6
  "description": "weapp-vite + wevu (Vue SFC) 模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -6,10 +6,6 @@ const props = defineProps<{
6
6
 
7
7
  defineComponentJson({
8
8
  component: true,
9
- usingComponents: {
10
- 't-dialog': 'tdesign-miniprogram/dialog/dialog',
11
- 't-toast': 'tdesign-miniprogram/toast/toast',
12
- },
13
9
  })
14
10
  </script>
15
11
 
@@ -29,8 +25,6 @@ defineComponentJson({
29
25
  <view class="pb-[32rpx]">
30
26
  <slot />
31
27
  </view>
32
- <t-toast id="t-toast" />
33
- <t-dialog id="t-dialog" />
34
28
  </view>
35
29
  </template>
36
30
 
@@ -1,18 +1,12 @@
1
1
  <script setup lang="ts">
2
2
  defineComponentJson({
3
3
  component: true,
4
- usingComponents: {
5
- 't-dialog': 'tdesign-miniprogram/dialog/dialog',
6
- 't-toast': 'tdesign-miniprogram/toast/toast',
7
- },
8
4
  })
9
5
  </script>
10
6
 
11
7
  <template>
12
8
  <view class="layout-default">
13
9
  <slot />
14
- <t-toast id="t-toast" />
15
- <t-dialog id="t-dialog" />
16
10
  </view>
17
11
  </template>
18
12
 
@@ -156,5 +156,7 @@ function navigateTo(url: string) {
156
156
  </t-cell-group>
157
157
  </view>
158
158
  </view>
159
+ <t-toast id="t-toast" />
160
+ <t-dialog id="t-dialog" />
159
161
  </view>
160
162
  </template>
@@ -241,5 +241,6 @@ function submit() {
241
241
  {{ currentStep === steps.length - 1 ? (submitted ? '已提交' : '提交') : '下一步' }}
242
242
  </t-button>
243
243
  </view>
244
+ <t-toast id="t-toast" />
244
245
  </view>
245
246
  </template>
@@ -313,5 +313,6 @@ function onQuickAction(action: QuickActionItem) {
313
313
  </t-cell-group>
314
314
  </view>
315
315
  </view>
316
+ <t-toast id="t-toast" />
316
317
  </view>
317
318
  </template>
@@ -90,5 +90,6 @@ function clearLayout() {
90
90
  </t-button>
91
91
  </view>
92
92
  </view>
93
+ <t-toast id="t-toast" />
93
94
  </view>
94
95
  </template>
@@ -142,5 +142,6 @@ reload()
142
142
  <view v-if="hasEmpty" class="mt-[20rpx]">
143
143
  <EmptyState title="暂无匹配任务" description="调整筛选条件或刷新数据" action-text="重新加载" @action="reload" />
144
144
  </view>
145
+ <t-toast id="t-toast" />
145
146
  </view>
146
147
  </template>