diff --git a/client/src/components/base/AppStack.vue b/client/src/components/base/AppStack.vue
index fcdc35d..bf0621d 100644
--- a/client/src/components/base/AppStack.vue
+++ b/client/src/components/base/AppStack.vue
@@ -3,27 +3,17 @@ import { computed } from 'vue'
const props = withDefaults(
defineProps<{
- /** 主轴方向;默认纵向 */
+ /** 单行横向 / 单列纵向;默认纵向。响应式由使用处自行决定传 row 还是 column */
direction?: 'row' | 'column'
/**
- * 子项间距。兼容三种写法:
- * - token 名:space-3 / space-4 / space-5 …
- * - 纯数字字符串:'12' → 12px
- * - 其它 CSS 值:'12px 16px'、'var(--space-3)' 等原样透传
- * 缺省:纵向 space-5(20px),横向 space-4(16px)
+ * 子项间距:token 名(space-3…)或纯数字字符串('12' → 12px)。
+ * 缺省:纵向 space-5(20px)、横向 space-4(16px)。
*/
gap?: string
- /** 交叉轴对齐 */
- align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline'
- /** 主轴对齐 */
- justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'
- /** 是否允许换行(横向时使用) */
- wrap?: boolean
}>(),
- { direction: 'column', gap: '', align: 'stretch', justify: 'start', wrap: false }
+ { direction: 'column', gap: '' }
)
-/** token 名 / 纯数字 → 兼容的 CSS gap;其它原样透传 */
const gapStyle = computed(() => {
const raw = props.gap.trim()
if (!raw) return props.direction === 'row' ? 'var(--space-4)' : 'var(--space-5)'
@@ -36,12 +26,7 @@ const gapStyle = computed(() => {
{{ r.note }}