create-weapp-vite 2.0.52 → 2.0.55
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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-DFc325BF.js → src-nL81L3Ai.js} +11 -9
- package/package.json +1 -1
- package/templates/default/package.json +3 -2
- package/templates/default/project.private.config.json +1 -1
- package/templates/default/src/app.json +2 -1
- package/templates/default/src/layouts/admin/index.json +3 -0
- package/templates/default/src/layouts/admin/index.scss +40 -0
- package/templates/default/src/layouts/admin/index.ts +1 -0
- package/templates/default/src/layouts/admin/index.wxml +10 -0
- package/templates/default/src/layouts/default/index.json +3 -0
- package/templates/default/src/layouts/default/index.scss +3 -0
- package/templates/default/src/layouts/default/index.ts +1 -0
- package/templates/default/src/layouts/default/index.wxml +3 -0
- package/templates/default/src/pages/index/index.ts +5 -0
- package/templates/default/src/pages/index/index.wxml +3 -0
- package/templates/default/src/pages/layouts/index.json +4 -0
- package/templates/default/src/pages/layouts/index.scss +68 -0
- package/templates/default/src/pages/layouts/index.ts +42 -0
- package/templates/default/src/pages/layouts/index.wxml +19 -0
- package/templates/default/tsconfig.json +8 -2
- package/templates/lib/package.json +6 -2
- package/templates/lib/project.private.config.json +1 -1
- package/templates/lib/src/app.json +2 -1
- package/templates/lib/src/layouts/admin/index.json +3 -0
- package/templates/lib/src/layouts/admin/index.scss +41 -0
- package/templates/lib/src/layouts/admin/index.ts +1 -0
- package/templates/lib/src/layouts/admin/index.wxml +10 -0
- package/templates/lib/src/layouts/default/index.json +3 -0
- package/templates/lib/src/layouts/default/index.scss +3 -0
- package/templates/lib/src/layouts/default/index.ts +1 -0
- package/templates/lib/src/layouts/default/index.wxml +3 -0
- package/templates/lib/src/pages/index/index.scss +14 -3
- package/templates/lib/src/pages/index/index.ts +5 -0
- package/templates/lib/src/pages/index/index.wxml +6 -0
- package/templates/lib/src/pages/layouts/index.json +4 -0
- package/templates/lib/src/pages/layouts/index.scss +70 -0
- package/templates/lib/src/pages/layouts/index.ts +44 -0
- package/templates/lib/src/pages/layouts/index.wxml +19 -0
- package/templates/lib/tsconfig.json +8 -2
- package/templates/lib/weapp-vite.lib.config.ts +5 -0
- package/templates/tailwindcss/package.json +3 -3
- package/templates/tailwindcss/project.private.config.json +1 -1
- package/templates/tailwindcss/src/app.json +2 -1
- package/templates/tailwindcss/src/layouts/admin/index.json +3 -0
- package/templates/tailwindcss/src/layouts/admin/index.scss +40 -0
- package/templates/tailwindcss/src/layouts/admin/index.ts +1 -0
- package/templates/tailwindcss/src/layouts/admin/index.wxml +10 -0
- package/templates/tailwindcss/src/layouts/default/index.json +3 -0
- package/templates/tailwindcss/src/layouts/default/index.scss +3 -0
- package/templates/tailwindcss/src/layouts/default/index.ts +1 -0
- package/templates/tailwindcss/src/layouts/default/index.wxml +3 -0
- package/templates/tailwindcss/src/pages/index/index.ts +5 -0
- package/templates/tailwindcss/src/pages/index/index.wxml +3 -0
- package/templates/tailwindcss/src/pages/layouts/index.json +4 -0
- package/templates/tailwindcss/src/pages/layouts/index.scss +1 -0
- package/templates/tailwindcss/src/pages/layouts/index.ts +33 -0
- package/templates/tailwindcss/src/pages/layouts/index.wxml +19 -0
- package/templates/tailwindcss/tsconfig.json +8 -2
- package/templates/tdesign/package.json +3 -3
- package/templates/tdesign/project.private.config.json +2 -2
- package/templates/tdesign/src/app.json +2 -1
- package/templates/tdesign/src/layouts/admin/index.json +3 -0
- package/templates/tdesign/src/layouts/admin/index.scss +40 -0
- package/templates/tdesign/src/layouts/admin/index.ts +1 -0
- package/templates/tdesign/src/layouts/admin/index.wxml +10 -0
- package/templates/tdesign/src/layouts/default/index.json +3 -0
- package/templates/tdesign/src/layouts/default/index.scss +3 -0
- package/templates/tdesign/src/layouts/default/index.ts +1 -0
- package/templates/tdesign/src/layouts/default/index.wxml +3 -0
- package/templates/tdesign/src/pages/index/index.ts +5 -0
- package/templates/tdesign/src/pages/index/index.wxml +3 -0
- package/templates/tdesign/src/pages/layouts/index.json +4 -0
- package/templates/tdesign/src/pages/layouts/index.scss +1 -0
- package/templates/tdesign/src/pages/layouts/index.ts +32 -0
- package/templates/tdesign/src/pages/layouts/index.wxml +16 -0
- package/templates/tdesign/tsconfig.json +8 -2
- package/templates/tdesign/vite.config.ts +9 -0
- package/templates/vant/package.json +3 -3
- package/templates/vant/project.private.config.json +1 -1
- package/templates/vant/src/app.json +2 -1
- package/templates/vant/src/layouts/admin/index.json +3 -0
- package/templates/vant/src/layouts/admin/index.scss +40 -0
- package/templates/vant/src/layouts/admin/index.ts +1 -0
- package/templates/vant/src/layouts/admin/index.wxml +10 -0
- package/templates/vant/src/layouts/default/index.json +3 -0
- package/templates/vant/src/layouts/default/index.scss +3 -0
- package/templates/vant/src/layouts/default/index.ts +1 -0
- package/templates/vant/src/layouts/default/index.wxml +3 -0
- package/templates/vant/src/pages/index/index.ts +5 -0
- package/templates/vant/src/pages/index/index.wxml +3 -0
- package/templates/vant/src/pages/layouts/index.json +4 -0
- package/templates/vant/src/pages/layouts/index.scss +3 -0
- package/templates/vant/src/pages/layouts/index.ts +35 -0
- package/templates/vant/src/pages/layouts/index.wxml +17 -0
- package/templates/vant/tsconfig.json +8 -2
- package/templates/vant/vite.config.ts +9 -0
- package/templates/wevu/package.json +4 -3
- package/templates/wevu/project.private.config.json +2 -2
- package/templates/wevu/src/layouts/admin.vue +75 -0
- package/templates/wevu/src/layouts/default.vue +17 -0
- package/templates/wevu/src/pages/index/index.vue +7 -0
- package/templates/wevu/src/pages/layouts/index.vue +171 -0
- package/templates/wevu/tsconfig.json +8 -2
- package/templates/wevu-tdesign/package.json +4 -4
- package/templates/wevu-tdesign/project.private.config.json +1 -1
- package/templates/wevu-tdesign/src/app.vue +1 -0
- package/templates/wevu-tdesign/src/components/KpiBoard/index.vue +4 -6
- package/templates/wevu-tdesign/src/hooks/useToast.ts +1 -1
- package/templates/wevu-tdesign/src/layouts/admin.vue +37 -0
- package/templates/wevu-tdesign/src/layouts/default.vue +17 -0
- package/templates/wevu-tdesign/src/pages/index/index.vue +10 -0
- package/templates/wevu-tdesign/src/pages/layouts/index.vue +96 -0
- package/templates/wevu-tdesign/src/subpackages/lab/index.vue +22 -6
- package/templates/wevu-tdesign/tsconfig.json +8 -2
- package/templates/wevu-tdesign/vite.config.ts +9 -0
- package/templates/default/tsconfig.app.json +0 -49
- package/templates/default/tsconfig.node.json +0 -33
- package/templates/lib/tsconfig.app.json +0 -49
- package/templates/lib/tsconfig.node.json +0 -33
- package/templates/tailwindcss/tsconfig.app.json +0 -49
- package/templates/tailwindcss/tsconfig.node.json +0 -33
- package/templates/tdesign/tsconfig.app.json +0 -52
- package/templates/tdesign/tsconfig.node.json +0 -33
- package/templates/vant/tsconfig.app.json +0 -52
- package/templates/vant/tsconfig.node.json +0 -33
- package/templates/wevu/src/components.d.ts +0 -25
- package/templates/wevu/src/typed-components.d.ts +0 -22
- package/templates/wevu/src/typed-router.d.ts +0 -67
- package/templates/wevu/tsconfig.app.json +0 -51
- package/templates/wevu/tsconfig.node.json +0 -33
- package/templates/wevu-tdesign/src/components.d.ts +0 -267
- package/templates/wevu-tdesign/src/typed-components.d.ts +0 -955
- package/templates/wevu-tdesign/src/typed-router.d.ts +0 -75
- package/templates/wevu-tdesign/tsconfig.app.json +0 -54
- package/templates/wevu-tdesign/tsconfig.node.json +0 -33
|
@@ -98,6 +98,16 @@ const quickActions = ref<QuickActionItem[]>([
|
|
|
98
98
|
path: '/pages/ability/index',
|
|
99
99
|
type: 'tab',
|
|
100
100
|
},
|
|
101
|
+
{
|
|
102
|
+
key: 'layouts',
|
|
103
|
+
title: '布局能力',
|
|
104
|
+
description: 'default / admin / false',
|
|
105
|
+
icon: 'layers',
|
|
106
|
+
tag: 'Layout',
|
|
107
|
+
tone: 'brand',
|
|
108
|
+
path: '/pages/layouts/index',
|
|
109
|
+
type: 'sub',
|
|
110
|
+
},
|
|
101
111
|
{
|
|
102
112
|
key: 'lab',
|
|
103
113
|
title: '组件实验室',
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, setPageLayout } from 'wevu'
|
|
3
|
+
|
|
4
|
+
import SectionTitle from '@/components/SectionTitle/index.vue'
|
|
5
|
+
import { useToast } from '@/hooks/useToast'
|
|
6
|
+
|
|
7
|
+
definePageJson({
|
|
8
|
+
navigationBarTitleText: '布局',
|
|
9
|
+
backgroundColor: '#f6f7fb',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const { showToast } = useToast()
|
|
13
|
+
const currentLayout = ref<'default' | 'admin' | 'none'>('default')
|
|
14
|
+
|
|
15
|
+
const cards = [
|
|
16
|
+
{
|
|
17
|
+
key: 'default',
|
|
18
|
+
title: 'default 布局',
|
|
19
|
+
desc: '页面未声明 layout 时,会自动命中 src/layouts/default.vue。',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: 'admin',
|
|
23
|
+
title: 'admin 布局',
|
|
24
|
+
desc: '通过 setPageLayout(\'admin\') 切换到命名布局,并把 title/subtitle 作为 props 传给布局组件。',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: 'none',
|
|
28
|
+
title: '关闭布局',
|
|
29
|
+
desc: '通过 setPageLayout(false) 临时移除页面壳,用于沉浸式页或特殊根结构。',
|
|
30
|
+
},
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
function applyDefaultLayout() {
|
|
34
|
+
currentLayout.value = 'default'
|
|
35
|
+
setPageLayout('default')
|
|
36
|
+
showToast('已切回 default 布局')
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function applyAdminLayout() {
|
|
40
|
+
currentLayout.value = 'admin'
|
|
41
|
+
setPageLayout('admin', {
|
|
42
|
+
title: 'Studio Admin',
|
|
43
|
+
subtitle: '这个标题来自 setPageLayout() 运行时传入的 props。',
|
|
44
|
+
})
|
|
45
|
+
showToast('已切换到 admin 布局')
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function clearLayout() {
|
|
49
|
+
currentLayout.value = 'none'
|
|
50
|
+
setPageLayout(false)
|
|
51
|
+
showToast('已关闭布局')
|
|
52
|
+
}
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<template>
|
|
56
|
+
<view class="min-h-screen bg-[#f6f7fb] px-[28rpx] pb-[88rpx] pt-[24rpx] text-[#1c1c3c]">
|
|
57
|
+
<view class="rounded-[28rpx] bg-gradient-to-br from-[#eef2ff] via-[#ffffff] to-[#ede9fe] p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.06)]">
|
|
58
|
+
<SectionTitle title="页面布局能力" subtitle="基础模板已接入 src/layouts 目录约定" />
|
|
59
|
+
<text class="mt-[12rpx] block text-[22rpx] leading-[1.7] text-[#5b5b7b]">
|
|
60
|
+
当前状态:{{ currentLayout }}。可在 default、admin 与 false 三种模式之间切换,用来承接后台页、运营页或沉浸式页面。
|
|
61
|
+
</text>
|
|
62
|
+
</view>
|
|
63
|
+
|
|
64
|
+
<view class="mt-[18rpx] flex flex-col gap-[14rpx]">
|
|
65
|
+
<view
|
|
66
|
+
v-for="item in cards"
|
|
67
|
+
:key="item.key"
|
|
68
|
+
class="rounded-[24rpx] bg-white p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.08)]"
|
|
69
|
+
>
|
|
70
|
+
<text class="text-[28rpx] font-semibold text-[#1f1a3f]">
|
|
71
|
+
{{ item.title }}
|
|
72
|
+
</text>
|
|
73
|
+
<text class="mt-[10rpx] block text-[22rpx] leading-[1.7] text-[#6f6b8a]">
|
|
74
|
+
{{ item.desc }}
|
|
75
|
+
</text>
|
|
76
|
+
</view>
|
|
77
|
+
</view>
|
|
78
|
+
|
|
79
|
+
<view class="mt-[18rpx] rounded-[24rpx] bg-white p-[20rpx] shadow-[0_18rpx_40rpx_rgba(17,24,39,0.08)]">
|
|
80
|
+
<SectionTitle title="切换布局" subtitle="运行时调用 setPageLayout()" />
|
|
81
|
+
<view class="mt-[14rpx] flex flex-col gap-[12rpx]">
|
|
82
|
+
<t-button block theme="primary" @tap="applyDefaultLayout">
|
|
83
|
+
使用 default 布局
|
|
84
|
+
</t-button>
|
|
85
|
+
<t-button block theme="success" variant="outline" @tap="applyAdminLayout">
|
|
86
|
+
切到 admin 布局
|
|
87
|
+
</t-button>
|
|
88
|
+
<t-button block theme="warning" variant="outline" @tap="clearLayout">
|
|
89
|
+
关闭布局
|
|
90
|
+
</t-button>
|
|
91
|
+
</view>
|
|
92
|
+
</view>
|
|
93
|
+
|
|
94
|
+
<t-toast id="t-toast" />
|
|
95
|
+
</view>
|
|
96
|
+
</template>
|
|
@@ -22,6 +22,22 @@ const tabs = [
|
|
|
22
22
|
{ value: 'display', label: '展示' },
|
|
23
23
|
]
|
|
24
24
|
|
|
25
|
+
function handleTabChange(e: any) {
|
|
26
|
+
activeTab.value = String(e.detail.value)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function handleRateChange(e: any) {
|
|
30
|
+
rating.value = Number(e.detail.value)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function handleSliderChange(e: any) {
|
|
34
|
+
slider.value = Number(e.detail.value)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function handleToggleChange(e: any) {
|
|
38
|
+
toggle.value = Boolean(e.detail.value)
|
|
39
|
+
}
|
|
40
|
+
|
|
25
41
|
function navigateTo(url: string) {
|
|
26
42
|
wx.navigateTo({
|
|
27
43
|
url,
|
|
@@ -34,7 +50,7 @@ function navigateTo(url: string) {
|
|
|
34
50
|
<view class="rounded-[28rpx] bg-gradient-to-br from-[#f5f3ff] via-[#ffffff] to-[#eef2ff] p-[20rpx]">
|
|
35
51
|
<SectionTitle title="TDesign 组件实验室" subtitle="常用组件的组合应用" />
|
|
36
52
|
<view class="mt-[12rpx]">
|
|
37
|
-
<t-tabs :value="activeTab" @change="
|
|
53
|
+
<t-tabs :value="activeTab" @change="handleTabChange">
|
|
38
54
|
<t-tab-panel v-for="tab in tabs" :key="tab.value" :value="tab.value" :label="tab.label" />
|
|
39
55
|
</t-tabs>
|
|
40
56
|
</view>
|
|
@@ -68,7 +84,7 @@ function navigateTo(url: string) {
|
|
|
68
84
|
B
|
|
69
85
|
</t-avatar>
|
|
70
86
|
</t-badge>
|
|
71
|
-
<t-avatar-group max="3" size="small">
|
|
87
|
+
<t-avatar-group :max="3" size="small">
|
|
72
88
|
<t-avatar>U1</t-avatar>
|
|
73
89
|
<t-avatar>U2</t-avatar>
|
|
74
90
|
<t-avatar>U3</t-avatar>
|
|
@@ -92,14 +108,14 @@ function navigateTo(url: string) {
|
|
|
92
108
|
<text class="text-[22rpx] text-[#6f6b8a]">
|
|
93
109
|
满意度评分
|
|
94
110
|
</text>
|
|
95
|
-
<t-rate :value="rating" @change="
|
|
111
|
+
<t-rate :value="rating" @change="handleRateChange" />
|
|
96
112
|
</view>
|
|
97
113
|
<view class="flex items-center justify-between">
|
|
98
114
|
<text class="text-[22rpx] text-[#6f6b8a]">
|
|
99
115
|
阈值调整
|
|
100
116
|
</text>
|
|
101
117
|
<view class="flex items-center gap-[12rpx]">
|
|
102
|
-
<t-slider :value="slider" @change="
|
|
118
|
+
<t-slider :value="slider" @change="handleSliderChange" />
|
|
103
119
|
<text class="text-[22rpx] text-[#6f6b8a]">
|
|
104
120
|
{{ slider }}%
|
|
105
121
|
</text>
|
|
@@ -109,7 +125,7 @@ function navigateTo(url: string) {
|
|
|
109
125
|
<text class="text-[22rpx] text-[#6f6b8a]">
|
|
110
126
|
自动提醒
|
|
111
127
|
</text>
|
|
112
|
-
<t-switch :value="toggle" @change="
|
|
128
|
+
<t-switch :value="toggle" @change="handleToggleChange" />
|
|
113
129
|
</view>
|
|
114
130
|
</view>
|
|
115
131
|
|
|
@@ -142,7 +158,7 @@ function navigateTo(url: string) {
|
|
|
142
158
|
<text class="text-[22rpx] text-[#6f6b8a]">
|
|
143
159
|
扫码体验
|
|
144
160
|
</text>
|
|
145
|
-
<t-qrcode value="https://vite.icebreaker.top" size="90" />
|
|
161
|
+
<t-qrcode value="https://vite.icebreaker.top" :size="90" />
|
|
146
162
|
</view>
|
|
147
163
|
</view>
|
|
148
164
|
</view>
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"references": [
|
|
3
3
|
{
|
|
4
|
-
"path": "
|
|
4
|
+
"path": "./.weapp-vite/tsconfig.app.json"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
|
-
"path": "
|
|
7
|
+
"path": "./.weapp-vite/tsconfig.server.json"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"path": "./.weapp-vite/tsconfig.node.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"path": "./.weapp-vite/tsconfig.shared.json"
|
|
8
14
|
}
|
|
9
15
|
],
|
|
10
16
|
"files": []
|
|
@@ -11,6 +11,15 @@ export default defineConfig({
|
|
|
11
11
|
},
|
|
12
12
|
weapp: {
|
|
13
13
|
srcRoot: 'src',
|
|
14
|
+
typescript: {
|
|
15
|
+
app: {
|
|
16
|
+
compilerOptions: {
|
|
17
|
+
paths: {
|
|
18
|
+
'tdesign-miniprogram/*': ['./node_modules/tdesign-miniprogram/miniprogram_dist/*'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
14
23
|
autoRoutes: true,
|
|
15
24
|
autoImportComponents: {
|
|
16
25
|
resolvers: [TDesignResolver()],
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"jsx": "preserve",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ES2023",
|
|
8
|
-
"DOM",
|
|
9
|
-
"DOM.Iterable"
|
|
10
|
-
],
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"baseUrl": ".",
|
|
13
|
-
"module": "ESNext",
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"paths": {
|
|
16
|
-
"@/*": [
|
|
17
|
-
"./src/*"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"resolveJsonModule": true,
|
|
21
|
-
"types": [
|
|
22
|
-
"miniprogram-api-typings"
|
|
23
|
-
],
|
|
24
|
-
"allowImportingTsExtensions": true,
|
|
25
|
-
"allowJs": true,
|
|
26
|
-
"strict": true,
|
|
27
|
-
"noFallthroughCasesInSwitch": true,
|
|
28
|
-
"noUnusedLocals": true,
|
|
29
|
-
"noUnusedParameters": true,
|
|
30
|
-
"noEmit": true,
|
|
31
|
-
"allowSyntheticDefaultImports": true,
|
|
32
|
-
"esModuleInterop": true,
|
|
33
|
-
"isolatedModules": true,
|
|
34
|
-
"verbatimModuleSyntax": true,
|
|
35
|
-
"noUncheckedSideEffectImports": true,
|
|
36
|
-
"erasableSyntaxOnly": true,
|
|
37
|
-
"skipLibCheck": true
|
|
38
|
-
},
|
|
39
|
-
"vueCompilerOptions": {
|
|
40
|
-
"plugins": [
|
|
41
|
-
"weapp-vite/volar"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"include": [
|
|
45
|
-
"src/**/*",
|
|
46
|
-
"types/**/*.d.ts",
|
|
47
|
-
"env.d.ts"
|
|
48
|
-
]
|
|
49
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2023"
|
|
7
|
-
],
|
|
8
|
-
"moduleDetection": "force",
|
|
9
|
-
"module": "ESNext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"types": [
|
|
13
|
-
"node"
|
|
14
|
-
],
|
|
15
|
-
"allowImportingTsExtensions": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"verbatimModuleSyntax": true,
|
|
22
|
-
"noUncheckedSideEffectImports": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"skipLibCheck": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"vite.config.ts",
|
|
28
|
-
"vite.config.*.ts",
|
|
29
|
-
"*.config.ts",
|
|
30
|
-
"config/**/*.ts",
|
|
31
|
-
"scripts/**/*.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"jsx": "preserve",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ES2023",
|
|
8
|
-
"DOM",
|
|
9
|
-
"DOM.Iterable"
|
|
10
|
-
],
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"baseUrl": ".",
|
|
13
|
-
"module": "ESNext",
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"paths": {
|
|
16
|
-
"@/*": [
|
|
17
|
-
"./src/*"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"resolveJsonModule": true,
|
|
21
|
-
"types": [
|
|
22
|
-
"miniprogram-api-typings"
|
|
23
|
-
],
|
|
24
|
-
"allowImportingTsExtensions": true,
|
|
25
|
-
"allowJs": true,
|
|
26
|
-
"strict": true,
|
|
27
|
-
"noFallthroughCasesInSwitch": true,
|
|
28
|
-
"noUnusedLocals": true,
|
|
29
|
-
"noUnusedParameters": true,
|
|
30
|
-
"noEmit": true,
|
|
31
|
-
"allowSyntheticDefaultImports": true,
|
|
32
|
-
"esModuleInterop": true,
|
|
33
|
-
"isolatedModules": true,
|
|
34
|
-
"verbatimModuleSyntax": true,
|
|
35
|
-
"noUncheckedSideEffectImports": true,
|
|
36
|
-
"erasableSyntaxOnly": true,
|
|
37
|
-
"skipLibCheck": true
|
|
38
|
-
},
|
|
39
|
-
"vueCompilerOptions": {
|
|
40
|
-
"plugins": [
|
|
41
|
-
"weapp-vite/volar"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"include": [
|
|
45
|
-
"src/**/*",
|
|
46
|
-
"types/**/*.d.ts",
|
|
47
|
-
"env.d.ts"
|
|
48
|
-
]
|
|
49
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2023"
|
|
7
|
-
],
|
|
8
|
-
"moduleDetection": "force",
|
|
9
|
-
"module": "ESNext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"types": [
|
|
13
|
-
"node"
|
|
14
|
-
],
|
|
15
|
-
"allowImportingTsExtensions": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"verbatimModuleSyntax": true,
|
|
22
|
-
"noUncheckedSideEffectImports": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"skipLibCheck": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"vite.config.ts",
|
|
28
|
-
"vite.config.*.ts",
|
|
29
|
-
"*.config.ts",
|
|
30
|
-
"config/**/*.ts",
|
|
31
|
-
"scripts/**/*.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"jsx": "preserve",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ES2023",
|
|
8
|
-
"DOM",
|
|
9
|
-
"DOM.Iterable"
|
|
10
|
-
],
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"baseUrl": ".",
|
|
13
|
-
"module": "ESNext",
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"paths": {
|
|
16
|
-
"@/*": [
|
|
17
|
-
"./src/*"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"resolveJsonModule": true,
|
|
21
|
-
"types": [
|
|
22
|
-
"miniprogram-api-typings"
|
|
23
|
-
],
|
|
24
|
-
"allowImportingTsExtensions": true,
|
|
25
|
-
"allowJs": true,
|
|
26
|
-
"strict": true,
|
|
27
|
-
"noFallthroughCasesInSwitch": true,
|
|
28
|
-
"noUnusedLocals": true,
|
|
29
|
-
"noUnusedParameters": true,
|
|
30
|
-
"noEmit": true,
|
|
31
|
-
"allowSyntheticDefaultImports": true,
|
|
32
|
-
"esModuleInterop": true,
|
|
33
|
-
"isolatedModules": true,
|
|
34
|
-
"verbatimModuleSyntax": true,
|
|
35
|
-
"noUncheckedSideEffectImports": true,
|
|
36
|
-
"erasableSyntaxOnly": true,
|
|
37
|
-
"skipLibCheck": true
|
|
38
|
-
},
|
|
39
|
-
"vueCompilerOptions": {
|
|
40
|
-
"plugins": [
|
|
41
|
-
"weapp-vite/volar"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"include": [
|
|
45
|
-
"src/**/*",
|
|
46
|
-
"types/**/*.d.ts",
|
|
47
|
-
"env.d.ts"
|
|
48
|
-
]
|
|
49
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2023"
|
|
7
|
-
],
|
|
8
|
-
"moduleDetection": "force",
|
|
9
|
-
"module": "ESNext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"types": [
|
|
13
|
-
"node"
|
|
14
|
-
],
|
|
15
|
-
"allowImportingTsExtensions": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"verbatimModuleSyntax": true,
|
|
22
|
-
"noUncheckedSideEffectImports": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"skipLibCheck": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"vite.config.ts",
|
|
28
|
-
"vite.config.*.ts",
|
|
29
|
-
"*.config.ts",
|
|
30
|
-
"config/**/*.ts",
|
|
31
|
-
"scripts/**/*.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"jsx": "preserve",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ES2023",
|
|
8
|
-
"DOM",
|
|
9
|
-
"DOM.Iterable"
|
|
10
|
-
],
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"baseUrl": ".",
|
|
13
|
-
"module": "ESNext",
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"paths": {
|
|
16
|
-
"@/*": [
|
|
17
|
-
"./src/*"
|
|
18
|
-
],
|
|
19
|
-
"tdesign-miniprogram/*": [
|
|
20
|
-
"./node_modules/tdesign-miniprogram/miniprogram_dist/*"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"resolveJsonModule": true,
|
|
24
|
-
"types": [
|
|
25
|
-
"miniprogram-api-typings"
|
|
26
|
-
],
|
|
27
|
-
"allowImportingTsExtensions": true,
|
|
28
|
-
"allowJs": true,
|
|
29
|
-
"strict": true,
|
|
30
|
-
"noFallthroughCasesInSwitch": true,
|
|
31
|
-
"noUnusedLocals": true,
|
|
32
|
-
"noUnusedParameters": true,
|
|
33
|
-
"noEmit": true,
|
|
34
|
-
"allowSyntheticDefaultImports": true,
|
|
35
|
-
"esModuleInterop": true,
|
|
36
|
-
"isolatedModules": true,
|
|
37
|
-
"verbatimModuleSyntax": true,
|
|
38
|
-
"noUncheckedSideEffectImports": true,
|
|
39
|
-
"erasableSyntaxOnly": true,
|
|
40
|
-
"skipLibCheck": true
|
|
41
|
-
},
|
|
42
|
-
"vueCompilerOptions": {
|
|
43
|
-
"plugins": [
|
|
44
|
-
"weapp-vite/volar"
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"include": [
|
|
48
|
-
"src/**/*",
|
|
49
|
-
"types/**/*.d.ts",
|
|
50
|
-
"env.d.ts"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2023"
|
|
7
|
-
],
|
|
8
|
-
"moduleDetection": "force",
|
|
9
|
-
"module": "ESNext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"types": [
|
|
13
|
-
"node"
|
|
14
|
-
],
|
|
15
|
-
"allowImportingTsExtensions": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"verbatimModuleSyntax": true,
|
|
22
|
-
"noUncheckedSideEffectImports": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"skipLibCheck": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"vite.config.ts",
|
|
28
|
-
"vite.config.*.ts",
|
|
29
|
-
"*.config.ts",
|
|
30
|
-
"config/**/*.ts",
|
|
31
|
-
"scripts/**/*.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"jsx": "preserve",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ES2023",
|
|
8
|
-
"DOM",
|
|
9
|
-
"DOM.Iterable"
|
|
10
|
-
],
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"baseUrl": ".",
|
|
13
|
-
"module": "ESNext",
|
|
14
|
-
"moduleResolution": "bundler",
|
|
15
|
-
"paths": {
|
|
16
|
-
"@/*": [
|
|
17
|
-
"./src/*"
|
|
18
|
-
],
|
|
19
|
-
"@vant/weapp/*": [
|
|
20
|
-
"./node_modules/@vant/weapp/dist/*"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"resolveJsonModule": true,
|
|
24
|
-
"types": [
|
|
25
|
-
"miniprogram-api-typings"
|
|
26
|
-
],
|
|
27
|
-
"allowImportingTsExtensions": true,
|
|
28
|
-
"allowJs": true,
|
|
29
|
-
"strict": true,
|
|
30
|
-
"noFallthroughCasesInSwitch": true,
|
|
31
|
-
"noUnusedLocals": true,
|
|
32
|
-
"noUnusedParameters": true,
|
|
33
|
-
"noEmit": true,
|
|
34
|
-
"allowSyntheticDefaultImports": true,
|
|
35
|
-
"esModuleInterop": true,
|
|
36
|
-
"isolatedModules": true,
|
|
37
|
-
"verbatimModuleSyntax": true,
|
|
38
|
-
"noUncheckedSideEffectImports": true,
|
|
39
|
-
"erasableSyntaxOnly": true,
|
|
40
|
-
"skipLibCheck": true
|
|
41
|
-
},
|
|
42
|
-
"vueCompilerOptions": {
|
|
43
|
-
"plugins": [
|
|
44
|
-
"weapp-vite/volar"
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"include": [
|
|
48
|
-
"src/**/*",
|
|
49
|
-
"types/**/*.d.ts",
|
|
50
|
-
"env.d.ts"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
4
|
-
"target": "ES2023",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2023"
|
|
7
|
-
],
|
|
8
|
-
"moduleDetection": "force",
|
|
9
|
-
"module": "ESNext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"types": [
|
|
13
|
-
"node"
|
|
14
|
-
],
|
|
15
|
-
"allowImportingTsExtensions": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"noUnusedParameters": true,
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"verbatimModuleSyntax": true,
|
|
22
|
-
"noUncheckedSideEffectImports": true,
|
|
23
|
-
"erasableSyntaxOnly": true,
|
|
24
|
-
"skipLibCheck": true
|
|
25
|
-
},
|
|
26
|
-
"include": [
|
|
27
|
-
"vite.config.ts",
|
|
28
|
-
"vite.config.*.ts",
|
|
29
|
-
"*.config.ts",
|
|
30
|
-
"config/**/*.ts",
|
|
31
|
-
"scripts/**/*.ts"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// biome-ignore lint: disable
|
|
3
|
-
// oxlint-disable
|
|
4
|
-
// ------
|
|
5
|
-
// 由 weapp-vite autoImportComponents 生成
|
|
6
|
-
import type { ComponentOptionsMixin, DefineComponent, PublicProps } from 'wevu'
|
|
7
|
-
import type { ComponentProp } from 'weapp-vite/typed-components'
|
|
8
|
-
|
|
9
|
-
export {}
|
|
10
|
-
|
|
11
|
-
type WeappComponent<Props = Record<string, any>> = new (...args: any[]) => InstanceType<DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Props, {}>>
|
|
12
|
-
type __WeappComponentImport<TModule, Fallback = {}> = 0 extends 1 & TModule ? Fallback : TModule extends { default: infer Component } ? Component & Fallback : Fallback
|
|
13
|
-
|
|
14
|
-
declare module 'wevu' {
|
|
15
|
-
export interface GlobalComponents {
|
|
16
|
-
InfoPanel: typeof import("./components/InfoPanel/index.vue")['default'];
|
|
17
|
-
StatusPill: typeof import("./components/StatusPill/index.vue")['default'];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// 用于 TSX 支持
|
|
22
|
-
declare global {
|
|
23
|
-
const InfoPanel: typeof import("./components/InfoPanel/index.vue")['default']
|
|
24
|
-
const StatusPill: typeof import("./components/StatusPill/index.vue")['default']
|
|
25
|
-
}
|