mvframe 1.1.10 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ alwaysApply: false
27
27
  | `Frame` | 框架布局(菜单、页头、Tab 等) |
28
28
  | `Icon` | 图标字体 |
29
29
  | `Lang` | 语言下拉(与 `app.use(mvframe, { lang: { use: [...] } })` 对齐,见 `locale/langUseDefaults.js`) |
30
- | `Input` / `Textarea` | 输入封装 |
30
+ | `Input` / `InputNumber` / `Textarea` / `Mention` | 输入封装 |
31
31
  | `Loading` | 局部/容器内全屏遮罩加载(`position: absolute` 铺满**最近一层 `position: relative` 祖先**,见 `Table` / `Drawer`) |
32
32
  | `Login` | 登录页(表单项用 **`Form`** + **`Input`**,勿裸用 `el-form` / `el-input` 拼账号密码区) |
33
33
  | `Page` | 页面布局块 |
@@ -281,7 +281,26 @@ alwaysApply: true
281
281
 
282
282
  - `hover`:hover 时 opacity 0.6 + 过渡
283
283
 
284
- ## 6. 组件通用样式(cpt.scss)
284
+ ## 6. 主题专用样式(theme.scss)
285
+
286
+ ### Glass Rect Area
287
+
288
+ `rectArea` 是 `html.mv-theme-glass` 下专用的矩形玻璃区域样式,适合快捷入口、小卡片、色块、状态块等需要跟随 glass 主题背景、阴影、hover 和 active 状态的矩形容器。
289
+
290
+ | 类名 | 用途 |
291
+ |------|------|
292
+ | `rectArea` | 默认 gray 玻璃矩形面 |
293
+ | `rectArea active` | 激活态 |
294
+ | `rectArea primary/blue/green/yellow/orange/red/purple/pink/black/dark/body/white/gray` | 颜色变体,色值与 `var.scss` 的全局颜色体系一致 |
295
+
296
+ 使用建议:
297
+
298
+ - `rectArea` 只在 glass 主题下承担背景和阴影视觉;其它主题下不要依赖它作为唯一背景
299
+ - 直接组合布局、尺寸、圆角工具类:`class="rectArea w88 h88 radius8"`、`class="rectArea primary active"`
300
+ - 需要 glass 主题矩形区域时,优先使用 `rectArea`,不要在业务 scoped 样式里重复写 `--glass-bg-*` / `--glass-shadow-*`
301
+ - hover / active 已由 `theme.scss` 统一处理,业务侧只需要切换颜色类和 `active` 类
302
+
303
+ ## 7. 组件通用样式(cpt.scss)
285
304
 
286
305
  ### 组件变量
287
306
 
@@ -332,7 +351,7 @@ alwaysApply: true
332
351
 
333
352
  ### 表单 Label(element.scss)
334
353
 
335
- `Input`、`Textarea`、`Select`、`SelectV2` 支持统一的 label 接口:
354
+ `Input`、`InputNumber`、`Textarea`、`Mention`、`Select`、`SelectV2` 支持统一的 label 接口:
336
355
 
337
356
  | 属性 | 用途 |
338
357
  |------|------|
@@ -357,9 +376,15 @@ Material 风格的上浮条件:
357
376
  <Input v-model="form.name" label="Name" />
358
377
  <Input v-model="form.name" label="Material Name" material-label />
359
378
 
379
+ <InputNumber v-model="form.count" label="Count" />
380
+ <InputNumber v-model="form.count" label="Material Count" material-label />
381
+
360
382
  <Textarea v-model="form.remark" label="Remark" />
361
383
  <Textarea v-model="form.remark" label="Material Remark" material-label />
362
384
 
385
+ <Mention v-model="form.owner" :options="users" label="Owner" />
386
+ <Mention v-model="form.owner" :options="users" label="Material Owner" material-label />
387
+
363
388
  <Select v-model="form.type" :options="options" label="Type" />
364
389
  <Select
365
390
  v-model="form.type"
@@ -375,7 +400,7 @@ Material 风格的上浮条件:
375
400
  - 如果要做 Material 风格,优先直接使用 `label` + `material-label`,不要再额外包一层自定义标题
376
401
  - 如需特殊背景色,优先通过 field surface 相关变量覆写,不要直接把 label 写死成固定背景色
377
402
 
378
- ## 7. 动画(ani.scss)
403
+ ## 8. 动画(ani.scss)
379
404
 
380
405
  | 类名 | 用途 |
381
406
  |------|------|