@das-fed/web-components 7.0.2-beta.5 → 7.0.2-beta.7

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.
Files changed (55) hide show
  1. package/README.md +75 -318
  2. package/das-web-app/index.js.gz +0 -0
  3. package/das-web-app/style.css.gz +0 -0
  4. package/{index-CQ8JbZz_.js → index-4w8mVWU3.js} +1 -1
  5. package/{index-caeGCWRX.js → index-B3WGxMyh.js} +48 -48
  6. package/{index-BJtFdPTR.js → index-BHSe0UW2.js} +1 -1
  7. package/{index-oIRJsM3x.js → index-BMhuvK1s.js} +1 -1
  8. package/{index-DHYRMZt9.js → index-BNanjjQw.js} +1 -1
  9. package/{index-Bj3nUS3I.js → index-BZoslzj5.js} +1 -1
  10. package/{index-CquHO6dM.js → index-BebIp2A9.js} +1 -1
  11. package/{index-DdsRr0x4.js → index-BgSsLMah.js} +1 -1
  12. package/{index-xRp-waH2.js → index-BkAQKFFw.js} +1 -1
  13. package/{index-CSdeHBCZ.js → index-Bm-uubY9.js} +1 -1
  14. package/{index-eTIqtOZn.js → index-BnHkSFL5.js} +1 -1
  15. package/{index-BPWRKApr.js → index-BvdzuL3A.js} +1 -1
  16. package/{index-xGnt9F9M.js → index-C1PnKzO9.js} +1 -1
  17. package/{index-BOpY2uGW.js → index-C928Ma6y.js} +1 -1
  18. package/{index-ksXU9NGf.js → index-C9YzODcw.js} +1 -1
  19. package/{index-BEYiaZux.js → index-CB8e1gEy.js} +1 -1
  20. package/{index-BF4b6xJc.js → index-CCEDPLnc.js} +1 -1
  21. package/{index-DVWRUFLn.js → index-CMJI-EX5.js} +1 -1
  22. package/{index-RBBuiU1Y.js → index-CV7zhJ8x.js} +1 -1
  23. package/{index-Pftg9-Bu.js → index-CVYUdZZD.js} +1 -1
  24. package/{index-BKAptp6T.js → index-CWSOErkO.js} +1 -1
  25. package/{index-BZpBB7Ge.js → index-CYZ7ILlC.js} +1 -1
  26. package/{index-CqVYiajF.js → index-C_DXEjvE.js} +1 -1
  27. package/{index-BDUYVKWK.js → index-CctFz-GP.js} +1 -1
  28. package/{index-CNJqyRRE.js → index-ChSXmBTv.js} +1 -1
  29. package/{index-DHFnKX5H.js → index-ChlWewql.js} +1 -1
  30. package/{index-CjHeKiiX.js → index-CjljLd68.js} +1 -1
  31. package/{index-9Pjb6uP3.js → index-Clzbk-Db.js} +1 -1
  32. package/{index-meK-sB3i.js → index-CqIJ07WA.js} +1 -1
  33. package/{index-TznlA4wS.js → index-CzNh5Z5x.js} +1 -1
  34. package/{index-DediicJI.js → index-CzuRKZxA.js} +1 -1
  35. package/{index-LSWgm7i0.js → index-D0fghyzP.js} +1 -1
  36. package/{index-A_d5ba-1.js → index-D2OsFj-L.js} +1 -1
  37. package/{index-Vfe6qYJ4.js → index-D4xsiLA3.js} +1 -1
  38. package/{index-Dt0cgJ6Y.js → index-DEpP7Tpa.js} +1 -1
  39. package/{index-CNnH_zjP.js → index-DPLzVPg8.js} +1 -1
  40. package/{index-CslheZJP.js → index-DVg_t4TN.js} +1 -1
  41. package/{index-DsH4H_Py.js → index-Dchn6caQ.js} +1 -1
  42. package/{index-BGTm-rQz.js → index-DfJPGAPm.js} +1 -1
  43. package/{index-CyC1yaYL.js → index-DiIWBbGX.js} +20804 -20786
  44. package/{index-C36MPlRM.js → index-DlxCjuMX.js} +1 -1
  45. package/{index-Daax51ZX.js → index-DvAZypBt.js} +1 -1
  46. package/{index-DtQAyCt-.js → index-DzyIOrZm.js} +1 -1
  47. package/{index-D35aOUIG.js → index-RngNSOFU.js} +1 -1
  48. package/{index-C68XM6xg.js → index-UGFMiimH.js} +1 -1
  49. package/{index-DPnxqE_Y.js → index-Z46yugXh.js} +1 -1
  50. package/{index-X1VxNi-T.js → index-eb-0a5_I.js} +1 -1
  51. package/{index-BaDNh0l1.js → index-hEsxmVUK.js} +1 -1
  52. package/{index-sa2QLobz.js → index-oIKryPlJ.js} +1 -1
  53. package/{index-Dh45zuBS.js → index-pImsU-kf.js} +1 -1
  54. package/index.js +2 -2
  55. package/package.json +6 -6
package/README.md CHANGED
@@ -1,359 +1,104 @@
1
- ## das-ce-tabs 使用方法
1
+ # das-web-components 组件库说明文档
2
2
 
3
- 1. **引入 `das-ce-tabs` 组件并注册**。
3
+ ## 一、简介
4
4
 
5
- ```js
6
- import { createCeTabs } from '@das-fed/web-components'
7
- createCeTabs('das-ce-tabs')
8
- ```
9
-
10
- 2. **定义 `options` 和 `modelValue` 属性**。
5
+ das-web-components 是 DAS 前端体系的 Web 组件库,基于 Web Components 技术,支持 Vue、React、原生 JS 等多种框架集成,适用于企业级中后台系统的统一架构和快速开发。
11
6
 
