3 Commits
Author SHA1 Message Date
timi 9e06f1e9b8 Merge pull request 'v1.3.0' (#10) from dev into master
Reviewed-on: #10
2026-11-14 09:01:42 +00:00
Timi 0a23f0e3b9 v1.3.0
Release / release (pull_request) Successful in 41s
2026-11-14 17:00:57 +08:00
Timi f709a8faed feat(app-shell): add rail click 2026-11-14 16:55:25 +08:00
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -61,6 +61,8 @@ async function onChangeTab(value: string) {
`AppShell` 只负责导航形态与容器尺寸,不接管路由。`v-model` 与 `change` 都只是把点击结果交回业务,跳不跳、跳去哪里由业务决定。
点击未禁用的左侧导航项时,`rail-click` 会传出该项的值,包括已激活的导航项。该事件表示点击,不受 `before-change` 控制;切换是否被允许仍由 `before-change` 和 `change` 决定。
## 平板布局
`tablet` 默认 `true`——引入 `AppShell` 就意味着要手机和平板两端。真有项目只需要容器能力、暂不响应式,传 `:tablet="false"` 即可退回纯手机布局。
+1 -1
View File
@@ -5,7 +5,7 @@
"module": "./dist/timi-tdesign-mobile.mjs",
"style": "./dist/timi-tdesign-mobile.css",
"private": false,
"version": "1.2.0",
"version": "1.3.0",
"license": "MIT",
"scripts": {
"dev": "pnpm run -C docs dev",
+2
View File
@@ -90,6 +90,7 @@ const props = withDefaults(defineProps<AppShellProps>(), {
const emit = defineEmits<{
"update:modelValue": [value: AppShellValue];
"change": [value: AppShellValue];
"rail-click": [value: AppShellValue];
}>();
defineSlots<{
@@ -164,6 +165,7 @@ function onSelect(item: AppShellItem): void {
return;
}
emit("rail-click", item.value);
void requestChange(item.value);
}