--- name: grid-component overview: 在 fms-vue 的 src/components/ui/grid 下新建基础 Grid 组件(Row + Col),仅支持 gutter/align/justify/wrap 与 span/offset/order/push/pull/flex,不含 xs~xxxl 响应式断点。纯 CSS + scoped SCSS,参考 antdv-next 设计并遵守开发规范。 todos: - id: grid-tokens content: tokens.css :root 新增 --fms-grid-gutter 默认值 status: completed - id: grid-style content: 创建 grid/index.scss:24 栅格类、offset/order/push/pull/flex 类与 gutter 变量 status: completed dependencies: - grid-tokens - id: grid-row content: 创建 row.vue:flex 容器、gutter 负 margin/row-gap、align/justify/wrap 与 CSS 变量下传 status: completed dependencies: - grid-style - id: grid-col content: 创建 col.vue:span/offset/order/push/pull/flex(数字 class + flex computed style) status: completed dependencies: - grid-style - id: grid-demo content: 创建 demo/grid.vue 并注册到 App.vue「布局」分类与 demoMap status: completed dependencies: - grid-row - grid-col - id: grid-verify content: oxlint 静态检查 grid 相关文件并汇报(不主动构建) status: completed dependencies: - grid-demo --- ## 用户需求 参考 `fms-vue/开发规范.md` 与 `fms/参考组件库/antdv-next` 的 Grid 组件,在 `fms-vue` 组件库中新增 Grid 栅格组件。 ## 产品概述 基于 24 栅格系统的布局组件,包含 `Row` 容器与 `Col` 列两个组件,用于快速搭建页面布局。参考 antdv-next 的 API 设计与交互语义,遵循本项目 Vue 3 + scoped SCSS + `--fms-*` token 的约定。**不包含响应式断点(xs/sm/md/lg/xl/xxl/xxxl)**,仅实现基础栅格能力。 ## 核心特性 - Row:flex 行容器,支持 `gutter`(水平/垂直间距,数字或 `[h, v]` 数组)、`align`(top/middle/bottom/stretch)、`justify`(start/end/center/space-around/space-between/space-evenly)、`wrap` 控制换行。 - Col:列单元,支持 `span`(0-24)、`offset`、`order`、`push`、`pull`、`flex`。 - gutter 水平间距由 Row 负 margin 抵消、Col 对称 padding 实现;垂直间距由 Row `row-gap` 实现。 - 间距默认值通过 `tokens.css` 新增 `--fms-grid-gutter`(默认 0),演示中传入具体值。 - 提供演示页面,展示基础栅格、gutter、对齐、偏移等典型用法。 ## 技术栈 - Vue 3 `