Skip to content

Commit aa2f32d

Browse files
anlyyaocomposable-tubetavsnovlan1uyarn
authored
chore: update site (#3894)
* fix(DateTimePicker): 修复在 showWeek 模式下日列表未正确排除 start、end、且 steps 步长不生效的 Bug (#3861) * fix(DateTimePicker): 修复在 showWeek 模式下日列表未正确排除 start 和 end 的 Bug * refactor(date-time-picker): 优化日期周显示逻辑,使用统一边界和步长控制 重构 getDaysOfWeekInMonth 方法,使用 getOptionEdge 获取边界值并支持步长配置,简化循环逻辑,移除不必要的日期范围检查 * refactor: use monorepo (#3660) * chore: directory structure optimization * chore: update coverage badges * chore: update dependency installation to use pnpm action * chore: the respective package.json * chore: move test to root dir * chore: update jest config * chore: update typos-config * chore: update typos-config * chore: update import path * chore: lint * chore: update script * chore: update plugin script * chore: update script * chore: update deps * chore: update dep * chore: support ty live host * chore: update live host * chore: update badge script data path * chore: update vscode setting and nest files --------- Co-authored-by: novlan1 <1576271227@qq.com> * chore: update group code path (#3880) * fix(Message): use the correct error theme icon (#3879) * fix(Message): use the correct error theme icon * test: update snapshots --------- Co-authored-by: novlan1 <1576271227@qq.com> * docs: add pkg.pr.new badge (#3882) * chore(Textarea): using pseudo-elements (#3878) Co-authored-by: novlan1 <1576271227@qq.com> * feat(SideBarItem): add default slot (#3875) Co-authored-by: novlan1 <1576271227@qq.com> * fix(image-viewer): 修复背景色错误问题 (#3881) * chore(docs): regenerate (#3887) * fix: fix component name error * chore(docs): regenerate * chore: update live url (#3886) * chore: update packageManager to pnpm@9.15.9 (#3889) * revert live url (#3892) * chore: revert live url * chore: update live url and always be outer host * chore: revert live url * chore: add m2w.sh (#3893) * chore: add m2w.sh * chore: update liveUrl * chore: use pnpm add --------- Co-authored-by: composable-tu <composable@foxmail.com> Co-authored-by: betavs <34408516+betavs@users.noreply.github.com> Co-authored-by: novlan1 <1576271227@qq.com> Co-authored-by: wū yāng <uyarnchen@gmail.com> Co-authored-by: liweijie0812 <674416404@qq.com>
1 parent d74805a commit aa2f32d

3 files changed

Lines changed: 26 additions & 6 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tdesign-miniprogram",
3-
"packageManager": "pnpm@9.9.0",
3+
"packageManager": "pnpm@9.15.9",
44
"purename": "tdesign",
55
"version": "1.10.1",
66
"description": "tdesign-miniprogram",
@@ -32,6 +32,7 @@
3232
"site:dev": "pnpm -C packages/tdesign-miniprogram-site site:dev",
3333
"site:intranet": "pnpm -C packages/tdesign-miniprogram-site site:intranet",
3434
"site:prerender": "pnpm -C packages/tdesign-miniprogram-site site:prerender",
35+
"m2w": "sh ./script/m2w.sh",
3536
"cover": "pnpm -C test cover",
3637
"test": "pnpm -C test test",
3738
"test:snap-update": "pnpm -C test test:snap-update",

packages/tdesign-miniprogram-site/plugins/plugin-tdoc/component.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default defineComponent({
5050
get() {
5151
return this.$route.query.tab || 'demo';
5252
},
53-
set(v: string) {
53+
set(v) {
5454
if (this.$route.query.tab !== v) {
5555
this.$router.push({ query: { tab: v } });
5656
}
@@ -65,17 +65,17 @@ export default defineComponent({
6565
liveHost() {
6666
const { host } = window.location;
6767
if (IS_DEV) {
68-
return 'tdesign.tencent.com';
68+
return 'https://tdesign.tencent.com';
6969
}
70-
return host;
70+
return `//${host}`;
7171
},
7272
liveUrl() {
7373
const componentName = this.name.split('-en')[0];
74-
return `//${this.liveHost}/miniprogram/live/#!pages/${componentName}/${componentName}.html`;
74+
return `${this.liveHost}/miniprogram/live/m2w/program/miniprogram//#!pages/${componentName}/${componentName}.html`;
7575
},
7676
qrcode() {
7777
const componentName = this.name.split('-en')[0];
78-
return `//${this.liveHost}/miniprogram/assets/qrcode/${componentName}.png`;
78+
return `//tdesign.tencent.com/miniprogram/assets/qrcode/${componentName}.png`;
7979
},
8080
},
8181

script/m2w.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# 执行构建命令
4+
npm run build
5+
6+
# 切换到 _example 目录
7+
cd _example
8+
9+
# 切换腾讯源
10+
npm config set registry http://mirrors.tencent.com/npm/
11+
12+
pnpm install
13+
14+
pnpm add @tencent/m2w-tdesign -w
15+
16+
# 执行 m2w-tdesign 命令
17+
npx m2w-tdesign build --navigationStyle custom --output ../_site/live --baseUrl /miniprogram/live
18+
19+
echo "m2w 脚本执行完成!"

0 commit comments

Comments
 (0)