12
- `das-ce-tabs` 接收 `options` 和 `modelValue` 属性,`options` 属性配置如下:
13
-
14
- ```js
15
- interface TabOption {
16
- /** 唯一标识 */
17
- key: string | number
18
- /** 选项卡头显示文字 */
19
- tab: string
20
- /** 是否禁用 */
21
- disabled?: boolean
22
- /** 是否隐藏 */
23
- hidden?: boolean
24
- /** 被隐藏时是否渲染 DOM 结构 */
25
- forceRender?: boolean
26
- /** tab显示文字插槽 */
27
- tabSlot?: string
28
- /** 关闭图标插槽 */
29
- closeIconSlot?: string
30
- /** 显示内容插槽 */
31
- contentSlot?: string
32
- }
33
- ```
7
+ ---
34
8
 
35
- 定义实例如下:
9
+ ## 二、核心组件与用法
36
10
 
37
- ```js
38
- const activeKey = ref(1)
39
-
40
- const options = ref([
41
- { key: 1, tab: 'Tab 1' },
42
- { key: 2, tab: 'Tab 2', disabled: true },
43
- { key: 3, tab: 'Tab 3' },
44
- ])
45
- ```
11
+ ### 1. das-ce-tabs 页签组件
46
12
 
47
- 3. **监听组件事件**
13
+ - 支持动态页签、右键菜单、刷新、全屏等功能。
14
+ - 通过 `createCeTabs('das-ce-tabs')` 注册。
15
+ - 主要属性:
16
+ - `options`:页签配置数组,支持禁用、隐藏、插槽等。
17
+ - `modelValue`:当前激活页签 key。
18
+ - 主要事件:
19
+ - `update:modelValue`:切换页签时触发,返回新激活 key。
20
+ - `tabClick`:点击页签时触发,返回 key。
21
+ - `tabDelete`:删除页签时触发,返回 key。
22
+ - `menuClick`:右键菜单操作,返回操作项和页签对象。
23
+ - `pageRefresh`:点击刷新按钮时触发。
24
+ - `toggleFullScreen`:切换全屏。
25
+ - 主要方法与类型定义见下方代码示例。
48
26
 
49
- 使用组件时,监听到的事件对象为 `customEvent` ,该对象中的 `detail` 属性是个数组,数组元素为组件事件的返回值。 `das-ce-tabs` 组件暴露了以下事件:
50
-
51
- 1. `update:modelValue`:当 `modelValue` 属性变化时触发,要实现切换页签时 `activeKey` 属性自动变化,需要监听该事件。
27
+ #### 用法示例
52
28
 
53
29
  ```js
54
30
  import { ref } from 'vue'
55
- import { createCeTabs } from '@das-fed/web-/components'
56
- createCeTabs('das-ce-tabs')
57
-
58
- const activeKey = ref(1)
59
-
60
- const options = ref([
61
- { key: 1, tab: 'Tab 1' },
62
- { key: 2, tab: 'Tab 2', disabled: true },
63
- { key: 3, tab: 'Tab 3' },
64
- ])
65
- ```
66
-
67
- ```html
68
- <das-ce-tabs
69
- :modelValue="activeKey"
70
- :options="options"
71
- @update:modelValue="(customEvent) => (activeKey = customEvent.detail[0])"
72
- ></das-ce-tabs>
73
- ```
74
-
75
- 2. `tabClick`:当 `tab` 被点击时触发。返回被点击页签的 `key` 值。
76
-
77
- ```js
78
- import { ref } from 'vue'
79
- import { createCeTabs } from '@das-fed/web-components/components'
80
- createCeTabs('das-ce-tabs')
81
-
82
- const activeKey = ref(1)
83
-
84
- const options = ref([
85
- { key: 1, tab: 'Tab 1' },
86
- { key: 2, tab: 'Tab 2', disabled: true },
87
- { key: 3, tab: 'Tab 3' },
88
- ])
89
-
90
- const tabClick = (customEvent) => {
91
- console.log('当前点击页签的key: ', customEvent.detail[0])
92
- }
93
- ```
94
-
95
- ```html
96
- <das-ce-tabs :modelValue="activeKey" :options="options" @tabClick="tabClick"></das-ce-tabs>
97
- ```
98
-
99
- 3. `tabDelete`:当 `tab` 被删除时触发。返回被删除页签的 `key` 值。
100
-
101
- ```js
102
- import { ref } from 'vue'
103
- import { createCeTabs } from '@das-fed/web-components/components'
104
- createCeTabs('das-ce-tabs')
105
-
106
- const activeKey = ref(1)
107
-
108
- const options = ref([
109
- { key: 1, tab: 'Tab 1' },
110
- { key: 2, tab: 'Tab 2', disabled: true },
111
- { key: 3, tab: 'Tab 3' },
112
- ])
113
-
114
- const tabDelete = (customEvent) => {
115
- console.log('当前删除页签的key:', customEvent.detail[0])
116
- }
117
- ```
118
-
119
- ```html
120
- <das-ce-tabs :modelValue="activeKey" :options="options" @tabDelete="tabDelete"></das-ce-tabs>
121
- ```
122
-
123
- 4. `menuClick`:当右键呼出的操作项选中时触发。返回被选中的操作项和当前右键操作的页签对象。
124
-
125
- ```js
126
- import { ref } from 'vue'
127
- import { createCeTabs } from '@das-fed/web-components/components'
31
+ import { createCeTabs } from '@das-fed/web-components'
128
32
  createCeTabs('das-ce-tabs')
129
33
 
130
34
  const activeKey = ref(1)
131
-
132
35
  const options = ref([
133
36
  { key: 1, tab: 'Tab 1' },
134
37
  { key: 2, tab: 'Tab 2', disabled: true },
135
38
  { key: 3, tab: 'Tab 3' },
136
39
  ])
137
-
138
- const menuClick = (customEvent) => {
139
- console.log('当前选中操作项:', customEvent.detail[0], '当前页签对象:', customEvent.detail[1])
140
- }
141
40
  ```
