clickgo 7.5.0 → 7.6.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/dist/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/control/accordion.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/control.d.ts +22 -0
- package/dist/theme/cloud-dark.cgt +0 -0
- package/dist/theme/cloud-light.cgt +0 -0
- package/doc/clickgo-rag.md +204 -0
- package/package.json +3 -2
package/dist/lib/control.d.ts
CHANGED
|
@@ -844,3 +844,25 @@ export interface IObjviewerSelectEvent {
|
|
|
844
844
|
'label': string;
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
+
/** --- 用户切换折叠面板前的可取消事件 --- */
|
|
848
|
+
export interface IAccordionBeforeChangeEvent extends ICustomEvent {
|
|
849
|
+
'detail': {
|
|
850
|
+
/** --- 切换后的展开项 --- */
|
|
851
|
+
'value': string[];
|
|
852
|
+
/** --- 被操作项的标识 --- */
|
|
853
|
+
'name': string;
|
|
854
|
+
/** --- 被操作项是否展开 --- */
|
|
855
|
+
'expanded': boolean;
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
/** --- 用户切换折叠面板后的通知 --- */
|
|
859
|
+
export interface IAccordionChangedEvent {
|
|
860
|
+
'detail': {
|
|
861
|
+
/** --- 切换后的展开项 --- */
|
|
862
|
+
'value': string[];
|
|
863
|
+
/** --- 被操作项的标识 --- */
|
|
864
|
+
'name': string;
|
|
865
|
+
/** --- 被操作项是否展开 --- */
|
|
866
|
+
'expanded': boolean;
|
|
867
|
+
};
|
|
868
|
+
}
|
|
Binary file
|
|
Binary file
|
package/doc/clickgo-rag.md
CHANGED
|
@@ -326,6 +326,93 @@ stdio/CLI 自动发现同一安装的软件及其当前端口和凭据,最终
|
|
|
326
326
|
# 控件
|
|
327
327
|
---
|
|
328
328
|
|
|
329
|
+
## accordion
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
折叠面板,由直属 Accordion-item 组成;允许嵌套独立 Accordion。单独加载 `/clickgo/control/accordion`,包内包含两种控件。
|
|
333
|
+
|
|
334
|
+
### 参数
|
|
335
|
+
|
|
336
|
+
#### modelValue
|
|
337
|
+
|
|
338
|
+
`string[]`
|
|
339
|
+
|
|
340
|
+
展开项的 name,默认 `[]`,可使用 `v-model` 绑定。去重后单选模式使用第一项;未出现的 name 保留,供条件渲染使用。外部值或模式变化时整理并同步绑定值,不触发 beforechange 或 changed;未绑定时控件维护自己的展开状态。
|
|
341
|
+
|
|
342
|
+
#### multiple
|
|
343
|
+
|
|
344
|
+
`boolean` | `string`
|
|
345
|
+
|
|
346
|
+
允许多项展开,默认 false。切换到单选时保留当前第一项。
|
|
347
|
+
|
|
348
|
+
#### disabled
|
|
349
|
+
|
|
350
|
+
`boolean` | `string`
|
|
351
|
+
|
|
352
|
+
禁止用户操作所有子项,默认 false;外部绑定仍可更新。
|
|
353
|
+
|
|
354
|
+
#### level
|
|
355
|
+
|
|
356
|
+
`number` | `string`
|
|
357
|
+
|
|
358
|
+
标题的无障碍层级,默认 3,限制为 1 至 6。
|
|
359
|
+
|
|
360
|
+
### 事件
|
|
361
|
+
|
|
362
|
+
#### beforechange
|
|
363
|
+
|
|
364
|
+
`(event: clickgo.control.IAccordionBeforeChangeEvent) => void`
|
|
365
|
+
|
|
366
|
+
用户操作前触发可取消事件,调用 `preventDefault()` 取消。`event.detail` 为 `{ value: string[], name: string, expanded: boolean }`。
|
|
367
|
+
|
|
368
|
+
#### changed
|
|
369
|
+
|
|
370
|
+
`(event: clickgo.control.IAccordionChangedEvent) => void`
|
|
371
|
+
|
|
372
|
+
用户操作提交后触发,`event.detail` 与 beforechange 结构相同。外部参数变化不触发这两个事件。`update:modelValue` 用于同步绑定。
|
|
373
|
+
|
|
374
|
+
### 插槽与键盘
|
|
375
|
+
|
|
376
|
+
默认插槽放直属 Accordion-item,支持条件渲染和带 key 的重排。Tab 依次访问启用的标题和展开面板的可聚焦内容;Enter 或 Space 切换,方向键及 Home/End 在启用的直属标题间移动焦点。收起包含焦点的面板时焦点回到其标题。
|
|
377
|
+
|
|
378
|
+
```xml
|
|
379
|
+
<accordion v-model="open" :multiple="true">
|
|
380
|
+
<accordion-item name="details" label="Details">Content</accordion-item>
|
|
381
|
+
</accordion>
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
## accordion-item
|
|
386
|
+
---
|
|
387
|
+
|
|
388
|
+
折叠面板项,须作为 Accordion 的直属子项。
|
|
389
|
+
|
|
390
|
+
### 参数
|
|
391
|
+
|
|
392
|
+
#### name
|
|
393
|
+
|
|
394
|
+
`string`
|
|
395
|
+
|
|
396
|
+
所属 Accordion 内唯一且非空的标识;空值不可操作。
|
|
397
|
+
|
|
398
|
+
#### label
|
|
399
|
+
|
|
400
|
+
`string`
|
|
401
|
+
|
|
402
|
+
标题文字,默认空字符串。
|
|
403
|
+
|
|
404
|
+
#### disabled
|
|
405
|
+
|
|
406
|
+
`boolean` | `string`
|
|
407
|
+
|
|
408
|
+
禁止用户操作当前项,默认 false;外部绑定仍可更新。
|
|
409
|
+
|
|
410
|
+
### 插槽
|
|
411
|
+
|
|
412
|
+
- `header`:替换标题文字,只放非交互内容,不嵌套按钮或链接。
|
|
413
|
+
- `default`:面板内容;展开和收起使用 200ms 的自然高度过渡,保留内容和状态。收起开始时立即禁止内容交互并从无障碍树移除;系统启用减少动态效果时直接切换。
|
|
414
|
+
|
|
415
|
+
|
|
329
416
|
## alayout
|
|
330
417
|
---
|
|
331
418
|
|
|
@@ -14102,6 +14189,8 @@ lib/control/index.md
|
|
|
14102
14189
|
|
|
14103
14190
|
## Interfaces
|
|
14104
14191
|
|
|
14192
|
+
- [IAccordionBeforeChangeEvent](interfaces/IAccordionBeforeChangeEvent.md)
|
|
14193
|
+
- [IAccordionChangedEvent](interfaces/IAccordionChangedEvent.md)
|
|
14105
14194
|
- [IBreadcrumbSelectEvent](interfaces/IBreadcrumbSelectEvent.md)
|
|
14106
14195
|
- [ICalendarSelectedEvent](interfaces/ICalendarSelectedEvent.md)
|
|
14107
14196
|
- [ICaptchaResultEvent](interfaces/ICaptchaResultEvent.md)
|
|
@@ -14203,6 +14292,120 @@ lib/control/index.md
|
|
|
14203
14292
|
- [initSysId](functions/initSysId.md)
|
|
14204
14293
|
- [read](functions/read.md)
|
|
14205
14294
|
|
|
14295
|
+
lib/control/interfaces/IAccordionBeforeChangeEvent.md
|
|
14296
|
+
---
|
|
14297
|
+
|
|
14298
|
+
[**Documents for clickgo**](../../../index.md)
|
|
14299
|
+
|
|
14300
|
+
***
|
|
14301
|
+
|
|
14302
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / IAccordionBeforeChangeEvent
|
|
14303
|
+
|
|
14304
|
+
# Interface: IAccordionBeforeChangeEvent
|
|
14305
|
+
|
|
14306
|
+
Defined in: [lib/control.ts:1768](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1768)
|
|
14307
|
+
|
|
14308
|
+
用户切换折叠面板前的可取消事件
|
|
14309
|
+
|
|
14310
|
+
## Extends
|
|
14311
|
+
|
|
14312
|
+
- [`ICustomEvent`](ICustomEvent.md)
|
|
14313
|
+
|
|
14314
|
+
## Properties
|
|
14315
|
+
|
|
14316
|
+
### detail
|
|
14317
|
+
|
|
14318
|
+
> **detail**: `object`
|
|
14319
|
+
|
|
14320
|
+
Defined in: [lib/control.ts:1769](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1769)
|
|
14321
|
+
|
|
14322
|
+
#### expanded
|
|
14323
|
+
|
|
14324
|
+
> **expanded**: `boolean`
|
|
14325
|
+
|
|
14326
|
+
被操作项是否展开
|
|
14327
|
+
|
|
14328
|
+
#### name
|
|
14329
|
+
|
|
14330
|
+
> **name**: `string`
|
|
14331
|
+
|
|
14332
|
+
被操作项的标识
|
|
14333
|
+
|
|
14334
|
+
#### value
|
|
14335
|
+
|
|
14336
|
+
> **value**: `string`[]
|
|
14337
|
+
|
|
14338
|
+
切换后的展开项
|
|
14339
|
+
|
|
14340
|
+
***
|
|
14341
|
+
|
|
14342
|
+
### go
|
|
14343
|
+
|
|
14344
|
+
> **go**: `boolean`
|
|
14345
|
+
|
|
14346
|
+
Defined in: [lib/control.ts:970](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L970)
|
|
14347
|
+
|
|
14348
|
+
#### Inherited from
|
|
14349
|
+
|
|
14350
|
+
[`ICustomEvent`](ICustomEvent.md).[`go`](ICustomEvent.md#go)
|
|
14351
|
+
|
|
14352
|
+
***
|
|
14353
|
+
|
|
14354
|
+
### preventDefault
|
|
14355
|
+
|
|
14356
|
+
> **preventDefault**: () => `void`
|
|
14357
|
+
|
|
14358
|
+
Defined in: [lib/control.ts:971](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L971)
|
|
14359
|
+
|
|
14360
|
+
#### Returns
|
|
14361
|
+
|
|
14362
|
+
`void`
|
|
14363
|
+
|
|
14364
|
+
#### Inherited from
|
|
14365
|
+
|
|
14366
|
+
[`ICustomEvent`](ICustomEvent.md).[`preventDefault`](ICustomEvent.md#preventdefault)
|
|
14367
|
+
|
|
14368
|
+
lib/control/interfaces/IAccordionChangedEvent.md
|
|
14369
|
+
---
|
|
14370
|
+
|
|
14371
|
+
[**Documents for clickgo**](../../../index.md)
|
|
14372
|
+
|
|
14373
|
+
***
|
|
14374
|
+
|
|
14375
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / IAccordionChangedEvent
|
|
14376
|
+
|
|
14377
|
+
# Interface: IAccordionChangedEvent
|
|
14378
|
+
|
|
14379
|
+
Defined in: [lib/control.ts:1780](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1780)
|
|
14380
|
+
|
|
14381
|
+
用户切换折叠面板后的通知
|
|
14382
|
+
|
|
14383
|
+
## Properties
|
|
14384
|
+
|
|
14385
|
+
### detail
|
|
14386
|
+
|
|
14387
|
+
> **detail**: `object`
|
|
14388
|
+
|
|
14389
|
+
Defined in: [lib/control.ts:1781](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1781)
|
|
14390
|
+
|
|
14391
|
+
#### expanded
|
|
14392
|
+
|
|
14393
|
+
> **expanded**: `boolean`
|
|
14394
|
+
|
|
14395
|
+
被操作项是否展开
|
|
14396
|
+
|
|
14397
|
+
#### name
|
|
14398
|
+
|
|
14399
|
+
> **name**: `string`
|
|
14400
|
+
|
|
14401
|
+
被操作项的标识
|
|
14402
|
+
|
|
14403
|
+
#### value
|
|
14404
|
+
|
|
14405
|
+
> **value**: `string`[]
|
|
14406
|
+
|
|
14407
|
+
切换后的展开项
|
|
14408
|
+
|
|
14206
14409
|
lib/control/interfaces/IBreadcrumbSelectEvent.md
|
|
14207
14410
|
---
|
|
14208
14411
|
|
|
@@ -14814,6 +15017,7 @@ Custom Event
|
|
|
14814
15017
|
- [`ITabChangeEvent`](ITabChangeEvent.md)
|
|
14815
15018
|
- [`ITabCloseEvent`](ITabCloseEvent.md)
|
|
14816
15019
|
- [`ITableSortEvent`](ITableSortEvent.md)
|
|
15020
|
+
- [`IAccordionBeforeChangeEvent`](IAccordionBeforeChangeEvent.md)
|
|
14817
15021
|
- [`IFormDialogSelectEvent`](../../form/interfaces/IFormDialogSelectEvent.md)
|
|
14818
15022
|
- [`IFormPromptSelectEvent`](../../form/interfaces/IFormPromptSelectEvent.md)
|
|
14819
15023
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clickgo",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "Background interface, software interface, mobile phone APP interface operation library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"types": "./dist/clickgo.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"sass": "sass --watch dist/:dist/ --style compressed --no-source-map",
|
|
17
|
-
"check": "tsc --noEmit --pretty false && eslint \"dist/**/*.ts\" --format stylish && npm run test:command && npm run test:locale && npm run test:style && npm run test:desktop && npm run test:form && npm run test:task && npm run test:module && npm run test:vflow && npm run test:scroll && npm run test:jodit && npm run test:select && npm run test:date && npm run test:nav && npm run test:breadcrumb && npm run test:objviewer",
|
|
17
|
+
"check": "tsc --noEmit --pretty false && eslint \"dist/**/*.ts\" --format stylish && npm run test:command && npm run test:locale && npm run test:style && npm run test:desktop && npm run test:form && npm run test:task && npm run test:module && npm run test:vflow && npm run test:scroll && npm run test:jodit && npm run test:select && npm run test:date && npm run test:nav && npm run test:breadcrumb && npm run test:objviewer && npm run test:accordion",
|
|
18
|
+
"test:accordion": "node dist/abox/test/accordion.mjs",
|
|
18
19
|
"test:objviewer": "node dist/abox/test/objviewer.mjs",
|
|
19
20
|
"test:command": "node dist/abox/test/command.mjs",
|
|
20
21
|
"test:select": "node dist/abox/test/select.mjs",
|