@done-coding/forge 0.104.0 → 0.104.1-alpha.1
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.
- package/README.md +3 -1
- package/docs/page-guide.md +269 -0
- package/es/index.mjs +8 -8
- package/es/style.css +320 -275
- package/package.json +10 -9
- package/types/index.d.ts +1 -3
package/README.md
CHANGED
|
@@ -25,10 +25,12 @@ import "@done-coding/forge/style.css";
|
|
|
25
25
|
|
|
26
26
|
## 消费边界
|
|
27
27
|
|
|
28
|
-
`ModalShelfMap` 由 forge-core 定义,应用通过 `declare module "@done-coding/forge" { interface ModalShelfMap { /* 业务键 */ } }` 增广,约束 ModalPorter 与 ModalShelf
|
|
28
|
+
`ModalShelfMap` 由 forge-core 定义,应用通过 `declare module "@done-coding/forge" { interface ModalShelfMap { /* 业务键 */ } }` 增广,约束 ModalPorter 与 ModalShelf。注入键按定义它的包取包名作命名空间(如 `@done-coding/forge-core:CORE_BRIDGE_KEY`);provide / inject 一律 import 键变量,不按字符串复写。家族须同版安装,混装 0.x 副本时 `AppLayout` 开发期报错。
|
|
29
29
|
|
|
30
30
|
agent、flow 和插件需独立消费。JS 导出不会合并 CSS,应用须显式引入 `@done-coding/forge/style.css`。
|
|
31
31
|
|
|
32
|
+
写页面先读包内的[页面指南](./docs/page-guide.md)(`node_modules/@done-coding/forge/docs/page-guide.md`):三个页面级组件的选用顺序与空间清单、配置组合函数写法、全局弹窗的登记与引用。
|
|
33
|
+
|
|
32
34
|
文档与完整 API:[使用文档](https://done-coding.github.io/forge/)。
|
|
33
35
|
|
|
34
36
|
MIT,Copyright (c) JustSoSu。完整许可见本包 LICENSE。
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
# 页面指南:用 forge 写一个页面
|
|
2
|
+
|
|
3
|
+
> 随 `@done-coding/forge` 发布(`node_modules/@done-coding/forge/docs/page-guide.md`)。写页面、改页面、加弹窗之前先读本文。组件的完整 API 以各组件文档为准,本文只讲「页面怎么组织」。
|
|
4
|
+
|
|
5
|
+
一个页面 = **一份配置** + **一个薄页面文件**:
|
|
6
|
+
|
|
7
|
+
- 配置文件(`config.tsx`)导出一个组合函数,返回页面级组件要的全部属性;
|
|
8
|
+
- 页面文件(`Index.vue`)只选一个页面级组件、整体 `v-bind` 配置、在插槽里放定制内容。
|
|
9
|
+
|
|
10
|
+
## 1. 选页面级组件
|
|
11
|
+
|
|
12
|
+
按顺序判断,命中即停:
|
|
13
|
+
|
|
14
|
+
1. **列表页、列表加详情一体页** → `AppPageListDetailLayout`。不配详情就是单栏列表;一页要多个列表时,在 `AppPage` 里用 `TabsMain` 放多个 `embedded` 实例。
|
|
15
|
+
2. **其余绝大多数页面**(单条详情、新建/编辑表单、设置、工作台)→ `AppPageDetail`。新建与编辑用同一个页面,按有没有 `id` 区分。
|
|
16
|
+
3. **以上都装不下的主要页面容器**(对话、画布、编辑器、自由排版的首页)→ `AppPage`。
|
|
17
|
+
|
|
18
|
+
`ListLayout`、`ViewLayout`、`TabsMain`、`FormMain` 是页面里的空间内容,不作页面根。
|
|
19
|
+
|
|
20
|
+
## 2. 空间与插槽清单
|
|
21
|
+
|
|
22
|
+
「空间」是页面级组件里一块有固定职责的区域。配置写在属性上,定制内容放进插槽。
|
|
23
|
+
|
|
24
|
+
### `AppPageListDetailLayout`
|
|
25
|
+
|
|
26
|
+
| 空间 | 配置(属性) | 插槽 |
|
|
27
|
+
| ------------ | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
28
|
+
| 列表 | `listLayoutProps`(对象,或 `(resolvedMode) => 对象`);`listWidth` | `#list`(`{ listProps, resolvedMode }`):不写则内置 `ListLayout`;写了就整体 `v-bind="listProps"` |
|
|
29
|
+
| 当前项 | `v-model:activeId` / `v-model:activeData`;`autoActiveFirst`;`queryKey`(深链) | — |
|
|
30
|
+
| 详情 | `detailApi`、`detailTitle`、`viewLayoutProps` | `#detail`、`#detailBottom`(当前这一条的固定操作条) |
|
|
31
|
+
| 空态 | — | `#empty`(「请从列表选择一条数据」由本组件给) |
|
|
32
|
+
| 形态 | `mode`(`split` / `sheet` / `auto`)、`splitAt`、`sheetLayerType`、`sheetSize`、`embedded` | — |
|
|
33
|
+
| 页面外框 | `AppPage` 属性经 `$attrs` 穿透(`showNavBar`、`back`、各 `*Bg` 等);`contentCentered` 默认关 | `#top`、`#bottom`、`#right`(split 档自用 `#left`) |
|
|
34
|
+
| 页面私有弹窗 | `modals`(`RegisterEntry[]`);遥控器 `v-model:modalRemote`(`embedded` 时无落点) | — |
|
|
35
|
+
|
|
36
|
+
- 不配 `#detail` 也不给 `detailApi` 时,页面退化为单栏列表。
|
|
37
|
+
- `listProps` 已合并三层:窄栏推荐(split 档)→ `listLayoutProps` → 当前项联动。在 `#list` 里只需关注自己要定制的 `ListLayout` 插槽。
|
|
38
|
+
- 传了 `listLayoutProps` 时,`#list` 里 `<ListLayout v-bind="listProps" />` 直接过严格模板类型检查;要让 `#custom-view-item` 等插槽的 `row` 带上行类型,给 `listLayoutProps` 加 `satisfies AppPageListDetailListLayoutProps<行类型>`。
|
|
39
|
+
- `listLayoutProps` 写成函数时只在档位变化时求值,函数里内联的 `api`、`columns` 不会因选中、出数而换引用。
|
|
40
|
+
|
|
41
|
+
### `AppPageDetail`
|
|
42
|
+
|
|
43
|
+
| 空间 | 配置 | 插槽 |
|
|
44
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
|
|
45
|
+
| 内容 | `detailApi` + `id`(取数);`detailTitle`;`viewLayoutProps`(工具条按钮 `leftExtraButtons` / `rightExtraButtons`、`refine` 等) | `#detail`(`{ data, loading, fetchSeq, refresh, … }`) |
|
|
46
|
+
| 固定底边 | — | `#detailBottom`(提交、审核这一条) |
|
|
47
|
+
| 缺数据 | — | `#empty`(`{ missing }`:`"id"` 表示给了 `detailApi` 却没有 `id`) |
|
|
48
|
+
| 页面外框 | `AppPage` 属性经 `$attrs` 穿透 | `#top`、`#bottom`、`#left`、`#right` |
|
|
49
|
+
| 页面私有弹窗 | `modals`;遥控器 `v-model:modalRemote` | — |
|
|
50
|
+
|
|
51
|
+
- 不传 `detailApi`:不取数,直接渲染 `#detail`(`data` 为 `undefined`)。新建表单、设置、工作台走这条。
|
|
52
|
+
- 传了 `detailApi` 也有 `id`:取数后渲染。
|
|
53
|
+
- 写了 `#detailBottom`:不传 `detailApi` 也会有内置容器承接这条固定底边(新建表单的「保存」就放这里)。
|
|
54
|
+
|
|
55
|
+
### `AppPage`
|
|
56
|
+
|
|
57
|
+
| 空间 | 配置 | 插槽 |
|
|
58
|
+
| ------------ | ------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
|
|
59
|
+
| 主体 | `contentCentered`、`contentMaxWidth`、`fullViewport`、`gap`、`background` | 默认插槽(内含页面级弹窗架子) |
|
|
60
|
+
| 四向悬浮区 | `leftWidth` / `rightWidth`、`*Bg`、`*ObserveResize` | `#top`、`#bottom`、`#left` / `#right`(`{ listLayoutRecommended }`) |
|
|
61
|
+
| 页面级导航条 | `showNavBar`、`back`、`moreOptions`、`onMoreSelect`、`onMore`、`v-model:title` | `#navTitle`、`#more`、`#tabbar` |
|
|
62
|
+
| 页面私有弹窗 | `modals`(`RegisterEntry[]`,登记到本页弹窗架子);遥控器 `v-model:modalRemote` | — |
|
|
63
|
+
|
|
64
|
+
`contentCentered` 按页面类型取值,见 `AppPage` 文档的「页面布局建议」表。
|
|
65
|
+
|
|
66
|
+
## 3. 配置组合函数
|
|
67
|
+
|
|
68
|
+
### 规矩
|
|
69
|
+
|
|
70
|
+
1. **一个页面一个配置文件**:`pages/<页面>/config.tsx`(列的 `render` 常用 JSX;不含 JSX 时可用 `.ts`)。
|
|
71
|
+
2. **导出一个组合函数** `use<页面名>Config(handlers?)`:名字带页面名,全仓可搜、不撞名。可以用 `ref` / `computed`、可以读注入,值可以是组件引用与函数。
|
|
72
|
+
3. **返回值按空间组织**:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
return {
|
|
76
|
+
props, // 页面级组件的属性:键就是空间名(页面私有弹窗是其中的 modals),页面文件里整体 v-bind
|
|
77
|
+
meta, // 可选:一句话职责
|
|
78
|
+
};
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
`props` 用 `satisfies` 校验类型:列表详情页用 `AppPageListDetailProps`,详情页用 `AppPageDetailProps<行类型, 详情类型>`,普通页用 `AppPageProps`(都从 `@done-coding/forge` 导出)。`props` 是 `computed` / `reactive` 时,给 `computed` 的回调或变量标上同一个类型。大块配置拆成同文件内的 `build*()` 函数,或放进 `_shared/` 的共享配置列表(只共享配置列表,不互引别页的组合函数)。
|
|
82
|
+
|
|
83
|
+
4. **出界副作用经 `handlers` 注入**:配置文件不 import router、不持组件 ref;跳页、刷新、拉起全局弹窗由页面文件以 `handlers` 传入。
|
|
84
|
+
5. **页面文件只做三件事**:选一个页面级组件;`v-bind` 配置的 `props`;在插槽里放定制内容(或引用页面私有组件)。不写业务逻辑。
|
|
85
|
+
|
|
86
|
+
### 示例:列表加详情一体页
|
|
87
|
+
|
|
88
|
+
```tsx
|
|
89
|
+
// pages/article/config.tsx
|
|
90
|
+
import type {
|
|
91
|
+
AppPageListDetailProps,
|
|
92
|
+
GlobalModalOpen,
|
|
93
|
+
} from "@done-coding/forge";
|
|
94
|
+
import { articleApi } from "@/api";
|
|
95
|
+
|
|
96
|
+
export interface ArticlePageHandlers {
|
|
97
|
+
openGlobal: GlobalModalOpen;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const useArticlePageConfig = (handlers: ArticlePageHandlers) => {
|
|
101
|
+
const props = {
|
|
102
|
+
mode: "auto",
|
|
103
|
+
listLayoutProps: {
|
|
104
|
+
api: articleApi.list,
|
|
105
|
+
rowKey: "id",
|
|
106
|
+
columns: [{ prop: "title", label: "标题" }],
|
|
107
|
+
},
|
|
108
|
+
detailApi: articleApi.detail,
|
|
109
|
+
} satisfies Partial<AppPageListDetailProps>;
|
|
110
|
+
return { props, meta: "文章列表与详情" };
|
|
111
|
+
};
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
```vue
|
|
115
|
+
<!-- pages/article/Index.vue -->
|
|
116
|
+
<template>
|
|
117
|
+
<AppPageListDetailLayout v-bind="config.props">
|
|
118
|
+
<template #detail="{ data }">
|
|
119
|
+
<ArticleView :article="data" />
|
|
120
|
+
</template>
|
|
121
|
+
</AppPageListDetailLayout>
|
|
122
|
+
</template>
|
|
123
|
+
<script setup lang="ts">
|
|
124
|
+
import {
|
|
125
|
+
AppPageListDetailLayout,
|
|
126
|
+
useGlobalModalOpen,
|
|
127
|
+
} from "@done-coding/forge";
|
|
128
|
+
import { useArticlePageConfig } from "./config";
|
|
129
|
+
|
|
130
|
+
const config = useArticlePageConfig({ openGlobal: useGlobalModalOpen() });
|
|
131
|
+
</script>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### 表单项
|
|
135
|
+
|
|
136
|
+
表单、搜索区、弹窗表单的每一项用 `swiftFormItemConfig` 写。表单与弹窗表单的列表标注表单类型:
|
|
137
|
+
|
|
138
|
+
```ts
|
|
139
|
+
import { ElInput } from "element-plus";
|
|
140
|
+
import { FormSelect, swiftFormItemConfig } from "@done-coding/forge";
|
|
141
|
+
import type { FormItemConfigList } from "@done-coding/forge";
|
|
142
|
+
|
|
143
|
+
const list: FormItemConfigList<ArticleForm, {}> = [
|
|
144
|
+
swiftFormItemConfig({
|
|
145
|
+
key: "title",
|
|
146
|
+
label: "标题",
|
|
147
|
+
render: ElInput,
|
|
148
|
+
required: true,
|
|
149
|
+
}),
|
|
150
|
+
swiftFormItemConfig({
|
|
151
|
+
key: "status",
|
|
152
|
+
label: "状态",
|
|
153
|
+
render: FormSelect,
|
|
154
|
+
props: { options },
|
|
155
|
+
}),
|
|
156
|
+
];
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
- **搜索区的列表不带泛型**:列表详情页的 `listLayoutProps.list`(以及 `ListLayout` 的 `list`)标 `FormItemConfigList`。页面级属性按宽类型校验,带了表单类型的列表放不进去,类型检查报 `hide` 等回调的参数不兼容;运行时无影响。
|
|
160
|
+
- **按组件推断输入框还是下拉**:`render` 是 `ElInput` 这类输入组件时,占位与必填提示写「请输入…」;是 `ElSelect` / `FormSelect` 时写「请选择…」,在搜索区里选了即查。推断依据是应用启动时调一次 `setFormComponentType()` 登记的组件;用了没登记的组件,写 `type: "input"` 或 `"select"`。不手写 `extra: { isInput / isSelect }`。
|
|
161
|
+
- **AI 填充用的数据类型 `type`**(如 `"array"`)与快捷函数的控件类型 `type` 同名不同义,快捷函数不收:写成 `{ ...swiftFormItemConfig({ … }), type: "array" }`。
|
|
162
|
+
- **`render` 直接给组件**。不给 `render` 时这一项走 `FormMain` 的同名插槽,不渲染输入控件。
|
|
163
|
+
- **必填写 `required: true`**:生成一条必填规则(提示语按标签生成,失焦校验),并显示必填星号。只在 `rules` 的 `validator` 里判空,校验有、星号没有。
|
|
164
|
+
- **改必填的提示语或触发时机**:在 `required: true` 之外再写 `rules`,它覆盖生成的那条;`rules` 里保留 `required: true`,星号靠它。
|
|
165
|
+
- **动态必填**写 `required: isEdit ? undefined : true`;`required` 的类型是 `true`,写成 `boolean` 类型检查报错。
|
|
166
|
+
- **新建 / 编辑字段不同**:先写一份标注了类型的完整列表,再 `.filter()` 去掉不要的项。在数组字面量里写条件展开 `...(isEdit ? [] : [...])`,或直接对字面量调 `.filter()`,列表的类型标注传不进去,key 写对也会报类型错误。
|
|
167
|
+
|
|
168
|
+
## 4. 子模块的配置
|
|
169
|
+
|
|
170
|
+
页面级配置只管页面级组件自己的空间。插槽里的内容本身又是一个带配置的空间时(页签里的列表、详情里的表单、页面私有弹窗),它自带配置,不塞进页面配置:
|
|
171
|
+
|
|
172
|
+
1. **一个子模块一个目录**:`pages/<页面>/spaces/<子模块>/`,里面一个薄组件文件加一个 `config.tsx`,导出 `use<页面名><子模块名>Config(handlers?)`。页面私有弹窗同理放 `pages/<页面>/modals/<弹窗>/`。
|
|
173
|
+
2. **父页面在插槽里引用子组件**,用属性把输入传下去(当前项 `id`、`fetchSeq`、通道变量),用事件或 handlers 收输出(条数、保存完成)。子模块的配置不 import 父页面的配置,父页面也不改子模块的配置。
|
|
174
|
+
3. **可以一层层往下套**:子模块里再有子模块,就在它的目录里再开 `spaces/`。目录树就是结构树。
|
|
175
|
+
4. **什么时候不拆**:只有几列、一个按钮这类一次性的小块,留在父配置里;纯展示、不带配置的组件放 `components/`。
|
|
176
|
+
|
|
177
|
+
### 视口高度通道
|
|
178
|
+
|
|
179
|
+
父容器(`TabsMain`、`ViewLayout`)与子组件(`TableMain`、`ListLayout` 等)要定向配对视口可用高时,用通道变量:在父子都看得见的地方创建一次,父子绑同一个变量。
|
|
180
|
+
|
|
181
|
+
```ts
|
|
182
|
+
import { createViewportChannel } from "@done-coding/forge";
|
|
183
|
+
const listChannel = createViewportChannel("list");
|
|
184
|
+
// 父::channel="listChannel";子::parent-channel="listChannel"
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
字符串不再接受;同名的两次 `createViewportChannel` 是两条不同的通道。
|
|
188
|
+
|
|
189
|
+
## 5. 全局弹窗
|
|
190
|
+
|
|
191
|
+
### 页面私有还是登记全局
|
|
192
|
+
|
|
193
|
+
满足任一条就登记全局,否则页面私有(配置的 `props.modals` 交给页面容器,或模板里声明式的 `ModalForm` / `ModalDetail`):
|
|
194
|
+
|
|
195
|
+
1. 两个及以上页面要拉起它(第二个页面要用时再提升,不预先登记);
|
|
196
|
+
2. 必须比页面活得久(登录、会话过期、全局通知);
|
|
197
|
+
3. 由应用外壳或非页面代码拉起(请求拦截器、全局快捷键)。
|
|
198
|
+
|
|
199
|
+
### 登记
|
|
200
|
+
|
|
201
|
+
- `src/modals/index.ts` 一处导出全局弹窗配置数组,交给 `AppLayout` 的 `global-modal-config`(每项 `shelf: "app"`)。
|
|
202
|
+
- 每个全局弹窗一个目录 `src/modals/<key>/`(组件加它自己的配置)。
|
|
203
|
+
- `src/modals/types.d.ts` 增广 `ModalShelfMap`,写 key 与 payload 类型:
|
|
204
|
+
|
|
205
|
+
```ts
|
|
206
|
+
declare module "@done-coding/forge" {
|
|
207
|
+
interface ModalShelfMap {
|
|
208
|
+
globalLogin: { redirect?: string };
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### 引用
|
|
214
|
+
|
|
215
|
+
- `AppLayout` 自己 provide 遥控器;页面文件用 `useGlobalModalOpen()` 取受检的拉起函数,作为 handler 交给配置:`openGlobal: useGlobalModalOpen()`。名字只能是 `ModalShelfMap` 里的、payload 按名字校验,写错类型检查即报;不在 `AppLayout` 内或名字未登记时开发期告警。配置里 handler 的类型写 `GlobalModalOpen`(或收窄到用到的名字)。
|
|
216
|
+
- 要关闭、更新已打开的全局弹窗时,用 `useGlobalModalRemote()` 取遥控器(`Ref<GlobalModalRemote>`,脱离 `AppLayout` 时为 `undefined`),`remote.value.<key>.close()` / `update(payload)`。
|
|
217
|
+
- 配置文件不 import 全局弹窗组件、不持遥控器。不另造注入键、不在应用根手写 provide。
|
|
218
|
+
|
|
219
|
+
## 6. 自检
|
|
220
|
+
|
|
221
|
+
- 页面根是三个页面级组件之一,且按第 1 节顺序选出。
|
|
222
|
+
- 页面文件里没有业务逻辑:数据、列、按钮都在配置里;跳页、拉弹窗经 handlers。
|
|
223
|
+
- 配置函数名带页面名;返回的 `props` 用 `satisfies` 校验过。
|
|
224
|
+
- 表单项用 `swiftFormItemConfig`,必填写 `required`,没有手写的 `extra: { isInput / isSelect }`。
|
|
225
|
+
- 插槽里放的带配置内容,已拆到 `spaces/<子模块>/`。
|
|
226
|
+
- 通道、注入键都用变量,没有两处各写一遍的字符串。
|
|
227
|
+
- 全局弹窗在 `src/modals/` 登记、经 `useGlobalModalOpen()` 拉起;页面私有弹窗用 `definePageModal` 声明、`usePageModalRemote<本页名字表>()` 拉起,不增广 `ModalShelfMap`。
|
|
228
|
+
|
|
229
|
+
### 页面私有弹窗
|
|
230
|
+
|
|
231
|
+
只有本页用的弹窗不登记全局,也不在页面文件里手写 `ModalPorter`:每条弹窗在自己目录的配置里用 `definePageModal<Payload>()` 声明,本页清单 `as const` 放进配置的 `props.modals`,三个页面容器都收这个属性,把它们登记到自己的页面级弹窗架子;页面文件用 `usePageModalRemote<本页名字表>()` 拿到遥控器与受检的 `open`,遥控器绑 `v-model:modalRemote`,`open` 包成 handler 交给配置:
|
|
232
|
+
|
|
233
|
+
```ts
|
|
234
|
+
// pages/members/modals/invite/config.tsx
|
|
235
|
+
export const membersInviteModalEntry = definePageModal<MembersInvitePayload>()({
|
|
236
|
+
key: "membersInvite",
|
|
237
|
+
component: () => import("./InviteModal.vue"),
|
|
238
|
+
});
|
|
239
|
+
// pages/members/config.tsx
|
|
240
|
+
export const membersPageModals = [membersInviteModalEntry] as const;
|
|
241
|
+
export type MembersPageModals = PageModalMap<typeof membersPageModals>;
|
|
242
|
+
// …props 里:modals: membersPageModals
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
```vue
|
|
246
|
+
<!-- pages/members/Index.vue:不写插槽 -->
|
|
247
|
+
<template>
|
|
248
|
+
<AppPageListDetailLayout
|
|
249
|
+
v-bind="config.props"
|
|
250
|
+
v-model:modal-remote="modalRemote"
|
|
251
|
+
/>
|
|
252
|
+
</template>
|
|
253
|
+
|
|
254
|
+
<script lang="ts" setup>
|
|
255
|
+
const { remote: modalRemote, open: openModal } =
|
|
256
|
+
usePageModalRemote<MembersPageModals>();
|
|
257
|
+
const config = useMembersPageConfig({
|
|
258
|
+
openInvite: (payload) => openModal("membersInvite", payload),
|
|
259
|
+
});
|
|
260
|
+
</script>
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
名字不在本页表里、payload 不对,类型检查即报;忘了绑 `v-model:modalRemote`(遥控器为空)或名字未登记,开发期各告警一条。页面私有弹窗的名字只需本页唯一,**不增广** `ModalShelfMap`(那张表是全应用唯一的名字表,页面名字进去会互相冲突,也会让每页的遥控器接受别页的名字)。`AppPageListDetailLayout` 把架子放在形态件旁边,视口跨过分栏阈值换形态时,打开着的弹窗不关。
|
|
264
|
+
|
|
265
|
+
子模块(`spaces/<子模块>/`)要拉起页面私有弹窗时,在子模块配置里定义自己的窄 handlers 接口(只含它要的那几个、payload 由子模块自己定),页面文件实现后经属性传进子组件;不把页面配置的整包 handlers 往下转交。
|
|
266
|
+
|
|
267
|
+
**为什么不做页面级的注入式遥控器**(决策,rijclt):页面私有弹窗的遥控器由页面容器创建、经 `v-model` 交给页面文件,所有权在页面文件这一层,注入只能向下、拿不到它;即使把创建上移,子模块改靠注入取遥控器,依赖就从签名里消失,读一个文件看不出它要什么,单测要搭注入环境,被第二个页面复用时两页的名字表也对不上。显式 handlers 层层传,传错在类型检查时报。判据:子模块要被第二个页面复用时再评估;全局弹窗是应用级单例,`useGlobalModalOpen()` 经注入取用不受此限。
|
|
268
|
+
|
|
269
|
+
做成属性而不是插槽:页面私有弹窗和全局弹窗一样是一份登记配置(`PageModalEntry[]`,旧的 `RegisterEntry` 也收),属性让它留在配置里(与 `AppLayout` 的 `globalModalConfig` / `v-model:globalModalRemote` 对称),页面文件不必为放一个 `ModalPorter` 去写插槽和组件引用。条目里的 `shelf` 不起作用,恒落在本页架子;`embedded` 嵌入态没有自己的 `AppPage`,`modals` 无落点并在开发期告警,嵌入时登记到宿主页面的容器上。
|
package/es/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { APP_API_LIST_MODEL_KEY_CONFIG, APP_GLOBAL_IMAGE_PREVIEW_KEY, APP_GLOBAL_VIDEO_PREVIEW_KEY, APP_LAYOUT_APP_STORE_KEY, APP_LAYOUT_BRIDGE_KEY, APP_LAYOUT_USER_STORE_KEY, APP_PAGE_CONTENT_INSET, APP_PAGE_LIST_DETAIL_CONTEXT, APP_PAGE_NAV_BAR_ACTIVE, APP_PAGE_SIDE_SLOTS, ActionBtn, ActionBtnGroup, ActionConfirm, AppTheme, AutoRefresh, AutoRefreshGroup, BADGE_HOST_ATTR, BADGE_KEY_ATTR, BADGE_MASK_KINDS, BEHAVIOR_DEFAULT_EVENTS,
|
|
2
|
+
import { APP_API_LIST_MODEL_KEY_CONFIG, APP_GLOBAL_IMAGE_PREVIEW_KEY, APP_GLOBAL_VIDEO_PREVIEW_KEY, APP_LAYOUT_APP_STORE_KEY, APP_LAYOUT_BRIDGE_KEY, APP_LAYOUT_USER_STORE_KEY, APP_PAGE_CONTENT_INSET, APP_PAGE_LIST_DETAIL_CONTEXT, APP_PAGE_NAV_BAR_ACTIVE, APP_PAGE_SIDE_SLOTS, ActionBtn, ActionBtnGroup, ActionConfirm, AppTheme, AutoRefresh, AutoRefreshGroup, BADGE_HOST_ATTR, BADGE_KEY_ATTR, BADGE_MASK_KINDS, BEHAVIOR_DEFAULT_EVENTS, BODY_CONTENT_VIEWPORT_INSET, BODY_CONTENT_VIEWPORT_RECT, BadgeMark, BooleanTag, BridgeEventName, CORE_BRIDGE_KEY, DC_SLOT_ATTR, DragFloat, EXPORT_MAX_LIMIT, FORM_CONFIG_SELECT_ALL_VALUE, FORM_NEST_REGISTRY_KEY, FORM_VALIDATE_ERROR_KEYS, GAP_SCALE_RUNG, GLOBAL_MODAL_REMOTE_KEY, HeightProvider, ImagePreviewTrigger, KNOWN_BRIDGE_EVENTS, MODAL_SHELF_INJECTION_KEYS, ModalConfirm, ModalImagePreview, ModalVideoPreview, NEST_LAYOUT_SCALE_KEY, OPERATE_COLUMN_PROP, ROUTE_MODULE_LEVEL, SCOPE_VIEWPORT_MAX_HEIGHT, ShadowClone, SlotLayoutFlowAside, SlotLayoutTemplate, SlotRegion, TABS_MAIN_VISUAL_LEVEL, TabsMainReplaceQueryKey, VideoPreviewTrigger, WatchSize, buildRhythmCss, checkLogin, checkPermission, checkPermissionRule, countAll, createAppStore, createBehaviorPort, createCoreBridge, createGenerateRouteMetaRawTree, createGuard, createListApi, createListOnceApi, createRoutePermissionStore, createStorageWithNamespace, createUseState, createUserStore, createViewportChannel, definePageModal, domClosestScrollableAncestor, domClosestStickyScrollport, domScrollIntoViewport, exportCSV, fetchListAll, flatRouteMetaResolveRaw, gapScaleBase, gapScaleValue, getConfirmPasswordRule, getId, getRoutePermissionKey, getRoutePermissionRequirement, parseSlotRegion, passwordRule, permissionCheckAll, permissionCheckAny, pickExportColumns, resolveAppPageSlotName, resolveBreakpointByWidth, resolvePermissionRule, resolveRootEl, routerOpenInNewTab, themeScaleDerive, themeScaleIsNearBlack, themeScaleMix, themeScalePageColor, themeScaleParseHex, themeScaleSurfaceColor, themeScaleToRgba, timeCountDown, useActivated, useBehaviorPort, useBreakpoint, useBridgeReport, useChannelViewportHeight, useCoreThemeApply, useCoreViewportApply, useCustomBreakpoint, useFeelSize, useGlobalModalOpen, useGlobalModalRemote, useMenusDataDispatch, useObserveSize, usePageModalRemote, usePermission, useTimeout, withGroupRedirect } from "@done-coding/forge-core";
|
|
3
3
|
export * from "@done-coding/forge-form";
|
|
4
4
|
import { DataGridView, InfiniteListView, TABLE_COLUMN_KEY_OPERATE, TABLE_COLUMN_KEY_SELECTION, TableEmpty, TableMain, TableSkeleton, TableToolbar } from "@done-coding/forge-data";
|
|
5
5
|
export * from "@done-coding/forge-nav";
|
|
@@ -26,14 +26,12 @@ export {
|
|
|
26
26
|
BADGE_KEY_ATTR,
|
|
27
27
|
BADGE_MASK_KINDS,
|
|
28
28
|
BEHAVIOR_DEFAULT_EVENTS,
|
|
29
|
-
BODY_CONTENT_VIEWPORT_HEIGHT,
|
|
30
29
|
BODY_CONTENT_VIEWPORT_INSET,
|
|
31
30
|
BODY_CONTENT_VIEWPORT_RECT,
|
|
32
31
|
BadgeMark,
|
|
33
32
|
BooleanTag,
|
|
34
33
|
BridgeEventName,
|
|
35
34
|
CORE_BRIDGE_KEY,
|
|
36
|
-
ModalConfirm as ConfirmModal,
|
|
37
35
|
DC_SLOT_ATTR,
|
|
38
36
|
DataGridView,
|
|
39
37
|
DragFloat,
|
|
@@ -47,7 +45,8 @@ export {
|
|
|
47
45
|
ImagePreviewTrigger,
|
|
48
46
|
InfiniteListView,
|
|
49
47
|
KNOWN_BRIDGE_EVENTS,
|
|
50
|
-
|
|
48
|
+
MODAL_SHELF_INJECTION_KEYS,
|
|
49
|
+
ModalConfirm,
|
|
51
50
|
ModalImagePreview,
|
|
52
51
|
ModalVideoPreview,
|
|
53
52
|
NEST_LAYOUT_SCALE_KEY,
|
|
@@ -66,7 +65,6 @@ export {
|
|
|
66
65
|
TableSkeleton,
|
|
67
66
|
TableToolbar,
|
|
68
67
|
TabsMainReplaceQueryKey,
|
|
69
|
-
TriggerAutoImport,
|
|
70
68
|
VideoPreviewTrigger,
|
|
71
69
|
WatchSize,
|
|
72
70
|
buildRhythmCss,
|
|
@@ -85,6 +83,8 @@ export {
|
|
|
85
83
|
createStorageWithNamespace,
|
|
86
84
|
createUseState,
|
|
87
85
|
createUserStore,
|
|
86
|
+
createViewportChannel,
|
|
87
|
+
definePageModal,
|
|
88
88
|
domClosestScrollableAncestor,
|
|
89
89
|
domClosestStickyScrollport,
|
|
90
90
|
domScrollIntoViewport,
|
|
@@ -95,7 +95,6 @@ export {
|
|
|
95
95
|
gapScaleValue,
|
|
96
96
|
getConfirmPasswordRule,
|
|
97
97
|
getId,
|
|
98
|
-
getModalShelfInjectionKey,
|
|
99
98
|
getRoutePermissionKey,
|
|
100
99
|
getRoutePermissionRequirement,
|
|
101
100
|
parseSlotRegion,
|
|
@@ -117,8 +116,6 @@ export {
|
|
|
117
116
|
themeScaleToRgba,
|
|
118
117
|
timeCountDown,
|
|
119
118
|
useActivated,
|
|
120
|
-
useActivatedEvent,
|
|
121
|
-
useActivatedExec,
|
|
122
119
|
useBehaviorPort,
|
|
123
120
|
useBreakpoint,
|
|
124
121
|
useBridgeReport,
|
|
@@ -127,8 +124,11 @@ export {
|
|
|
127
124
|
useCoreViewportApply,
|
|
128
125
|
useCustomBreakpoint,
|
|
129
126
|
useFeelSize,
|
|
127
|
+
useGlobalModalOpen,
|
|
128
|
+
useGlobalModalRemote,
|
|
130
129
|
useMenusDataDispatch,
|
|
131
130
|
useObserveSize,
|
|
131
|
+
usePageModalRemote,
|
|
132
132
|
usePermission,
|
|
133
133
|
useTimeout,
|
|
134
134
|
withGroupRedirect
|
package/es/style.css
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.confirm-modal__title[data-v-
|
|
1
|
+
.confirm-modal__title[data-v-2c2e31dd] {
|
|
2
2
|
font-size: 16px;
|
|
3
3
|
font-weight: 600;
|
|
4
4
|
line-height: 24px;
|
|
5
5
|
color: var(--el-text-color-primary);
|
|
6
6
|
text-align: left;
|
|
7
7
|
}
|
|
8
|
-
.confirm-modal__content[data-v-
|
|
8
|
+
.confirm-modal__content[data-v-2c2e31dd] {
|
|
9
9
|
overflow-x: hidden;
|
|
10
10
|
overflow-y: auto;
|
|
11
11
|
max-height: calc(100vh - 200px);
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
text-align: left;
|
|
16
16
|
word-break: break-word;
|
|
17
17
|
}
|
|
18
|
-
.confirm-modal__content_drawer[data-v-
|
|
18
|
+
.confirm-modal__content_drawer[data-v-2c2e31dd] {
|
|
19
19
|
max-height: none;
|
|
20
20
|
height: 100%;
|
|
21
21
|
}
|
|
22
|
-
.confirm-modal__footer[data-v-
|
|
22
|
+
.confirm-modal__footer[data-v-2c2e31dd] {
|
|
23
23
|
display: flex;
|
|
24
24
|
justify-content: flex-end;
|
|
25
25
|
align-items: center;
|
|
26
26
|
gap: 8px;
|
|
27
27
|
}
|
|
28
|
-
.confirm-modal__footer[data-v-
|
|
28
|
+
.confirm-modal__footer[data-v-2c2e31dd] .el-button {
|
|
29
29
|
min-width: 72px;
|
|
30
30
|
}
|
|
31
|
-
.confirm-modal__footer[reverse="true"][data-v-
|
|
31
|
+
.confirm-modal__footer[reverse="true"][data-v-2c2e31dd] {
|
|
32
32
|
flex-direction: row-reverse;
|
|
33
33
|
}
|
|
34
34
|
.dc-confirm-modal.el-drawer .el-drawer__header {
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
.dc-modal-video-preview__overlay {
|
|
255
255
|
background: var(--el-overlay-color-dark, rgba(0, 0, 0, 0.7));
|
|
256
256
|
}
|
|
257
|
-
.video-preview-trigger_placeholder[data-v-
|
|
257
|
+
.video-preview-trigger_placeholder[data-v-d4215094] {
|
|
258
258
|
display: flex;
|
|
259
259
|
align-items: center;
|
|
260
260
|
justify-content: center;
|
|
@@ -266,11 +266,11 @@
|
|
|
266
266
|
cursor: pointer;
|
|
267
267
|
transition: background-color 0.2s;
|
|
268
268
|
}
|
|
269
|
-
.video-preview-trigger_placeholder[data-v-
|
|
269
|
+
.video-preview-trigger_placeholder[data-v-d4215094]:hover {
|
|
270
270
|
background: var(--el-fill-color-darker);
|
|
271
271
|
}
|
|
272
|
-
.video-preview-trigger_cover[data-v-
|
|
273
|
-
.video-preview-trigger_frame[data-v-
|
|
272
|
+
.video-preview-trigger_cover[data-v-d4215094],
|
|
273
|
+
.video-preview-trigger_frame[data-v-d4215094] {
|
|
274
274
|
position: relative;
|
|
275
275
|
display: inline-block;
|
|
276
276
|
line-height: 0;
|
|
@@ -278,23 +278,23 @@
|
|
|
278
278
|
overflow: hidden;
|
|
279
279
|
cursor: pointer;
|
|
280
280
|
}
|
|
281
|
-
.video-preview-trigger_cover .video-preview-trigger__cover[data-v-
|
|
282
|
-
.video-preview-trigger_frame .video-preview-trigger__cover[data-v-
|
|
281
|
+
.video-preview-trigger_cover .video-preview-trigger__cover[data-v-d4215094],
|
|
282
|
+
.video-preview-trigger_frame .video-preview-trigger__cover[data-v-d4215094] {
|
|
283
283
|
display: block;
|
|
284
284
|
}
|
|
285
|
-
.video-preview-trigger_frame[data-v-
|
|
285
|
+
.video-preview-trigger_frame[data-v-d4215094] {
|
|
286
286
|
width: 100%;
|
|
287
287
|
max-width: 360px;
|
|
288
288
|
aspect-ratio: 16 / 9;
|
|
289
289
|
background: var(--el-fill-color-dark);
|
|
290
290
|
}
|
|
291
|
-
.video-preview-trigger_frame .video-preview-trigger__frame[data-v-
|
|
291
|
+
.video-preview-trigger_frame .video-preview-trigger__frame[data-v-d4215094] {
|
|
292
292
|
display: block;
|
|
293
293
|
width: 100%;
|
|
294
294
|
height: 100%;
|
|
295
295
|
object-fit: cover;
|
|
296
296
|
}
|
|
297
|
-
.video-preview-trigger__play-badge[data-v-
|
|
297
|
+
.video-preview-trigger__play-badge[data-v-d4215094] {
|
|
298
298
|
position: absolute;
|
|
299
299
|
top: 50%;
|
|
300
300
|
left: 50%;
|
|
@@ -310,11 +310,11 @@
|
|
|
310
310
|
pointer-events: none;
|
|
311
311
|
transition: transform 0.2s;
|
|
312
312
|
}
|
|
313
|
-
.video-preview-trigger_cover:hover .video-preview-trigger__play-badge[data-v-
|
|
314
|
-
.video-preview-trigger_frame:hover .video-preview-trigger__play-badge[data-v-
|
|
313
|
+
.video-preview-trigger_cover:hover .video-preview-trigger__play-badge[data-v-d4215094],
|
|
314
|
+
.video-preview-trigger_frame:hover .video-preview-trigger__play-badge[data-v-d4215094] {
|
|
315
315
|
transform: translate(-50%, -50%) scale(1.08);
|
|
316
316
|
}
|
|
317
|
-
.video-preview-trigger__play-icon[data-v-
|
|
317
|
+
.video-preview-trigger__play-icon[data-v-d4215094] {
|
|
318
318
|
color: var(--dc-core-primary-color, var(--el-color-primary));
|
|
319
319
|
}
|
|
320
320
|
[data-v-64294ae8] .auto-refresh-label {
|
|
@@ -340,26 +340,6 @@ to {
|
|
|
340
340
|
transform: rotate(360deg);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
.form-active-filter[data-v-e738e150] {
|
|
344
|
-
display: flex;
|
|
345
|
-
flex-wrap: wrap;
|
|
346
|
-
align-items: center;
|
|
347
|
-
gap: 8px;
|
|
348
|
-
padding-bottom: 4px;
|
|
349
|
-
}
|
|
350
|
-
.form-active-filter__label[data-v-e738e150] {
|
|
351
|
-
font-weight: 600;
|
|
352
|
-
}
|
|
353
|
-
.form-active-filter__clear[data-v-e738e150] {
|
|
354
|
-
margin-left: 4px;
|
|
355
|
-
}
|
|
356
|
-
.form-active-filter__empty[data-v-e738e150] {
|
|
357
|
-
display: inline-flex;
|
|
358
|
-
align-items: center;
|
|
359
|
-
height: 24px;
|
|
360
|
-
font-size: 13px;
|
|
361
|
-
color: var(--el-text-color-placeholder);
|
|
362
|
-
}
|
|
363
343
|
.dc-form-shadow-clone-dispatch[data-v-19a89997] {
|
|
364
344
|
display: inline-flex;
|
|
365
345
|
align-items: center;
|
|
@@ -492,6 +472,26 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
492
472
|
.form-search .btn-box-expand-icon[data-v-4a9be8e6] {
|
|
493
473
|
margin-right: 2px;
|
|
494
474
|
}
|
|
475
|
+
.form-active-filter[data-v-e738e150] {
|
|
476
|
+
display: flex;
|
|
477
|
+
flex-wrap: wrap;
|
|
478
|
+
align-items: center;
|
|
479
|
+
gap: 8px;
|
|
480
|
+
padding-bottom: 4px;
|
|
481
|
+
}
|
|
482
|
+
.form-active-filter__label[data-v-e738e150] {
|
|
483
|
+
font-weight: 600;
|
|
484
|
+
}
|
|
485
|
+
.form-active-filter__clear[data-v-e738e150] {
|
|
486
|
+
margin-left: 4px;
|
|
487
|
+
}
|
|
488
|
+
.form-active-filter__empty[data-v-e738e150] {
|
|
489
|
+
display: inline-flex;
|
|
490
|
+
align-items: center;
|
|
491
|
+
height: 24px;
|
|
492
|
+
font-size: 13px;
|
|
493
|
+
color: var(--el-text-color-placeholder);
|
|
494
|
+
}
|
|
495
495
|
.form-sort__chip[data-v-187b8602] {
|
|
496
496
|
position: relative;
|
|
497
497
|
align-self: flex-start;
|
|
@@ -923,6 +923,56 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
923
923
|
animation: none;
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
+
.data-list-view-item.is-selected[data-v-3f1a293f] {
|
|
927
|
+
/* 选中(勾选)态钩子,具体视觉由消费方覆写 */
|
|
928
|
+
}
|
|
929
|
+
.data-list-view-item.is-active[data-v-3f1a293f] {
|
|
930
|
+
/* 当前项(active)态钩子,具体视觉由消费方覆写 */
|
|
931
|
+
}
|
|
932
|
+
.data-list-view-item.is-card[data-v-3f1a293f] {
|
|
933
|
+
box-sizing: border-box;
|
|
934
|
+
background: var(--el-bg-color);
|
|
935
|
+
border: 1px solid var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
936
|
+
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
937
|
+
padding: 12px;
|
|
938
|
+
}
|
|
939
|
+
.data-list-view-item.is-masonry[data-v-3f1a293f] {
|
|
940
|
+
align-self: start;
|
|
941
|
+
grid-row-end: span 125;
|
|
942
|
+
}
|
|
943
|
+
.data-list-view[data-v-ecfbef9e] {
|
|
944
|
+
width: 100%;
|
|
945
|
+
}
|
|
946
|
+
.data-list-view-empty[data-v-ecfbef9e] {
|
|
947
|
+
display: flex;
|
|
948
|
+
justify-content: center;
|
|
949
|
+
align-items: center;
|
|
950
|
+
width: 100%;
|
|
951
|
+
min-height: 60px;
|
|
952
|
+
grid-column: 1 / -1;
|
|
953
|
+
}
|
|
954
|
+
.data-list-view-empty.is-card[data-v-ecfbef9e] {
|
|
955
|
+
box-sizing: border-box;
|
|
956
|
+
background: var(--el-bg-color);
|
|
957
|
+
border: 1px solid var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
958
|
+
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
959
|
+
padding: var(--v426061dd);
|
|
960
|
+
}
|
|
961
|
+
.table-main_surface[data-v-595a39e6] {
|
|
962
|
+
padding: var(--v84397240);
|
|
963
|
+
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
964
|
+
}
|
|
965
|
+
.table-main_surface-bg[data-v-595a39e6] {
|
|
966
|
+
background: var(--el-bg-color);
|
|
967
|
+
}
|
|
968
|
+
.table-main-pagination[data-v-595a39e6] {
|
|
969
|
+
margin-top: 10px;
|
|
970
|
+
display: flex;
|
|
971
|
+
justify-content: flex-end;
|
|
972
|
+
}
|
|
973
|
+
.table-main_fill[data-v-595a39e6] .el-table__body-wrapper {
|
|
974
|
+
min-height: var(--v5d2edfec);
|
|
975
|
+
}
|
|
926
976
|
.infinite-list-view_surface[data-v-64e913d8] {
|
|
927
977
|
box-sizing: border-box;
|
|
928
978
|
padding: var(--c6c974c2);
|
|
@@ -1017,53 +1067,53 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1017
1067
|
.infinite-list-view__pull-indicator > span[data-v-64e913d8] {
|
|
1018
1068
|
padding-bottom: 6px;
|
|
1019
1069
|
}
|
|
1020
|
-
.data-grid-view[data-v-
|
|
1070
|
+
.data-grid-view[data-v-f938354d] {
|
|
1021
1071
|
width: 100%;
|
|
1022
1072
|
}
|
|
1023
|
-
.data-grid-view_surface[data-v-
|
|
1024
|
-
padding: var(--
|
|
1073
|
+
.data-grid-view_surface[data-v-f938354d] {
|
|
1074
|
+
padding: var(--v25e89286);
|
|
1025
1075
|
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
1026
1076
|
}
|
|
1027
|
-
.data-grid-view_surface-bg[data-v-
|
|
1077
|
+
.data-grid-view_surface-bg[data-v-f938354d] {
|
|
1028
1078
|
background: var(--el-bg-color);
|
|
1029
1079
|
}
|
|
1030
|
-
.data-grid-view__grid[data-v-
|
|
1080
|
+
.data-grid-view__grid[data-v-f938354d] {
|
|
1031
1081
|
display: grid;
|
|
1032
1082
|
}
|
|
1033
|
-
.data-grid-view__cell.is-active[data-v-
|
|
1083
|
+
.data-grid-view__cell.is-active[data-v-f938354d] {
|
|
1034
1084
|
/* stylelint-disable-next-line block-no-empty */
|
|
1035
1085
|
}
|
|
1036
|
-
.data-grid-view__cell[data-v-
|
|
1086
|
+
.data-grid-view__cell[data-v-f938354d] {
|
|
1037
1087
|
min-width: 0;
|
|
1038
1088
|
}
|
|
1039
|
-
.data-grid-view__cell.is-card[data-v-
|
|
1089
|
+
.data-grid-view__cell.is-card[data-v-f938354d] {
|
|
1040
1090
|
box-sizing: border-box;
|
|
1041
1091
|
background: var(--el-bg-color);
|
|
1042
1092
|
border: 1px solid var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1043
1093
|
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
1044
1094
|
}
|
|
1045
|
-
.data-grid-view__card[data-v-
|
|
1095
|
+
.data-grid-view__card[data-v-f938354d] {
|
|
1046
1096
|
height: 100%;
|
|
1047
1097
|
box-sizing: border-box;
|
|
1048
1098
|
overflow: hidden;
|
|
1049
1099
|
}
|
|
1050
|
-
.data-grid-view__field[data-v-
|
|
1100
|
+
.data-grid-view__field[data-v-f938354d] {
|
|
1051
1101
|
display: flex;
|
|
1052
1102
|
gap: 6px;
|
|
1053
1103
|
align-items: baseline;
|
|
1054
1104
|
line-height: 1.6;
|
|
1055
1105
|
font-size: 13px;
|
|
1056
1106
|
}
|
|
1057
|
-
.data-grid-view__field-label[data-v-
|
|
1107
|
+
.data-grid-view__field-label[data-v-f938354d] {
|
|
1058
1108
|
flex-shrink: 0;
|
|
1059
1109
|
color: var(--dc-core-text-color-secondary, var(--el-text-color-secondary));
|
|
1060
1110
|
}
|
|
1061
|
-
.data-grid-view__field-value[data-v-
|
|
1111
|
+
.data-grid-view__field-value[data-v-f938354d] {
|
|
1062
1112
|
overflow: hidden;
|
|
1063
1113
|
text-overflow: ellipsis;
|
|
1064
1114
|
white-space: nowrap;
|
|
1065
1115
|
}
|
|
1066
|
-
.data-grid-view__empty-error[data-v-
|
|
1116
|
+
.data-grid-view__empty-error[data-v-f938354d] {
|
|
1067
1117
|
display: flex;
|
|
1068
1118
|
justify-content: center;
|
|
1069
1119
|
align-items: center;
|
|
@@ -1072,56 +1122,6 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1072
1122
|
color: var(--dc-core-text-color-secondary, var(--el-text-color-secondary));
|
|
1073
1123
|
font-size: 13px;
|
|
1074
1124
|
}
|
|
1075
|
-
.data-list-view-item.is-selected[data-v-3f1a293f] {
|
|
1076
|
-
/* 选中(勾选)态钩子,具体视觉由消费方覆写 */
|
|
1077
|
-
}
|
|
1078
|
-
.data-list-view-item.is-active[data-v-3f1a293f] {
|
|
1079
|
-
/* 当前项(active)态钩子,具体视觉由消费方覆写 */
|
|
1080
|
-
}
|
|
1081
|
-
.data-list-view-item.is-card[data-v-3f1a293f] {
|
|
1082
|
-
box-sizing: border-box;
|
|
1083
|
-
background: var(--el-bg-color);
|
|
1084
|
-
border: 1px solid var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1085
|
-
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
1086
|
-
padding: 12px;
|
|
1087
|
-
}
|
|
1088
|
-
.data-list-view-item.is-masonry[data-v-3f1a293f] {
|
|
1089
|
-
align-self: start;
|
|
1090
|
-
grid-row-end: span 125;
|
|
1091
|
-
}
|
|
1092
|
-
.data-list-view[data-v-ecfbef9e] {
|
|
1093
|
-
width: 100%;
|
|
1094
|
-
}
|
|
1095
|
-
.data-list-view-empty[data-v-ecfbef9e] {
|
|
1096
|
-
display: flex;
|
|
1097
|
-
justify-content: center;
|
|
1098
|
-
align-items: center;
|
|
1099
|
-
width: 100%;
|
|
1100
|
-
min-height: 60px;
|
|
1101
|
-
grid-column: 1 / -1;
|
|
1102
|
-
}
|
|
1103
|
-
.data-list-view-empty.is-card[data-v-ecfbef9e] {
|
|
1104
|
-
box-sizing: border-box;
|
|
1105
|
-
background: var(--el-bg-color);
|
|
1106
|
-
border: 1px solid var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1107
|
-
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
1108
|
-
padding: var(--v426061dd);
|
|
1109
|
-
}
|
|
1110
|
-
.table-main_surface[data-v-594f71c8] {
|
|
1111
|
-
padding: var(--v0d2f9782);
|
|
1112
|
-
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
1113
|
-
}
|
|
1114
|
-
.table-main_surface-bg[data-v-594f71c8] {
|
|
1115
|
-
background: var(--el-bg-color);
|
|
1116
|
-
}
|
|
1117
|
-
.table-main-pagination[data-v-594f71c8] {
|
|
1118
|
-
margin-top: 10px;
|
|
1119
|
-
display: flex;
|
|
1120
|
-
justify-content: flex-end;
|
|
1121
|
-
}
|
|
1122
|
-
.table-main_fill[data-v-594f71c8] .el-table__body-wrapper {
|
|
1123
|
-
min-height: var(--v597837b0);
|
|
1124
|
-
}
|
|
1125
1125
|
.tabs-main-bar[data-v-656d6c3f] {
|
|
1126
1126
|
position: relative;
|
|
1127
1127
|
display: flex;
|
|
@@ -1216,23 +1216,23 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1216
1216
|
color: var(--dc-core-primary-color);
|
|
1217
1217
|
font-weight: 600;
|
|
1218
1218
|
}
|
|
1219
|
-
.dc-tabs-tile--nav-absolute[data-v-
|
|
1220
|
-
.dc-tabs-tile--nav-fixed[data-v-
|
|
1219
|
+
.dc-tabs-tile--nav-absolute[data-v-df61f929],
|
|
1220
|
+
.dc-tabs-tile--nav-fixed[data-v-df61f929] {
|
|
1221
1221
|
position: relative;
|
|
1222
1222
|
}
|
|
1223
|
-
.dc-tabs-tile--nav-sticky[data-v-
|
|
1223
|
+
.dc-tabs-tile--nav-sticky[data-v-df61f929] {
|
|
1224
1224
|
display: flex;
|
|
1225
1225
|
flex-direction: column;
|
|
1226
1226
|
}
|
|
1227
|
-
.dc-tabs-tile__scroll[data-v-
|
|
1227
|
+
.dc-tabs-tile__scroll[data-v-df61f929] {
|
|
1228
1228
|
display: flex;
|
|
1229
1229
|
flex-direction: column;
|
|
1230
1230
|
gap: 12px;
|
|
1231
1231
|
}
|
|
1232
|
-
.dc-tabs-tile__card[data-v-
|
|
1232
|
+
.dc-tabs-tile__card[data-v-df61f929] {
|
|
1233
1233
|
width: 100%;
|
|
1234
1234
|
}
|
|
1235
|
-
.dc-tabs-tile__nav[data-v-
|
|
1235
|
+
.dc-tabs-tile__nav[data-v-df61f929] {
|
|
1236
1236
|
z-index: 2;
|
|
1237
1237
|
max-height: 60%;
|
|
1238
1238
|
overflow: auto;
|
|
@@ -1313,57 +1313,65 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1313
1313
|
min-width: 0;
|
|
1314
1314
|
}
|
|
1315
1315
|
/*! forge-feedback 无组件自有样式;显式保留 CSS 入口供宿主汇总。 */
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
box-sizing: border-box;
|
|
1319
|
-
transition-duration: 0.3s;
|
|
1320
|
-
transition-property: padding;
|
|
1321
|
-
transition-timing-function: linear;
|
|
1322
|
-
min-height: 100vh;
|
|
1316
|
+
.list-layout[data-v-8c96b657] {
|
|
1317
|
+
min-height: var(--v1b0ff965);
|
|
1323
1318
|
}
|
|
1324
|
-
.
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1319
|
+
.list-layout-header[data-v-8c96b657] {
|
|
1320
|
+
margin-bottom: var(--v72f9b7d4);
|
|
1321
|
+
color: var(--el-text-color-primary);
|
|
1322
|
+
font-size: 16px;
|
|
1323
|
+
font-weight: 600;
|
|
1324
|
+
line-height: 1.4;
|
|
1328
1325
|
}
|
|
1329
|
-
.
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
overflow: visible;
|
|
1335
|
-
z-index: var(--v7eb852cc);
|
|
1326
|
+
.list-layout-chrome[data-v-8c96b657] {
|
|
1327
|
+
margin-bottom: var(--v72f9b7d4);
|
|
1328
|
+
padding: var(--v9b2564bc);
|
|
1329
|
+
border-radius: var(--dc-core-radius, 4px);
|
|
1330
|
+
background: var(--el-bg-color);
|
|
1336
1331
|
}
|
|
1337
|
-
.
|
|
1338
|
-
|
|
1339
|
-
inset: 0;
|
|
1340
|
-
overflow: hidden;
|
|
1341
|
-
border-radius: inherit;
|
|
1332
|
+
.list-layout-chrome[data-v-8c96b657] > * {
|
|
1333
|
+
margin-bottom: var(--v57a5ffe5);
|
|
1342
1334
|
}
|
|
1343
|
-
.
|
|
1344
|
-
|
|
1345
|
-
left: 0;
|
|
1346
|
-
right: 0;
|
|
1347
|
-
top: 0;
|
|
1348
|
-
overflow: hidden;
|
|
1335
|
+
.list-layout-chrome[data-v-8c96b657] > *:last-child {
|
|
1336
|
+
margin-bottom: 0;
|
|
1349
1337
|
}
|
|
1350
|
-
.
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
bottom: 0;
|
|
1355
|
-
overflow: hidden;
|
|
1338
|
+
.list-layout-chrome[data-v-8c96b657] .form-search {
|
|
1339
|
+
background: none;
|
|
1340
|
+
border-radius: 0;
|
|
1341
|
+
padding: 0;
|
|
1356
1342
|
}
|
|
1357
|
-
.
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
--
|
|
1366
|
-
|
|
1343
|
+
.list-layout-chrome[data-v-8c96b657] .form-search:not(.form-search_show) {
|
|
1344
|
+
margin-bottom: 0;
|
|
1345
|
+
}
|
|
1346
|
+
.list-layout_search-sticky[data-v-8c96b657] .form-search {
|
|
1347
|
+
position: sticky;
|
|
1348
|
+
top: var(--v70bbac30);
|
|
1349
|
+
z-index: 10;
|
|
1350
|
+
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1351
|
+
box-shadow: 0 1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1352
|
+
}
|
|
1353
|
+
.list-layout_toolbar-sticky[data-v-8c96b657] .dc-table-main__toolbar {
|
|
1354
|
+
position: sticky;
|
|
1355
|
+
top: var(--v5c796eb6);
|
|
1356
|
+
z-index: 9;
|
|
1357
|
+
padding-top: 10px;
|
|
1358
|
+
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1359
|
+
box-shadow: 0 1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1360
|
+
}
|
|
1361
|
+
.list-layout_pager-sticky[data-v-8c96b657] .dc-table-main__pagination {
|
|
1362
|
+
position: sticky;
|
|
1363
|
+
bottom: var(--v999427ba);
|
|
1364
|
+
z-index: 9;
|
|
1365
|
+
margin-top: 0;
|
|
1366
|
+
padding-top: 10px;
|
|
1367
|
+
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1368
|
+
box-shadow: 0 -1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1369
|
+
}
|
|
1370
|
+
.list-layout[data-v-8c96b657] .el-loading-mask {
|
|
1371
|
+
left: -10px;
|
|
1372
|
+
top: -10px;
|
|
1373
|
+
right: -10px;
|
|
1374
|
+
bottom: -10px;
|
|
1367
1375
|
}
|
|
1368
1376
|
.app-aside[data-v-37f6e057] {
|
|
1369
1377
|
transition: width var(--dc-core-motion-duration-slow, 300ms) var(--dc-core-motion-easing, ease);
|
|
@@ -1392,7 +1400,31 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1392
1400
|
transition: none;
|
|
1393
1401
|
}
|
|
1394
1402
|
}
|
|
1395
|
-
.app-
|
|
1403
|
+
.app-body[data-v-8bc98e5c] {
|
|
1404
|
+
box-sizing: border-box;
|
|
1405
|
+
transition-duration: 0.3s;
|
|
1406
|
+
transition-property: padding;
|
|
1407
|
+
transition-timing-function: linear;
|
|
1408
|
+
min-height: 100vh;
|
|
1409
|
+
}
|
|
1410
|
+
.app-body-shim[data-v-8bc98e5c] {
|
|
1411
|
+
width: 100%;
|
|
1412
|
+
display: flow-root;
|
|
1413
|
+
--app-viewport-max-height: var(--v407407d8);
|
|
1414
|
+
}
|
|
1415
|
+
.app-footer[data-v-434ae05c] {
|
|
1416
|
+
transition-duration: 0.3s;
|
|
1417
|
+
transition-property: height;
|
|
1418
|
+
transition-timing-function: linear;
|
|
1419
|
+
overflow: hidden;
|
|
1420
|
+
width: 100%;
|
|
1421
|
+
box-shadow: var(--dc-core-shadow, var(--el-box-shadow));
|
|
1422
|
+
}
|
|
1423
|
+
.app-footer-shim[data-v-434ae05c] {
|
|
1424
|
+
width: 100%;
|
|
1425
|
+
height: 100%;
|
|
1426
|
+
}
|
|
1427
|
+
.app-header[data-v-ed761d67] {
|
|
1396
1428
|
transition-duration: 0.3s;
|
|
1397
1429
|
transition-property: height;
|
|
1398
1430
|
transition-timing-function: linear;
|
|
@@ -1400,38 +1432,89 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1400
1432
|
box-shadow: var(--dc-core-shadow, var(--el-box-shadow));
|
|
1401
1433
|
z-index: 1;
|
|
1402
1434
|
}
|
|
1403
|
-
.app-header-
|
|
1435
|
+
.app-header-left[data-v-ed761d67] {
|
|
1404
1436
|
display: flex;
|
|
1405
|
-
|
|
1437
|
+
align-items: center;
|
|
1438
|
+
flex: none;
|
|
1439
|
+
white-space: nowrap;
|
|
1440
|
+
}
|
|
1441
|
+
.app-header-nav[data-v-ed761d67] {
|
|
1442
|
+
display: flex;
|
|
1443
|
+
align-items: center;
|
|
1444
|
+
flex: 1 1 0;
|
|
1445
|
+
min-width: 0;
|
|
1446
|
+
height: 100%;
|
|
1447
|
+
}
|
|
1448
|
+
.app-header-module[data-v-ed761d67] {
|
|
1449
|
+
position: relative;
|
|
1450
|
+
display: flex;
|
|
1451
|
+
flex: 1 1 0;
|
|
1452
|
+
min-width: 0;
|
|
1453
|
+
height: 100%;
|
|
1454
|
+
overflow: hidden;
|
|
1455
|
+
}
|
|
1456
|
+
.app-header-module-more[data-v-ed761d67] {
|
|
1457
|
+
flex: none;
|
|
1406
1458
|
height: 100%;
|
|
1407
|
-
|
|
1459
|
+
font: inherit;
|
|
1460
|
+
color: inherit;
|
|
1408
1461
|
}
|
|
1409
|
-
.app-header-module-
|
|
1462
|
+
.app-header-module-more__trigger[data-v-ed761d67] {
|
|
1463
|
+
display: flex;
|
|
1464
|
+
align-items: center;
|
|
1465
|
+
gap: 4px;
|
|
1466
|
+
height: 100%;
|
|
1467
|
+
padding: 0 var(--v8acc5928);
|
|
1468
|
+
white-space: nowrap;
|
|
1469
|
+
cursor: pointer;
|
|
1470
|
+
}
|
|
1471
|
+
.app-header-module-more__trigger[data-v-ed761d67]:hover {
|
|
1472
|
+
color: var(--v4bc4b684);
|
|
1473
|
+
}
|
|
1474
|
+
.app-header-module-more__arrow[data-v-ed761d67] {
|
|
1475
|
+
font-size: 12px;
|
|
1476
|
+
}
|
|
1477
|
+
.app-header-module-more_active .app-header-module-more__trigger[data-v-ed761d67] {
|
|
1478
|
+
color: var(--v4bc4b684);
|
|
1479
|
+
}
|
|
1480
|
+
.app-header-module-more_idle[data-v-ed761d67] {
|
|
1481
|
+
position: absolute;
|
|
1482
|
+
visibility: hidden;
|
|
1483
|
+
pointer-events: none;
|
|
1484
|
+
}
|
|
1485
|
+
.app-header-module-item[data-v-ed761d67] {
|
|
1410
1486
|
display: flex;
|
|
1411
1487
|
justify-content: center;
|
|
1412
1488
|
align-items: center;
|
|
1413
|
-
padding: 0 var(--
|
|
1489
|
+
padding: 0 var(--v8acc5928);
|
|
1414
1490
|
white-space: nowrap;
|
|
1415
1491
|
height: 100%;
|
|
1416
1492
|
}
|
|
1417
|
-
.app-header-module-item[data-v-
|
|
1418
|
-
.app-header-module-item_active[data-v-
|
|
1419
|
-
color: var(--
|
|
1493
|
+
.app-header-module-item[data-v-ed761d67]:hover,
|
|
1494
|
+
.app-header-module-item_active[data-v-ed761d67] {
|
|
1495
|
+
color: var(--v4bc4b684);
|
|
1496
|
+
}
|
|
1497
|
+
.app-header-module-item.app-header-module-item_overflow[data-v-ed761d67] {
|
|
1498
|
+
position: absolute;
|
|
1499
|
+
top: 0;
|
|
1500
|
+
left: 0;
|
|
1501
|
+
visibility: hidden;
|
|
1502
|
+
pointer-events: none;
|
|
1420
1503
|
}
|
|
1421
|
-
.app-header-module-item_active[data-v-
|
|
1504
|
+
.app-header-module-item_active[data-v-ed761d67] {
|
|
1422
1505
|
position: relative;
|
|
1423
1506
|
}
|
|
1424
|
-
.app-header-module-item_active[data-v-
|
|
1507
|
+
.app-header-module-item_active[data-v-ed761d67]::before {
|
|
1425
1508
|
content: "";
|
|
1426
1509
|
position: absolute;
|
|
1427
1510
|
left: 50%;
|
|
1428
1511
|
top: 0;
|
|
1429
1512
|
width: 100%;
|
|
1430
1513
|
height: 3px;
|
|
1431
|
-
background-color: var(--
|
|
1514
|
+
background-color: var(--v4bc4b684);
|
|
1432
1515
|
transform: translateX(-50%);
|
|
1433
1516
|
}
|
|
1434
|
-
.app-header-shim[data-v-
|
|
1517
|
+
.app-header-shim[data-v-ed761d67] {
|
|
1435
1518
|
width: 100%;
|
|
1436
1519
|
height: 100%;
|
|
1437
1520
|
display: flex;
|
|
@@ -1440,56 +1523,85 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1440
1523
|
font-size: 18px;
|
|
1441
1524
|
font-weight: bold;
|
|
1442
1525
|
}
|
|
1443
|
-
.app-header-module-item__icon[data-v-
|
|
1526
|
+
.app-header-module-item__icon[data-v-ed761d67] {
|
|
1444
1527
|
margin-right: 8px;
|
|
1445
1528
|
}
|
|
1446
|
-
.app-header-right[data-v-
|
|
1447
|
-
padding-left:
|
|
1529
|
+
.app-header-right[data-v-ed761d67] {
|
|
1530
|
+
padding-left: 32px;
|
|
1448
1531
|
display: flex;
|
|
1449
1532
|
align-items: center;
|
|
1533
|
+
flex: none;
|
|
1534
|
+
white-space: nowrap;
|
|
1450
1535
|
}
|
|
1451
|
-
.app-
|
|
1536
|
+
.app-sidebar[data-v-4e1505f7] {
|
|
1452
1537
|
transition-duration: 0.3s;
|
|
1453
|
-
transition-property:
|
|
1538
|
+
transition-property: width;
|
|
1454
1539
|
transition-timing-function: linear;
|
|
1455
|
-
overflow: hidden;
|
|
1456
|
-
width: 100%;
|
|
1457
1540
|
box-shadow: var(--dc-core-shadow, var(--el-box-shadow));
|
|
1541
|
+
overflow: visible;
|
|
1542
|
+
z-index: var(--v53aa4f33);
|
|
1458
1543
|
}
|
|
1459
|
-
.app-
|
|
1460
|
-
|
|
1461
|
-
|
|
1544
|
+
.app-sidebar-clip[data-v-4e1505f7] {
|
|
1545
|
+
position: absolute;
|
|
1546
|
+
inset: 0;
|
|
1547
|
+
overflow: hidden;
|
|
1548
|
+
border-radius: inherit;
|
|
1549
|
+
}
|
|
1550
|
+
.app-sidebar-top[data-v-4e1505f7] {
|
|
1551
|
+
position: absolute;
|
|
1552
|
+
left: 0;
|
|
1553
|
+
right: 0;
|
|
1554
|
+
top: 0;
|
|
1555
|
+
overflow: hidden;
|
|
1462
1556
|
}
|
|
1463
|
-
.app-
|
|
1557
|
+
.app-sidebar-bottom[data-v-4e1505f7] {
|
|
1558
|
+
position: absolute;
|
|
1559
|
+
left: 0;
|
|
1560
|
+
right: 0;
|
|
1561
|
+
bottom: 0;
|
|
1562
|
+
overflow: hidden;
|
|
1563
|
+
}
|
|
1564
|
+
.app-sidebar-shim[data-v-4e1505f7] {
|
|
1565
|
+
position: absolute;
|
|
1566
|
+
left: 0;
|
|
1567
|
+
right: 0;
|
|
1568
|
+
top: var(--v9a76684a);
|
|
1569
|
+
bottom: var(--v64b339e5);
|
|
1570
|
+
overflow-x: hidden;
|
|
1571
|
+
overflow-y: auto;
|
|
1572
|
+
--el-menu-border-color: transparent;
|
|
1573
|
+
user-select: none;
|
|
1574
|
+
}
|
|
1575
|
+
.app-layout[data-v-d0080c95] {
|
|
1464
1576
|
position: relative;
|
|
1465
1577
|
}
|
|
1466
|
-
.app-layout_noLogin[data-v-
|
|
1467
|
-
.app-layout_noAnimation[data-v-
|
|
1468
|
-
.app-layout_noLogin[data-v-
|
|
1469
|
-
.app-layout_noAnimation[data-v-
|
|
1470
|
-
.app-layout_noLogin[data-v-
|
|
1471
|
-
.app-layout_noAnimation[data-v-
|
|
1472
|
-
.app-layout_noLogin[data-v-
|
|
1473
|
-
.app-layout_noAnimation[data-v-
|
|
1474
|
-
.app-layout_noLogin[data-v-
|
|
1475
|
-
.app-layout_noAnimation[data-v-
|
|
1476
|
-
.app-layout_noLogin[data-v-
|
|
1477
|
-
.app-layout_noAnimation[data-v-
|
|
1578
|
+
.app-layout_noLogin[data-v-d0080c95] .app-body,
|
|
1579
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-body,
|
|
1580
|
+
.app-layout_noLogin[data-v-d0080c95] .app-sidebar,
|
|
1581
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-sidebar,
|
|
1582
|
+
.app-layout_noLogin[data-v-d0080c95] .app-aside,
|
|
1583
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-aside,
|
|
1584
|
+
.app-layout_noLogin[data-v-d0080c95] .app-header,
|
|
1585
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-header,
|
|
1586
|
+
.app-layout_noLogin[data-v-d0080c95] .app-footer,
|
|
1587
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-footer,
|
|
1588
|
+
.app-layout_noLogin[data-v-d0080c95] .app-collapse-toggle,
|
|
1589
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-collapse-toggle {
|
|
1478
1590
|
transition: none !important;
|
|
1479
1591
|
}
|
|
1480
|
-
.app-page[data-v-
|
|
1481
|
-
--dc-page-content-viewport-top: var(--
|
|
1482
|
-
--dc-page-content-viewport-bottom: var(--
|
|
1483
|
-
--dc-page-content-viewport-left: var(--
|
|
1484
|
-
--dc-page-content-viewport-right: var(--
|
|
1485
|
-
--dc-page-content-viewport-width: var(--
|
|
1486
|
-
--dc-page-content-viewport-height: var(--
|
|
1592
|
+
.app-page[data-v-9bc407b5] {
|
|
1593
|
+
--dc-page-content-viewport-top: var(--v6c96a846);
|
|
1594
|
+
--dc-page-content-viewport-bottom: var(--cd8f7aba);
|
|
1595
|
+
--dc-page-content-viewport-left: var(--v6cdd067f);
|
|
1596
|
+
--dc-page-content-viewport-right: var(--v2f1a2aa4);
|
|
1597
|
+
--dc-page-content-viewport-width: var(--v2f60964e);
|
|
1598
|
+
--dc-page-content-viewport-height: var(--ba398cc2);
|
|
1487
1599
|
}
|
|
1488
|
-
.app-page-shim[data-v-
|
|
1600
|
+
.app-page-shim[data-v-9bc407b5] {
|
|
1489
1601
|
display: flow-root;
|
|
1490
|
-
--app-viewport-max-height: var(--
|
|
1602
|
+
--app-viewport-max-height: var(--d3323fac);
|
|
1491
1603
|
}
|
|
1492
|
-
.app-page-slot-shim[data-v-
|
|
1604
|
+
.app-page-slot-shim[data-v-9bc407b5] {
|
|
1493
1605
|
box-sizing: border-box;
|
|
1494
1606
|
width: 100%;
|
|
1495
1607
|
height: 100%;
|
|
@@ -1563,106 +1675,39 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1563
1675
|
white-space: nowrap;
|
|
1564
1676
|
text-overflow: ellipsis;
|
|
1565
1677
|
}
|
|
1566
|
-
.view-layout[data-v-
|
|
1678
|
+
.view-layout[data-v-1cc5718f] {
|
|
1567
1679
|
display: flex;
|
|
1568
1680
|
flex-direction: column;
|
|
1569
1681
|
}
|
|
1570
|
-
.view-layout-content[data-v-
|
|
1682
|
+
.view-layout-content[data-v-1cc5718f] {
|
|
1571
1683
|
overflow: auto;
|
|
1572
1684
|
box-sizing: border-box;
|
|
1573
|
-
padding: var(--
|
|
1685
|
+
padding: var(--df4631e2);
|
|
1574
1686
|
}
|
|
1575
|
-
.dc-app-page-detail__title[data-v-
|
|
1576
|
-
padding: 0 var(--
|
|
1687
|
+
.dc-app-page-detail__title[data-v-0e5e22e8] {
|
|
1688
|
+
padding: 0 var(--v95914a8c) 12px;
|
|
1577
1689
|
font-size: 16px;
|
|
1578
1690
|
font-weight: 600;
|
|
1579
1691
|
line-height: 24px;
|
|
1580
1692
|
color: var(--dc-core-text-color, var(--el-text-color-primary));
|
|
1581
1693
|
}
|
|
1582
|
-
.dc-app-page-list-detail-split__list[data-v-
|
|
1694
|
+
.dc-app-page-list-detail-split__list[data-v-2118134d] {
|
|
1583
1695
|
box-sizing: border-box;
|
|
1584
1696
|
width: 100%;
|
|
1585
1697
|
height: 100%;
|
|
1586
1698
|
overflow: hidden;
|
|
1587
1699
|
}
|
|
1588
|
-
.dc-app-page-list-detail_embedded[data-v-
|
|
1700
|
+
.dc-app-page-list-detail_embedded[data-v-2118134d] {
|
|
1589
1701
|
display: flex;
|
|
1590
1702
|
align-items: stretch;
|
|
1591
1703
|
min-width: 0;
|
|
1592
1704
|
}
|
|
1593
|
-
.dc-app-page-list-detail_embedded > .dc-app-page-list-detail-split__list[data-v-
|
|
1705
|
+
.dc-app-page-list-detail_embedded > .dc-app-page-list-detail-split__list[data-v-2118134d] {
|
|
1594
1706
|
flex: 0 0 auto;
|
|
1595
1707
|
height: auto;
|
|
1596
1708
|
}
|
|
1597
|
-
.dc-app-page-list-detail-split__detail[data-v-
|
|
1709
|
+
.dc-app-page-list-detail-split__detail[data-v-2118134d] {
|
|
1598
1710
|
flex: 1 1 0;
|
|
1599
1711
|
min-width: 0;
|
|
1600
1712
|
}
|
|
1601
|
-
|
|
1602
|
-
min-height: var(--v1fb7c094);
|
|
1603
|
-
}
|
|
1604
|
-
.list-layout-header[data-v-3e38a8ed] {
|
|
1605
|
-
margin-bottom: var(--c8d16b32);
|
|
1606
|
-
color: var(--el-text-color-primary);
|
|
1607
|
-
font-size: 16px;
|
|
1608
|
-
font-weight: 600;
|
|
1609
|
-
line-height: 1.4;
|
|
1610
|
-
}
|
|
1611
|
-
.list-layout-chrome[data-v-3e38a8ed] {
|
|
1612
|
-
margin-bottom: var(--c8d16b32);
|
|
1613
|
-
padding: var(--f0fd181a);
|
|
1614
|
-
border-radius: var(--dc-core-radius, 4px);
|
|
1615
|
-
background: var(--el-bg-color);
|
|
1616
|
-
}
|
|
1617
|
-
.list-layout-chrome[data-v-3e38a8ed] > * {
|
|
1618
|
-
margin-bottom: var(--v2516a3b4);
|
|
1619
|
-
}
|
|
1620
|
-
.list-layout-chrome[data-v-3e38a8ed] > *:last-child {
|
|
1621
|
-
margin-bottom: 0;
|
|
1622
|
-
}
|
|
1623
|
-
.list-layout-chrome[data-v-3e38a8ed] .form-search {
|
|
1624
|
-
background: none;
|
|
1625
|
-
border-radius: 0;
|
|
1626
|
-
padding: 0;
|
|
1627
|
-
}
|
|
1628
|
-
.list-layout-chrome[data-v-3e38a8ed] .form-search:not(.form-search_show) {
|
|
1629
|
-
margin-bottom: 0;
|
|
1630
|
-
}
|
|
1631
|
-
.list-layout_module-bg .list-layout-header[data-v-3e38a8ed],
|
|
1632
|
-
.list-layout_module-bg .list-layout-operation[data-v-3e38a8ed],
|
|
1633
|
-
.list-layout_module-bg[data-v-3e38a8ed] .form-search {
|
|
1634
|
-
padding: 8px;
|
|
1635
|
-
background: var(--v110b033d);
|
|
1636
|
-
border: 1px solid var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1637
|
-
border-radius: var(--dc-core-radius, 4px);
|
|
1638
|
-
}
|
|
1639
|
-
.list-layout_search-sticky[data-v-3e38a8ed] .form-search {
|
|
1640
|
-
position: sticky;
|
|
1641
|
-
top: var(--v107411c1);
|
|
1642
|
-
z-index: 10;
|
|
1643
|
-
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1644
|
-
box-shadow: 0 1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1645
|
-
}
|
|
1646
|
-
.list-layout_toolbar-sticky[data-v-3e38a8ed] .dc-table-main__toolbar {
|
|
1647
|
-
position: sticky;
|
|
1648
|
-
top: var(--v29179534);
|
|
1649
|
-
z-index: 9;
|
|
1650
|
-
padding-top: 10px;
|
|
1651
|
-
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1652
|
-
box-shadow: 0 1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1653
|
-
}
|
|
1654
|
-
.list-layout_pager-sticky[data-v-3e38a8ed] .dc-table-main__pagination {
|
|
1655
|
-
position: sticky;
|
|
1656
|
-
bottom: var(--v466b3174);
|
|
1657
|
-
z-index: 9;
|
|
1658
|
-
margin-top: 0;
|
|
1659
|
-
padding-top: 10px;
|
|
1660
|
-
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1661
|
-
box-shadow: 0 -1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1662
|
-
}
|
|
1663
|
-
.list-layout[data-v-3e38a8ed] .el-loading-mask {
|
|
1664
|
-
left: -10px;
|
|
1665
|
-
top: -10px;
|
|
1666
|
-
right: -10px;
|
|
1667
|
-
bottom: -10px;
|
|
1668
|
-
}
|
|
1713
|
+
/* pro 自有组件样式由构建收集;依赖包样式由 forge 显式汇总。 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/forge",
|
|
3
|
-
"version": "0.104.
|
|
3
|
+
"version": "0.104.1-alpha.1",
|
|
4
4
|
"description": "Forge 组件库统一入口:聚合表单、数据、导航、反馈与布局编排组件",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "es/index.mjs",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"es",
|
|
20
|
-
"types"
|
|
20
|
+
"types",
|
|
21
|
+
"docs"
|
|
21
22
|
],
|
|
22
23
|
"scripts": {
|
|
23
24
|
"serve": "vite",
|
|
@@ -67,15 +68,15 @@
|
|
|
67
68
|
"vue-tsc": "^2.2.12"
|
|
68
69
|
},
|
|
69
70
|
"dependencies": {
|
|
70
|
-
"@done-coding/forge-compose": "0.104.
|
|
71
|
-
"@done-coding/forge-core": "0.104.
|
|
72
|
-
"@done-coding/forge-data": "0.104.
|
|
73
|
-
"@done-coding/forge-feedback": "0.104.
|
|
74
|
-
"@done-coding/forge-form": "0.104.
|
|
75
|
-
"@done-coding/forge-nav": "0.104.
|
|
71
|
+
"@done-coding/forge-compose": "0.104.1-alpha.1",
|
|
72
|
+
"@done-coding/forge-core": "0.104.1-alpha.1",
|
|
73
|
+
"@done-coding/forge-data": "0.104.1-alpha.1",
|
|
74
|
+
"@done-coding/forge-feedback": "0.104.1-alpha.1",
|
|
75
|
+
"@done-coding/forge-form": "0.104.1-alpha.1",
|
|
76
|
+
"@done-coding/forge-nav": "0.104.1-alpha.1"
|
|
76
77
|
},
|
|
77
78
|
"engines": {
|
|
78
79
|
"node": ">=18.0.0"
|
|
79
80
|
},
|
|
80
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "99399d6d8efdc28802fdbd1189fbf1b1f2b12bca"
|
|
81
82
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export { createBehaviorPort, useBehaviorPort, BEHAVIOR_DEFAULT_EVENTS, type BehaviorContext, type BehaviorRecord, type BehaviorPortOptions, type BehaviorPort, type BehaviorExposure, ActionBtn, type ActionBtnConfigItem, type ActionBtnConfirmConfig, ActionBtnGroup, type ActionBtnGroupProps, type ActionBtnProps, type ActionBtnSize, ActionConfirm, type ActionConfirmMode, type ActionConfirmProps, type ActionConfirmTextResolver, type ActivatedInfo, APP_API_LIST_MODEL_KEY_CONFIG, APP_GLOBAL_IMAGE_PREVIEW_KEY, APP_GLOBAL_VIDEO_PREVIEW_KEY, APP_LAYOUT_APP_STORE_KEY, APP_LAYOUT_BRIDGE_KEY, APP_LAYOUT_USER_STORE_KEY, APP_PAGE_CONTENT_INSET, APP_PAGE_LIST_DETAIL_CONTEXT, APP_PAGE_NAV_BAR_ACTIVE, APP_PAGE_SIDE_SLOTS, type AppApiListModel, type AppApiListCursorModel, type AppApiListCursorParams, type AppApiListOnceModel, type AppApiListNoPageParamsKey, type AppApiListPageParamsKey, type AppApiListParamsModel, type AppApiListParamsNoPageParams, type AppBaseInfo, type AppCacheConfig, type
|
|
1
|
+
export { createBehaviorPort, useBehaviorPort, BEHAVIOR_DEFAULT_EVENTS, type BehaviorContext, type BehaviorRecord, type BehaviorPortOptions, type BehaviorPort, type BehaviorExposure, ActionBtn, type ActionBtnConfigItem, type ActionBtnConfirmConfig, ActionBtnGroup, type ActionBtnGroupProps, type ActionBtnProps, type ActionBtnSize, ActionConfirm, type ActionConfirmMode, type ActionConfirmProps, type ActionConfirmTextResolver, type ActivatedInfo, APP_API_LIST_MODEL_KEY_CONFIG, APP_GLOBAL_IMAGE_PREVIEW_KEY, APP_GLOBAL_VIDEO_PREVIEW_KEY, APP_LAYOUT_APP_STORE_KEY, APP_LAYOUT_BRIDGE_KEY, APP_LAYOUT_USER_STORE_KEY, APP_PAGE_CONTENT_INSET, APP_PAGE_LIST_DETAIL_CONTEXT, APP_PAGE_NAV_BAR_ACTIVE, APP_PAGE_SIDE_SLOTS, type AppApiListModel, type AppApiListCursorModel, type AppApiListCursorParams, type AppApiListOnceModel, type AppApiListNoPageParamsKey, type AppApiListPageParamsKey, type AppApiListParamsModel, type AppApiListParamsNoPageParams, type AppBaseInfo, type AppCacheConfig, type AppEnvInfo, type AppFormConfig, type AppPageConfig, type AppLayoutAppStoreSlice, type AppLayoutAsideConfig, type AppLayoutBodyConfig, type AppLayoutBreadcrumbConfig, type AppLayoutBridgeSlice, type AppLayoutConfig, type AppLayoutFooterConfig, type AppLayoutGapConfig, type AppLayoutHeaderConfig, type AppLayoutModuleStyle, type AppLayoutSidebarConfig, type AppLayoutUserStoreSlice, type AppLayoutViewportConfig, type AppPageSlotName, type AppRouteMeta, type AppRouterConfig, type AppRouterMetaDefaultConfig, type AppRouterPathsConfig, AppTheme, type AppThemeColor, type AppThemeConfig, AutoRefresh, AutoRefreshGroup, type AutoRefreshGroupProps, type AutoRefreshProps, BADGE_HOST_ATTR, BADGE_KEY_ATTR, BADGE_MASK_KINDS, type BadgeBuiltinKind, type BadgeEntry, BadgeMark, type BadgeMarkMap, BODY_CONTENT_VIEWPORT_INSET, BODY_CONTENT_VIEWPORT_RECT, BooleanTag, type BooleanTagProps, type BooleanTagType, type Breakpoint, type BridgeBadgeHook, type BridgeBadgeInit, type BridgeEmitInput, type BridgeEvent, type BridgeEventData, type BridgeEventFilter, type BridgeEventGroupMeta, type BridgeEventActionMeta, type BridgeEventHook, type BridgeEventInit, type BridgeEventListener, BridgeEventName, type BridgeEventReportArgs, type BridgeLayoutHook, type BridgeLayoutInit, createViewportChannel, type ViewportChannel, type BridgePermissionCheck, type BridgeThemeHook, type BridgeThemeLayoutBaseline, type BridgeThemeLayoutState, type BuildListModel, type BuildListParams, buildRhythmCss, checkLogin, checkPermission, checkPermissionRule, type ClearTimer, CORE_BRIDGE_KEY, type CoreBadgeModule, type CoreBridge, type CoreBridgeEventRegistry, type CoreBridgeInitOptions, type CoreBridgePlugin, type CoreBridgePluginBridgeSlice, type CoreBridgePluginContext, type CoreBridgePluginInstall, type CoreBridgePluginLike, type CoreBridgeRegisterOptions, type CoreConfigDescription, type CoreLayoutModule, type CoreThemeComponentDefaults, type CoreThemeDensity, type CoreThemeEntry, type CoreThemeLifecycleContext, type CoreThemeLifecycleHooks, type CoreThemeMode, type CoreThemeModule, type CoreThemeMotion, type CoreThemePresetLayout, countAll, createAppStore, type CreateAppStoreDeps, createCoreBridge, createGenerateRouteMetaRawTree, createGuard, type CreateGuardOptions, createListApi, createListOnceApi, createRoutePermissionStore, type CreateRoutePermissionStoreDeps, createStorageWithNamespace, createUserStore, type CreateUserStoreDeps, createUseState, type CustomBreakpointTarget, DC_SLOT_ATTR, type DcPath, type DeepPartial, domClosestScrollableAncestor, domClosestStickyScrollport, domScrollIntoViewport, type DomScrollIntoViewportOptions, type DotToObject, DragFloat, type ElSize, type EvokeHandle, EXPORT_MAX_LIMIT, type ExportColumn, type ExportColumnConfig, exportCSV, type ExportOptions, fetchListAll, type FetchListAllOptions, flatRouteMetaResolveRaw, FORM_CONFIG_SELECT_ALL_VALUE, FORM_NEST_REGISTRY_KEY, FORM_VALIDATE_ERROR_KEYS, GAP_SCALE_RUNG, gapScaleBase, type GapScaleRung, gapScaleValue, getConfirmPasswordRule, getId, getRoutePermissionKey, type GetRoutePermissionParams, getRoutePermissionRequirement, GLOBAL_MODAL_REMOTE_KEY, useGlobalModalRemote, useGlobalModalOpen, usePageModalRemote, definePageModal, type GlobalModalControl, type GlobalModalOpen, type GlobalModalRemote, type ModalControl, type ModalOpen, type ModalOpenArgs, type ModalRemote, type PageModalEntry, type PageModalMap, type PageModalRemote, type GuardBridgeSlice, type GuardRoutePermissionStore, HeightProvider, type HeightProviderProps, ImagePreviewTrigger, KNOWN_BRIDGE_EVENTS, type LayoutCollapsePersistShape, type ListApiSource, type ListModelKeyConfig, ModalConfirm, type ModalDirection, ModalImagePreview, type ModalInjectedProps, type ModalLayerType, MODAL_SHELF_INJECTION_KEYS, type ModalLevel, type ModalSameKeyStrategy, type ModalShelfMap, ModalVideoPreview, NEST_LAYOUT_SCALE_KEY, type NestFormExpose, type NestFormExposeMap, type NoInferType, OPERATE_COLUMN_PROP, type PagingInput, parseSlotRegion, passwordRule, type PermissionCheck, permissionCheckAll, permissionCheckAny, type PermissionCheckTarget, type PermissionDirective, type PermissionDirectiveValue, type PermissionKey, type PermissionKeyResult, type PermissionRequirement, type PermissionRule, pickExportColumns, type RegisterEntry, resolveAppPageSlotName, resolveBreakpointByWidth, resolvePermissionRule, resolveRootEl, ROUTE_MODULE_LEVEL, type RouteMetaDefaultConfig, type RouteMetaResolveRaw, type RoutePermission, routerOpenInNewTab, SCOPE_VIEWPORT_MAX_HEIGHT, type ScopeViewportMaxHeight, type SetTimer, ShadowClone, type ShadowCloneProps, type ShelfConfigEntry, type ShelfController, type ShelfInstance, type ShelfItem, SlotLayoutFlowAside, type SlotLayoutFlowAsideProps, SlotLayoutTemplate, SlotRegion, type StorageLike, type TableApiParams, type TableApiResult, TABS_MAIN_VISUAL_LEVEL, type TabsHeaderVariant, type TabsMainItem, type TabsMainPadding, type TabsMainProps, TabsMainReplaceQueryKey, type TabsMainTileNavMode, type TabsMainTileNavPosition, type ThemeColorScale, themeScaleDerive, themeScaleIsNearBlack, themeScaleMix, type ThemeScaleMode, themeScalePageColor, themeScaleParseHex, themeScaleSurfaceColor, themeScaleToRgba, timeCountDown, type UnionToIntersection, useActivated, useBreakpoint, useBridgeReport, useChannelViewportHeight, type UseChannelViewportHeightMaybeProps, type UseChannelViewportHeightOptions, type UseChannelViewportHeightReturn, useCoreThemeApply, type UseCoreThemeApplyOptions, useCoreViewportApply, type UseCoreViewportApplyOptions, useCustomBreakpoint, useFeelSize, useMenusDataDispatch, useObserveSize, type UseObserveSizeOptions, usePermission, type UsePermissionReturn, type UserInfoAccess, type UserInfoFieldAccessor, type UserInfoPermissionAccessor, type UseStateOptions, useTimeout, VideoPreviewTrigger, WatchSize, withGroupRedirect, type WithGroupRedirectOptions, } from '@done-coding/forge-core';
|
|
2
2
|
export * from '@done-coding/forge-form';
|
|
3
3
|
export { DataGridView, type DataGridViewInstance, type DataGridViewPageInfo, type DataGridViewProps, type ElTableColumnProps, type ExportType, type ExtractElTableColumnProps, InfiniteListView, type InfiniteListViewConfig, type InfiniteListViewInstance, type InfiniteListViewProps, TABLE_COLUMN_KEY_OPERATE, TABLE_COLUMN_KEY_SELECTION, type TableColumnComponentProps, type TableColumnDefaultScope, type TableColumnHeaderScope, TableEmpty, type TableExportContext, type TableInstance, TableMain, type TableMainInstance, type TableMainProps, type TablePageInfo, TableSkeleton, type TableSkeletonProps, TableToolbar, type TableToolbarConfig, type TableToolbarPrivateProps, type TableToolbarProps, type ToolbarButtonConfig, type ToolbarButtonContext, } from '@done-coding/forge-data';
|
|
4
4
|
export * from '@done-coding/forge-nav';
|
|
5
5
|
export * from '@done-coding/forge-feedback';
|
|
6
6
|
export * from '@done-coding/forge-compose';
|
|
7
|
-
/** @deprecated 改用 ModalConfirm;保持同一 binding。 */
|
|
8
|
-
export { ModalConfirm as ConfirmModal } from '@done-coding/forge-core';
|