142
41
 
143
42
  ```html
144
43
  <das-ce-tabs :modelValue="activeKey" :options="options" @menuClick="menuClick"></das-ce-tabs>
145
44
  ```
146
45
 
147
- 操作项定义如下:
46
+ #### 事件与类型
148
47
 
149
48
  ```js
150
49
  interface MenuListType {
151
- /** 唯一标识 */
152
50
  key: string | number
153
- /** 操作项名称 */
154
51
  name: string
155
- /** 是否隐藏 */
156
52
  hidden?: boolean | Function
157
- /** 是否禁用 */
158
53
  disabled?: boolean | Function
159
54
  }
160
55
  ```
161
56
 
162
- 5. `pageRefresh`: 当点击右侧刷新按钮时触发。无返回值。
163
-
164
- ```js
165
- import { ref } from 'vue'
166
- import { createCeTabs } from '@das-fed/web-components/components'
167
- createCeTabs('das-ce-tabs')
168
-
169
- const activeKey = ref(1)
170
-
171
- const options = ref([
172
- { key: 1, tab: 'Tab 1' },
173
- { key: 2, tab: 'Tab 2', disabled: true },
174
- { key: 3, tab: 'Tab 3' },
175
- ])
176
-
177
- const pageRefresh = () => {
178
- console.log('刷新')
179
- }
180
- ```
181
-
182
- ```html
183
- <das-ce-tabs :modelValue="activeKey" :options="options" @pageRefresh="pageRefresh"></das-ce-tabs>
184
- ```
185
-
186
- 6. `toggleFullScreen`: 切换全屏状态。无返回值。
187
-
188
- ```js
189
- import { ref } from 'vue'
190
- import { createCeTabs } from '@das-fed/web-components/components'
191
- createCeTabs('das-ce-tabs')
192
-
193
- const activeKey = ref(1)
194
-
195
- const options = ref([
196
- { key: 1, tab: 'Tab 1' },
197
- { key: 2, tab: 'Tab 2', disabled: true },
198
- { key: 3, tab: 'Tab 3' },
199
- ])
200
-
201
- const toggleFullScreen = () => {
202
- console.log('全屏')
203
- }
204
- ```
57
+ ---
205
58
 
206
- ```html
207
- <das-ce-tabs :modelValue="activeKey" :options="options" @toggleFullScreen="toggleFullScreen"></das-ce-tabs>
208
- ```
59
+ ### 2. das-ce-nav 顶部导航栏组件
209
60
 
210
- ## das-ce-nav 使用方法
61
+ - 支持菜单、logo、搜索、用户信息、项目树、内置页面等多种功能。
62
+ - 通过 `createCeNav('das-ce-nav')` 注册。
63
+ - 主要属性:
64
+ - `modelValue`:当前选中菜单 key。
65
+ - `config`:导航栏配置。
66
+ - `logoUrl`、`searchConfig`、`userInfoConfig`、`projectTreeConfig`、`innerPagesConfig` 等。
67
+ - 主要事件:
68
+ - `handleTabClick`、`handleTabDelete`、`changeInnerPage`、`searchToPage`、`clearSearchList`、`deleteSearchItem`、`userCommandHandle`、`changeTreeHandle`。
69
+ - 详细属性与事件见下方表格。
211
70
 
212
- ### 1. **引入 `das-ce-nav` 组件并注册**。
71
+ #### 用法示例
213
72
 
214
73
  ```js
215
74
  import { createCeNav } from '@das-fed/web-components'
216
75
  createCeNav('das-ce-nav')
217
76
  ```
218
77
 
219
- #### ① 在 vue 文件中使用
220
-
221
78
  ```html
222
79
  <das-ce-nav
223
80
  @update:modelValue="(event) => (activeKey = event.detail[0])"
224
81
  :modelValue="activeKey"
225
- @handleTabClick="handleTabClick"
226
- @handleTabDelete="handleTabDelete"
227
82
  :config="config"
228
83
  :logoUrl="logoUrl"
229
84
  :searchConfig="searchConfig"
230
- @searchToPage="searchToPage"
231
- @clearSearchList="clearSearchList"
232
- @deleteSearchItem="deleteSearchItem"
233
85
  :userInfoConfig="userInfoConfig"
234
- @userCommandHandle="userCommandHandle"
235
86
  :projectTreeConfig="projectTreeConfig"
236
- @changeTreeHandle="changeTreeHandle"
237
87
  :innerPagesConfig="innerPagesConfig"
238
- @changeInnerPage="changeInnerPage"
239
88
  ></das-ce-nav>
240
89
  ```
241
90
 
