@done-coding/forge 0.103.1-alpha.0 → 0.104.1-alpha.0
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 +268 -0
- package/es/index.mjs +8 -8
- package/es/style.css +239 -194
- 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,268 @@
|
|
|
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
|
+
- **按组件推断输入框还是下拉**:`render` 是 `ElInput` 这类输入组件时,占位与必填提示写「请输入…」;是 `ElSelect` / `FormSelect` 时写「请选择…」,在搜索区里选了即查。推断依据是应用启动时调一次 `setFormComponentType()` 登记的组件;用了没登记的组件,写 `type: "input"` 或 `"select"`。不手写 `extra: { isInput / isSelect }`。
|
|
160
|
+
- **AI 填充用的数据类型 `type`**(如 `"array"`)与快捷函数的控件类型 `type` 同名不同义,快捷函数不收:写成 `{ ...swiftFormItemConfig({ … }), type: "array" }`。
|
|
161
|
+
- **`render` 直接给组件**。不给 `render` 时这一项走 `FormMain` 的同名插槽,不渲染输入控件。
|
|
162
|
+
- **必填写 `required: true`**:生成一条必填规则(提示语按标签生成,失焦校验),并显示必填星号。只在 `rules` 的 `validator` 里判空,校验有、星号没有。
|
|
163
|
+
- **改必填的提示语或触发时机**:在 `required: true` 之外再写 `rules`,它覆盖生成的那条;`rules` 里保留 `required: true`,星号靠它。
|
|
164
|
+
- **动态必填**写 `required: isEdit ? undefined : true`;`required` 的类型是 `true`,写成 `boolean` 类型检查报错。
|
|
165
|
+
- **新建 / 编辑字段不同**:先写一份标注了类型的完整列表,再 `.filter()` 去掉不要的项。在数组字面量里写条件展开 `...(isEdit ? [] : [...])`,或直接对字面量调 `.filter()`,列表的类型标注传不进去,key 写对也会报类型错误。
|
|
166
|
+
|
|
167
|
+
## 4. 子模块的配置
|
|
168
|
+
|
|
169
|
+
页面级配置只管页面级组件自己的空间。插槽里的内容本身又是一个带配置的空间时(页签里的列表、详情里的表单、页面私有弹窗),它自带配置,不塞进页面配置:
|
|
170
|
+
|
|
171
|
+
1. **一个子模块一个目录**:`pages/<页面>/spaces/<子模块>/`,里面一个薄组件文件加一个 `config.tsx`,导出 `use<页面名><子模块名>Config(handlers?)`。页面私有弹窗同理放 `pages/<页面>/modals/<弹窗>/`。
|
|
172
|
+
2. **父页面在插槽里引用子组件**,用属性把输入传下去(当前项 `id`、`fetchSeq`、通道变量),用事件或 handlers 收输出(条数、保存完成)。子模块的配置不 import 父页面的配置,父页面也不改子模块的配置。
|
|
173
|
+
3. **可以一层层往下套**:子模块里再有子模块,就在它的目录里再开 `spaces/`。目录树就是结构树。
|
|
174
|
+
4. **什么时候不拆**:只有几列、一个按钮这类一次性的小块,留在父配置里;纯展示、不带配置的组件放 `components/`。
|
|
175
|
+
|
|
176
|
+
### 视口高度通道
|
|
177
|
+
|
|
178
|
+
父容器(`TabsMain`、`ViewLayout`)与子组件(`TableMain`、`ListLayout` 等)要定向配对视口可用高时,用通道变量:在父子都看得见的地方创建一次,父子绑同一个变量。
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
import { createViewportChannel } from "@done-coding/forge";
|
|
182
|
+
const listChannel = createViewportChannel("list");
|
|
183
|
+
// 父::channel="listChannel";子::parent-channel="listChannel"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
字符串不再接受;同名的两次 `createViewportChannel` 是两条不同的通道。
|
|
187
|
+
|
|
188
|
+
## 5. 全局弹窗
|
|
189
|
+
|
|
190
|
+
### 页面私有还是登记全局
|
|
191
|
+
|
|
192
|
+
满足任一条就登记全局,否则页面私有(配置的 `props.modals` 交给页面容器,或模板里声明式的 `ModalForm` / `ModalDetail`):
|
|
193
|
+
|
|
194
|
+
1. 两个及以上页面要拉起它(第二个页面要用时再提升,不预先登记);
|
|
195
|
+
2. 必须比页面活得久(登录、会话过期、全局通知);
|
|
196
|
+
3. 由应用外壳或非页面代码拉起(请求拦截器、全局快捷键)。
|
|
197
|
+
|
|
198
|
+
### 登记
|
|
199
|
+
|
|
200
|
+
- `src/modals/index.ts` 一处导出全局弹窗配置数组,交给 `AppLayout` 的 `global-modal-config`(每项 `shelf: "app"`)。
|
|
201
|
+
- 每个全局弹窗一个目录 `src/modals/<key>/`(组件加它自己的配置)。
|
|
202
|
+
- `src/modals/types.d.ts` 增广 `ModalShelfMap`,写 key 与 payload 类型:
|
|
203
|
+
|
|
204
|
+
```ts
|
|
205
|
+
declare module "@done-coding/forge" {
|
|
206
|
+
interface ModalShelfMap {
|
|
207
|
+
globalLogin: { redirect?: string };
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### 引用
|
|
213
|
+
|
|
214
|
+
- `AppLayout` 自己 provide 遥控器;页面文件用 `useGlobalModalOpen()` 取受检的拉起函数,作为 handler 交给配置:`openGlobal: useGlobalModalOpen()`。名字只能是 `ModalShelfMap` 里的、payload 按名字校验,写错类型检查即报;不在 `AppLayout` 内或名字未登记时开发期告警。配置里 handler 的类型写 `GlobalModalOpen`(或收窄到用到的名字)。
|
|
215
|
+
- 要关闭、更新已打开的全局弹窗时,用 `useGlobalModalRemote()` 取遥控器(`Ref<GlobalModalRemote>`,脱离 `AppLayout` 时为 `undefined`),`remote.value.<key>.close()` / `update(payload)`。
|
|
216
|
+
- 配置文件不 import 全局弹窗组件、不持遥控器。不另造注入键、不在应用根手写 provide。
|
|
217
|
+
|
|
218
|
+
## 6. 自检
|
|
219
|
+
|
|
220
|
+
- 页面根是三个页面级组件之一,且按第 1 节顺序选出。
|
|
221
|
+
- 页面文件里没有业务逻辑:数据、列、按钮都在配置里;跳页、拉弹窗经 handlers。
|
|
222
|
+
- 配置函数名带页面名;返回的 `props` 用 `satisfies` 校验过。
|
|
223
|
+
- 表单项用 `swiftFormItemConfig`,必填写 `required`,没有手写的 `extra: { isInput / isSelect }`。
|
|
224
|
+
- 插槽里放的带配置内容,已拆到 `spaces/<子模块>/`。
|
|
225
|
+
- 通道、注入键都用变量,没有两处各写一遍的字符串。
|
|
226
|
+
- 全局弹窗在 `src/modals/` 登记、经 `useGlobalModalOpen()` 拉起;页面私有弹窗用 `definePageModal` 声明、`usePageModalRemote<本页名字表>()` 拉起,不增广 `ModalShelfMap`。
|
|
227
|
+
|
|
228
|
+
### 页面私有弹窗
|
|
229
|
+
|
|
230
|
+
只有本页用的弹窗不登记全局,也不在页面文件里手写 `ModalPorter`:每条弹窗在自己目录的配置里用 `definePageModal<Payload>()` 声明,本页清单 `as const` 放进配置的 `props.modals`,三个页面容器都收这个属性,把它们登记到自己的页面级弹窗架子;页面文件用 `usePageModalRemote<本页名字表>()` 拿到遥控器与受检的 `open`,遥控器绑 `v-model:modalRemote`,`open` 包成 handler 交给配置:
|
|
231
|
+
|
|
232
|
+
```ts
|
|
233
|
+
// pages/members/modals/invite/config.tsx
|
|
234
|
+
export const membersInviteModalEntry = definePageModal<MembersInvitePayload>()({
|
|
235
|
+
key: "membersInvite",
|
|
236
|
+
component: () => import("./InviteModal.vue"),
|
|
237
|
+
});
|
|
238
|
+
// pages/members/config.tsx
|
|
239
|
+
export const membersPageModals = [membersInviteModalEntry] as const;
|
|
240
|
+
export type MembersPageModals = PageModalMap<typeof membersPageModals>;
|
|
241
|
+
// …props 里:modals: membersPageModals
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
```vue
|
|
245
|
+
<!-- pages/members/Index.vue:不写插槽 -->
|
|
246
|
+
<template>
|
|
247
|
+
<AppPageListDetailLayout
|
|
248
|
+
v-bind="config.props"
|
|
249
|
+
v-model:modal-remote="modalRemote"
|
|
250
|
+
/>
|
|
251
|
+
</template>
|
|
252
|
+
|
|
253
|
+
<script lang="ts" setup>
|
|
254
|
+
const { remote: modalRemote, open: openModal } =
|
|
255
|
+
usePageModalRemote<MembersPageModals>();
|
|
256
|
+
const config = useMembersPageConfig({
|
|
257
|
+
openInvite: (payload) => openModal("membersInvite", payload),
|
|
258
|
+
});
|
|
259
|
+
</script>
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
名字不在本页表里、payload 不对,类型检查即报;忘了绑 `v-model:modalRemote`(遥控器为空)或名字未登记,开发期各告警一条。页面私有弹窗的名字只需本页唯一,**不增广** `ModalShelfMap`(那张表是全应用唯一的名字表,页面名字进去会互相冲突,也会让每页的遥控器接受别页的名字)。`AppPageListDetailLayout` 把架子放在形态件旁边,视口跨过分栏阈值换形态时,打开着的弹窗不关。
|
|
263
|
+
|
|
264
|
+
子模块(`spaces/<子模块>/`)要拉起页面私有弹窗时,在子模块配置里定义自己的窄 handlers 接口(只含它要的那几个、payload 由子模块自己定),页面文件实现后经属性传进子组件;不把页面配置的整包 handlers 往下转交。
|
|
265
|
+
|
|
266
|
+
**为什么不做页面级的注入式遥控器**(决策,rijclt):页面私有弹窗的遥控器由页面容器创建、经 `v-model` 交给页面文件,所有权在页面文件这一层,注入只能向下、拿不到它;即使把创建上移,子模块改靠注入取遥控器,依赖就从签名里消失,读一个文件看不出它要什么,单测要搭注入环境,被第二个页面复用时两页的名字表也对不上。显式 handlers 层层传,传错在类型检查时报。判据:子模块要被第二个页面复用时再评估;全局弹窗是应用级单例,`useGlobalModalOpen()` 经注入取用不受此限。
|
|
267
|
+
|
|
268
|
+
做成属性而不是插槽:页面私有弹窗和全局弹窗一样是一份登记配置(`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 {
|
|
@@ -392,6 +392,30 @@ to {
|
|
|
392
392
|
.form-item-label-hide[data-v-3e821839] .el-form-item__label {
|
|
393
393
|
display: none;
|
|
394
394
|
}
|
|
395
|
+
.form-verify-image[data-v-9e45ceb5] .el-input__suffix-inner * {
|
|
396
|
+
margin: 0;
|
|
397
|
+
}
|
|
398
|
+
.form-verify-image-suffix[data-v-9e45ceb5] {
|
|
399
|
+
position: absolute;
|
|
400
|
+
height: 100%;
|
|
401
|
+
border-radius: var(--el-input-border-radius, var(--dc-core-radius, var(--el-border-radius-base)));
|
|
402
|
+
top: 50%;
|
|
403
|
+
transform: translateY(-50%);
|
|
404
|
+
overflow: hidden;
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
}
|
|
407
|
+
.form-verify-image-suffix-main[data-v-9e45ceb5] {
|
|
408
|
+
position: absolute;
|
|
409
|
+
left: 0;
|
|
410
|
+
top: 0;
|
|
411
|
+
width: 100%;
|
|
412
|
+
height: 100%;
|
|
413
|
+
background-color: #f4f4f4;
|
|
414
|
+
}
|
|
415
|
+
.dc-form-tree[data-v-b5723e64] {
|
|
416
|
+
width: 100%;
|
|
417
|
+
min-width: 0;
|
|
418
|
+
}
|
|
395
419
|
[data-v-86159a39] .el-row > .el-col > .el-form-item {
|
|
396
420
|
margin-bottom: var(--dc-core-form-item-gap, 18px);
|
|
397
421
|
}
|
|
@@ -498,10 +522,6 @@ to {
|
|
|
498
522
|
display: inline-flex;
|
|
499
523
|
vertical-align: middle;
|
|
500
524
|
}
|
|
501
|
-
.dc-form-tree[data-v-b5723e64] {
|
|
502
|
-
width: 100%;
|
|
503
|
-
min-width: 0;
|
|
504
|
-
}
|
|
505
525
|
.dc-form-upload-trigger[data-v-3a11fdea] {
|
|
506
526
|
display: flex;
|
|
507
527
|
align-items: center;
|
|
@@ -613,26 +633,6 @@ to {
|
|
|
613
633
|
.dc-form-upload-image__thumb_empty[data-v-359f695f] {
|
|
614
634
|
background: var(--el-fill-color-light);
|
|
615
635
|
}
|
|
616
|
-
.form-verify-image[data-v-9e45ceb5] .el-input__suffix-inner * {
|
|
617
|
-
margin: 0;
|
|
618
|
-
}
|
|
619
|
-
.form-verify-image-suffix[data-v-9e45ceb5] {
|
|
620
|
-
position: absolute;
|
|
621
|
-
height: 100%;
|
|
622
|
-
border-radius: var(--el-input-border-radius, var(--dc-core-radius, var(--el-border-radius-base)));
|
|
623
|
-
top: 50%;
|
|
624
|
-
transform: translateY(-50%);
|
|
625
|
-
overflow: hidden;
|
|
626
|
-
cursor: pointer;
|
|
627
|
-
}
|
|
628
|
-
.form-verify-image-suffix-main[data-v-9e45ceb5] {
|
|
629
|
-
position: absolute;
|
|
630
|
-
left: 0;
|
|
631
|
-
top: 0;
|
|
632
|
-
width: 100%;
|
|
633
|
-
height: 100%;
|
|
634
|
-
background-color: #f4f4f4;
|
|
635
|
-
}
|
|
636
636
|
.dc-form-upload[data-v-33edd75a] .video-preview-trigger_placeholder {
|
|
637
637
|
width: 100%;
|
|
638
638
|
height: 100%;
|
|
@@ -958,20 +958,20 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
958
958
|
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
959
959
|
padding: var(--v426061dd);
|
|
960
960
|
}
|
|
961
|
-
.table-main_surface[data-v-
|
|
962
|
-
padding: var(--
|
|
961
|
+
.table-main_surface[data-v-595a39e6] {
|
|
962
|
+
padding: var(--v84397240);
|
|
963
963
|
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
964
964
|
}
|
|
965
|
-
.table-main_surface-bg[data-v-
|
|
965
|
+
.table-main_surface-bg[data-v-595a39e6] {
|
|
966
966
|
background: var(--el-bg-color);
|
|
967
967
|
}
|
|
968
|
-
.table-main-pagination[data-v-
|
|
968
|
+
.table-main-pagination[data-v-595a39e6] {
|
|
969
969
|
margin-top: 10px;
|
|
970
970
|
display: flex;
|
|
971
971
|
justify-content: flex-end;
|
|
972
972
|
}
|
|
973
|
-
.table-main_fill[data-v-
|
|
974
|
-
min-height: var(--
|
|
973
|
+
.table-main_fill[data-v-595a39e6] .el-table__body-wrapper {
|
|
974
|
+
min-height: var(--v5d2edfec);
|
|
975
975
|
}
|
|
976
976
|
.infinite-list-view_surface[data-v-64e913d8] {
|
|
977
977
|
box-sizing: border-box;
|
|
@@ -1067,53 +1067,53 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1067
1067
|
.infinite-list-view__pull-indicator > span[data-v-64e913d8] {
|
|
1068
1068
|
padding-bottom: 6px;
|
|
1069
1069
|
}
|
|
1070
|
-
.data-grid-view[data-v-
|
|
1070
|
+
.data-grid-view[data-v-f938354d] {
|
|
1071
1071
|
width: 100%;
|
|
1072
1072
|
}
|
|
1073
|
-
.data-grid-view_surface[data-v-
|
|
1074
|
-
padding: var(--
|
|
1073
|
+
.data-grid-view_surface[data-v-f938354d] {
|
|
1074
|
+
padding: var(--v25e89286);
|
|
1075
1075
|
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
1076
1076
|
}
|
|
1077
|
-
.data-grid-view_surface-bg[data-v-
|
|
1077
|
+
.data-grid-view_surface-bg[data-v-f938354d] {
|
|
1078
1078
|
background: var(--el-bg-color);
|
|
1079
1079
|
}
|
|
1080
|
-
.data-grid-view__grid[data-v-
|
|
1080
|
+
.data-grid-view__grid[data-v-f938354d] {
|
|
1081
1081
|
display: grid;
|
|
1082
1082
|
}
|
|
1083
|
-
.data-grid-view__cell.is-active[data-v-
|
|
1083
|
+
.data-grid-view__cell.is-active[data-v-f938354d] {
|
|
1084
1084
|
/* stylelint-disable-next-line block-no-empty */
|
|
1085
1085
|
}
|
|
1086
|
-
.data-grid-view__cell[data-v-
|
|
1086
|
+
.data-grid-view__cell[data-v-f938354d] {
|
|
1087
1087
|
min-width: 0;
|
|
1088
1088
|
}
|
|
1089
|
-
.data-grid-view__cell.is-card[data-v-
|
|
1089
|
+
.data-grid-view__cell.is-card[data-v-f938354d] {
|
|
1090
1090
|
box-sizing: border-box;
|
|
1091
1091
|
background: var(--el-bg-color);
|
|
1092
1092
|
border: 1px solid var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1093
1093
|
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
1094
1094
|
}
|
|
1095
|
-
.data-grid-view__card[data-v-
|
|
1095
|
+
.data-grid-view__card[data-v-f938354d] {
|
|
1096
1096
|
height: 100%;
|
|
1097
1097
|
box-sizing: border-box;
|
|
1098
1098
|
overflow: hidden;
|
|
1099
1099
|
}
|
|
1100
|
-
.data-grid-view__field[data-v-
|
|
1100
|
+
.data-grid-view__field[data-v-f938354d] {
|
|
1101
1101
|
display: flex;
|
|
1102
1102
|
gap: 6px;
|
|
1103
1103
|
align-items: baseline;
|
|
1104
1104
|
line-height: 1.6;
|
|
1105
1105
|
font-size: 13px;
|
|
1106
1106
|
}
|
|
1107
|
-
.data-grid-view__field-label[data-v-
|
|
1107
|
+
.data-grid-view__field-label[data-v-f938354d] {
|
|
1108
1108
|
flex-shrink: 0;
|
|
1109
1109
|
color: var(--dc-core-text-color-secondary, var(--el-text-color-secondary));
|
|
1110
1110
|
}
|
|
1111
|
-
.data-grid-view__field-value[data-v-
|
|
1111
|
+
.data-grid-view__field-value[data-v-f938354d] {
|
|
1112
1112
|
overflow: hidden;
|
|
1113
1113
|
text-overflow: ellipsis;
|
|
1114
1114
|
white-space: nowrap;
|
|
1115
1115
|
}
|
|
1116
|
-
.data-grid-view__empty-error[data-v-
|
|
1116
|
+
.data-grid-view__empty-error[data-v-f938354d] {
|
|
1117
1117
|
display: flex;
|
|
1118
1118
|
justify-content: center;
|
|
1119
1119
|
align-items: center;
|
|
@@ -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;
|
|
@@ -1314,52 +1314,52 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
/*! forge-feedback 无组件自有样式;显式保留 CSS 入口供宿主汇总。 */
|
|
1316
1316
|
/* pro 自有组件样式由构建收集;依赖包样式由 forge 显式汇总。 */
|
|
1317
|
-
.app-body[data-v-
|
|
1317
|
+
.app-body[data-v-8bc98e5c] {
|
|
1318
1318
|
box-sizing: border-box;
|
|
1319
1319
|
transition-duration: 0.3s;
|
|
1320
1320
|
transition-property: padding;
|
|
1321
1321
|
transition-timing-function: linear;
|
|
1322
1322
|
min-height: 100vh;
|
|
1323
1323
|
}
|
|
1324
|
-
.app-body-shim[data-v-
|
|
1324
|
+
.app-body-shim[data-v-8bc98e5c] {
|
|
1325
1325
|
width: 100%;
|
|
1326
1326
|
display: flow-root;
|
|
1327
|
-
--app-viewport-max-height: var(--
|
|
1327
|
+
--app-viewport-max-height: var(--v407407d8);
|
|
1328
1328
|
}
|
|
1329
|
-
.app-sidebar[data-v-
|
|
1329
|
+
.app-sidebar[data-v-4e1505f7] {
|
|
1330
1330
|
transition-duration: 0.3s;
|
|
1331
1331
|
transition-property: width;
|
|
1332
1332
|
transition-timing-function: linear;
|
|
1333
1333
|
box-shadow: var(--dc-core-shadow, var(--el-box-shadow));
|
|
1334
1334
|
overflow: visible;
|
|
1335
|
-
z-index: var(--
|
|
1335
|
+
z-index: var(--v53aa4f33);
|
|
1336
1336
|
}
|
|
1337
|
-
.app-sidebar-clip[data-v-
|
|
1337
|
+
.app-sidebar-clip[data-v-4e1505f7] {
|
|
1338
1338
|
position: absolute;
|
|
1339
1339
|
inset: 0;
|
|
1340
1340
|
overflow: hidden;
|
|
1341
1341
|
border-radius: inherit;
|
|
1342
1342
|
}
|
|
1343
|
-
.app-sidebar-top[data-v-
|
|
1343
|
+
.app-sidebar-top[data-v-4e1505f7] {
|
|
1344
1344
|
position: absolute;
|
|
1345
1345
|
left: 0;
|
|
1346
1346
|
right: 0;
|
|
1347
1347
|
top: 0;
|
|
1348
1348
|
overflow: hidden;
|
|
1349
1349
|
}
|
|
1350
|
-
.app-sidebar-bottom[data-v-
|
|
1350
|
+
.app-sidebar-bottom[data-v-4e1505f7] {
|
|
1351
1351
|
position: absolute;
|
|
1352
1352
|
left: 0;
|
|
1353
1353
|
right: 0;
|
|
1354
1354
|
bottom: 0;
|
|
1355
1355
|
overflow: hidden;
|
|
1356
1356
|
}
|
|
1357
|
-
.app-sidebar-shim[data-v-
|
|
1357
|
+
.app-sidebar-shim[data-v-4e1505f7] {
|
|
1358
1358
|
position: absolute;
|
|
1359
1359
|
left: 0;
|
|
1360
1360
|
right: 0;
|
|
1361
|
-
top: var(--
|
|
1362
|
-
bottom: var(--
|
|
1361
|
+
top: var(--v9a76684a);
|
|
1362
|
+
bottom: var(--v64b339e5);
|
|
1363
1363
|
overflow-x: hidden;
|
|
1364
1364
|
overflow-y: auto;
|
|
1365
1365
|
--el-menu-border-color: transparent;
|
|
@@ -1392,7 +1392,7 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1392
1392
|
transition: none;
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
-
.app-header[data-v-
|
|
1395
|
+
.app-header[data-v-ed761d67] {
|
|
1396
1396
|
transition-duration: 0.3s;
|
|
1397
1397
|
transition-property: height;
|
|
1398
1398
|
transition-timing-function: linear;
|
|
@@ -1400,38 +1400,89 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1400
1400
|
box-shadow: var(--dc-core-shadow, var(--el-box-shadow));
|
|
1401
1401
|
z-index: 1;
|
|
1402
1402
|
}
|
|
1403
|
-
.app-header-
|
|
1403
|
+
.app-header-left[data-v-ed761d67] {
|
|
1404
1404
|
display: flex;
|
|
1405
|
-
|
|
1405
|
+
align-items: center;
|
|
1406
|
+
flex: none;
|
|
1407
|
+
white-space: nowrap;
|
|
1408
|
+
}
|
|
1409
|
+
.app-header-nav[data-v-ed761d67] {
|
|
1410
|
+
display: flex;
|
|
1411
|
+
align-items: center;
|
|
1412
|
+
flex: 1 1 0;
|
|
1413
|
+
min-width: 0;
|
|
1406
1414
|
height: 100%;
|
|
1407
|
-
overflow-x: auto;
|
|
1408
1415
|
}
|
|
1409
|
-
.app-header-module
|
|
1416
|
+
.app-header-module[data-v-ed761d67] {
|
|
1417
|
+
position: relative;
|
|
1418
|
+
display: flex;
|
|
1419
|
+
flex: 1 1 0;
|
|
1420
|
+
min-width: 0;
|
|
1421
|
+
height: 100%;
|
|
1422
|
+
overflow: hidden;
|
|
1423
|
+
}
|
|
1424
|
+
.app-header-module-more[data-v-ed761d67] {
|
|
1425
|
+
flex: none;
|
|
1426
|
+
height: 100%;
|
|
1427
|
+
font: inherit;
|
|
1428
|
+
color: inherit;
|
|
1429
|
+
}
|
|
1430
|
+
.app-header-module-more__trigger[data-v-ed761d67] {
|
|
1431
|
+
display: flex;
|
|
1432
|
+
align-items: center;
|
|
1433
|
+
gap: 4px;
|
|
1434
|
+
height: 100%;
|
|
1435
|
+
padding: 0 var(--v8acc5928);
|
|
1436
|
+
white-space: nowrap;
|
|
1437
|
+
cursor: pointer;
|
|
1438
|
+
}
|
|
1439
|
+
.app-header-module-more__trigger[data-v-ed761d67]:hover {
|
|
1440
|
+
color: var(--v4bc4b684);
|
|
1441
|
+
}
|
|
1442
|
+
.app-header-module-more__arrow[data-v-ed761d67] {
|
|
1443
|
+
font-size: 12px;
|
|
1444
|
+
}
|
|
1445
|
+
.app-header-module-more_active .app-header-module-more__trigger[data-v-ed761d67] {
|
|
1446
|
+
color: var(--v4bc4b684);
|
|
1447
|
+
}
|
|
1448
|
+
.app-header-module-more_idle[data-v-ed761d67] {
|
|
1449
|
+
position: absolute;
|
|
1450
|
+
visibility: hidden;
|
|
1451
|
+
pointer-events: none;
|
|
1452
|
+
}
|
|
1453
|
+
.app-header-module-item[data-v-ed761d67] {
|
|
1410
1454
|
display: flex;
|
|
1411
1455
|
justify-content: center;
|
|
1412
1456
|
align-items: center;
|
|
1413
|
-
padding: 0 var(--
|
|
1457
|
+
padding: 0 var(--v8acc5928);
|
|
1414
1458
|
white-space: nowrap;
|
|
1415
1459
|
height: 100%;
|
|
1416
1460
|
}
|
|
1417
|
-
.app-header-module-item[data-v-
|
|
1418
|
-
.app-header-module-item_active[data-v-
|
|
1419
|
-
color: var(--
|
|
1461
|
+
.app-header-module-item[data-v-ed761d67]:hover,
|
|
1462
|
+
.app-header-module-item_active[data-v-ed761d67] {
|
|
1463
|
+
color: var(--v4bc4b684);
|
|
1464
|
+
}
|
|
1465
|
+
.app-header-module-item.app-header-module-item_overflow[data-v-ed761d67] {
|
|
1466
|
+
position: absolute;
|
|
1467
|
+
top: 0;
|
|
1468
|
+
left: 0;
|
|
1469
|
+
visibility: hidden;
|
|
1470
|
+
pointer-events: none;
|
|
1420
1471
|
}
|
|
1421
|
-
.app-header-module-item_active[data-v-
|
|
1472
|
+
.app-header-module-item_active[data-v-ed761d67] {
|
|
1422
1473
|
position: relative;
|
|
1423
1474
|
}
|
|
1424
|
-
.app-header-module-item_active[data-v-
|
|
1475
|
+
.app-header-module-item_active[data-v-ed761d67]::before {
|
|
1425
1476
|
content: "";
|
|
1426
1477
|
position: absolute;
|
|
1427
1478
|
left: 50%;
|
|
1428
1479
|
top: 0;
|
|
1429
1480
|
width: 100%;
|
|
1430
1481
|
height: 3px;
|
|
1431
|
-
background-color: var(--
|
|
1482
|
+
background-color: var(--v4bc4b684);
|
|
1432
1483
|
transform: translateX(-50%);
|
|
1433
1484
|
}
|
|
1434
|
-
.app-header-shim[data-v-
|
|
1485
|
+
.app-header-shim[data-v-ed761d67] {
|
|
1435
1486
|
width: 100%;
|
|
1436
1487
|
height: 100%;
|
|
1437
1488
|
display: flex;
|
|
@@ -1440,13 +1491,15 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1440
1491
|
font-size: 18px;
|
|
1441
1492
|
font-weight: bold;
|
|
1442
1493
|
}
|
|
1443
|
-
.app-header-module-item__icon[data-v-
|
|
1494
|
+
.app-header-module-item__icon[data-v-ed761d67] {
|
|
1444
1495
|
margin-right: 8px;
|
|
1445
1496
|
}
|
|
1446
|
-
.app-header-right[data-v-
|
|
1447
|
-
padding-left:
|
|
1497
|
+
.app-header-right[data-v-ed761d67] {
|
|
1498
|
+
padding-left: 32px;
|
|
1448
1499
|
display: flex;
|
|
1449
1500
|
align-items: center;
|
|
1501
|
+
flex: none;
|
|
1502
|
+
white-space: nowrap;
|
|
1450
1503
|
}
|
|
1451
1504
|
.app-footer[data-v-434ae05c] {
|
|
1452
1505
|
transition-duration: 0.3s;
|
|
@@ -1460,41 +1513,101 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1460
1513
|
width: 100%;
|
|
1461
1514
|
height: 100%;
|
|
1462
1515
|
}
|
|
1463
|
-
.app-layout[data-v-
|
|
1516
|
+
.app-layout[data-v-d0080c95] {
|
|
1464
1517
|
position: relative;
|
|
1465
1518
|
}
|
|
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-
|
|
1519
|
+
.app-layout_noLogin[data-v-d0080c95] .app-body,
|
|
1520
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-body,
|
|
1521
|
+
.app-layout_noLogin[data-v-d0080c95] .app-sidebar,
|
|
1522
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-sidebar,
|
|
1523
|
+
.app-layout_noLogin[data-v-d0080c95] .app-aside,
|
|
1524
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-aside,
|
|
1525
|
+
.app-layout_noLogin[data-v-d0080c95] .app-header,
|
|
1526
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-header,
|
|
1527
|
+
.app-layout_noLogin[data-v-d0080c95] .app-footer,
|
|
1528
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-footer,
|
|
1529
|
+
.app-layout_noLogin[data-v-d0080c95] .app-collapse-toggle,
|
|
1530
|
+
.app-layout_noAnimation[data-v-d0080c95] .app-collapse-toggle {
|
|
1478
1531
|
transition: none !important;
|
|
1479
1532
|
}
|
|
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(--
|
|
1533
|
+
.app-page[data-v-9bc407b5] {
|
|
1534
|
+
--dc-page-content-viewport-top: var(--v6c96a846);
|
|
1535
|
+
--dc-page-content-viewport-bottom: var(--cd8f7aba);
|
|
1536
|
+
--dc-page-content-viewport-left: var(--v6cdd067f);
|
|
1537
|
+
--dc-page-content-viewport-right: var(--v2f1a2aa4);
|
|
1538
|
+
--dc-page-content-viewport-width: var(--v2f60964e);
|
|
1539
|
+
--dc-page-content-viewport-height: var(--ba398cc2);
|
|
1487
1540
|
}
|
|
1488
|
-
.app-page-shim[data-v-
|
|
1541
|
+
.app-page-shim[data-v-9bc407b5] {
|
|
1489
1542
|
display: flow-root;
|
|
1490
|
-
--app-viewport-max-height: var(--
|
|
1543
|
+
--app-viewport-max-height: var(--d3323fac);
|
|
1491
1544
|
}
|
|
1492
|
-
.app-page-slot-shim[data-v-
|
|
1545
|
+
.app-page-slot-shim[data-v-9bc407b5] {
|
|
1493
1546
|
box-sizing: border-box;
|
|
1494
1547
|
width: 100%;
|
|
1495
1548
|
height: 100%;
|
|
1496
1549
|
border-radius: var(--dc-core-radius, var(--el-border-radius-base));
|
|
1497
1550
|
}
|
|
1551
|
+
.list-layout[data-v-8c96b657] {
|
|
1552
|
+
min-height: var(--v1b0ff965);
|
|
1553
|
+
}
|
|
1554
|
+
.list-layout-header[data-v-8c96b657] {
|
|
1555
|
+
margin-bottom: var(--v72f9b7d4);
|
|
1556
|
+
color: var(--el-text-color-primary);
|
|
1557
|
+
font-size: 16px;
|
|
1558
|
+
font-weight: 600;
|
|
1559
|
+
line-height: 1.4;
|
|
1560
|
+
}
|
|
1561
|
+
.list-layout-chrome[data-v-8c96b657] {
|
|
1562
|
+
margin-bottom: var(--v72f9b7d4);
|
|
1563
|
+
padding: var(--v9b2564bc);
|
|
1564
|
+
border-radius: var(--dc-core-radius, 4px);
|
|
1565
|
+
background: var(--el-bg-color);
|
|
1566
|
+
}
|
|
1567
|
+
.list-layout-chrome[data-v-8c96b657] > * {
|
|
1568
|
+
margin-bottom: var(--v57a5ffe5);
|
|
1569
|
+
}
|
|
1570
|
+
.list-layout-chrome[data-v-8c96b657] > *:last-child {
|
|
1571
|
+
margin-bottom: 0;
|
|
1572
|
+
}
|
|
1573
|
+
.list-layout-chrome[data-v-8c96b657] .form-search {
|
|
1574
|
+
background: none;
|
|
1575
|
+
border-radius: 0;
|
|
1576
|
+
padding: 0;
|
|
1577
|
+
}
|
|
1578
|
+
.list-layout-chrome[data-v-8c96b657] .form-search:not(.form-search_show) {
|
|
1579
|
+
margin-bottom: 0;
|
|
1580
|
+
}
|
|
1581
|
+
.list-layout_search-sticky[data-v-8c96b657] .form-search {
|
|
1582
|
+
position: sticky;
|
|
1583
|
+
top: var(--v70bbac30);
|
|
1584
|
+
z-index: 10;
|
|
1585
|
+
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1586
|
+
box-shadow: 0 1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1587
|
+
}
|
|
1588
|
+
.list-layout_toolbar-sticky[data-v-8c96b657] .dc-table-main__toolbar {
|
|
1589
|
+
position: sticky;
|
|
1590
|
+
top: var(--v5c796eb6);
|
|
1591
|
+
z-index: 9;
|
|
1592
|
+
padding-top: 10px;
|
|
1593
|
+
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1594
|
+
box-shadow: 0 1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1595
|
+
}
|
|
1596
|
+
.list-layout_pager-sticky[data-v-8c96b657] .dc-table-main__pagination {
|
|
1597
|
+
position: sticky;
|
|
1598
|
+
bottom: var(--v999427ba);
|
|
1599
|
+
z-index: 9;
|
|
1600
|
+
margin-top: 0;
|
|
1601
|
+
padding-top: 10px;
|
|
1602
|
+
background: var(--dc-core-surface, var(--el-bg-color));
|
|
1603
|
+
box-shadow: 0 -1px 0 0 var(--dc-core-border-color, var(--el-border-color-lighter));
|
|
1604
|
+
}
|
|
1605
|
+
.list-layout[data-v-8c96b657] .el-loading-mask {
|
|
1606
|
+
left: -10px;
|
|
1607
|
+
top: -10px;
|
|
1608
|
+
right: -10px;
|
|
1609
|
+
bottom: -10px;
|
|
1610
|
+
}
|
|
1498
1611
|
.view-layout-navigation[data-v-d0736492] {
|
|
1499
1612
|
display: flex;
|
|
1500
1613
|
align-items: center;
|
|
@@ -1563,106 +1676,38 @@ html.dark .form-item-nest-form[data-v-ae8877c7]::before {
|
|
|
1563
1676
|
white-space: nowrap;
|
|
1564
1677
|
text-overflow: ellipsis;
|
|
1565
1678
|
}
|
|
1566
|
-
.view-layout[data-v-
|
|
1679
|
+
.view-layout[data-v-1cc5718f] {
|
|
1567
1680
|
display: flex;
|
|
1568
1681
|
flex-direction: column;
|
|
1569
1682
|
}
|
|
1570
|
-
.view-layout-content[data-v-
|
|
1683
|
+
.view-layout-content[data-v-1cc5718f] {
|
|
1571
1684
|
overflow: auto;
|
|
1572
1685
|
box-sizing: border-box;
|
|
1573
|
-
padding: var(--
|
|
1686
|
+
padding: var(--df4631e2);
|
|
1574
1687
|
}
|
|
1575
|
-
.dc-app-page-detail__title[data-v-
|
|
1576
|
-
padding: 0 var(--
|
|
1688
|
+
.dc-app-page-detail__title[data-v-0e5e22e8] {
|
|
1689
|
+
padding: 0 var(--v95914a8c) 12px;
|
|
1577
1690
|
font-size: 16px;
|
|
1578
1691
|
font-weight: 600;
|
|
1579
1692
|
line-height: 24px;
|
|
1580
1693
|
color: var(--dc-core-text-color, var(--el-text-color-primary));
|
|
1581
1694
|
}
|
|
1582
|
-
.dc-app-page-list-detail-split__list[data-v-
|
|
1695
|
+
.dc-app-page-list-detail-split__list[data-v-2118134d] {
|
|
1583
1696
|
box-sizing: border-box;
|
|
1584
1697
|
width: 100%;
|
|
1585
1698
|
height: 100%;
|
|
1586
1699
|
overflow: hidden;
|
|
1587
1700
|
}
|
|
1588
|
-
.dc-app-page-list-detail_embedded[data-v-
|
|
1701
|
+
.dc-app-page-list-detail_embedded[data-v-2118134d] {
|
|
1589
1702
|
display: flex;
|
|
1590
1703
|
align-items: stretch;
|
|
1591
1704
|
min-width: 0;
|
|
1592
1705
|
}
|
|
1593
|
-
.dc-app-page-list-detail_embedded > .dc-app-page-list-detail-split__list[data-v-
|
|
1706
|
+
.dc-app-page-list-detail_embedded > .dc-app-page-list-detail-split__list[data-v-2118134d] {
|
|
1594
1707
|
flex: 0 0 auto;
|
|
1595
1708
|
height: auto;
|
|
1596
1709
|
}
|
|
1597
|
-
.dc-app-page-list-detail-split__detail[data-v-
|
|
1710
|
+
.dc-app-page-list-detail-split__detail[data-v-2118134d] {
|
|
1598
1711
|
flex: 1 1 0;
|
|
1599
1712
|
min-width: 0;
|
|
1600
1713
|
}
|
|
1601
|
-
.list-layout[data-v-3e38a8ed] {
|
|
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
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.104.1-alpha.0",
|
|
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.
|
|
71
|
-
"@done-coding/forge-core": "0.
|
|
72
|
-
"@done-coding/forge-data": "0.
|
|
73
|
-
"@done-coding/forge-feedback": "0.
|
|
74
|
-
"@done-coding/forge-form": "0.
|
|
75
|
-
"@done-coding/forge-nav": "0.
|
|
71
|
+
"@done-coding/forge-compose": "0.104.1-alpha.0",
|
|
72
|
+
"@done-coding/forge-core": "0.104.1-alpha.0",
|
|
73
|
+
"@done-coding/forge-data": "0.104.1-alpha.0",
|
|
74
|
+
"@done-coding/forge-feedback": "0.104.1-alpha.0",
|
|
75
|
+
"@done-coding/forge-form": "0.104.1-alpha.0",
|
|
76
|
+
"@done-coding/forge-nav": "0.104.1-alpha.0"
|
|
76
77
|
},
|
|
77
78
|
"engines": {
|
|
78
79
|
"node": ">=18.0.0"
|
|
79
80
|
},
|
|
80
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "e731df1c116c6e96ba2ef27042efefedbe565de3"
|
|
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';
|