--- name: grid-component overview: 在 fms-vue 的 src/components/ui/grid 下新建 Grid 组件(Row + Col),参考 antdv-next 的 24 栅格设计与本项目开发规范,使用纯 CSS + scoped SCSS 实现,不引入新依赖、不破坏现有 token。 todos: - id: grid-tokens content: tokens.css 新增 --fms-grid-gutter 默认值(用 [skill:antdv-next] 确认断点) status: pending - id: grid-style content: 创建 grid/index.scss:24 栅格类、offset/order/push/pull/flex、xs~xxxl 媒体查询与 gutter 变量 status: pending dependencies: - grid-tokens - id: grid-row content: 创建 row.vue:flex 容器、gutter 负 margin/row-gap、align/justify/wrap 与 CSS 变量下传 status: pending dependencies: - grid-style - id: grid-col content: 创建 col.vue:span/offset/order/push/pull/flex 及响应式 xs~xxxl(数字 class + 对象 computed style) status: pending dependencies: - grid-style - id: grid-demo content: 创建 demo/grid.vue 并注册到 App.vue「布局」分类与 demoMap status: pending dependencies: - grid-row - grid-col - id: grid-verify content: oxlint 静态检查 grid 相关文件并汇报(不主动构建) status: pending 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 的约定。 ## 核心特性 - Row:flex 行容器,支持 `gutter`(水平/垂直间距)、`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`;并支持响应式 `xs/sm/md/lg/xl/xxl/xxxl`(数字或 `{span,offset,order,push,pull,flex}` 对象),按断点自动切换布局。 - 响应式断点对齐 antdv-next 默认:576 / 768 / 992 / 1200 / 1600 / 1920,采用纯 CSS media query 实现,无 JS 监听开销。 - gutter 水平间距由 Row 负 margin 抵消、Col 对称 padding 实现;垂直间距由 Row `row-gap` 实现。 - 间距默认值通过 `tokens.css` 新增 `--fms-grid-gutter`(默认 0),演示中传入具体值。 - 提供演示页面,展示基础栅格、gutter、对齐、偏移、响应式等典型用法。 ## 技术栈 - Vue 3 `