242
- #### ① 在 html 文件中使用
243
-
244
- ```html
245
- <head>
246
- <script type="module">
247
- import { createCeNav } from '@das-fed/web-components'
248
- createCeNav('das-ce-nav')
249
- const handleTabClick = (event) => {
250
- console.log(event)
251
- }
252
- const dasceNavEle = document.getElementsByTagName('das-ce-nav')[0]
253
- dasceNavEle.addEventListener('handleTabClick', handleTabClick)
254
- </script>
255
- </head>
256
- <body>
257
- <das-ce-nav
258
- @update:modelValue="(event) => (activeKey = event.detail[0])"
259
- :modelValue="activeKey"
260
- :config="config"
261
- :logoUrl="logoUrl"
262
- :searchConfig="searchConfig"
263
- :userInfoConfig="userInfoConfig"
264
- :projectTreeConfig="projectTreeConfig"
265
- :innerPagesConfig="innerPagesConfig"
266
- ></das-ce-nav>
267
- </body>
268
- ```
269
-
270
- ### 2. **属性**
271
-
272
- | 属性名 | 描述 | 类型 | 默认值 | 是否必填 |
273
- | ----------------- | ------------- | ----------------------------------------- | ----------------------------------------- | -------- |
274
- | modelValue | 当前选中菜单 | string/number | - | 是 |
275
- | config | 导航栏配置 | [config](###config) | [config](###config) | 是 |
276
- | logoUrl | logo 图片链接 | string | - | 否 |
277
- | innerPagesConfig | 内置页面配置 | [innerPagesConfig](###innerPagesConfig) | [innerPagesConfig](###innerPagesConfig) | 否 |
278
- | searchConfig | 搜索配置 | [searchConfig](###searchConfig) | [searchConfig](###searchConfig) | 否 |
279
- | userInfoConfig | 用户信息配置 | [userInfoConfig](###userInfoConfig) | [userInfoConfig](###userInfoConfig) | 否 |
280
- | projectTreeConfig | 项目树配置 | [projectTreeConfig](###projectTreeConfig) | [projectTreeConfig](###projectTreeConfig) | 否 |
281
-
282
- ### config
283
-
284
- | 属性名 | 描述 | 类型 | 默认值 | 是否必填 |
285
- | --------------- | ------------------ | ---------------------------------- | ------ | -------- |
286
- | showSearch | 是否显示搜索 | bool | false | 否 |
287
- | showProjectTree | 是否显示项目下拉树 | bool | false | 否 |
288
- | subAppList | 导航栏菜单数据 | {name:string,code:string/number}[] | - | 否 |
289
-
290
- ### innerPagesConfig
291
-
292
- | 属性名 | 描述 | 类型 | 默认值 | 是否必填 |
293
- | ------------------- | ------------------ | ------------------------------- | ------ | -------- |
294
- | activeInnerPagePath | 内置菜单当前选中值 | string/number | false | 否 |
295
- | innerPages | 内置菜单数据 | {title: string, path: string}[] | false | 否 |
296
-
297
- ### searchConfig
298
-
299
- | 属性名 | 描述 | 类型 | 默认值 | 是否必填 |
300
- | -------------- | ---------------- | ----------------------------- | --------------------------- | -------- |
301
- | defaultProps | - | {value: string,label: string} | {value: 'id',label: 'name'} | 否 |
302
- | getHistoryList | 获取历史搜索记录 | () => Promise<any> | - | 否 |
303
- | getSearchList | 获取菜单 | () => Promise<any> | - | 否 |
304
- | addHistory | 添加历史记录 | (data:any) => void | - | 否 |
305
-
306
- ### userInfoConfig
307
-
308
- | 属性名 | 描述 | 类型 | 默认值 | 是否必填 |
309
- | ------------- | -------------- | -------------------------------------------------- | ------ | -------- |
310
- | headPicture | 用户头像 | 默认头像 | 否 |
311
- | commandList | 用户信息操作项 | () => Promise<any> | - | 否 |
312
- | getSearchList | 获取菜单 | {value?: string /number,label?: string / number}[] | - | 否 |
313
-
314
- ### projectTreeConfig
315
-
316
- | 属性名 | 描述 | 类型 | 默认值 | 是否必填 |
317
- | ------------------- | ---------------------------------- | ------------------------------------------------------------------ | --------------------------- | -------- |
318
- | projectStore | 项目数据 | - | 否 |
319
- | defaultProps | - | {value: string,label: string} | {value: 'id',label: 'name'} | 否 |
320
- | treeProps | 树组件配置 | [TreeOptionProps](###TreeOptionProps) | - | 否 |
321
- | filterNode | 搜索过滤 | (value: any, data: any) => [projectTreeType](###projectTreeType)[] | - | 否 |
322
- | filterFlatCondition | 树切换平铺,符合条件的加入平铺列表 | (data: any) => boolean[] | - | 否 |
323
-
324
- ### TreeOptionProps
325
-
326
- ```js
327
- interface TreeOptionProps {
328
- label?: string // 默认name
329
- pathName?: string // 默认pathName
330
- children?: string // 默认children
331
- parentId?: string // 默认parentId
332
- disabled?: string | ((data: TreeNodeData, node?: Node) => boolean) // 默认disabled
333
- isLeaf?: string | ((data: TreeNodeData, node?: Node) => boolean) // 默认leaf;懒加载不支持方法
334
- // 允许取消选中(keepSelected为true时生效)
335
- allowUnSelect?: string | ((data: TreeNodeData) => boolean) // 默认allowUnSelect
336
- class?: (
337
- data: TreeNodeData,
338
- node: Node,
339
- ) =>
340
- | string
341
- | {
342
- [key: string]: boolean
343
- }
344
- | string
345
- }
346
- ```
347
-
348
- ### projectTreeType
349
-
350
- | 属性名 | 描述 | 类型 | 默认值 | 是否必填 |
351
- | -------- | ------------------------------------------ | ------------------------------------- | ------ | -------- |
352
- | - | 唯一标识(可使用 defaultProps.value 配置) | id | 是 |
353
- | - | 项目名称(可使用 defaultProps.label 配置) | name | 是 |
354
- | children | 树组件配置 | [projectTreeType](###projectTreeType) | - | 否 |
91
+ #### 主要属性与事件
355
92
 
356
- ### 3. **事件**
93
+ | 属性名 | 描述 | 类型 | 是否必填 |
94
+ | ----------------- | ------------- | ------------- | -------- |
95
+ | modelValue | 当前选中菜单 | string/number | 是 |
96
+ | config | 导航栏配置 | object | 是 |
97
+ | logoUrl | logo 图片链接 | string | 否 |
98
+ | innerPagesConfig | 内置页面配置 | object | 否 |
99
+ | searchConfig | 搜索配置 | object | 否 |
100
+ | userInfoConfig | 用户信息配置 | object | 否 |
101
+ | projectTreeConfig | 项目树配置 | object | 否 |
357
102
 
358
103
  | 事件 | 说明 | 回调参数 |
359
104
  | ----------------- | --------------------------- | ------------------------------- |
@@ -366,17 +111,29 @@ interface TreeOptionProps {
366
111
  | userCommandHandle | 用户信息-操作项 | function(value:any) |
367
112
  | changeTreeHandle | 项目树-是否确定切换选中项目 | function(status:bool,value:any) |
368
113
 
369
- ## das-ce-menu 使用方法
114
+ ---
115
+
116
+ ### 3. das-ce-menu 侧边菜单栏组件
117
+
118
+ - 支持菜单折叠、选中、动态数据等功能。
119
+ - 通过 `createCeMenu('das-ce-menu')` 注册。
120
+ - 主要属性:
121
+ - `modelValue`:当前选中菜单 key。
122
+ - `data`:菜单数据数组。
123
+ - `collapse`:菜单栏初始折叠状态。
124
+ - 主要事件:
125
+ - `change`:选中项改变时触发。
126
+ - `collapse-change`:菜单折叠状态改变时触发。
127
+ - 主要方法:
128
+ - `changeCollapse`:切换菜单折叠状态。
370
129
 
371
- 1. **引入 `das-ce-menu` 组件并注册**。
130
+ #### 用法示例
372
131
 
373
132
  ```js
374
133
  import { createCeMenu } from '@das-fed/web-components'
375
134
  createCeMenu('das-ce-menu')
376
135
  ```
377
136
 
378
- 2. **使用**。
379
-
380
137
  ```html
381
138
  <das-ce-menu
382
139
  :data="menuData"
@@ -388,23 +145,23 @@ createCeMenu('das-ce-menu')
388
145
  ></das-ce-menu>
389
146
  ```
390
147
 
391
- 3. **属性**
148
+ ---
149
+
150
+ ## 三、组件属性与类型定义
151
+
152
+ 详细属性、类型定义和事件请参考源码及注释。
153
+
154
+ ---
392
155
 
393
- | 属性名 | 描述 | 类型 | 默认值 | 是否必填 |
394
- | ---------- | ------------------ | ------------- | ------ | -------- |
395
- | modelValue | 当前选中菜单 | string/number | - | 是 |
396
- | data | 导航栏配置 | array | [] | 是 |
397
- | collapse | 菜单栏初始折叠状态 | boolean | false | 否 |
156
+ ## 四、常见问题与扩展
398
157
 
399
- 4. **事件**
158
+ - 支持在 Vue、React、原生 JS 项目中直接注册和使用。
159
+ - 组件事件均通过 `customEvent.detail` 获取返回值。
160
+ - 支持自定义插槽、动态数据、复杂交互。
161
+ - 推荐结合 DAS Web 主应用统一布局和微前端架构使用。
400
162
 
401
- | 事件 | 描述 | 回调参数 |
402
- | --------------- | ---------------- | ------------------------------------------- |
403
- | change | 选中项改变触发 | function(value: string/number, option: any) |
404
- | collapse-change | 折叠状态改变触发 | function(value:boolean) |
163
+ ---
405
164
 
406
- 5. **方法**
165
+ ## 五、贡献与维护
407
166
 
408
- | 方法 | 描述 | 参数 |
409
- | -------------- | ------------ | ------------------------------ |
410
- | changeCollapse | 切换折叠状态 | 接收一个布尔类型参数:折叠状态 |
167
+ 如需详细 API 说明、组件开发指南,请参考源码及注释。
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { d as n, c as t, o, w as e, m as i, n as r, u as s, p as h } from "./index-CyC1yaYL.js";
1
+ import { d as n, c as t, o, w as e, m as i, n as r, u as s, p as h } from "./index-DiIWBbGX.js";
2
2
  const p = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1677654702624" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8626" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M256 192v64H128v192h768V256h-128V192h128a64 64 0 0 1 63.84 59.2L960 256v576a64 64 0 0 1-59.2 63.84L896 896H128a64 64 0 0 1-63.84-59.2L64 832V256a64 64 0 0 1 59.2-63.84L128 192h128z m640 320H128v320h768V512zM352 128a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V160a32 32 0 0 1 32-32z m320 0a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V160a32 32 0 0 1 32-32z m-96 64v64h-128V192h128z" p-id="8627"></path></svg>', m = /* @__PURE__ */ n({
3
3
  __name: "index",
4
4
  setup(c) {
@@ -1,51 +1,51 @@
1
- import { d as t, c as a, o, w as i, m as e, n as r, u as n, p as l } from "./index-CyC1yaYL.js";
2
- import { q as b4, v as j4, x as R4, y as J4, z as K4, A as X4, B as s6, C as n6, E as t6, F as a6, G as o6, H as i6, I as e6, J as r6, K as l6, L as c6, M as h6, N as w6, O as v6, P as p6, Q as d6, R as g6, S as _6, T as m6, U as u6, V as x6, W as C6, X as Q6, Y as L6, Z as D6, $ as f6, a0 as $6, a1 as z6, a2 as V6, a3 as M6, a4 as T6, a5 as I6, a6 as G6, a7 as S6, a8 as B6, a9 as P6, aa as H6, ab as E6, ac as k6, ad as U6, ae as Z6, af as Y6, ag as W6, ah as N6, ai as O6, aj as A6, ak as q6 } from "./index-CyC1yaYL.js";
3
- import { DasIconAdd as F6 } from "./index-DdsRr0x4.js";
4
- import { DasIconAddItem as j6 } from "./index-BJtFdPTR.js";
5
- import { DasIconArrowFirst as J6 } from "./index-xRp-waH2.js";
6
- import { DasIconArrowLast as X6 } from "./index-DediicJI.js";
7
- import { DasIconCamera as n5 } from "./index-X1VxNi-T.js";
8
- import { DasIconCancelFullScreen as a5 } from "./index-DtQAyCt-.js";
9
- import { DasIconCaretBottom as i5 } from "./index-meK-sB3i.js";
10
- import { DasIconChange2 as r5 } from "./index-C36MPlRM.js";
11
- import { DasIconChuanglianjiang as c5 } from "./index-oIRJsM3x.js";
12
- import { DasIconChuangliansheng as w5 } from "./index-DHYRMZt9.js";
13
- import { DasIconChuanglianting as p5 } from "./index-BOpY2uGW.js";
14
- import { DasIconClose as g5 } from "./index-ksXU9NGf.js";
15
- import { DasIconDefaultBtn as m5 } from "./index-xGnt9F9M.js";
16
- import { DasIconDirectionControl as x5 } from "./index-9Pjb6uP3.js";
17
- import { DasIconDoubleArrowLeft as Q5 } from "./index-DHFnKX5H.js";
18
- import { DasIconDoubleArrowRight as D5 } from "./index-Vfe6qYJ4.js";
19
- import { DasIconDrawing as $5 } from "./index-TznlA4wS.js";
20
- import { DasIconEdit as V5 } from "./index-BDUYVKWK.js";
21
- import { DasIconEnlarge as T5 } from "./index-CNnH_zjP.js";
22
- import { DasIconGengduocaozuo as G5 } from "./index-Bj3nUS3I.js";
23
- import { DasIconKaiguan as B5 } from "./index-C68XM6xg.js";
24
- import { DasIconKaimen as H5 } from "./index-D35aOUIG.js";
25
- import { DasIconLock as k5 } from "./index-Pftg9-Bu.js";
26
- import { DasIconMoreBtn as Z5 } from "./index-Dt0cgJ6Y.js";
27
- import { DasIconMuted as W5 } from "./index-eTIqtOZn.js";
28
- import { DasIconPause as O5 } from "./index-A_d5ba-1.js";
29
- import { DasIconPlay as q5 } from "./index-BaDNh0l1.js";
30
- import { DasIconPreview as F5 } from "./index-RBBuiU1Y.js";
31
- import { DasIconProjectList as j5 } from "./index-DPnxqE_Y.js";
32
- import { DasIconProjectTree as J5 } from "./index-BKAptp6T.js";
33
- import { DasIconQuanping as X5 } from "./index-CSdeHBCZ.js";
34
- import { DasIconReload as n8 } from "./index-sa2QLobz.js";
35
- import { DasIconRight as a8 } from "./index-BPWRKApr.js";
36
- import { DasIconRiqixuanze as i8 } from "./index-CQ8JbZz_.js";
37
- import { DasIconScreenshot as r8 } from "./index-DVWRUFLn.js";
38
- import { DasIconShangchuan as c8 } from "./index-CjHeKiiX.js";
39
- import { DasIconShrink as w8 } from "./index-BGTm-rQz.js";
40
- import { DasIconSuccess as p8 } from "./index-BZpBB7Ge.js";
41
- import { DasIconTableHeaderSearch as g8 } from "./index-LSWgm7i0.js";
42
- import { DasIconTishixinxi as m8 } from "./index-DsH4H_Py.js";
43
- import { DasIconUnlock as x8 } from "./index-BEYiaZux.js";
44
- import { DasIconView as Q8 } from "./index-Dh45zuBS.js";
45
- import { DasIconVolume as D8 } from "./index-CquHO6dM.js";
46
- import { DasIconWendujiang as $8 } from "./index-CqVYiajF.js";
47
- import { DasIconWendusheng as V8 } from "./index-BF4b6xJc.js";
48
- import { DasIconZuobiao as T8 } from "./index-Daax51ZX.js";
1
+ import { d as t, c as a, o, w as i, m as e, n as r, u as n, p as l } from "./index-DiIWBbGX.js";
2
+ import { q as b4, v as j4, x as R4, y as J4, z as K4, A as X4, B as s6, C as n6, E as t6, F as a6, G as o6, H as i6, I as e6, J as r6, K as l6, L as c6, M as h6, N as w6, O as v6, P as p6, Q as d6, R as g6, S as _6, T as m6, U as u6, V as x6, W as C6, X as Q6, Y as L6, Z as D6, $ as f6, a0 as $6, a1 as z6, a2 as V6, a3 as M6, a4 as T6, a5 as I6, a6 as G6, a7 as S6, a8 as B6, a9 as P6, aa as H6, ab as E6, ac as k6, ad as U6, ae as Z6, af as Y6, ag as W6, ah as N6, ai as O6, aj as A6, ak as q6 } from "./index-DiIWBbGX.js";
3
+ import { DasIconAdd as F6 } from "./index-BgSsLMah.js";
4
+ import { DasIconAddItem as j6 } from "./index-BHSe0UW2.js";
5
+ import { DasIconArrowFirst as J6 } from "./index-BkAQKFFw.js";
6
+ import { DasIconArrowLast as X6 } from "./index-CzuRKZxA.js";
7
+ import { DasIconCamera as n5 } from "./index-eb-0a5_I.js";
8
+ import { DasIconCancelFullScreen as a5 } from "./index-DzyIOrZm.js";
9
+ import { DasIconCaretBottom as i5 } from "./index-CqIJ07WA.js";
10
+ import { DasIconChange2 as r5 } from "./index-DlxCjuMX.js";
11
+ import { DasIconChuanglianjiang as c5 } from "./index-BMhuvK1s.js";
12
+ import { DasIconChuangliansheng as w5 } from "./index-BNanjjQw.js";
13
+ import { DasIconChuanglianting as p5 } from "./index-C928Ma6y.js";
14
+ import { DasIconClose as g5 } from "./index-C9YzODcw.js";
15
+ import { DasIconDefaultBtn as m5 } from "./index-C1PnKzO9.js";
16
+ import { DasIconDirectionControl as x5 } from "./index-Clzbk-Db.js";
17
+ import { DasIconDoubleArrowLeft as Q5 } from "./index-ChlWewql.js";
18
+ import { DasIconDoubleArrowRight as D5 } from "./index-D4xsiLA3.js";
19
+ import { DasIconDrawing as $5 } from "./index-CzNh5Z5x.js";
20
+ import { DasIconEdit as V5 } from "./index-CctFz-GP.js";
21
+ import { DasIconEnlarge as T5 } from "./index-DPLzVPg8.js";
22
+ import { DasIconGengduocaozuo as G5 } from "./index-BZoslzj5.js";
23
+ import { DasIconKaiguan as B5 } from "./index-UGFMiimH.js";
24
+ import { DasIconKaimen as H5 } from "./index-RngNSOFU.js";
25
+ import { DasIconLock as k5 } from "./index-CVYUdZZD.js";
26
+ import { DasIconMoreBtn as Z5 } from "./index-DEpP7Tpa.js";
27
+ import { DasIconMuted as W5 } from "./index-BnHkSFL5.js";
28
+ import { DasIconPause as O5 } from "./index-D2OsFj-L.js";
29
+ import { DasIconPlay as q5 } from "./index-hEsxmVUK.js";
30
+ import { DasIconPreview as F5 } from "./index-CV7zhJ8x.js";
31
+ import { DasIconProjectList as j5 } from "./index-Z46yugXh.js";
32
+ import { DasIconProjectTree as J5 } from "./index-CWSOErkO.js";
33
+ import { DasIconQuanping as X5 } from "./index-Bm-uubY9.js";
34
+ import { DasIconReload as n8 } from "./index-oIKryPlJ.js";
35
+ import { DasIconRight as a8 } from "./index-BvdzuL3A.js";
36
+ import { DasIconRiqixuanze as i8 } from "./index-4w8mVWU3.js";
37
+ import { DasIconScreenshot as r8 } from "./index-CMJI-EX5.js";
38
+ import { DasIconShangchuan as c8 } from "./index-CjljLd68.js";
39
+ import { DasIconShrink as w8 } from "./index-DfJPGAPm.js";
40
+ import { DasIconSuccess as p8 } from "./index-CYZ7ILlC.js";
41
+ import { DasIconTableHeaderSearch as g8 } from "./index-D0fghyzP.js";
42
+ import { DasIconTishixinxi as m8 } from "./index-Dchn6caQ.js";
43
+ import { DasIconUnlock as x8 } from "./index-CB8e1gEy.js";
44
+ import { DasIconView as Q8 } from "./index-pImsU-kf.js";
45
+ import { DasIconVolume as D8 } from "./index-BebIp2A9.js";
46
+ import { DasIconWendujiang as $8 } from "./index-C_DXEjvE.js";
47
+ import { DasIconWendusheng as V8 } from "./index-CCEDPLnc.js";
48
+ import { DasIconZuobiao as T8 } from "./index-DvAZypBt.js";
49
49
  const w = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1679992790045" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9980" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M897.137778 49.777778c42.609778 0 77.084444 34.474667 77.084444 77.027555v770.389334c0 42.552889-34.474667 77.027556-77.027555 77.027555H126.805333a77.027556 77.027556 0 0 1-77.027555-77.027555V126.805333c0-42.552889 34.474667-77.027556 77.027555-77.027555h770.389334z m5.973333 71.111111H120.888889v782.222222h782.222222V120.888889z" p-id="9981"></path></svg>', t0 = /* @__PURE__ */ t({
50
50
  __name: "index",
51
51
  setup(c) {
@@ -1,4 +1,4 @@
1
- import { d as t, c as n, o, w as e, m as c, n as r, u as a, p as h } from "./index-CyC1yaYL.js";
1
+ import { d as t, c as n, o, w as e, m as c, n as r, u as a, p as h } from "./index-DiIWBbGX.js";
2
2
  const i = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1672130081972" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="881" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M886.912 432.768c22.72 0 41.088 18.368 41.088 41.088v410.88a41.088 41.088 0 0 1-41.088 41.088h-410.88a41.088 41.088 0 0 1-41.088-41.088v-410.88c0-22.72 18.432-41.088 41.088-41.088z m-20.544 61.632H496.576v369.792h369.792V494.4z m-92.416-400.64c31.552 0 57.6 23.808 61.184 54.464l0.448 7.232-0.064 215.68h-61.632v-215.68H157.696v616.32l215.68-0.064v61.632h-215.68a61.632 61.632 0 0 1-61.248-54.4l-0.384-7.232v-616.32c0-31.552 23.808-57.6 54.4-61.184l7.232-0.384h616.32z m-92.48 462.272c17.024 0 30.848 13.76 30.848 30.784l-0.064 61.632h61.696a30.784 30.784 0 1 1 0 61.632h-61.696v61.632a30.784 30.784 0 1 1-61.568 0l-0.064-61.632h-61.568a30.784 30.784 0 0 1 0-61.632h61.568v-61.632c0-17.024 13.824-30.784 30.848-30.784z" p-id="882"></path></svg>', w = /* @__PURE__ */ t({
3
3
  __name: "index",
4
4
  setup(l) {
@@ -1,4 +1,4 @@
1
- import { d as s, c as t, o as r, w as o, m as e, n as i, u as a, p } from "./index-CyC1yaYL.js";
1
+ import { d as s, c as t, o as r, w as o, m as e, n as i, u as a, p } from "./index-DiIWBbGX.js";
2
2
  const l = `<?xml version="1.0" standalone="no"?>\r
3
3
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1716346614058"\r
4
4
  class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11638"\r
@@ -1,4 +1,4 @@
1
- import { d as a, c as r, o as t, w as o, m as e, n as i, u as s, p } from "./index-CyC1yaYL.js";
1
+ import { d as a, c as r, o as t, w as o, m as e, n as i, u as s, p } from "./index-DiIWBbGX.js";
2
2
  const c = `<?xml version="1.0" standalone="no"?>\r
3
3
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1716346618111"\r
4
4
  class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11790"\r
@@ -1,4 +1,4 @@
1
- import { d as e, c as n, o as a, w as t, m as c, n as r, u as o, p } from "./index-CyC1yaYL.js";
1
+ import { d as e, c as n, o as a, w as t, m as c, n as r, u as o, p } from "./index-DiIWBbGX.js";
2
2
  const i = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" version="1.1"><path d="M527.36 230.4c-36.7616 0-66.56-29.7984-66.56-66.56s29.7984-66.56 66.56-66.56 66.56 29.7984 66.56 66.56-29.7984 66.56-66.56 66.56z m0 348.16c-36.7616 0-66.56-29.7984-66.56-66.56s29.7984-66.56 66.56-66.56 66.56 29.7984 66.56 66.56-29.7984 66.56-66.56 66.56z m0 348.16c-36.7616 0-66.56-29.7984-66.56-66.56s29.7984-66.56 66.56-66.56 66.56 29.7984 66.56 66.56-29.7984 66.56-66.56 66.56z" p-id="12510"></path></svg>', _ = /* @__PURE__ */ e({
3
3
  __name: "index",
4
4
  setup(m) {
@@ -1,4 +1,4 @@
1
- import { d as e, c as t, o as i, w as o, m as l, n as a, u as n, p as s } from "./index-CyC1yaYL.js";
1
+ import { d as e, c as t, o as i, w as o, m as l, n as a, u as n, p as s } from "./index-DiIWBbGX.js";
2
2
  const C = `<?xml version="1.0" encoding="UTF-8"?>\r
3
3
  <svg width="14px" height="12px" viewBox="0 0 14 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r
4
4
  <title>图标/通用操作/全屏备份 8</title>\r
@@ -1,4 +1,4 @@
1
- import { d as t, c as o, o as a, w as e, m as c, n as r, u as n, p as i } from "./index-CyC1yaYL.js";
1
+ import { d as t, c as o, o as a, w as e, m as c, n as r, u as n, p as i } from "./index-DiIWBbGX.js";
2
2
  const l = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1672130089031" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1015" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M512 61.824a448 448 0 1 1 0 896 448 448 0 0 1 0-896z m0 56a392 392 0 1 0 0 784A392 392 0 0 0 512 117.76z m0.512 135.936c20.928 0 29.568 9.6 31.104 26.56l0.256 5.952-0.064 191.36 191.552 0.128c20.672 0 32.512 8.128 32.512 31.36 0 23.168-10.24 32.64-32.512 32.64l-191.552-0.064 0.064 191.552c0 18.176-7.168 29.952-25.472 32.128l-6.528 0.384c-20.8 0-30.08-9.728-31.744-26.624l-0.256-5.888-0.064-191.552H288.384c-20.48 0-32.512-8.832-32.512-32 0-23.104 12.288-32 32.512-32h191.424l0.064-191.424c0-20.032 7.68-30.336 26.112-32.192l6.528-0.32z" p-id="1016"></path></svg>', m = /* @__PURE__ */ t({
3
3
  __name: "index",
4
4
  setup(p) {
@@ -1,4 +1,4 @@
1
- import { d as t, c as n, o, w as e, m as r, n as i, u as a, p } from "./index-CyC1yaYL.js";
1
+ import { d as t, c as n, o, w as e, m as r, n as i, u as a, p } from "./index-DiIWBbGX.js";
2
2
  const w = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1671693368854" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8996" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M192 128a32 32 0 0 1 32 32v704a32 32 0 0 1-64 0V160a32 32 0 0 1 32-32z m553.376 9.376a32 32 0 0 1 45.248 45.248L461.248 512l329.376 329.376a32 32 0 0 1-45.248 45.248l-352-352a32 32 0 0 1 0-45.248z" p-id="8997"></path></svg>', m = /* @__PURE__ */ t({
3
3
  __name: "index",
4
4
  setup(c) {