clickgo 7.2.0 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/control/breadcrumb.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/control.d.ts +9 -0
- package/dist/lib/tool/encoding.d.ts +25 -0
- package/dist/lib/tool.d.ts +2 -0
- package/dist/theme/admin.cgt +0 -0
- package/dist/theme/dashboard.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/dist/theme/software-dark.cgt +0 -0
- package/dist/theme/software-light.cgt +0 -0
- package/doc/clickgo-rag.md +562 -200
- package/package.json +7 -5
package/doc/clickgo-rag.md
CHANGED
|
@@ -678,7 +678,7 @@ cell 之间的间距,默认 0。
|
|
|
678
678
|
|
|
679
679
|
#### type
|
|
680
680
|
|
|
681
|
-
`'default'` | `'tool'` | `'primary'` | `'info'` | `'warning'` | `'danger'`
|
|
681
|
+
`'default'` | `'tool'` | `'primary'` | `'info'` | `'warning'` | `'danger'` | `'cg'`
|
|
682
682
|
|
|
683
683
|
按钮类型,默认 `default`。
|
|
684
684
|
|
|
@@ -737,6 +737,104 @@ cell 之间的间距,默认 0。
|
|
|
737
737
|
<box :modelValue="shapes" v-model:selected="selectedIds"></box>
|
|
738
738
|
```
|
|
739
739
|
|
|
740
|
+
## breadcrumb
|
|
741
|
+
---
|
|
742
|
+
|
|
743
|
+
面包屑导航,由直属 Breadcrumb-item 组成。按显示顺序自动将最后一项标记为当前位置;当前位置不触发选择,也不进入键盘 Tab 顺序。
|
|
744
|
+
|
|
745
|
+
单独加载 `/clickgo/control/breadcrumb`,包内包含 Breadcrumb 和 Breadcrumb-item。
|
|
746
|
+
|
|
747
|
+
### 参数
|
|
748
|
+
|
|
749
|
+
#### label
|
|
750
|
+
|
|
751
|
+
`string`
|
|
752
|
+
|
|
753
|
+
导航区域的无障碍名称,默认空字符串。应用可提供本地化文案。
|
|
754
|
+
|
|
755
|
+
#### separator
|
|
756
|
+
|
|
757
|
+
`string`
|
|
758
|
+
|
|
759
|
+
分隔文本,默认 `/`。分隔符不参与无障碍朗读。
|
|
760
|
+
|
|
761
|
+
#### disabled
|
|
762
|
+
|
|
763
|
+
`boolean` | `string`
|
|
764
|
+
|
|
765
|
+
是否禁用全部子项的操作,默认 false。
|
|
766
|
+
|
|
767
|
+
### 事件
|
|
768
|
+
|
|
769
|
+
#### select
|
|
770
|
+
|
|
771
|
+
`(event: clickgo.control.IBreadcrumbSelectEvent) => void`
|
|
772
|
+
|
|
773
|
+
点击或按 Enter、Space 激活可操作的历史层级时触发一次,`event.detail` 为 `{ name: string, index: number }`,index 从 0 开始。控件不修改应用路由、地址或窗体 Hash;应用通过事件执行导航。
|
|
774
|
+
|
|
775
|
+
### 插槽
|
|
776
|
+
|
|
777
|
+
- `default`:直属 Breadcrumb-item,支持 v-if、v-for 和带 key 的动态重排。通过插槽内容增删层级,不使用 CSS 隐藏项表示删除。
|
|
778
|
+
|
|
779
|
+
### 样式
|
|
780
|
+
|
|
781
|
+
使用主题文字、主色及焦点轮廓;`--breadcrumb-gap` 控制分隔符两侧间距,默认 `var(--g-padding)`。内容过长时允许换行,RTL 下跟随阅读方向排列。
|
|
782
|
+
|
|
783
|
+
### 示例
|
|
784
|
+
|
|
785
|
+
```xml
|
|
786
|
+
<breadcrumb label="Breadcrumbs" @select="onBreadcrumbSelect">
|
|
787
|
+
<breadcrumb-item name="workspace" label="Workspace"></breadcrumb-item>
|
|
788
|
+
<breadcrumb-item name="orders" label="Orders"></breadcrumb-item>
|
|
789
|
+
<breadcrumb-item label="Order details"></breadcrumb-item>
|
|
790
|
+
</breadcrumb>
|
|
791
|
+
```
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
## breadcrumb-item
|
|
795
|
+
---
|
|
796
|
+
|
|
797
|
+
面包屑层级项,须作为 Breadcrumb 的直属子项。最后一项自动表示当前位置,使用 `aria-current="page"`,不可操作;其他项可通过点击或 Enter、Space 激活。
|
|
798
|
+
|
|
799
|
+
### 参数
|
|
800
|
+
|
|
801
|
+
#### name
|
|
802
|
+
|
|
803
|
+
`string`
|
|
804
|
+
|
|
805
|
+
层级标识,默认空字符串,事件中回退到 label。使用自定义内容时应提供 name。
|
|
806
|
+
|
|
807
|
+
#### label
|
|
808
|
+
|
|
809
|
+
`string`
|
|
810
|
+
|
|
811
|
+
显示文字,默认空字符串;可使用默认插槽替换。
|
|
812
|
+
|
|
813
|
+
#### icon
|
|
814
|
+
|
|
815
|
+
`string`
|
|
816
|
+
|
|
817
|
+
图标资源路径,默认空字符串,支持 SVG 和图片。图标为装饰内容,不重复朗读。
|
|
818
|
+
|
|
819
|
+
#### disabled
|
|
820
|
+
|
|
821
|
+
`boolean` | `string`
|
|
822
|
+
|
|
823
|
+
是否禁用当前项,默认 false。禁用项不触发 select,不进入键盘 Tab 顺序;Breadcrumb 的 disabled 同样生效。
|
|
824
|
+
|
|
825
|
+
### 事件
|
|
826
|
+
|
|
827
|
+
#### select
|
|
828
|
+
|
|
829
|
+
`(event: clickgo.control.IBreadcrumbSelectEvent) => void`
|
|
830
|
+
|
|
831
|
+
激活历史层级时触发一次,随后所属 Breadcrumb 触发相同的 select 事件。`event.detail` 为 `{ name: string, index: number }`,index 为当前显示顺序中的零起始索引。
|
|
832
|
+
|
|
833
|
+
### 插槽
|
|
834
|
+
|
|
835
|
+
- `default`:自定义显示内容,默认显示 label;可放图标、Label 等非交互内容,不嵌套按钮或链接。
|
|
836
|
+
|
|
837
|
+
|
|
740
838
|
## button
|
|
741
839
|
---
|
|
742
840
|
|
|
@@ -764,10 +862,12 @@ cell 之间的间距,默认 0。
|
|
|
764
862
|
|
|
765
863
|
#### type
|
|
766
864
|
|
|
767
|
-
`'default'` | `'tool'` | `'primary'` | `'info'` | `'warning'` | `'danger'`
|
|
865
|
+
`'default'` | `'tool'` | `'primary'` | `'info'` | `'warning'` | `'danger'` | `'cg'`
|
|
768
866
|
|
|
769
867
|
按钮类型,默认 `default`。
|
|
770
868
|
|
|
869
|
+
`cg` 使用当前主色;`primary` 使用成功色。
|
|
870
|
+
|
|
771
871
|
#### pointer
|
|
772
872
|
|
|
773
873
|
`boolean` | `string`
|
|
@@ -827,6 +927,7 @@ cell 之间的间距,默认 0。
|
|
|
827
927
|
<button type="danger" plain>Plain Danger</button>
|
|
828
928
|
```
|
|
829
929
|
|
|
930
|
+
|
|
830
931
|
## calendar
|
|
831
932
|
---
|
|
832
933
|
|
|
@@ -1037,7 +1138,7 @@ cell 之间的间距,默认 0。
|
|
|
1037
1138
|
## circle
|
|
1038
1139
|
---
|
|
1039
1140
|
|
|
1040
|
-
|
|
1141
|
+
圆形标记组件,用于显示图标、文字或状态。
|
|
1041
1142
|
|
|
1042
1143
|
### 参数
|
|
1043
1144
|
|
|
@@ -1051,13 +1152,13 @@ cell 之间的间距,默认 0。
|
|
|
1051
1152
|
|
|
1052
1153
|
`boolean` | `string`
|
|
1053
1154
|
|
|
1054
|
-
|
|
1155
|
+
是否使用与 Tag 相同的朴素模式,默认 false。语义色和主题色使用柔和底色、对应文字色及边框;最终外观由主题决定。
|
|
1055
1156
|
|
|
1056
1157
|
#### sub
|
|
1057
1158
|
|
|
1058
1159
|
`boolean` | `string`
|
|
1059
1160
|
|
|
1060
|
-
|
|
1161
|
+
是否作为父容器右上角的悬浮角标,默认 false。父容器应建立定位上下文;该参数不表示淡色模式。
|
|
1061
1162
|
|
|
1062
1163
|
#### size
|
|
1063
1164
|
|
|
@@ -1067,18 +1168,20 @@ cell 之间的间距,默认 0。
|
|
|
1067
1168
|
|
|
1068
1169
|
### 样式
|
|
1069
1170
|
|
|
1070
|
-
使用 inline-flex
|
|
1171
|
+
使用 inline-flex 布局,内容居中显示。组件为圆形,支持多种尺寸和类型颜色,尺寸为固定直径,不会随插槽内容自动增大。
|
|
1071
1172
|
|
|
1072
|
-
|
|
1173
|
+
实心与朴素模式沿用 Tag 的语义色及主题色,基础样式不附加高光或阴影。内容区域可通过 slot 自定义,放置文字或图标时应选择足够的尺寸。
|
|
1073
1174
|
|
|
1074
1175
|
常用于显示状态指示、头像占位或图标包裹。
|
|
1075
1176
|
|
|
1076
1177
|
### 示例
|
|
1077
1178
|
|
|
1078
1179
|
```xml
|
|
1079
|
-
<circle type="primary" size="
|
|
1180
|
+
<circle type="primary" size="xl">A</circle>
|
|
1181
|
+
<circle type="cg" size="xl" plain>A</circle>
|
|
1080
1182
|
```
|
|
1081
1183
|
|
|
1184
|
+
|
|
1082
1185
|
## colorist
|
|
1083
1186
|
---
|
|
1084
1187
|
|
|
@@ -4061,6 +4164,13 @@ CSS `background` 简写,默认 `''`,使用主题背景。可设置颜色、
|
|
|
4061
4164
|
|
|
4062
4165
|
hover 模式下悬停时显示阴影效果。朴素模式下无边框和背景。
|
|
4063
4166
|
|
|
4167
|
+
### 插槽
|
|
4168
|
+
|
|
4169
|
+
- `default`:主内容。
|
|
4170
|
+
- `title`:自定义标题内容;未设置 `title` 参数时使用。
|
|
4171
|
+
- `right`:标题区域尾部操作;需要同时提供标题参数或标题插槽。
|
|
4172
|
+
- `footer`:主内容之后的固定页脚。
|
|
4173
|
+
|
|
4064
4174
|
### 示例
|
|
4065
4175
|
|
|
4066
4176
|
```xml
|
|
@@ -4069,6 +4179,7 @@ hover 模式下悬停时显示阴影效果。朴素模式下无边框和背景
|
|
|
4069
4179
|
</group>
|
|
4070
4180
|
```
|
|
4071
4181
|
|
|
4182
|
+
|
|
4072
4183
|
## hske
|
|
4073
4184
|
---
|
|
4074
4185
|
|
|
@@ -4556,7 +4667,7 @@ public onFailed(): void {
|
|
|
4556
4667
|
|
|
4557
4668
|
#### size
|
|
4558
4669
|
|
|
4559
|
-
`'s'` | `'m'` | `'l'` | `'xl'`
|
|
4670
|
+
`'xs'` | `'s'` | `'m'` | `'l'` | `'xl'`
|
|
4560
4671
|
|
|
4561
4672
|
尺寸,默认 `s`。
|
|
4562
4673
|
|
|
@@ -4622,6 +4733,7 @@ tip 模式显示为辅助文本色,click 模式具有可点击的交互效果
|
|
|
4622
4733
|
<label mode="primary">Primary Label</label>
|
|
4623
4734
|
```
|
|
4624
4735
|
|
|
4736
|
+
|
|
4625
4737
|
## layout
|
|
4626
4738
|
---
|
|
4627
4739
|
|
|
@@ -5790,6 +5902,17 @@ Query String 参数变化时触发。
|
|
|
5790
5902
|
|
|
5791
5903
|
Pop 模式下可折叠为图标栏,点击展开完整菜单。支持平滑的展开/收起动画。
|
|
5792
5904
|
|
|
5905
|
+
### 插槽
|
|
5906
|
+
|
|
5907
|
+
- `default`:可滚动的菜单内容。
|
|
5908
|
+
- `menu-header`:侧栏顶部的固定内容,随侧栏一起显示或收起。
|
|
5909
|
+
- `menu-footer`:侧栏底部的固定内容,不跟随菜单列表滚动。
|
|
5910
|
+
- `slogo`:Logo 区内容,仅在 `logo` 有有效图片时显示。
|
|
5911
|
+
- `header`:右侧工作区顶部内容。
|
|
5912
|
+
- `content`:右侧工作区主内容。
|
|
5913
|
+
|
|
5914
|
+
顶部或底部插槽未提供时保留原菜单结构;固定区域会占用侧栏高度,中间菜单独立滚动。
|
|
5915
|
+
|
|
5793
5916
|
### 示例
|
|
5794
5917
|
|
|
5795
5918
|
```xml
|
|
@@ -5798,6 +5921,7 @@ Pop 模式下可折叠为图标栏,点击展开完整菜单。支持平滑的
|
|
|
5798
5921
|
</nav>
|
|
5799
5922
|
```
|
|
5800
5923
|
|
|
5924
|
+
|
|
5801
5925
|
## nav-item
|
|
5802
5926
|
---
|
|
5803
5927
|
|
|
@@ -5845,12 +5969,18 @@ Pop 模式下可折叠为图标栏,点击展开完整菜单。支持平滑的
|
|
|
5845
5969
|
|
|
5846
5970
|
支持嵌套子菜单,点击展开/折叠。
|
|
5847
5971
|
|
|
5972
|
+
### 插槽
|
|
5973
|
+
|
|
5974
|
+
- `default`:子菜单内容,影响展开/收起行为。
|
|
5975
|
+
- `suffix`:菜单文字之后的附加内容,例如数量标签;不会被识别为子菜单。
|
|
5976
|
+
|
|
5848
5977
|
### 示例
|
|
5849
5978
|
|
|
5850
5979
|
```xml
|
|
5851
5980
|
<nav-item label="Home" name="home" icon="home"></nav-item>
|
|
5852
5981
|
```
|
|
5853
5982
|
|
|
5983
|
+
|
|
5854
5984
|
## nav-title
|
|
5855
5985
|
---
|
|
5856
5986
|
|
|
@@ -7079,19 +7209,20 @@ QR 码组件,用于生成二维码。
|
|
|
7079
7209
|
|
|
7080
7210
|
### 样式
|
|
7081
7211
|
|
|
7082
|
-
使用 flex
|
|
7212
|
+
使用 flex 布局的简单分组容器,具有内边距、圆角和边框。`type` 改变边框的语义颜色。
|
|
7083
7213
|
|
|
7084
|
-
|
|
7214
|
+
仅有默认内容插槽,不管理选中状态。带标题、右侧操作和页脚的容器使用 group。
|
|
7085
7215
|
|
|
7086
7216
|
### 示例
|
|
7087
7217
|
|
|
7088
7218
|
```xml
|
|
7089
|
-
<sgroup v
|
|
7090
|
-
<
|
|
7091
|
-
<
|
|
7219
|
+
<sgroup direction="v" gutter="8">
|
|
7220
|
+
<label mode="tip">Total revenue</label>
|
|
7221
|
+
<label size="xl">$128,430</label>
|
|
7092
7222
|
</sgroup>
|
|
7093
7223
|
```
|
|
7094
7224
|
|
|
7225
|
+
|
|
7095
7226
|
## sidebar-toggle
|
|
7096
7227
|
---
|
|
7097
7228
|
|
|
@@ -7392,10 +7523,23 @@ Enter/Space 请求切换一次展开状态;忽略持续按住时的重复事
|
|
|
7392
7523
|
|
|
7393
7524
|
语义颜色,默认 `default`。
|
|
7394
7525
|
|
|
7526
|
+
#### clickable
|
|
7527
|
+
|
|
7528
|
+
`boolean` | `string`
|
|
7529
|
+
|
|
7530
|
+
整项可点击,默认 `false`;通过 `@click` 响应激活。启用后支持 Tab 聚焦、Enter 和 Space 激活;平时保持扁平,悬停、按下及键盘聚焦时显示反馈。不嵌套其他交互控件。
|
|
7531
|
+
|
|
7532
|
+
#### disabled
|
|
7533
|
+
|
|
7534
|
+
`boolean` | `string`
|
|
7535
|
+
|
|
7536
|
+
禁用可点击项,默认 `false`;禁用时不参与 Tab 导航、不触发 `click`。
|
|
7537
|
+
|
|
7395
7538
|
### 示例
|
|
7396
7539
|
|
|
7397
7540
|
```xml
|
|
7398
7541
|
<statusbar-item type="info">Synchronizing</statusbar-item>
|
|
7542
|
+
<statusbar-item clickable @click="chooseEncoding" tip="Change text encoding">UTF-8</statusbar-item>
|
|
7399
7543
|
```
|
|
7400
7544
|
|
|
7401
7545
|
|
|
@@ -13623,6 +13767,7 @@ lib/control/index.md
|
|
|
13623
13767
|
|
|
13624
13768
|
## Interfaces
|
|
13625
13769
|
|
|
13770
|
+
- [IBreadcrumbSelectEvent](interfaces/IBreadcrumbSelectEvent.md)
|
|
13626
13771
|
- [ICalendarSelectedEvent](interfaces/ICalendarSelectedEvent.md)
|
|
13627
13772
|
- [ICaptchaResultEvent](interfaces/ICaptchaResultEvent.md)
|
|
13628
13773
|
- [ICheckChangedEvent](interfaces/ICheckChangedEvent.md)
|
|
@@ -13722,6 +13867,41 @@ lib/control/index.md
|
|
|
13722
13867
|
- [initSysId](functions/initSysId.md)
|
|
13723
13868
|
- [read](functions/read.md)
|
|
13724
13869
|
|
|
13870
|
+
lib/control/interfaces/IBreadcrumbSelectEvent.md
|
|
13871
|
+
---
|
|
13872
|
+
|
|
13873
|
+
[**Documents for clickgo**](../../../index.md)
|
|
13874
|
+
|
|
13875
|
+
***
|
|
13876
|
+
|
|
13877
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / IBreadcrumbSelectEvent
|
|
13878
|
+
|
|
13879
|
+
# Interface: IBreadcrumbSelectEvent
|
|
13880
|
+
|
|
13881
|
+
Defined in: [lib/control.ts:1461](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1461)
|
|
13882
|
+
|
|
13883
|
+
面包屑历史层级的激活通知,不包含自动跳转行为
|
|
13884
|
+
|
|
13885
|
+
## Properties
|
|
13886
|
+
|
|
13887
|
+
### detail
|
|
13888
|
+
|
|
13889
|
+
> **detail**: `object`
|
|
13890
|
+
|
|
13891
|
+
Defined in: [lib/control.ts:1462](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1462)
|
|
13892
|
+
|
|
13893
|
+
#### index
|
|
13894
|
+
|
|
13895
|
+
> **index**: `number`
|
|
13896
|
+
|
|
13897
|
+
当前显示顺序中的零起始索引
|
|
13898
|
+
|
|
13899
|
+
#### name
|
|
13900
|
+
|
|
13901
|
+
> **name**: `string`
|
|
13902
|
+
|
|
13903
|
+
层级标识,未设置 name 时为 label
|
|
13904
|
+
|
|
13725
13905
|
lib/control/interfaces/ICalendarSelectedEvent.md
|
|
13726
13906
|
---
|
|
13727
13907
|
|
|
@@ -14062,7 +14242,7 @@ lib/control/interfaces/IColoristChangedEvent.md
|
|
|
14062
14242
|
|
|
14063
14243
|
# Interface: IColoristChangedEvent
|
|
14064
14244
|
|
|
14065
|
-
Defined in: [lib/control.ts:
|
|
14245
|
+
Defined in: [lib/control.ts:1531](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1531)
|
|
14066
14246
|
|
|
14067
14247
|
## Properties
|
|
14068
14248
|
|
|
@@ -14070,7 +14250,7 @@ Defined in: [lib/control.ts:1519](https://github.com/maiyun/clickgo/blob/master/
|
|
|
14070
14250
|
|
|
14071
14251
|
> **detail**: `object`
|
|
14072
14252
|
|
|
14073
|
-
Defined in: [lib/control.ts:
|
|
14253
|
+
Defined in: [lib/control.ts:1532](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1532)
|
|
14074
14254
|
|
|
14075
14255
|
#### hsl?
|
|
14076
14256
|
|
|
@@ -14765,7 +14945,7 @@ lib/control/interfaces/IFabricLayerchangeEvent.md
|
|
|
14765
14945
|
|
|
14766
14946
|
# Interface: IFabricLayerchangeEvent
|
|
14767
14947
|
|
|
14768
|
-
Defined in: [lib/control.ts:
|
|
14948
|
+
Defined in: [lib/control.ts:1701](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1701)
|
|
14769
14949
|
|
|
14770
14950
|
## Properties
|
|
14771
14951
|
|
|
@@ -14773,7 +14953,7 @@ Defined in: [lib/control.ts:1689](https://github.com/maiyun/clickgo/blob/master/
|
|
|
14773
14953
|
|
|
14774
14954
|
> **detail**: `object`
|
|
14775
14955
|
|
|
14776
|
-
Defined in: [lib/control.ts:
|
|
14956
|
+
Defined in: [lib/control.ts:1702](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1702)
|
|
14777
14957
|
|
|
14778
14958
|
#### next
|
|
14779
14959
|
|
|
@@ -14798,7 +14978,7 @@ lib/control/interfaces/IFabricLayerlistchangeEvent.md
|
|
|
14798
14978
|
|
|
14799
14979
|
# Interface: IFabricLayerlistchangeEvent
|
|
14800
14980
|
|
|
14801
|
-
Defined in: [lib/control.ts:
|
|
14981
|
+
Defined in: [lib/control.ts:1710](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1710)
|
|
14802
14982
|
|
|
14803
14983
|
## Properties
|
|
14804
14984
|
|
|
@@ -14806,7 +14986,7 @@ Defined in: [lib/control.ts:1698](https://github.com/maiyun/clickgo/blob/master/
|
|
|
14806
14986
|
|
|
14807
14987
|
> **detail**: `object`
|
|
14808
14988
|
|
|
14809
|
-
Defined in: [lib/control.ts:
|
|
14989
|
+
Defined in: [lib/control.ts:1711](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1711)
|
|
14810
14990
|
|
|
14811
14991
|
#### names
|
|
14812
14992
|
|
|
@@ -14837,7 +15017,7 @@ lib/control/interfaces/IFabricObjectchangeEvent.md
|
|
|
14837
15017
|
|
|
14838
15018
|
# Interface: IFabricObjectchangeEvent
|
|
14839
15019
|
|
|
14840
|
-
Defined in: [lib/control.ts:
|
|
15020
|
+
Defined in: [lib/control.ts:1721](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1721)
|
|
14841
15021
|
|
|
14842
15022
|
## Properties
|
|
14843
15023
|
|
|
@@ -14845,7 +15025,7 @@ Defined in: [lib/control.ts:1709](https://github.com/maiyun/clickgo/blob/master/
|
|
|
14845
15025
|
|
|
14846
15026
|
> **detail**: `object`
|
|
14847
15027
|
|
|
14848
|
-
Defined in: [lib/control.ts:
|
|
15028
|
+
Defined in: [lib/control.ts:1722](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1722)
|
|
14849
15029
|
|
|
14850
15030
|
#### angle
|
|
14851
15031
|
|
|
@@ -16053,7 +16233,7 @@ lib/control/interfaces/INavItemSelectEvent.md
|
|
|
16053
16233
|
|
|
16054
16234
|
# Interface: INavItemSelectEvent
|
|
16055
16235
|
|
|
16056
|
-
Defined in: [lib/control.ts:
|
|
16236
|
+
Defined in: [lib/control.ts:1472](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1472)
|
|
16057
16237
|
|
|
16058
16238
|
Custom Event
|
|
16059
16239
|
|
|
@@ -16067,7 +16247,7 @@ Custom Event
|
|
|
16067
16247
|
|
|
16068
16248
|
> **detail**: `object`
|
|
16069
16249
|
|
|
16070
|
-
Defined in: [lib/control.ts:
|
|
16250
|
+
Defined in: [lib/control.ts:1473](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1473)
|
|
16071
16251
|
|
|
16072
16252
|
#### name
|
|
16073
16253
|
|
|
@@ -16242,7 +16422,7 @@ lib/control/interfaces/IObjviewerLine.md
|
|
|
16242
16422
|
|
|
16243
16423
|
# Interface: IObjviewerLine
|
|
16244
16424
|
|
|
16245
|
-
Defined in: [lib/control.ts:
|
|
16425
|
+
Defined in: [lib/control.ts:1737](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1737)
|
|
16246
16426
|
|
|
16247
16427
|
## Properties
|
|
16248
16428
|
|
|
@@ -16250,7 +16430,7 @@ Defined in: [lib/control.ts:1725](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16250
16430
|
|
|
16251
16431
|
> **end**: [`IObjviewerLineObj`](IObjviewerLineObj.md)
|
|
16252
16432
|
|
|
16253
|
-
Defined in: [lib/control.ts:
|
|
16433
|
+
Defined in: [lib/control.ts:1741](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1741)
|
|
16254
16434
|
|
|
16255
16435
|
***
|
|
16256
16436
|
|
|
@@ -16258,7 +16438,7 @@ Defined in: [lib/control.ts:1729](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16258
16438
|
|
|
16259
16439
|
> `optional` **hue?**: `string`
|
|
16260
16440
|
|
|
16261
|
-
Defined in: [lib/control.ts:
|
|
16441
|
+
Defined in: [lib/control.ts:1743](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1743)
|
|
16262
16442
|
|
|
16263
16443
|
默认 255
|
|
16264
16444
|
|
|
@@ -16268,7 +16448,7 @@ Defined in: [lib/control.ts:1731](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16268
16448
|
|
|
16269
16449
|
> `optional` **name?**: `string`
|
|
16270
16450
|
|
|
16271
|
-
Defined in: [lib/control.ts:
|
|
16451
|
+
Defined in: [lib/control.ts:1739](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1739)
|
|
16272
16452
|
|
|
16273
16453
|
-- 可自定义线段的名称
|
|
16274
16454
|
|
|
@@ -16278,7 +16458,7 @@ Defined in: [lib/control.ts:1727](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16278
16458
|
|
|
16279
16459
|
> `optional` **path?**: `string`
|
|
16280
16460
|
|
|
16281
|
-
Defined in: [lib/control.ts:
|
|
16461
|
+
Defined in: [lib/control.ts:1744](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1744)
|
|
16282
16462
|
|
|
16283
16463
|
***
|
|
16284
16464
|
|
|
@@ -16286,7 +16466,7 @@ Defined in: [lib/control.ts:1732](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16286
16466
|
|
|
16287
16467
|
> **start**: [`IObjviewerLineObj`](IObjviewerLineObj.md)
|
|
16288
16468
|
|
|
16289
|
-
Defined in: [lib/control.ts:
|
|
16469
|
+
Defined in: [lib/control.ts:1740](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1740)
|
|
16290
16470
|
|
|
16291
16471
|
***
|
|
16292
16472
|
|
|
@@ -16294,7 +16474,7 @@ Defined in: [lib/control.ts:1728](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16294
16474
|
|
|
16295
16475
|
> `optional` **stroke?**: `"solid"` \| `"dashed"` \| `"up"` \| `"down"`
|
|
16296
16476
|
|
|
16297
|
-
Defined in: [lib/control.ts:
|
|
16477
|
+
Defined in: [lib/control.ts:1746](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1746)
|
|
16298
16478
|
|
|
16299
16479
|
默认 solid
|
|
16300
16480
|
|
|
@@ -16309,7 +16489,7 @@ lib/control/interfaces/IObjviewerLineObj.md
|
|
|
16309
16489
|
|
|
16310
16490
|
# Interface: IObjviewerLineObj
|
|
16311
16491
|
|
|
16312
|
-
Defined in: [lib/control.ts:
|
|
16492
|
+
Defined in: [lib/control.ts:1749](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1749)
|
|
16313
16493
|
|
|
16314
16494
|
## Properties
|
|
16315
16495
|
|
|
@@ -16317,7 +16497,7 @@ Defined in: [lib/control.ts:1737](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16317
16497
|
|
|
16318
16498
|
> **obj**: `HTMLElement` \| [`AbstractControl`](../classes/AbstractControl.md)
|
|
16319
16499
|
|
|
16320
|
-
Defined in: [lib/control.ts:
|
|
16500
|
+
Defined in: [lib/control.ts:1750](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1750)
|
|
16321
16501
|
|
|
16322
16502
|
***
|
|
16323
16503
|
|
|
@@ -16325,7 +16505,7 @@ Defined in: [lib/control.ts:1738](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16325
16505
|
|
|
16326
16506
|
> **pos**: `"b"` \| `"tr"` \| `"l"` \| `"lt"` \| `"t"` \| `"r"` \| `"rb"` \| `"bl"`
|
|
16327
16507
|
|
|
16328
|
-
Defined in: [lib/control.ts:
|
|
16508
|
+
Defined in: [lib/control.ts:1751](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1751)
|
|
16329
16509
|
|
|
16330
16510
|
lib/control/interfaces/IPaletteChangedEvent.md
|
|
16331
16511
|
---
|
|
@@ -16338,7 +16518,7 @@ lib/control/interfaces/IPaletteChangedEvent.md
|
|
|
16338
16518
|
|
|
16339
16519
|
# Interface: IPaletteChangedEvent
|
|
16340
16520
|
|
|
16341
|
-
Defined in: [lib/control.ts:
|
|
16521
|
+
Defined in: [lib/control.ts:1509](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1509)
|
|
16342
16522
|
|
|
16343
16523
|
## Properties
|
|
16344
16524
|
|
|
@@ -16346,7 +16526,7 @@ Defined in: [lib/control.ts:1497](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16346
16526
|
|
|
16347
16527
|
> **detail**: `object`
|
|
16348
16528
|
|
|
16349
|
-
Defined in: [lib/control.ts:
|
|
16529
|
+
Defined in: [lib/control.ts:1510](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1510)
|
|
16350
16530
|
|
|
16351
16531
|
#### hsl?
|
|
16352
16532
|
|
|
@@ -16407,7 +16587,7 @@ lib/control/interfaces/IPanelGoEvent.md
|
|
|
16407
16587
|
|
|
16408
16588
|
# Interface: IPanelGoEvent
|
|
16409
16589
|
|
|
16410
|
-
Defined in: [lib/control.ts:
|
|
16590
|
+
Defined in: [lib/control.ts:1481](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1481)
|
|
16411
16591
|
|
|
16412
16592
|
Custom Event
|
|
16413
16593
|
|
|
@@ -16421,7 +16601,7 @@ Custom Event
|
|
|
16421
16601
|
|
|
16422
16602
|
> **detail**: `object`
|
|
16423
16603
|
|
|
16424
|
-
Defined in: [lib/control.ts:
|
|
16604
|
+
Defined in: [lib/control.ts:1482](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1482)
|
|
16425
16605
|
|
|
16426
16606
|
#### from
|
|
16427
16607
|
|
|
@@ -16470,7 +16650,7 @@ lib/control/interfaces/IPanelWentEvent.md
|
|
|
16470
16650
|
|
|
16471
16651
|
# Interface: IPanelWentEvent
|
|
16472
16652
|
|
|
16473
|
-
Defined in: [lib/control.ts:
|
|
16653
|
+
Defined in: [lib/control.ts:1488](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1488)
|
|
16474
16654
|
|
|
16475
16655
|
## Properties
|
|
16476
16656
|
|
|
@@ -16478,7 +16658,7 @@ Defined in: [lib/control.ts:1476](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16478
16658
|
|
|
16479
16659
|
> **detail**: `object`
|
|
16480
16660
|
|
|
16481
|
-
Defined in: [lib/control.ts:
|
|
16661
|
+
Defined in: [lib/control.ts:1489](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1489)
|
|
16482
16662
|
|
|
16483
16663
|
#### from
|
|
16484
16664
|
|
|
@@ -16705,7 +16885,7 @@ lib/control/interfaces/IRadioChangeEvent.md
|
|
|
16705
16885
|
|
|
16706
16886
|
# Interface: IRadioChangeEvent
|
|
16707
16887
|
|
|
16708
|
-
Defined in: [lib/control.ts:
|
|
16888
|
+
Defined in: [lib/control.ts:1498](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1498)
|
|
16709
16889
|
|
|
16710
16890
|
Custom Event
|
|
16711
16891
|
|
|
@@ -16719,7 +16899,7 @@ Custom Event
|
|
|
16719
16899
|
|
|
16720
16900
|
> **detail**: `object`
|
|
16721
16901
|
|
|
16722
|
-
Defined in: [lib/control.ts:
|
|
16902
|
+
Defined in: [lib/control.ts:1499](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1499)
|
|
16723
16903
|
|
|
16724
16904
|
#### selected
|
|
16725
16905
|
|
|
@@ -16772,7 +16952,7 @@ lib/control/interfaces/ISelectAddedEvent.md
|
|
|
16772
16952
|
|
|
16773
16953
|
# Interface: ISelectAddedEvent
|
|
16774
16954
|
|
|
16775
|
-
Defined in: [lib/control.ts:
|
|
16955
|
+
Defined in: [lib/control.ts:1568](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1568)
|
|
16776
16956
|
|
|
16777
16957
|
## Properties
|
|
16778
16958
|
|
|
@@ -16780,7 +16960,7 @@ Defined in: [lib/control.ts:1556](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16780
16960
|
|
|
16781
16961
|
> **detail**: `object`
|
|
16782
16962
|
|
|
16783
|
-
Defined in: [lib/control.ts:
|
|
16963
|
+
Defined in: [lib/control.ts:1569](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1569)
|
|
16784
16964
|
|
|
16785
16965
|
#### index
|
|
16786
16966
|
|
|
@@ -16801,7 +16981,7 @@ lib/control/interfaces/ISelectAddEvent.md
|
|
|
16801
16981
|
|
|
16802
16982
|
# Interface: ISelectAddEvent
|
|
16803
16983
|
|
|
16804
|
-
Defined in: [lib/control.ts:
|
|
16984
|
+
Defined in: [lib/control.ts:1553](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1553)
|
|
16805
16985
|
|
|
16806
16986
|
Custom Event
|
|
16807
16987
|
|
|
@@ -16815,7 +16995,7 @@ Custom Event
|
|
|
16815
16995
|
|
|
16816
16996
|
> **detail**: `object`
|
|
16817
16997
|
|
|
16818
|
-
Defined in: [lib/control.ts:
|
|
16998
|
+
Defined in: [lib/control.ts:1554](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1554)
|
|
16819
16999
|
|
|
16820
17000
|
#### index
|
|
16821
17001
|
|
|
@@ -16864,7 +17044,7 @@ lib/control/interfaces/ISelectChangedEvent.md
|
|
|
16864
17044
|
|
|
16865
17045
|
# Interface: ISelectChangedEvent
|
|
16866
17046
|
|
|
16867
|
-
Defined in: [lib/control.ts:
|
|
17047
|
+
Defined in: [lib/control.ts:1589](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1589)
|
|
16868
17048
|
|
|
16869
17049
|
## Properties
|
|
16870
17050
|
|
|
@@ -16872,7 +17052,7 @@ Defined in: [lib/control.ts:1577](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16872
17052
|
|
|
16873
17053
|
> **detail**: `object`
|
|
16874
17054
|
|
|
16875
|
-
Defined in: [lib/control.ts:
|
|
17055
|
+
Defined in: [lib/control.ts:1590](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1590)
|
|
16876
17056
|
|
|
16877
17057
|
#### before
|
|
16878
17058
|
|
|
@@ -16893,7 +17073,7 @@ lib/control/interfaces/ISelectChangeEvent.md
|
|
|
16893
17073
|
|
|
16894
17074
|
# Interface: ISelectChangeEvent
|
|
16895
17075
|
|
|
16896
|
-
Defined in: [lib/control.ts:
|
|
17076
|
+
Defined in: [lib/control.ts:1583](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1583)
|
|
16897
17077
|
|
|
16898
17078
|
Custom Event
|
|
16899
17079
|
|
|
@@ -16907,7 +17087,7 @@ Custom Event
|
|
|
16907
17087
|
|
|
16908
17088
|
> **detail**: `object`
|
|
16909
17089
|
|
|
16910
|
-
Defined in: [lib/control.ts:
|
|
17090
|
+
Defined in: [lib/control.ts:1584](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1584)
|
|
16911
17091
|
|
|
16912
17092
|
#### value
|
|
16913
17093
|
|
|
@@ -16952,7 +17132,7 @@ lib/control/interfaces/ISelectItemclickedEvent.md
|
|
|
16952
17132
|
|
|
16953
17133
|
# Interface: ISelectItemclickedEvent
|
|
16954
17134
|
|
|
16955
|
-
Defined in: [lib/control.ts:
|
|
17135
|
+
Defined in: [lib/control.ts:1611](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1611)
|
|
16956
17136
|
|
|
16957
17137
|
## Properties
|
|
16958
17138
|
|
|
@@ -16960,7 +17140,7 @@ Defined in: [lib/control.ts:1599](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16960
17140
|
|
|
16961
17141
|
> **detail**: `object`
|
|
16962
17142
|
|
|
16963
|
-
Defined in: [lib/control.ts:
|
|
17143
|
+
Defined in: [lib/control.ts:1612](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1612)
|
|
16964
17144
|
|
|
16965
17145
|
#### arrow
|
|
16966
17146
|
|
|
@@ -16985,7 +17165,7 @@ lib/control/interfaces/ISelectRemoteEvent.md
|
|
|
16985
17165
|
|
|
16986
17166
|
# Interface: ISelectRemoteEvent
|
|
16987
17167
|
|
|
16988
|
-
Defined in: [lib/control.ts:
|
|
17168
|
+
Defined in: [lib/control.ts:1603](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1603)
|
|
16989
17169
|
|
|
16990
17170
|
## Properties
|
|
16991
17171
|
|
|
@@ -16993,7 +17173,7 @@ Defined in: [lib/control.ts:1591](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16993
17173
|
|
|
16994
17174
|
> **detail**: `object`
|
|
16995
17175
|
|
|
16996
|
-
Defined in: [lib/control.ts:
|
|
17176
|
+
Defined in: [lib/control.ts:1604](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1604)
|
|
16997
17177
|
|
|
16998
17178
|
#### callback
|
|
16999
17179
|
|
|
@@ -17026,7 +17206,7 @@ lib/control/interfaces/ISelectRemovedEvent.md
|
|
|
17026
17206
|
|
|
17027
17207
|
# Interface: ISelectRemovedEvent
|
|
17028
17208
|
|
|
17029
|
-
Defined in: [lib/control.ts:
|
|
17209
|
+
Defined in: [lib/control.ts:1575](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1575)
|
|
17030
17210
|
|
|
17031
17211
|
## Properties
|
|
17032
17212
|
|
|
@@ -17034,7 +17214,7 @@ Defined in: [lib/control.ts:1563](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17034
17214
|
|
|
17035
17215
|
> **detail**: `object`
|
|
17036
17216
|
|
|
17037
|
-
Defined in: [lib/control.ts:
|
|
17217
|
+
Defined in: [lib/control.ts:1576](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1576)
|
|
17038
17218
|
|
|
17039
17219
|
#### index
|
|
17040
17220
|
|
|
@@ -17059,7 +17239,7 @@ lib/control/interfaces/ISelectRemoveEvent.md
|
|
|
17059
17239
|
|
|
17060
17240
|
# Interface: ISelectRemoveEvent
|
|
17061
17241
|
|
|
17062
|
-
Defined in: [lib/control.ts:
|
|
17242
|
+
Defined in: [lib/control.ts:1560](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1560)
|
|
17063
17243
|
|
|
17064
17244
|
Custom Event
|
|
17065
17245
|
|
|
@@ -17073,7 +17253,7 @@ Custom Event
|
|
|
17073
17253
|
|
|
17074
17254
|
> **detail**: `object`
|
|
17075
17255
|
|
|
17076
|
-
Defined in: [lib/control.ts:
|
|
17256
|
+
Defined in: [lib/control.ts:1561](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1561)
|
|
17077
17257
|
|
|
17078
17258
|
#### index
|
|
17079
17259
|
|
|
@@ -17126,7 +17306,7 @@ lib/control/interfaces/ISelectTagclickEvent.md
|
|
|
17126
17306
|
|
|
17127
17307
|
# Interface: ISelectTagclickEvent
|
|
17128
17308
|
|
|
17129
|
-
Defined in: [lib/control.ts:
|
|
17309
|
+
Defined in: [lib/control.ts:1596](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1596)
|
|
17130
17310
|
|
|
17131
17311
|
## Properties
|
|
17132
17312
|
|
|
@@ -17134,7 +17314,7 @@ Defined in: [lib/control.ts:1584](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17134
17314
|
|
|
17135
17315
|
> **detail**: `object`
|
|
17136
17316
|
|
|
17137
|
-
Defined in: [lib/control.ts:
|
|
17317
|
+
Defined in: [lib/control.ts:1597](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1597)
|
|
17138
17318
|
|
|
17139
17319
|
#### index
|
|
17140
17320
|
|
|
@@ -17155,7 +17335,7 @@ lib/control/interfaces/IStabChangeEvent.md
|
|
|
17155
17335
|
|
|
17156
17336
|
# Interface: IStabChangeEvent
|
|
17157
17337
|
|
|
17158
|
-
Defined in: [lib/control.ts:
|
|
17338
|
+
Defined in: [lib/control.ts:1621](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1621)
|
|
17159
17339
|
|
|
17160
17340
|
Custom Event
|
|
17161
17341
|
|
|
@@ -17169,7 +17349,7 @@ Custom Event
|
|
|
17169
17349
|
|
|
17170
17350
|
> **detail**: `object`
|
|
17171
17351
|
|
|
17172
|
-
Defined in: [lib/control.ts:
|
|
17352
|
+
Defined in: [lib/control.ts:1622](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1622)
|
|
17173
17353
|
|
|
17174
17354
|
#### value
|
|
17175
17355
|
|
|
@@ -17214,7 +17394,7 @@ lib/control/interfaces/IStepClickedEvent.md
|
|
|
17214
17394
|
|
|
17215
17395
|
# Interface: IStepClickedEvent
|
|
17216
17396
|
|
|
17217
|
-
Defined in: [lib/control.ts:
|
|
17397
|
+
Defined in: [lib/control.ts:1691](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1691)
|
|
17218
17398
|
|
|
17219
17399
|
## Properties
|
|
17220
17400
|
|
|
@@ -17222,7 +17402,7 @@ Defined in: [lib/control.ts:1679](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17222
17402
|
|
|
17223
17403
|
> **detail**: `object`
|
|
17224
17404
|
|
|
17225
|
-
Defined in: [lib/control.ts:
|
|
17405
|
+
Defined in: [lib/control.ts:1692](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1692)
|
|
17226
17406
|
|
|
17227
17407
|
#### index
|
|
17228
17408
|
|
|
@@ -17247,7 +17427,7 @@ lib/control/interfaces/ISwitchChangeEvent.md
|
|
|
17247
17427
|
|
|
17248
17428
|
# Interface: ISwitchChangeEvent
|
|
17249
17429
|
|
|
17250
|
-
Defined in: [lib/control.ts:
|
|
17430
|
+
Defined in: [lib/control.ts:1629](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1629)
|
|
17251
17431
|
|
|
17252
17432
|
Custom Event
|
|
17253
17433
|
|
|
@@ -17261,7 +17441,7 @@ Custom Event
|
|
|
17261
17441
|
|
|
17262
17442
|
> **detail**: `object`
|
|
17263
17443
|
|
|
17264
|
-
Defined in: [lib/control.ts:
|
|
17444
|
+
Defined in: [lib/control.ts:1630](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1630)
|
|
17265
17445
|
|
|
17266
17446
|
#### value
|
|
17267
17447
|
|
|
@@ -17306,7 +17486,7 @@ lib/control/interfaces/ITabChangedEvent.md
|
|
|
17306
17486
|
|
|
17307
17487
|
# Interface: ITabChangedEvent
|
|
17308
17488
|
|
|
17309
|
-
Defined in: [lib/control.ts:
|
|
17489
|
+
Defined in: [lib/control.ts:1643](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1643)
|
|
17310
17490
|
|
|
17311
17491
|
## Properties
|
|
17312
17492
|
|
|
@@ -17314,7 +17494,7 @@ Defined in: [lib/control.ts:1631](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17314
17494
|
|
|
17315
17495
|
> **detail**: `object`
|
|
17316
17496
|
|
|
17317
|
-
Defined in: [lib/control.ts:
|
|
17497
|
+
Defined in: [lib/control.ts:1644](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1644)
|
|
17318
17498
|
|
|
17319
17499
|
#### value
|
|
17320
17500
|
|
|
@@ -17331,7 +17511,7 @@ lib/control/interfaces/ITabChangeEvent.md
|
|
|
17331
17511
|
|
|
17332
17512
|
# Interface: ITabChangeEvent
|
|
17333
17513
|
|
|
17334
|
-
Defined in: [lib/control.ts:
|
|
17514
|
+
Defined in: [lib/control.ts:1637](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1637)
|
|
17335
17515
|
|
|
17336
17516
|
Custom Event
|
|
17337
17517
|
|
|
@@ -17345,7 +17525,7 @@ Custom Event
|
|
|
17345
17525
|
|
|
17346
17526
|
> **detail**: `object`
|
|
17347
17527
|
|
|
17348
|
-
Defined in: [lib/control.ts:
|
|
17528
|
+
Defined in: [lib/control.ts:1638](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1638)
|
|
17349
17529
|
|
|
17350
17530
|
#### value
|
|
17351
17531
|
|
|
@@ -17390,7 +17570,7 @@ lib/control/interfaces/ITabCloseEvent.md
|
|
|
17390
17570
|
|
|
17391
17571
|
# Interface: ITabCloseEvent
|
|
17392
17572
|
|
|
17393
|
-
Defined in: [lib/control.ts:
|
|
17573
|
+
Defined in: [lib/control.ts:1649](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1649)
|
|
17394
17574
|
|
|
17395
17575
|
Custom Event
|
|
17396
17576
|
|
|
@@ -17404,7 +17584,7 @@ Custom Event
|
|
|
17404
17584
|
|
|
17405
17585
|
> **detail**: `object`
|
|
17406
17586
|
|
|
17407
|
-
Defined in: [lib/control.ts:
|
|
17587
|
+
Defined in: [lib/control.ts:1650](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1650)
|
|
17408
17588
|
|
|
17409
17589
|
#### index
|
|
17410
17590
|
|
|
@@ -17453,7 +17633,7 @@ lib/control/interfaces/ITableSortEvent.md
|
|
|
17453
17633
|
|
|
17454
17634
|
# Interface: ITableSortEvent
|
|
17455
17635
|
|
|
17456
|
-
Defined in: [lib/control.ts:
|
|
17636
|
+
Defined in: [lib/control.ts:1658](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1658)
|
|
17457
17637
|
|
|
17458
17638
|
Custom Event
|
|
17459
17639
|
|
|
@@ -17467,7 +17647,7 @@ Custom Event
|
|
|
17467
17647
|
|
|
17468
17648
|
> **detail**: `object`
|
|
17469
17649
|
|
|
17470
|
-
Defined in: [lib/control.ts:
|
|
17650
|
+
Defined in: [lib/control.ts:1659](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1659)
|
|
17471
17651
|
|
|
17472
17652
|
#### index
|
|
17473
17653
|
|
|
@@ -17520,7 +17700,7 @@ lib/control/interfaces/ITagDropEvent.md
|
|
|
17520
17700
|
|
|
17521
17701
|
# Interface: ITagDropEvent
|
|
17522
17702
|
|
|
17523
|
-
Defined in: [lib/control.ts:
|
|
17703
|
+
Defined in: [lib/control.ts:1682](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1682)
|
|
17524
17704
|
|
|
17525
17705
|
## Properties
|
|
17526
17706
|
|
|
@@ -17528,7 +17708,7 @@ Defined in: [lib/control.ts:1670](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17528
17708
|
|
|
17529
17709
|
> **detail**: `object`
|
|
17530
17710
|
|
|
17531
|
-
Defined in: [lib/control.ts:
|
|
17711
|
+
Defined in: [lib/control.ts:1683](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1683)
|
|
17532
17712
|
|
|
17533
17713
|
#### after
|
|
17534
17714
|
|
|
@@ -17675,7 +17855,7 @@ lib/control/interfaces/ITuieditorImguploadEvent.md
|
|
|
17675
17855
|
|
|
17676
17856
|
# Interface: ITuieditorImguploadEvent
|
|
17677
17857
|
|
|
17678
|
-
Defined in: [lib/control.ts:
|
|
17858
|
+
Defined in: [lib/control.ts:1668](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1668)
|
|
17679
17859
|
|
|
17680
17860
|
## Properties
|
|
17681
17861
|
|
|
@@ -17683,7 +17863,7 @@ Defined in: [lib/control.ts:1656](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17683
17863
|
|
|
17684
17864
|
> **detail**: `object`
|
|
17685
17865
|
|
|
17686
|
-
Defined in: [lib/control.ts:
|
|
17866
|
+
Defined in: [lib/control.ts:1669](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1669)
|
|
17687
17867
|
|
|
17688
17868
|
#### callback
|
|
17689
17869
|
|
|
@@ -32525,7 +32705,7 @@ lib/native/interfaces/INativeLaunchEvent.md
|
|
|
32525
32705
|
|
|
32526
32706
|
# Interface: INativeLaunchEvent
|
|
32527
32707
|
|
|
32528
|
-
Defined in: lib/native/events.ts:5
|
|
32708
|
+
Defined in: [lib/native/events.ts:5](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L5)
|
|
32529
32709
|
|
|
32530
32710
|
普通 GUI 启动请求;CLI/stdio 由 Native 单独处理,不投递此事件
|
|
32531
32711
|
|
|
@@ -32535,7 +32715,7 @@ Defined in: lib/native/events.ts:5
|
|
|
32535
32715
|
|
|
32536
32716
|
> **args**: `string`[]
|
|
32537
32717
|
|
|
32538
|
-
Defined in: lib/native/events.ts:10
|
|
32718
|
+
Defined in: [lib/native/events.ts:10](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L10)
|
|
32539
32719
|
|
|
32540
32720
|
去掉可执行文件和开发入口后的业务参数,保留顺序
|
|
32541
32721
|
|
|
@@ -32545,7 +32725,7 @@ Defined in: lib/native/events.ts:10
|
|
|
32545
32725
|
|
|
32546
32726
|
> **cwd**: `string`
|
|
32547
32727
|
|
|
32548
|
-
Defined in: lib/native/events.ts:12
|
|
32728
|
+
Defined in: [lib/native/events.ts:12](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L12)
|
|
32549
32729
|
|
|
32550
32730
|
原生绝对工作目录,参数中的相对路径以此为基准
|
|
32551
32731
|
|
|
@@ -32555,7 +32735,7 @@ Defined in: lib/native/events.ts:12
|
|
|
32555
32735
|
|
|
32556
32736
|
> **requestId**: `number`
|
|
32557
32737
|
|
|
32558
|
-
Defined in: lib/native/events.ts:7
|
|
32738
|
+
Defined in: [lib/native/events.ts:7](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L7)
|
|
32559
32739
|
|
|
32560
32740
|
本进程内请求 ID;同一次启动的文件事件使用相同 ID
|
|
32561
32741
|
|
|
@@ -32565,7 +32745,7 @@ Defined in: lib/native/events.ts:7
|
|
|
32565
32745
|
|
|
32566
32746
|
> **source**: `"startup"` \| `"second-instance"`
|
|
32567
32747
|
|
|
32568
|
-
Defined in: lib/native/events.ts:8
|
|
32748
|
+
Defined in: [lib/native/events.ts:8](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L8)
|
|
32569
32749
|
|
|
32570
32750
|
lib/native/interfaces/INativeOpenFilesInfo.md
|
|
32571
32751
|
---
|
|
@@ -32578,7 +32758,7 @@ lib/native/interfaces/INativeOpenFilesInfo.md
|
|
|
32578
32758
|
|
|
32579
32759
|
# Interface: INativeOpenFilesInfo
|
|
32580
32760
|
|
|
32581
|
-
Defined in: lib/native/events.ts:16
|
|
32761
|
+
Defined in: [lib/native/events.ts:16](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L16)
|
|
32582
32762
|
|
|
32583
32763
|
文件事件上下文;paths 为不含 /storage/ 的 ClickGo 绝对文件路径
|
|
32584
32764
|
|
|
@@ -32588,7 +32768,7 @@ Defined in: lib/native/events.ts:16
|
|
|
32588
32768
|
|
|
32589
32769
|
> **requestId**: `number`
|
|
32590
32770
|
|
|
32591
|
-
Defined in: lib/native/events.ts:17
|
|
32771
|
+
Defined in: [lib/native/events.ts:17](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L17)
|
|
32592
32772
|
|
|
32593
32773
|
***
|
|
32594
32774
|
|
|
@@ -32596,7 +32776,7 @@ Defined in: lib/native/events.ts:17
|
|
|
32596
32776
|
|
|
32597
32777
|
> **source**: [`TNativeOpenFilesSource`](../type-aliases/TNativeOpenFilesSource.md)
|
|
32598
32778
|
|
|
32599
|
-
Defined in: lib/native/events.ts:18
|
|
32779
|
+
Defined in: [lib/native/events.ts:18](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L18)
|
|
32600
32780
|
|
|
32601
32781
|
lib/native/interfaces/IUpdateProgress.md
|
|
32602
32782
|
---
|
|
@@ -33081,7 +33261,7 @@ lib/native/type-aliases/TNativeOpenFilesSource.md
|
|
|
33081
33261
|
|
|
33082
33262
|
> **TNativeOpenFilesSource** = `"startup"` \| `"second-instance"` \| `"association"` \| `"drop"`
|
|
33083
33263
|
|
|
33084
|
-
Defined in: lib/native/events.ts:2
|
|
33264
|
+
Defined in: [lib/native/events.ts:2](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L2)
|
|
33085
33265
|
|
|
33086
33266
|
操作系统文件打开请求来源
|
|
33087
33267
|
|
|
@@ -35976,7 +36156,7 @@ lib/tool/enumerations/ESTATE.md
|
|
|
35976
36156
|
|
|
35977
36157
|
# Enumeration: ESTATE
|
|
35978
36158
|
|
|
35979
|
-
Defined in: [lib/tool.ts:
|
|
36159
|
+
Defined in: [lib/tool.ts:593](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L593)
|
|
35980
36160
|
|
|
35981
36161
|
状态机状态
|
|
35982
36162
|
|
|
@@ -35986,7 +36166,7 @@ Defined in: [lib/tool.ts:591](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
35986
36166
|
|
|
35987
36167
|
> **COMMENT**: `4`
|
|
35988
36168
|
|
|
35989
|
-
Defined in: [lib/tool.ts:
|
|
36169
|
+
Defined in: [lib/tool.ts:603](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L603)
|
|
35990
36170
|
|
|
35991
36171
|
注释
|
|
35992
36172
|
|
|
@@ -35996,7 +36176,7 @@ Defined in: [lib/tool.ts:601](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
35996
36176
|
|
|
35997
36177
|
> **NORMAL**: `0`
|
|
35998
36178
|
|
|
35999
|
-
Defined in: [lib/tool.ts:
|
|
36179
|
+
Defined in: [lib/tool.ts:595](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L595)
|
|
36000
36180
|
|
|
36001
36181
|
普通
|
|
36002
36182
|
|
|
@@ -36006,7 +36186,7 @@ Defined in: [lib/tool.ts:593](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36006
36186
|
|
|
36007
36187
|
> **REG**: `3`
|
|
36008
36188
|
|
|
36009
|
-
Defined in: [lib/tool.ts:
|
|
36189
|
+
Defined in: [lib/tool.ts:601](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L601)
|
|
36010
36190
|
|
|
36011
36191
|
正则
|
|
36012
36192
|
|
|
@@ -36016,7 +36196,7 @@ Defined in: [lib/tool.ts:599](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36016
36196
|
|
|
36017
36197
|
> **STRING**: `2`
|
|
36018
36198
|
|
|
36019
|
-
Defined in: [lib/tool.ts:
|
|
36199
|
+
Defined in: [lib/tool.ts:599](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L599)
|
|
36020
36200
|
|
|
36021
36201
|
字符串
|
|
36022
36202
|
|
|
@@ -36026,7 +36206,7 @@ Defined in: [lib/tool.ts:597](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36026
36206
|
|
|
36027
36207
|
> **WORD**: `1`
|
|
36028
36208
|
|
|
36029
|
-
Defined in: [lib/tool.ts:
|
|
36209
|
+
Defined in: [lib/tool.ts:597](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L597)
|
|
36030
36210
|
|
|
36031
36211
|
单词
|
|
36032
36212
|
|
|
@@ -36043,7 +36223,7 @@ lib/tool/functions/blob2ArrayBuffer.md
|
|
|
36043
36223
|
|
|
36044
36224
|
> **blob2ArrayBuffer**(`blob`): `Promise`\<`ArrayBuffer`\>
|
|
36045
36225
|
|
|
36046
|
-
Defined in: [lib/tool.ts:
|
|
36226
|
+
Defined in: [lib/tool.ts:71](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L71)
|
|
36047
36227
|
|
|
36048
36228
|
将 blob 对象转换为 ArrayBuffer
|
|
36049
36229
|
|
|
@@ -36072,7 +36252,7 @@ lib/tool/functions/blob2DataUrl.md
|
|
|
36072
36252
|
|
|
36073
36253
|
> **blob2DataUrl**(`blob`): `Promise`\<`string`\>
|
|
36074
36254
|
|
|
36075
|
-
Defined in: [lib/tool.ts:
|
|
36255
|
+
Defined in: [lib/tool.ts:494](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L494)
|
|
36076
36256
|
|
|
36077
36257
|
将 blob 对象转换为 base64 url
|
|
36078
36258
|
|
|
@@ -36103,7 +36283,7 @@ lib/tool/functions/blob2Text.md
|
|
|
36103
36283
|
|
|
36104
36284
|
> **blob2Text**(`blob`): `Promise`\<`string`\>
|
|
36105
36285
|
|
|
36106
|
-
Defined in: [lib/tool.ts:
|
|
36286
|
+
Defined in: [lib/tool.ts:485](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L485)
|
|
36107
36287
|
|
|
36108
36288
|
将 blob 对象转换为 text
|
|
36109
36289
|
|
|
@@ -36132,7 +36312,7 @@ lib/tool/functions/clone.md
|
|
|
36132
36312
|
|
|
36133
36313
|
> **clone**\<`T`\>(`obj`): `T`
|
|
36134
36314
|
|
|
36135
|
-
Defined in: [lib/tool.ts:
|
|
36315
|
+
Defined in: [lib/tool.ts:98](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L98)
|
|
36136
36316
|
|
|
36137
36317
|
完整的克隆一份数组/对象
|
|
36138
36318
|
|
|
@@ -36169,7 +36349,7 @@ lib/tool/functions/compar.md
|
|
|
36169
36349
|
|
|
36170
36350
|
> **compar**(`before`, `after`): `object`
|
|
36171
36351
|
|
|
36172
|
-
Defined in: [lib/tool.ts:
|
|
36352
|
+
Defined in: [lib/tool.ts:507](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L507)
|
|
36173
36353
|
|
|
36174
36354
|
- 对比老值和新值,看看新值中哪些移除了,哪些新增了
|
|
36175
36355
|
|
|
@@ -36224,7 +36404,7 @@ lib/tool/functions/compressor.md
|
|
|
36224
36404
|
|
|
36225
36405
|
> **compressor**\<`T`\>(`file`, `options?`): `Promise`\<`false` \| `T`\>
|
|
36226
36406
|
|
|
36227
|
-
Defined in: [lib/tool.ts:
|
|
36407
|
+
Defined in: [lib/tool.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L35)
|
|
36228
36408
|
|
|
36229
36409
|
压缩一个图片
|
|
36230
36410
|
|
|
@@ -36268,6 +36448,80 @@ Defined in: [lib/tool.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
36268
36448
|
|
|
36269
36449
|
`Promise`\<`false` \| `T`\>
|
|
36270
36450
|
|
|
36451
|
+
lib/tool/functions/decodeText.md
|
|
36452
|
+
---
|
|
36453
|
+
|
|
36454
|
+
[**Documents for clickgo**](../../../index.md)
|
|
36455
|
+
|
|
36456
|
+
***
|
|
36457
|
+
|
|
36458
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / decodeText
|
|
36459
|
+
|
|
36460
|
+
# Function: decodeText()
|
|
36461
|
+
|
|
36462
|
+
> **decodeText**(`data`, `encoding?`): `false` \| [`IDecodedText`](../interfaces/IDecodedText.md)
|
|
36463
|
+
|
|
36464
|
+
Defined in: [lib/tool/encoding.ts:23](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L23)
|
|
36465
|
+
|
|
36466
|
+
严格解码文本;自动模式按 BOM 识别,否则采用 UTF-8,不猜测传统编码
|
|
36467
|
+
|
|
36468
|
+
## Parameters
|
|
36469
|
+
|
|
36470
|
+
### data
|
|
36471
|
+
|
|
36472
|
+
`ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\>
|
|
36473
|
+
|
|
36474
|
+
原始字节,Uint8Array 仅处理其视图范围
|
|
36475
|
+
|
|
36476
|
+
### encoding?
|
|
36477
|
+
|
|
36478
|
+
[`TTextEncoding`](../type-aliases/TTextEncoding.md)
|
|
36479
|
+
|
|
36480
|
+
显式编码;省略时自动识别,显式编码与 BOM 冲突时失败
|
|
36481
|
+
|
|
36482
|
+
## Returns
|
|
36483
|
+
|
|
36484
|
+
`false` \| [`IDecodedText`](../interfaces/IDecodedText.md)
|
|
36485
|
+
|
|
36486
|
+
正文与实际采用的编码/BOM;非法字节、不支持的编码或 UTF-32 BOM 为 false
|
|
36487
|
+
|
|
36488
|
+
lib/tool/functions/encodeText.md
|
|
36489
|
+
---
|
|
36490
|
+
|
|
36491
|
+
[**Documents for clickgo**](../../../index.md)
|
|
36492
|
+
|
|
36493
|
+
***
|
|
36494
|
+
|
|
36495
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / encodeText
|
|
36496
|
+
|
|
36497
|
+
# Function: encodeText()
|
|
36498
|
+
|
|
36499
|
+
> **encodeText**(`text`, `options?`): `false` \| `Uint8Array`\<`ArrayBuffer`\>
|
|
36500
|
+
|
|
36501
|
+
Defined in: [lib/tool/encoding.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L33)
|
|
36502
|
+
|
|
36503
|
+
将正文无损编码为字节,不自动规范化换行
|
|
36504
|
+
|
|
36505
|
+
## Parameters
|
|
36506
|
+
|
|
36507
|
+
### text
|
|
36508
|
+
|
|
36509
|
+
`string`
|
|
36510
|
+
|
|
36511
|
+
正文,不含文件头 BOM;正文自身的 U+FEFF 保留
|
|
36512
|
+
|
|
36513
|
+
### options?
|
|
36514
|
+
|
|
36515
|
+
[`ITextEncoding`](../interfaces/ITextEncoding.md) = `...`
|
|
36516
|
+
|
|
36517
|
+
编码及 BOM;默认 UTF-8 且无 BOM,GB18030 不允许 BOM
|
|
36518
|
+
|
|
36519
|
+
## Returns
|
|
36520
|
+
|
|
36521
|
+
`false` \| `Uint8Array`\<`ArrayBuffer`\>
|
|
36522
|
+
|
|
36523
|
+
新字节数组;非法 UTF-16 代理项、无损编码失败或无效选项为 false,不用替代字符
|
|
36524
|
+
|
|
36271
36525
|
lib/tool/functions/escapeHTML.md
|
|
36272
36526
|
---
|
|
36273
36527
|
|
|
@@ -36281,7 +36535,7 @@ lib/tool/functions/escapeHTML.md
|
|
|
36281
36535
|
|
|
36282
36536
|
> **escapeHTML**(`html`): `string`
|
|
36283
36537
|
|
|
36284
|
-
Defined in: [lib/tool.ts:
|
|
36538
|
+
Defined in: [lib/tool.ts:278](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L278)
|
|
36285
36539
|
|
|
36286
36540
|
转义 HTML
|
|
36287
36541
|
|
|
@@ -36310,7 +36564,7 @@ lib/tool/functions/eventsAttrWrap.md
|
|
|
36310
36564
|
|
|
36311
36565
|
> **eventsAttrWrap**(`layout`): `string`
|
|
36312
36566
|
|
|
36313
|
-
Defined in: [lib/tool.ts:
|
|
36567
|
+
Defined in: [lib/tool.ts:188](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L188)
|
|
36314
36568
|
|
|
36315
36569
|
对 layout 的 events 事件进行包裹
|
|
36316
36570
|
|
|
@@ -36339,7 +36593,7 @@ lib/tool/functions/execCommand.md
|
|
|
36339
36593
|
|
|
36340
36594
|
> **execCommand**(`ac`): `void`
|
|
36341
36595
|
|
|
36342
|
-
Defined in: [lib/tool.ts:
|
|
36596
|
+
Defined in: [lib/tool.ts:498](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L498)
|
|
36343
36597
|
|
|
36344
36598
|
## Parameters
|
|
36345
36599
|
|
|
@@ -36364,7 +36618,7 @@ lib/tool/functions/fetch.md
|
|
|
36364
36618
|
|
|
36365
36619
|
> **fetch**(`url`, `init?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
36366
36620
|
|
|
36367
|
-
Defined in: [lib/tool.ts:
|
|
36621
|
+
Defined in: [lib/tool.ts:377](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L377)
|
|
36368
36622
|
|
|
36369
36623
|
发起 fetch 请求
|
|
36370
36624
|
|
|
@@ -36401,7 +36655,7 @@ lib/tool/functions/formatColor.md
|
|
|
36401
36655
|
|
|
36402
36656
|
> **formatColor**(`color`): `number`[]
|
|
36403
36657
|
|
|
36404
|
-
Defined in: [lib/tool.ts:
|
|
36658
|
+
Defined in: [lib/tool.ts:294](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L294)
|
|
36405
36659
|
|
|
36406
36660
|
将 rgb 或 hsl 等颜色转换为数字数组
|
|
36407
36661
|
|
|
@@ -36430,7 +36684,7 @@ lib/tool/functions/formatSecond.md
|
|
|
36430
36684
|
|
|
36431
36685
|
> **formatSecond**(`second`): `string`
|
|
36432
36686
|
|
|
36433
|
-
Defined in: [lib/tool.ts:
|
|
36687
|
+
Defined in: [lib/tool.ts:519](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L519)
|
|
36434
36688
|
|
|
36435
36689
|
将秒数格式化为 0:0:0 的字符串
|
|
36436
36690
|
|
|
@@ -36457,7 +36711,7 @@ lib/tool/functions/formatTime.md
|
|
|
36457
36711
|
|
|
36458
36712
|
> **formatTime**(`ts`, `tz?`): `object`
|
|
36459
36713
|
|
|
36460
|
-
Defined in: [lib/tool.ts:
|
|
36714
|
+
Defined in: [lib/tool.ts:528](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L528)
|
|
36461
36715
|
|
|
36462
36716
|
将日期对象或毫秒级时间戳转换为字符串
|
|
36463
36717
|
|
|
@@ -36504,7 +36758,7 @@ lib/tool/functions/getArray.md
|
|
|
36504
36758
|
|
|
36505
36759
|
> **getArray**(`param`): `any`[]
|
|
36506
36760
|
|
|
36507
|
-
Defined in: [lib/tool.ts:
|
|
36761
|
+
Defined in: [lib/tool.ts:270](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L270)
|
|
36508
36762
|
|
|
36509
36763
|
根据参数获取最终的数组型,可传入类似 [1,2,3] 或 1,2,3
|
|
36510
36764
|
|
|
@@ -36533,7 +36787,7 @@ lib/tool/functions/getBoolean.md
|
|
|
36533
36787
|
|
|
36534
36788
|
> **getBoolean**(`param`): `boolean`
|
|
36535
36789
|
|
|
36536
|
-
Defined in: [lib/tool.ts:
|
|
36790
|
+
Defined in: [lib/tool.ts:254](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L254)
|
|
36537
36791
|
|
|
36538
36792
|
根据参数获取最终的布尔值
|
|
36539
36793
|
|
|
@@ -36562,7 +36816,7 @@ lib/tool/functions/getClassPrototype.md
|
|
|
36562
36816
|
|
|
36563
36817
|
> **getClassPrototype**(`obj`, `over?`, `level?`): [`IClassPrototype`](../interfaces/IClassPrototype.md)
|
|
36564
36818
|
|
|
36565
|
-
Defined in: [lib/tool.ts:
|
|
36819
|
+
Defined in: [lib/tool.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L63)
|
|
36566
36820
|
|
|
36567
36821
|
获取 class 的所有 method 和 get/set
|
|
36568
36822
|
|
|
@@ -36603,7 +36857,7 @@ lib/tool/functions/get.md
|
|
|
36603
36857
|
|
|
36604
36858
|
> **get**(`url`, `init?`, `opt?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
36605
36859
|
|
|
36606
|
-
Defined in: [lib/tool.ts:
|
|
36860
|
+
Defined in: [lib/tool.ts:388](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L388)
|
|
36607
36861
|
|
|
36608
36862
|
发起 GET 请求
|
|
36609
36863
|
|
|
@@ -36650,7 +36904,7 @@ lib/tool/functions/getMimeByPath.md
|
|
|
36650
36904
|
|
|
36651
36905
|
> **getMimeByPath**(`path`): `object`
|
|
36652
36906
|
|
|
36653
|
-
Defined in: [lib/tool.ts:
|
|
36907
|
+
Defined in: [lib/tool.ts:214](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L214)
|
|
36654
36908
|
|
|
36655
36909
|
根据后缀、文件名或路径获取 mime 类型(简单版,完整版请使用 @litert/mime.js)
|
|
36656
36910
|
|
|
@@ -36687,7 +36941,7 @@ lib/tool/functions/getNumber.md
|
|
|
36687
36941
|
|
|
36688
36942
|
> **getNumber**(`param`): `number`
|
|
36689
36943
|
|
|
36690
|
-
Defined in: [lib/tool.ts:
|
|
36944
|
+
Defined in: [lib/tool.ts:262](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L262)
|
|
36691
36945
|
|
|
36692
36946
|
根据参数获取最终的数字型
|
|
36693
36947
|
|
|
@@ -36716,7 +36970,7 @@ lib/tool/functions/getResponseJson.md
|
|
|
36716
36970
|
|
|
36717
36971
|
> **getResponseJson**(`url`, `init?`): `Promise`\<`any`\>
|
|
36718
36972
|
|
|
36719
|
-
Defined in: [lib/tool.ts:
|
|
36973
|
+
Defined in: [lib/tool.ts:414](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L414)
|
|
36720
36974
|
|
|
36721
36975
|
发起 GET 请求并解析 JSON 响应
|
|
36722
36976
|
|
|
@@ -36753,7 +37007,7 @@ lib/tool/functions/hex2rgb.md
|
|
|
36753
37007
|
|
|
36754
37008
|
> **hex2rgb**(`hex`): `object`
|
|
36755
37009
|
|
|
36756
|
-
Defined in: [lib/tool.ts:
|
|
37010
|
+
Defined in: [lib/tool.ts:312](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L312)
|
|
36757
37011
|
|
|
36758
37012
|
hex 转换为 rgba,#27ae60ff, 27ae60 #fff
|
|
36759
37013
|
|
|
@@ -36802,7 +37056,7 @@ lib/tool/functions/hsl2rgb.md
|
|
|
36802
37056
|
|
|
36803
37057
|
> **hsl2rgb**(`h`, `s?`, `l?`, `a?`, `decimal?`): `object`
|
|
36804
37058
|
|
|
36805
|
-
Defined in: [lib/tool.ts:
|
|
37059
|
+
Defined in: [lib/tool.ts:350](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L350)
|
|
36806
37060
|
|
|
36807
37061
|
hsl 字符串转 rgb 数组
|
|
36808
37062
|
|
|
@@ -36875,7 +37129,7 @@ lib/tool/functions/isEscapeChar.md
|
|
|
36875
37129
|
|
|
36876
37130
|
> **isEscapeChar**(`code`, `index`): `boolean`
|
|
36877
37131
|
|
|
36878
|
-
Defined in: [lib/tool.ts:
|
|
37132
|
+
Defined in: [lib/tool.ts:588](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L588)
|
|
36879
37133
|
|
|
36880
37134
|
判断字符是否是转义字符
|
|
36881
37135
|
|
|
@@ -36912,7 +37166,7 @@ lib/tool/functions/isEscaped.md
|
|
|
36912
37166
|
|
|
36913
37167
|
> **isEscaped**(`str`, `pos`): `boolean`
|
|
36914
37168
|
|
|
36915
|
-
Defined in: [lib/tool.ts:
|
|
37169
|
+
Defined in: [lib/tool.ts:568](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L568)
|
|
36916
37170
|
|
|
36917
37171
|
转义字符检查
|
|
36918
37172
|
检查指定位置的字符是否被转义
|
|
@@ -36950,7 +37204,7 @@ lib/tool/functions/isFalsy.md
|
|
|
36950
37204
|
|
|
36951
37205
|
> **isFalsy**(`val`): `val is TFalsy`
|
|
36952
37206
|
|
|
36953
|
-
Defined in: [lib/tool.ts:
|
|
37207
|
+
Defined in: [lib/tool.ts:713](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L713)
|
|
36954
37208
|
|
|
36955
37209
|
判断一个值是否是虚假的(为 null/undefined/空字符串/false/0)
|
|
36956
37210
|
|
|
@@ -36979,7 +37233,7 @@ lib/tool/functions/isJson.md
|
|
|
36979
37233
|
|
|
36980
37234
|
> **isJson**(`value`): `value is TJson`
|
|
36981
37235
|
|
|
36982
|
-
Defined in: [lib/tool.ts:
|
|
37236
|
+
Defined in: [lib/tool.ts:705](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L705)
|
|
36983
37237
|
|
|
36984
37238
|
判断 JS 值是否符合 JSON 数据约束;字符串按数据值接受,不解析其内容
|
|
36985
37239
|
|
|
@@ -37010,7 +37264,7 @@ lib/tool/functions/isMs.md
|
|
|
37010
37264
|
|
|
37011
37265
|
> **isMs**(`time`): `boolean`
|
|
37012
37266
|
|
|
37013
|
-
Defined in: [lib/tool.ts:
|
|
37267
|
+
Defined in: [lib/tool.ts:540](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L540)
|
|
37014
37268
|
|
|
37015
37269
|
是否是毫秒
|
|
37016
37270
|
|
|
@@ -37039,7 +37293,7 @@ lib/tool/functions/isTruthy.md
|
|
|
37039
37293
|
|
|
37040
37294
|
> **isTruthy**(`val`): `val is any`
|
|
37041
37295
|
|
|
37042
|
-
Defined in: [lib/tool.ts:
|
|
37296
|
+
Defined in: [lib/tool.ts:721](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L721)
|
|
37043
37297
|
|
|
37044
37298
|
判断一个值是否是真实的(不为 null/undefined/空字符串/false/0)
|
|
37045
37299
|
|
|
@@ -37068,7 +37322,7 @@ lib/tool/functions/layoutAddTagClassAndReTagName.md
|
|
|
37068
37322
|
|
|
37069
37323
|
> **layoutAddTagClassAndReTagName**(`layout`, `retagname`): `string`
|
|
37070
37324
|
|
|
37071
|
-
Defined in: [lib/tool.ts:
|
|
37325
|
+
Defined in: [lib/tool.ts:161](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L161)
|
|
37072
37326
|
|
|
37073
37327
|
给标签增加 tag-tagname 的 class,同时给标签增加 cg- 前导(仅字符串,不是操作真实 dom)
|
|
37074
37328
|
|
|
@@ -37103,7 +37357,7 @@ lib/tool/functions/layoutClassPrepend.md
|
|
|
37103
37357
|
|
|
37104
37358
|
> **layoutClassPrepend**(`layout`, `preps`): `string`
|
|
37105
37359
|
|
|
37106
|
-
Defined in: [lib/tool.ts:
|
|
37360
|
+
Defined in: [lib/tool.ts:180](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L180)
|
|
37107
37361
|
|
|
37108
37362
|
给 class 增加 scope 的随机前缀,给 id 新增前缀
|
|
37109
37363
|
|
|
@@ -37138,7 +37392,7 @@ lib/tool/functions/layoutInsertAttr.md
|
|
|
37138
37392
|
|
|
37139
37393
|
> **layoutInsertAttr**(`layout`, `insert`, `opt?`): `string`
|
|
37140
37394
|
|
|
37141
|
-
Defined in: [lib/tool.ts:
|
|
37395
|
+
Defined in: [lib/tool.ts:171](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L171)
|
|
37142
37396
|
|
|
37143
37397
|
给标签追加 attr,即使 attr 存在也会追加上一个新的(非真实 DOM 操作,仅仅是对字符串进行处理)
|
|
37144
37398
|
|
|
@@ -37185,7 +37439,7 @@ lib/tool/functions/loadAssets.md
|
|
|
37185
37439
|
|
|
37186
37440
|
> **loadAssets**(`urls`, `opt?`): `Promise`\<`boolean`\>
|
|
37187
37441
|
|
|
37188
|
-
Defined in: [lib/tool.ts:
|
|
37442
|
+
Defined in: [lib/tool.ts:686](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L686)
|
|
37189
37443
|
|
|
37190
37444
|
批量并行加载 JS 和 CSS;JS 按列表顺序执行,CSS 按列表顺序插入
|
|
37191
37445
|
|
|
@@ -37224,7 +37478,7 @@ lib/tool/functions/loadLink.md
|
|
|
37224
37478
|
|
|
37225
37479
|
> **loadLink**(`url`, `pos?`): `Promise`\<`boolean`\>
|
|
37226
37480
|
|
|
37227
|
-
Defined in: [lib/tool.ts:
|
|
37481
|
+
Defined in: [lib/tool.ts:665](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L665)
|
|
37228
37482
|
|
|
37229
37483
|
加载 css 文件
|
|
37230
37484
|
|
|
@@ -37259,7 +37513,7 @@ lib/tool/functions/loadLinks.md
|
|
|
37259
37513
|
|
|
37260
37514
|
> **loadLinks**(`urls`, `opt?`): `Promise`\<`void`\>
|
|
37261
37515
|
|
|
37262
|
-
Defined in: [lib/tool.ts:
|
|
37516
|
+
Defined in: [lib/tool.ts:674](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L674)
|
|
37263
37517
|
|
|
37264
37518
|
批量加载 css 文件
|
|
37265
37519
|
|
|
@@ -37296,7 +37550,7 @@ lib/tool/functions/loadScript.md
|
|
|
37296
37550
|
|
|
37297
37551
|
> **loadScript**(`url`, `ordered?`): `Promise`\<`boolean`\>
|
|
37298
37552
|
|
|
37299
|
-
Defined in: [lib/tool.ts:
|
|
37553
|
+
Defined in: [lib/tool.ts:643](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L643)
|
|
37300
37554
|
|
|
37301
37555
|
加载脚本
|
|
37302
37556
|
|
|
@@ -37333,7 +37587,7 @@ lib/tool/functions/loadScripts.md
|
|
|
37333
37587
|
|
|
37334
37588
|
> **loadScripts**(`urls`, `opt?`): `Promise`\<`void`\>
|
|
37335
37589
|
|
|
37336
|
-
Defined in: [lib/tool.ts:
|
|
37590
|
+
Defined in: [lib/tool.ts:652](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L652)
|
|
37337
37591
|
|
|
37338
37592
|
批量加载 js 文件
|
|
37339
37593
|
|
|
@@ -37376,7 +37630,7 @@ lib/tool/functions/loadStyle.md
|
|
|
37376
37630
|
|
|
37377
37631
|
> **loadStyle**(`style`): `void`
|
|
37378
37632
|
|
|
37379
|
-
Defined in: [lib/tool.ts:
|
|
37633
|
+
Defined in: [lib/tool.ts:696](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L696)
|
|
37380
37634
|
|
|
37381
37635
|
加载 css 字符串
|
|
37382
37636
|
|
|
@@ -37405,7 +37659,7 @@ lib/tool/functions/logicalOr.md
|
|
|
37405
37659
|
|
|
37406
37660
|
> **logicalOr**\<`T`, `T2`\>(`v1`, `v2`): \[`T`\] *extends* \[[`TFalsy`](../type-aliases/TFalsy.md)\] ? `T2` : `T`
|
|
37407
37661
|
|
|
37408
|
-
Defined in: [lib/tool.ts:
|
|
37662
|
+
Defined in: [lib/tool.ts:730](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L730)
|
|
37409
37663
|
|
|
37410
37664
|
类似 || 运算符的效果
|
|
37411
37665
|
|
|
@@ -37450,7 +37704,7 @@ lib/tool/functions/match.md
|
|
|
37450
37704
|
|
|
37451
37705
|
> **match**(`str`, `regs`): `boolean`
|
|
37452
37706
|
|
|
37453
|
-
Defined in: [lib/tool.ts:
|
|
37707
|
+
Defined in: [lib/tool.ts:138](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L138)
|
|
37454
37708
|
|
|
37455
37709
|
传入正则进行匹配 str 是否有一项满足
|
|
37456
37710
|
|
|
@@ -37485,7 +37739,7 @@ lib/tool/functions/nextFrame.md
|
|
|
37485
37739
|
|
|
37486
37740
|
> **nextFrame**(): `Promise`\<`void`\>
|
|
37487
37741
|
|
|
37488
|
-
Defined in: [lib/tool.ts:
|
|
37742
|
+
Defined in: [lib/tool.ts:113](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L113)
|
|
37489
37743
|
|
|
37490
37744
|
等待浏览器帧
|
|
37491
37745
|
|
|
@@ -37506,7 +37760,7 @@ lib/tool/functions/parseArrayString.md
|
|
|
37506
37760
|
|
|
37507
37761
|
> **parseArrayString**(`arrayStr`): `string`[]
|
|
37508
37762
|
|
|
37509
|
-
Defined in: [lib/tool.ts:
|
|
37763
|
+
Defined in: [lib/tool.ts:578](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L578)
|
|
37510
37764
|
|
|
37511
37765
|
数组字符串解析器
|
|
37512
37766
|
解析数组字符串为各元素组成的字符串数组
|
|
@@ -37538,7 +37792,7 @@ lib/tool/functions/parseUrl.md
|
|
|
37538
37792
|
|
|
37539
37793
|
> **parseUrl**(`url`): [`IUrl`](../interfaces/IUrl.md)
|
|
37540
37794
|
|
|
37541
|
-
Defined in: [lib/tool.ts:
|
|
37795
|
+
Defined in: [lib/tool.ts:463](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L463)
|
|
37542
37796
|
|
|
37543
37797
|
传输 url 并解析为 IUrl 对象
|
|
37544
37798
|
|
|
@@ -37567,7 +37821,7 @@ lib/tool/functions/post.md
|
|
|
37567
37821
|
|
|
37568
37822
|
> **post**(`url`, `data`, `init?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
37569
37823
|
|
|
37570
|
-
Defined in: [lib/tool.ts:
|
|
37824
|
+
Defined in: [lib/tool.ts:402](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L402)
|
|
37571
37825
|
|
|
37572
37826
|
发起 POST 请求(除 FormData 外都会转换为 JSON 提交)
|
|
37573
37827
|
|
|
@@ -37610,7 +37864,7 @@ lib/tool/functions/postResponseEventStream.md
|
|
|
37610
37864
|
|
|
37611
37865
|
> **postResponseEventStream**(`url`, `data`, `opts?`): `AbortController`
|
|
37612
37866
|
|
|
37613
|
-
Defined in: [lib/tool.ts:
|
|
37867
|
+
Defined in: [lib/tool.ts:425](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L425)
|
|
37614
37868
|
|
|
37615
37869
|
发起 JSON 请求并获得文本 SSE 响应
|
|
37616
37870
|
|
|
@@ -37685,7 +37939,7 @@ lib/tool/functions/postResponseJson.md
|
|
|
37685
37939
|
|
|
37686
37940
|
> **postResponseJson**(`url`, `data`, `init?`): `Promise`\<`any`\>
|
|
37687
37941
|
|
|
37688
|
-
Defined in: [lib/tool.ts:
|
|
37942
|
+
Defined in: [lib/tool.ts:453](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L453)
|
|
37689
37943
|
|
|
37690
37944
|
发起 POST 请求并解析 JSON 响应
|
|
37691
37945
|
|
|
@@ -37728,7 +37982,7 @@ lib/tool/functions/purify.md
|
|
|
37728
37982
|
|
|
37729
37983
|
> **purify**(`text`): `string`
|
|
37730
37984
|
|
|
37731
|
-
Defined in: [lib/tool.ts:
|
|
37985
|
+
Defined in: [lib/tool.ts:129](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L129)
|
|
37732
37986
|
|
|
37733
37987
|
去除 html 的空白符、换行以及注释
|
|
37734
37988
|
|
|
@@ -37757,7 +38011,7 @@ lib/tool/functions/queryParse.md
|
|
|
37757
38011
|
|
|
37758
38012
|
> **queryParse**(`query`): `Record`\<`string`, `string` \| `string`[]\>
|
|
37759
38013
|
|
|
37760
|
-
Defined in: [lib/tool.ts:
|
|
38014
|
+
Defined in: [lib/tool.ts:557](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L557)
|
|
37761
38015
|
|
|
37762
38016
|
将 query string 转换为对象
|
|
37763
38017
|
|
|
@@ -37786,7 +38040,7 @@ lib/tool/functions/queryStringify.md
|
|
|
37786
38040
|
|
|
37787
38041
|
> **queryStringify**(`query`, `encode?`): `string`
|
|
37788
38042
|
|
|
37789
|
-
Defined in: [lib/tool.ts:
|
|
38043
|
+
Defined in: [lib/tool.ts:549](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L549)
|
|
37790
38044
|
|
|
37791
38045
|
将对象转换为 query string
|
|
37792
38046
|
|
|
@@ -37821,7 +38075,7 @@ lib/tool/functions/rand.md
|
|
|
37821
38075
|
|
|
37822
38076
|
> **rand**(`min`, `max`, `prec?`): `number`
|
|
37823
38077
|
|
|
37824
|
-
Defined in: [lib/tool.ts:
|
|
38078
|
+
Defined in: [lib/tool.ts:224](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L224)
|
|
37825
38079
|
|
|
37826
38080
|
生成范围内的随机数
|
|
37827
38081
|
|
|
@@ -37862,7 +38116,7 @@ lib/tool/functions/random.md
|
|
|
37862
38116
|
|
|
37863
38117
|
> **random**(`length?`, `source?`, `block?`): `string`
|
|
37864
38118
|
|
|
37865
|
-
Defined in: [lib/tool.ts:
|
|
38119
|
+
Defined in: [lib/tool.ts:246](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L246)
|
|
37866
38120
|
|
|
37867
38121
|
生成随机字符串
|
|
37868
38122
|
|
|
@@ -37905,7 +38159,7 @@ lib/tool/functions/request.md
|
|
|
37905
38159
|
|
|
37906
38160
|
> **request**(`url`, `opt`): `Promise`\<`any`\>
|
|
37907
38161
|
|
|
37908
|
-
Defined in: [lib/tool.ts:
|
|
38162
|
+
Defined in: [lib/tool.ts:367](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L367)
|
|
37909
38163
|
|
|
37910
38164
|
发起一个网络请求,若是返回值是 JSON 则自动解析,否则直接返回字符串
|
|
37911
38165
|
|
|
@@ -37940,7 +38194,7 @@ lib/tool/functions/rgb2hex.md
|
|
|
37940
38194
|
|
|
37941
38195
|
> **rgb2hex**(`r`, `g?`, `b?`, `a?`): `string`
|
|
37942
38196
|
|
|
37943
|
-
Defined in: [lib/tool.ts:
|
|
38197
|
+
Defined in: [lib/tool.ts:304](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L304)
|
|
37944
38198
|
|
|
37945
38199
|
将 r, g, b 转换为 hex 字符串,不含 #
|
|
37946
38200
|
|
|
@@ -37985,7 +38239,7 @@ lib/tool/functions/rgb2hsl.md
|
|
|
37985
38239
|
|
|
37986
38240
|
> **rgb2hsl**(`r`, `g?`, `b?`, `a?`, `decimal?`): `object`
|
|
37987
38241
|
|
|
37988
|
-
Defined in: [lib/tool.ts:
|
|
38242
|
+
Defined in: [lib/tool.ts:330](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L330)
|
|
37989
38243
|
|
|
37990
38244
|
rgb 字符串转 hsl 数组
|
|
37991
38245
|
|
|
@@ -38058,7 +38312,7 @@ lib/tool/functions/runIife.md
|
|
|
38058
38312
|
|
|
38059
38313
|
> **runIife**(`code`): `any`
|
|
38060
38314
|
|
|
38061
|
-
Defined in: [lib/tool.ts:
|
|
38315
|
+
Defined in: [lib/tool.ts:26](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L26)
|
|
38062
38316
|
|
|
38063
38317
|
运行 iife 代码
|
|
38064
38318
|
|
|
@@ -38089,7 +38343,7 @@ lib/tool/functions/sizeFormat.md
|
|
|
38089
38343
|
|
|
38090
38344
|
> **sizeFormat**(`size`, `spliter?`): `string`
|
|
38091
38345
|
|
|
38092
|
-
Defined in: [lib/tool.ts:
|
|
38346
|
+
Defined in: [lib/tool.ts:80](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L80)
|
|
38093
38347
|
|
|
38094
38348
|
将文件大小格式化为带单位的字符串
|
|
38095
38349
|
|
|
@@ -38124,7 +38378,7 @@ lib/tool/functions/sleepFrame.md
|
|
|
38124
38378
|
|
|
38125
38379
|
> **sleepFrame**(`count`): `Promise`\<`void`\>
|
|
38126
38380
|
|
|
38127
|
-
Defined in: [lib/tool.ts:
|
|
38381
|
+
Defined in: [lib/tool.ts:121](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L121)
|
|
38128
38382
|
|
|
38129
38383
|
等待浏览器帧
|
|
38130
38384
|
|
|
@@ -38153,7 +38407,7 @@ lib/tool/functions/sleep.md
|
|
|
38153
38407
|
|
|
38154
38408
|
> **sleep**(`ms?`): `Promise`\<`boolean`\>
|
|
38155
38409
|
|
|
38156
|
-
Defined in: [lib/tool.ts:
|
|
38410
|
+
Defined in: [lib/tool.ts:106](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L106)
|
|
38157
38411
|
|
|
38158
38412
|
等待毫秒
|
|
38159
38413
|
|
|
@@ -38182,7 +38436,7 @@ lib/tool/functions/stateMachine.md
|
|
|
38182
38436
|
|
|
38183
38437
|
> **stateMachine**(`code`, `start`, `process`): `void`
|
|
38184
38438
|
|
|
38185
|
-
Defined in: [lib/tool.ts:
|
|
38439
|
+
Defined in: [lib/tool.ts:613](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L613)
|
|
38186
38440
|
|
|
38187
38441
|
源码分段状态机,单词按 ASCII 字母、数字、_ 和 $ 识别
|
|
38188
38442
|
|
|
@@ -38225,7 +38479,7 @@ lib/tool/functions/stylePrepend.md
|
|
|
38225
38479
|
|
|
38226
38480
|
> **stylePrepend**(`style`, `prep?`): `object`
|
|
38227
38481
|
|
|
38228
|
-
Defined in: [lib/tool.ts:
|
|
38482
|
+
Defined in: [lib/tool.ts:206](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L206)
|
|
38229
38483
|
|
|
38230
38484
|
给 class 前部增加唯一标识符
|
|
38231
38485
|
|
|
@@ -38268,7 +38522,7 @@ lib/tool/functions/styleUrl2DataUrl.md
|
|
|
38268
38522
|
|
|
38269
38523
|
> **styleUrl2DataUrl**(`path`, `style`, `files`): `Promise`\<`string`\>
|
|
38270
38524
|
|
|
38271
|
-
Defined in: [lib/tool.ts:
|
|
38525
|
+
Defined in: [lib/tool.ts:148](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L148)
|
|
38272
38526
|
|
|
38273
38527
|
将 style 中的 url 转换成 base64 data url
|
|
38274
38528
|
|
|
@@ -38309,7 +38563,7 @@ lib/tool/functions/teleportGlue.md
|
|
|
38309
38563
|
|
|
38310
38564
|
> **teleportGlue**(`layout`, `formId`): `string`
|
|
38311
38565
|
|
|
38312
|
-
Defined in: [lib/tool.ts:
|
|
38566
|
+
Defined in: [lib/tool.ts:197](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L197)
|
|
38313
38567
|
|
|
38314
38568
|
对 layout 的 teleport 做转义处理为 vue 识别的内容
|
|
38315
38569
|
|
|
@@ -38344,7 +38598,7 @@ lib/tool/functions/unescapeHTML.md
|
|
|
38344
38598
|
|
|
38345
38599
|
> **unescapeHTML**(`html`): `string`
|
|
38346
38600
|
|
|
38347
|
-
Defined in: [lib/tool.ts:
|
|
38601
|
+
Defined in: [lib/tool.ts:286](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L286)
|
|
38348
38602
|
|
|
38349
38603
|
还原转义后的 HTML
|
|
38350
38604
|
|
|
@@ -38373,7 +38627,7 @@ lib/tool/functions/urlAtom.md
|
|
|
38373
38627
|
|
|
38374
38628
|
> **urlAtom**(`url`): `string`
|
|
38375
38629
|
|
|
38376
|
-
Defined in: [lib/tool.ts:
|
|
38630
|
+
Defined in: [lib/tool.ts:477](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L477)
|
|
38377
38631
|
|
|
38378
38632
|
处理 URL 中的 .. / . 等
|
|
38379
38633
|
|
|
@@ -38400,7 +38654,7 @@ lib/tool/functions/urlResolve.md
|
|
|
38400
38654
|
|
|
38401
38655
|
> **urlResolve**(`from`, `to`): `string`
|
|
38402
38656
|
|
|
38403
|
-
Defined in: [lib/tool.ts:
|
|
38657
|
+
Defined in: [lib/tool.ts:472](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L472)
|
|
38404
38658
|
|
|
38405
38659
|
将相对路径根据基准路径进行转换
|
|
38406
38660
|
|
|
@@ -38435,7 +38689,7 @@ lib/tool/functions/weightFormat.md
|
|
|
38435
38689
|
|
|
38436
38690
|
> **weightFormat**(`weight`, `spliter?`): `string`
|
|
38437
38691
|
|
|
38438
|
-
Defined in: [lib/tool.ts:
|
|
38692
|
+
Defined in: [lib/tool.ts:89](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L89)
|
|
38439
38693
|
|
|
38440
38694
|
将毫克重量格式化为带单位的字符串
|
|
38441
38695
|
|
|
@@ -38475,13 +38729,16 @@ lib/tool/index.md
|
|
|
38475
38729
|
## Interfaces
|
|
38476
38730
|
|
|
38477
38731
|
- [IClassPrototype](interfaces/IClassPrototype.md)
|
|
38732
|
+
- [IDecodedText](interfaces/IDecodedText.md)
|
|
38478
38733
|
- [IRequestOptions](interfaces/IRequestOptions.md)
|
|
38734
|
+
- [ITextEncoding](interfaces/ITextEncoding.md)
|
|
38479
38735
|
- [IUrl](interfaces/IUrl.md)
|
|
38480
38736
|
|
|
38481
38737
|
## Type Aliases
|
|
38482
38738
|
|
|
38483
38739
|
- [TFalsy](type-aliases/TFalsy.md)
|
|
38484
38740
|
- [TJson](type-aliases/TJson.md)
|
|
38741
|
+
- [TTextEncoding](type-aliases/TTextEncoding.md)
|
|
38485
38742
|
|
|
38486
38743
|
## Variables
|
|
38487
38744
|
|
|
@@ -38504,6 +38761,8 @@ lib/tool/index.md
|
|
|
38504
38761
|
- [clone](functions/clone.md)
|
|
38505
38762
|
- [compar](functions/compar.md)
|
|
38506
38763
|
- [compressor](functions/compressor.md)
|
|
38764
|
+
- [decodeText](functions/decodeText.md)
|
|
38765
|
+
- [encodeText](functions/encodeText.md)
|
|
38507
38766
|
- [escapeHTML](functions/escapeHTML.md)
|
|
38508
38767
|
- [eventsAttrWrap](functions/eventsAttrWrap.md)
|
|
38509
38768
|
- [execCommand](functions/execCommand.md)
|
|
@@ -38575,7 +38834,7 @@ lib/tool/interfaces/IClassPrototype.md
|
|
|
38575
38834
|
|
|
38576
38835
|
# Interface: IClassPrototype
|
|
38577
38836
|
|
|
38578
|
-
Defined in: [lib/tool.ts:
|
|
38837
|
+
Defined in: [lib/tool.ts:47](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L47)
|
|
38579
38838
|
|
|
38580
38839
|
类原型信息
|
|
38581
38840
|
|
|
@@ -38585,7 +38844,7 @@ Defined in: [lib/tool.ts:45](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
38585
38844
|
|
|
38586
38845
|
> **access**: `Record`\<`string`, \{ `get`: `any`; `set`: `any`; \}\>
|
|
38587
38846
|
|
|
38588
|
-
Defined in: [lib/tool.ts:
|
|
38847
|
+
Defined in: [lib/tool.ts:51](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L51)
|
|
38589
38848
|
|
|
38590
38849
|
访问器列表,key 为属性名,value 为包含 get 和 set 的对象,例如:{'prop1': { 'get': function() { ... }, 'set': function(v) { ... } }}
|
|
38591
38850
|
|
|
@@ -38595,10 +38854,61 @@ Defined in: [lib/tool.ts:49](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
38595
38854
|
|
|
38596
38855
|
> **method**: `Record`\<`string`, `any`\>
|
|
38597
38856
|
|
|
38598
|
-
Defined in: [lib/tool.ts:
|
|
38857
|
+
Defined in: [lib/tool.ts:49](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L49)
|
|
38599
38858
|
|
|
38600
38859
|
方法列表,key 为方法名,value 为函数体,例如:{'method1': function() { ... }}
|
|
38601
38860
|
|
|
38861
|
+
lib/tool/interfaces/IDecodedText.md
|
|
38862
|
+
---
|
|
38863
|
+
|
|
38864
|
+
[**Documents for clickgo**](../../../index.md)
|
|
38865
|
+
|
|
38866
|
+
***
|
|
38867
|
+
|
|
38868
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / IDecodedText
|
|
38869
|
+
|
|
38870
|
+
# Interface: IDecodedText
|
|
38871
|
+
|
|
38872
|
+
Defined in: [lib/tool/encoding.ts:13](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L13)
|
|
38873
|
+
|
|
38874
|
+
严格解码结果,BOM 不计入正文
|
|
38875
|
+
|
|
38876
|
+
## Extends
|
|
38877
|
+
|
|
38878
|
+
- [`ITextEncoding`](ITextEncoding.md)
|
|
38879
|
+
|
|
38880
|
+
## Properties
|
|
38881
|
+
|
|
38882
|
+
### bom
|
|
38883
|
+
|
|
38884
|
+
> **bom**: `boolean`
|
|
38885
|
+
|
|
38886
|
+
Defined in: [lib/tool/encoding.ts:9](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L9)
|
|
38887
|
+
|
|
38888
|
+
#### Inherited from
|
|
38889
|
+
|
|
38890
|
+
[`ITextEncoding`](ITextEncoding.md).[`bom`](ITextEncoding.md#bom)
|
|
38891
|
+
|
|
38892
|
+
***
|
|
38893
|
+
|
|
38894
|
+
### encoding
|
|
38895
|
+
|
|
38896
|
+
> **encoding**: [`TTextEncoding`](../type-aliases/TTextEncoding.md)
|
|
38897
|
+
|
|
38898
|
+
Defined in: [lib/tool/encoding.ts:8](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L8)
|
|
38899
|
+
|
|
38900
|
+
#### Inherited from
|
|
38901
|
+
|
|
38902
|
+
[`ITextEncoding`](ITextEncoding.md).[`encoding`](ITextEncoding.md#encoding)
|
|
38903
|
+
|
|
38904
|
+
***
|
|
38905
|
+
|
|
38906
|
+
### text
|
|
38907
|
+
|
|
38908
|
+
> **text**: `string`
|
|
38909
|
+
|
|
38910
|
+
Defined in: [lib/tool/encoding.ts:14](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L14)
|
|
38911
|
+
|
|
38602
38912
|
lib/tool/interfaces/IRequestOptions.md
|
|
38603
38913
|
---
|
|
38604
38914
|
|
|
@@ -38610,7 +38920,7 @@ lib/tool/interfaces/IRequestOptions.md
|
|
|
38610
38920
|
|
|
38611
38921
|
# Interface: IRequestOptions
|
|
38612
38922
|
|
|
38613
|
-
Defined in: [lib/tool.ts:
|
|
38923
|
+
Defined in: [lib/tool.ts:850](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L850)
|
|
38614
38924
|
|
|
38615
38925
|
请求选项
|
|
38616
38926
|
|
|
@@ -38620,7 +38930,7 @@ Defined in: [lib/tool.ts:848](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38620
38930
|
|
|
38621
38931
|
> `optional` **body?**: `FormData`
|
|
38622
38932
|
|
|
38623
|
-
Defined in: [lib/tool.ts:
|
|
38933
|
+
Defined in: [lib/tool.ts:853](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L853)
|
|
38624
38934
|
|
|
38625
38935
|
***
|
|
38626
38936
|
|
|
@@ -38628,7 +38938,7 @@ Defined in: [lib/tool.ts:851](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38628
38938
|
|
|
38629
38939
|
> `optional` **credentials?**: `boolean`
|
|
38630
38940
|
|
|
38631
|
-
Defined in: [lib/tool.ts:
|
|
38941
|
+
Defined in: [lib/tool.ts:851](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L851)
|
|
38632
38942
|
|
|
38633
38943
|
***
|
|
38634
38944
|
|
|
@@ -38636,7 +38946,7 @@ Defined in: [lib/tool.ts:849](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38636
38946
|
|
|
38637
38947
|
> `optional` **end?**: () => `void` \| `Promise`\<`void`\>
|
|
38638
38948
|
|
|
38639
|
-
Defined in: [lib/tool.ts:
|
|
38949
|
+
Defined in: [lib/tool.ts:862](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L862)
|
|
38640
38950
|
|
|
38641
38951
|
#### Returns
|
|
38642
38952
|
|
|
@@ -38648,7 +38958,7 @@ Defined in: [lib/tool.ts:860](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38648
38958
|
|
|
38649
38959
|
> `optional` **error?**: () => `void` \| `Promise`\<`void`\>
|
|
38650
38960
|
|
|
38651
|
-
Defined in: [lib/tool.ts:
|
|
38961
|
+
Defined in: [lib/tool.ts:865](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L865)
|
|
38652
38962
|
|
|
38653
38963
|
#### Returns
|
|
38654
38964
|
|
|
@@ -38660,7 +38970,7 @@ Defined in: [lib/tool.ts:863](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38660
38970
|
|
|
38661
38971
|
> `optional` **headers?**: `HeadersInit`
|
|
38662
38972
|
|
|
38663
|
-
Defined in: [lib/tool.ts:
|
|
38973
|
+
Defined in: [lib/tool.ts:856](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L856)
|
|
38664
38974
|
|
|
38665
38975
|
***
|
|
38666
38976
|
|
|
@@ -38668,7 +38978,7 @@ Defined in: [lib/tool.ts:854](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38668
38978
|
|
|
38669
38979
|
> `optional` **load?**: (`res`) => `void` \| `Promise`\<`void`\>
|
|
38670
38980
|
|
|
38671
|
-
Defined in: [lib/tool.ts:
|
|
38981
|
+
Defined in: [lib/tool.ts:864](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L864)
|
|
38672
38982
|
|
|
38673
38983
|
#### Parameters
|
|
38674
38984
|
|
|
@@ -38686,7 +38996,7 @@ Defined in: [lib/tool.ts:862](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38686
38996
|
|
|
38687
38997
|
> `optional` **method?**: `"GET"` \| `"POST"`
|
|
38688
38998
|
|
|
38689
|
-
Defined in: [lib/tool.ts:
|
|
38999
|
+
Defined in: [lib/tool.ts:852](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L852)
|
|
38690
39000
|
|
|
38691
39001
|
***
|
|
38692
39002
|
|
|
@@ -38694,7 +39004,7 @@ Defined in: [lib/tool.ts:850](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38694
39004
|
|
|
38695
39005
|
> `optional` **progress?**: (`loaded`, `total`) => `void` \| `Promise`\<`void`\>
|
|
38696
39006
|
|
|
38697
|
-
Defined in: [lib/tool.ts:
|
|
39007
|
+
Defined in: [lib/tool.ts:863](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L863)
|
|
38698
39008
|
|
|
38699
39009
|
#### Parameters
|
|
38700
39010
|
|
|
@@ -38716,7 +39026,7 @@ Defined in: [lib/tool.ts:861](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38716
39026
|
|
|
38717
39027
|
> `optional` **responseType?**: `XMLHttpRequestResponseType`
|
|
38718
39028
|
|
|
38719
|
-
Defined in: [lib/tool.ts:
|
|
39029
|
+
Defined in: [lib/tool.ts:855](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L855)
|
|
38720
39030
|
|
|
38721
39031
|
***
|
|
38722
39032
|
|
|
@@ -38724,7 +39034,7 @@ Defined in: [lib/tool.ts:853](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38724
39034
|
|
|
38725
39035
|
> `optional` **start?**: (`total`) => `void` \| `Promise`\<`void`\>
|
|
38726
39036
|
|
|
38727
|
-
Defined in: [lib/tool.ts:
|
|
39037
|
+
Defined in: [lib/tool.ts:861](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L861)
|
|
38728
39038
|
|
|
38729
39039
|
#### Parameters
|
|
38730
39040
|
|
|
@@ -38742,7 +39052,7 @@ Defined in: [lib/tool.ts:859](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38742
39052
|
|
|
38743
39053
|
> `optional` **timeout?**: `number`
|
|
38744
39054
|
|
|
38745
|
-
Defined in: [lib/tool.ts:
|
|
39055
|
+
Defined in: [lib/tool.ts:854](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L854)
|
|
38746
39056
|
|
|
38747
39057
|
***
|
|
38748
39058
|
|
|
@@ -38750,7 +39060,7 @@ Defined in: [lib/tool.ts:852](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38750
39060
|
|
|
38751
39061
|
> `optional` **uploadEnd?**: () => `void` \| `Promise`\<`void`\>
|
|
38752
39062
|
|
|
38753
|
-
Defined in: [lib/tool.ts:
|
|
39063
|
+
Defined in: [lib/tool.ts:860](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L860)
|
|
38754
39064
|
|
|
38755
39065
|
#### Returns
|
|
38756
39066
|
|
|
@@ -38762,7 +39072,7 @@ Defined in: [lib/tool.ts:858](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38762
39072
|
|
|
38763
39073
|
> `optional` **uploadProgress?**: (`loaded`, `total`) => `void` \| `Promise`\<`void`\>
|
|
38764
39074
|
|
|
38765
|
-
Defined in: [lib/tool.ts:
|
|
39075
|
+
Defined in: [lib/tool.ts:859](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L859)
|
|
38766
39076
|
|
|
38767
39077
|
#### Parameters
|
|
38768
39078
|
|
|
@@ -38784,7 +39094,7 @@ Defined in: [lib/tool.ts:857](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38784
39094
|
|
|
38785
39095
|
> `optional` **uploadStart?**: (`total`) => `void` \| `Promise`\<`void`\>
|
|
38786
39096
|
|
|
38787
|
-
Defined in: [lib/tool.ts:
|
|
39097
|
+
Defined in: [lib/tool.ts:858](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L858)
|
|
38788
39098
|
|
|
38789
39099
|
#### Parameters
|
|
38790
39100
|
|
|
@@ -38796,6 +39106,41 @@ Defined in: [lib/tool.ts:856](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38796
39106
|
|
|
38797
39107
|
`void` \| `Promise`\<`void`\>
|
|
38798
39108
|
|
|
39109
|
+
lib/tool/interfaces/ITextEncoding.md
|
|
39110
|
+
---
|
|
39111
|
+
|
|
39112
|
+
[**Documents for clickgo**](../../../index.md)
|
|
39113
|
+
|
|
39114
|
+
***
|
|
39115
|
+
|
|
39116
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / ITextEncoding
|
|
39117
|
+
|
|
39118
|
+
# Interface: ITextEncoding
|
|
39119
|
+
|
|
39120
|
+
Defined in: [lib/tool/encoding.ts:7](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L7)
|
|
39121
|
+
|
|
39122
|
+
文本保存编码及是否保留文件头 BOM
|
|
39123
|
+
|
|
39124
|
+
## Extended by
|
|
39125
|
+
|
|
39126
|
+
- [`IDecodedText`](IDecodedText.md)
|
|
39127
|
+
|
|
39128
|
+
## Properties
|
|
39129
|
+
|
|
39130
|
+
### bom
|
|
39131
|
+
|
|
39132
|
+
> **bom**: `boolean`
|
|
39133
|
+
|
|
39134
|
+
Defined in: [lib/tool/encoding.ts:9](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L9)
|
|
39135
|
+
|
|
39136
|
+
***
|
|
39137
|
+
|
|
39138
|
+
### encoding
|
|
39139
|
+
|
|
39140
|
+
> **encoding**: [`TTextEncoding`](../type-aliases/TTextEncoding.md)
|
|
39141
|
+
|
|
39142
|
+
Defined in: [lib/tool/encoding.ts:8](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L8)
|
|
39143
|
+
|
|
38799
39144
|
lib/tool/interfaces/IUrl.md
|
|
38800
39145
|
---
|
|
38801
39146
|
|
|
@@ -38807,7 +39152,7 @@ lib/tool/interfaces/IUrl.md
|
|
|
38807
39152
|
|
|
38808
39153
|
# Interface: IUrl
|
|
38809
39154
|
|
|
38810
|
-
Defined in: [lib/tool.ts:
|
|
39155
|
+
Defined in: [lib/tool.ts:835](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L835)
|
|
38811
39156
|
|
|
38812
39157
|
网址对象
|
|
38813
39158
|
|
|
@@ -38817,7 +39162,7 @@ Defined in: [lib/tool.ts:833](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38817
39162
|
|
|
38818
39163
|
> **auth**: `string` \| `null`
|
|
38819
39164
|
|
|
38820
|
-
Defined in: [lib/tool.ts:
|
|
39165
|
+
Defined in: [lib/tool.ts:836](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L836)
|
|
38821
39166
|
|
|
38822
39167
|
***
|
|
38823
39168
|
|
|
@@ -38825,7 +39170,7 @@ Defined in: [lib/tool.ts:834](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38825
39170
|
|
|
38826
39171
|
> **hash**: `string` \| `null`
|
|
38827
39172
|
|
|
38828
|
-
Defined in: [lib/tool.ts:
|
|
39173
|
+
Defined in: [lib/tool.ts:837](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L837)
|
|
38829
39174
|
|
|
38830
39175
|
***
|
|
38831
39176
|
|
|
@@ -38833,7 +39178,7 @@ Defined in: [lib/tool.ts:835](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38833
39178
|
|
|
38834
39179
|
> **host**: `string` \| `null`
|
|
38835
39180
|
|
|
38836
|
-
Defined in: [lib/tool.ts:
|
|
39181
|
+
Defined in: [lib/tool.ts:838](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L838)
|
|
38837
39182
|
|
|
38838
39183
|
***
|
|
38839
39184
|
|
|
@@ -38841,7 +39186,7 @@ Defined in: [lib/tool.ts:836](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38841
39186
|
|
|
38842
39187
|
> **hostname**: `string` \| `null`
|
|
38843
39188
|
|
|
38844
|
-
Defined in: [lib/tool.ts:
|
|
39189
|
+
Defined in: [lib/tool.ts:839](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L839)
|
|
38845
39190
|
|
|
38846
39191
|
***
|
|
38847
39192
|
|
|
@@ -38849,7 +39194,7 @@ Defined in: [lib/tool.ts:837](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38849
39194
|
|
|
38850
39195
|
> **pass**: `string` \| `null`
|
|
38851
39196
|
|
|
38852
|
-
Defined in: [lib/tool.ts:
|
|
39197
|
+
Defined in: [lib/tool.ts:840](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L840)
|
|
38853
39198
|
|
|
38854
39199
|
***
|
|
38855
39200
|
|
|
@@ -38857,7 +39202,7 @@ Defined in: [lib/tool.ts:838](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38857
39202
|
|
|
38858
39203
|
> **path**: `string` \| `null`
|
|
38859
39204
|
|
|
38860
|
-
Defined in: [lib/tool.ts:
|
|
39205
|
+
Defined in: [lib/tool.ts:841](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L841)
|
|
38861
39206
|
|
|
38862
39207
|
***
|
|
38863
39208
|
|
|
@@ -38865,7 +39210,7 @@ Defined in: [lib/tool.ts:839](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38865
39210
|
|
|
38866
39211
|
> **pathname**: `string`
|
|
38867
39212
|
|
|
38868
|
-
Defined in: [lib/tool.ts:
|
|
39213
|
+
Defined in: [lib/tool.ts:842](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L842)
|
|
38869
39214
|
|
|
38870
39215
|
***
|
|
38871
39216
|
|
|
@@ -38873,7 +39218,7 @@ Defined in: [lib/tool.ts:840](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38873
39218
|
|
|
38874
39219
|
> **port**: `string` \| `null`
|
|
38875
39220
|
|
|
38876
|
-
Defined in: [lib/tool.ts:
|
|
39221
|
+
Defined in: [lib/tool.ts:844](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L844)
|
|
38877
39222
|
|
|
38878
39223
|
***
|
|
38879
39224
|
|
|
@@ -38881,7 +39226,7 @@ Defined in: [lib/tool.ts:842](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38881
39226
|
|
|
38882
39227
|
> **protocol**: `string` \| `null`
|
|
38883
39228
|
|
|
38884
|
-
Defined in: [lib/tool.ts:
|
|
39229
|
+
Defined in: [lib/tool.ts:843](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L843)
|
|
38885
39230
|
|
|
38886
39231
|
***
|
|
38887
39232
|
|
|
@@ -38889,7 +39234,7 @@ Defined in: [lib/tool.ts:841](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38889
39234
|
|
|
38890
39235
|
> **query**: `string` \| `null`
|
|
38891
39236
|
|
|
38892
|
-
Defined in: [lib/tool.ts:
|
|
39237
|
+
Defined in: [lib/tool.ts:845](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L845)
|
|
38893
39238
|
|
|
38894
39239
|
***
|
|
38895
39240
|
|
|
@@ -38897,7 +39242,7 @@ Defined in: [lib/tool.ts:843](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38897
39242
|
|
|
38898
39243
|
> **user**: `string` \| `null`
|
|
38899
39244
|
|
|
38900
|
-
Defined in: [lib/tool.ts:
|
|
39245
|
+
Defined in: [lib/tool.ts:846](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L846)
|
|
38901
39246
|
|
|
38902
39247
|
lib/tool/type-aliases/TFalsy.md
|
|
38903
39248
|
---
|
|
@@ -38912,7 +39257,7 @@ lib/tool/type-aliases/TFalsy.md
|
|
|
38912
39257
|
|
|
38913
39258
|
> **TFalsy** = `false` \| `""` \| `0` \| `null` \| `undefined` \| *typeof* `NaN`
|
|
38914
39259
|
|
|
38915
|
-
Defined in: [lib/tool.ts:
|
|
39260
|
+
Defined in: [lib/tool.ts:872](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L872)
|
|
38916
39261
|
|
|
38917
39262
|
虚假值类型
|
|
38918
39263
|
|
|
@@ -38929,10 +39274,27 @@ lib/tool/type-aliases/TJson.md
|
|
|
38929
39274
|
|
|
38930
39275
|
> **TJson** = `null` \| `boolean` \| `number` \| `string` \| `TJson`[] \| \{\[`key`: `string`\]: `TJson`; \}
|
|
38931
39276
|
|
|
38932
|
-
Defined in: [lib/tool.ts:
|
|
39277
|
+
Defined in: [lib/tool.ts:869](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L869)
|
|
38933
39278
|
|
|
38934
39279
|
JSON 数据值,不包含 undefined、BigInt、函数和非有限数
|
|
38935
39280
|
|
|
39281
|
+
lib/tool/type-aliases/TTextEncoding.md
|
|
39282
|
+
---
|
|
39283
|
+
|
|
39284
|
+
[**Documents for clickgo**](../../../index.md)
|
|
39285
|
+
|
|
39286
|
+
***
|
|
39287
|
+
|
|
39288
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / TTextEncoding
|
|
39289
|
+
|
|
39290
|
+
# Type Alias: TTextEncoding
|
|
39291
|
+
|
|
39292
|
+
> **TTextEncoding** = `"utf-8"` \| `"utf-16le"` \| `"utf-16be"` \| `"gb18030"`
|
|
39293
|
+
|
|
39294
|
+
Defined in: [lib/tool/encoding.ts:4](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L4)
|
|
39295
|
+
|
|
39296
|
+
共享文本编码;GB18030 不使用 BOM
|
|
39297
|
+
|
|
38936
39298
|
lib/tool/variables/lang.md
|
|
38937
39299
|
---
|
|
38938
39300
|
|
|
@@ -38946,7 +39308,7 @@ lib/tool/variables/lang.md
|
|
|
38946
39308
|
|
|
38947
39309
|
> `const` **lang**: `object`
|
|
38948
39310
|
|
|
38949
|
-
Defined in: [lib/tool.ts:
|
|
39311
|
+
Defined in: [lib/tool.ts:735](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L735)
|
|
38950
39312
|
|
|
38951
39313
|
语言相关
|
|
38952
39314
|
|
|
@@ -39043,7 +39405,7 @@ lib/tool/variables/RANDOM_L.md
|
|
|
39043
39405
|
|
|
39044
39406
|
> `const` **RANDOM\_L**: `"abcdefghijklmnopqrstuvwxyz"` = `'abcdefghijklmnopqrstuvwxyz'`
|
|
39045
39407
|
|
|
39046
|
-
Defined in: [lib/tool.ts:
|
|
39408
|
+
Defined in: [lib/tool.ts:230](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L230)
|
|
39047
39409
|
|
|
39048
39410
|
lib/tool/variables/RANDOM_LN.md
|
|
39049
39411
|
---
|
|
@@ -39058,7 +39420,7 @@ lib/tool/variables/RANDOM_LN.md
|
|
|
39058
39420
|
|
|
39059
39421
|
> `const` **RANDOM\_LN**: `string`
|
|
39060
39422
|
|
|
39061
|
-
Defined in: [lib/tool.ts:
|
|
39423
|
+
Defined in: [lib/tool.ts:233](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L233)
|
|
39062
39424
|
|
|
39063
39425
|
lib/tool/variables/RANDOM_LU.md
|
|
39064
39426
|
---
|
|
@@ -39073,7 +39435,7 @@ lib/tool/variables/RANDOM_LU.md
|
|
|
39073
39435
|
|
|
39074
39436
|
> `const` **RANDOM\_LU**: `string`
|
|
39075
39437
|
|
|
39076
|
-
Defined in: [lib/tool.ts:
|
|
39438
|
+
Defined in: [lib/tool.ts:234](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L234)
|
|
39077
39439
|
|
|
39078
39440
|
lib/tool/variables/RANDOM_LUN.md
|
|
39079
39441
|
---
|
|
@@ -39088,7 +39450,7 @@ lib/tool/variables/RANDOM_LUN.md
|
|
|
39088
39450
|
|
|
39089
39451
|
> `const` **RANDOM\_LUN**: `string`
|
|
39090
39452
|
|
|
39091
|
-
Defined in: [lib/tool.ts:
|
|
39453
|
+
Defined in: [lib/tool.ts:235](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L235)
|
|
39092
39454
|
|
|
39093
39455
|
lib/tool/variables/RANDOM_LUNS.md
|
|
39094
39456
|
---
|
|
@@ -39103,7 +39465,7 @@ lib/tool/variables/RANDOM_LUNS.md
|
|
|
39103
39465
|
|
|
39104
39466
|
> `const` **RANDOM\_LUNS**: `string`
|
|
39105
39467
|
|
|
39106
|
-
Defined in: [lib/tool.ts:
|
|
39468
|
+
Defined in: [lib/tool.ts:237](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L237)
|
|
39107
39469
|
|
|
39108
39470
|
lib/tool/variables/RANDOM_N.md
|
|
39109
39471
|
---
|
|
@@ -39118,7 +39480,7 @@ lib/tool/variables/RANDOM_N.md
|
|
|
39118
39480
|
|
|
39119
39481
|
> `const` **RANDOM\_N**: `"0123456789"` = `'0123456789'`
|
|
39120
39482
|
|
|
39121
|
-
Defined in: [lib/tool.ts:
|
|
39483
|
+
Defined in: [lib/tool.ts:228](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L228)
|
|
39122
39484
|
|
|
39123
39485
|
lib/tool/variables/RANDOM_U.md
|
|
39124
39486
|
---
|
|
@@ -39133,7 +39495,7 @@ lib/tool/variables/RANDOM_U.md
|
|
|
39133
39495
|
|
|
39134
39496
|
> `const` **RANDOM\_U**: `"ABCDEFGHIJKLMNOPQRSTUVWXYZ"` = `'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
39135
39497
|
|
|
39136
|
-
Defined in: [lib/tool.ts:
|
|
39498
|
+
Defined in: [lib/tool.ts:229](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L229)
|
|
39137
39499
|
|
|
39138
39500
|
lib/tool/variables/RANDOM_UN.md
|
|
39139
39501
|
---
|
|
@@ -39148,7 +39510,7 @@ lib/tool/variables/RANDOM_UN.md
|
|
|
39148
39510
|
|
|
39149
39511
|
> `const` **RANDOM\_UN**: `string`
|
|
39150
39512
|
|
|
39151
|
-
Defined in: [lib/tool.ts:
|
|
39513
|
+
Defined in: [lib/tool.ts:232](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L232)
|
|
39152
39514
|
|
|
39153
39515
|
lib/tool/variables/RANDOM_V.md
|
|
39154
39516
|
---
|
|
@@ -39163,7 +39525,7 @@ lib/tool/variables/RANDOM_V.md
|
|
|
39163
39525
|
|
|
39164
39526
|
> `const` **RANDOM\_V**: `"ACEFGHJKLMNPRSTWXY34567"` = `'ACEFGHJKLMNPRSTWXY34567'`
|
|
39165
39527
|
|
|
39166
|
-
Defined in: [lib/tool.ts:
|
|
39528
|
+
Defined in: [lib/tool.ts:236](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L236)
|
|
39167
39529
|
|
|
39168
39530
|
lib/zip/classes/Zip.md
|
|
39169
39531
|
---
|