clickgo 7.2.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/control/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 +549 -200
- package/package.json +6 -4
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
|
|
|
@@ -13623,6 +13754,7 @@ lib/control/index.md
|
|
|
13623
13754
|
|
|
13624
13755
|
## Interfaces
|
|
13625
13756
|
|
|
13757
|
+
- [IBreadcrumbSelectEvent](interfaces/IBreadcrumbSelectEvent.md)
|
|
13626
13758
|
- [ICalendarSelectedEvent](interfaces/ICalendarSelectedEvent.md)
|
|
13627
13759
|
- [ICaptchaResultEvent](interfaces/ICaptchaResultEvent.md)
|
|
13628
13760
|
- [ICheckChangedEvent](interfaces/ICheckChangedEvent.md)
|
|
@@ -13722,6 +13854,41 @@ lib/control/index.md
|
|
|
13722
13854
|
- [initSysId](functions/initSysId.md)
|
|
13723
13855
|
- [read](functions/read.md)
|
|
13724
13856
|
|
|
13857
|
+
lib/control/interfaces/IBreadcrumbSelectEvent.md
|
|
13858
|
+
---
|
|
13859
|
+
|
|
13860
|
+
[**Documents for clickgo**](../../../index.md)
|
|
13861
|
+
|
|
13862
|
+
***
|
|
13863
|
+
|
|
13864
|
+
[Documents for clickgo](../../../index.md) / [lib/control](../index.md) / IBreadcrumbSelectEvent
|
|
13865
|
+
|
|
13866
|
+
# Interface: IBreadcrumbSelectEvent
|
|
13867
|
+
|
|
13868
|
+
Defined in: [lib/control.ts:1461](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1461)
|
|
13869
|
+
|
|
13870
|
+
面包屑历史层级的激活通知,不包含自动跳转行为
|
|
13871
|
+
|
|
13872
|
+
## Properties
|
|
13873
|
+
|
|
13874
|
+
### detail
|
|
13875
|
+
|
|
13876
|
+
> **detail**: `object`
|
|
13877
|
+
|
|
13878
|
+
Defined in: [lib/control.ts:1462](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1462)
|
|
13879
|
+
|
|
13880
|
+
#### index
|
|
13881
|
+
|
|
13882
|
+
> **index**: `number`
|
|
13883
|
+
|
|
13884
|
+
当前显示顺序中的零起始索引
|
|
13885
|
+
|
|
13886
|
+
#### name
|
|
13887
|
+
|
|
13888
|
+
> **name**: `string`
|
|
13889
|
+
|
|
13890
|
+
层级标识,未设置 name 时为 label
|
|
13891
|
+
|
|
13725
13892
|
lib/control/interfaces/ICalendarSelectedEvent.md
|
|
13726
13893
|
---
|
|
13727
13894
|
|
|
@@ -14062,7 +14229,7 @@ lib/control/interfaces/IColoristChangedEvent.md
|
|
|
14062
14229
|
|
|
14063
14230
|
# Interface: IColoristChangedEvent
|
|
14064
14231
|
|
|
14065
|
-
Defined in: [lib/control.ts:
|
|
14232
|
+
Defined in: [lib/control.ts:1531](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1531)
|
|
14066
14233
|
|
|
14067
14234
|
## Properties
|
|
14068
14235
|
|
|
@@ -14070,7 +14237,7 @@ Defined in: [lib/control.ts:1519](https://github.com/maiyun/clickgo/blob/master/
|
|
|
14070
14237
|
|
|
14071
14238
|
> **detail**: `object`
|
|
14072
14239
|
|
|
14073
|
-
Defined in: [lib/control.ts:
|
|
14240
|
+
Defined in: [lib/control.ts:1532](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1532)
|
|
14074
14241
|
|
|
14075
14242
|
#### hsl?
|
|
14076
14243
|
|
|
@@ -14765,7 +14932,7 @@ lib/control/interfaces/IFabricLayerchangeEvent.md
|
|
|
14765
14932
|
|
|
14766
14933
|
# Interface: IFabricLayerchangeEvent
|
|
14767
14934
|
|
|
14768
|
-
Defined in: [lib/control.ts:
|
|
14935
|
+
Defined in: [lib/control.ts:1701](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1701)
|
|
14769
14936
|
|
|
14770
14937
|
## Properties
|
|
14771
14938
|
|
|
@@ -14773,7 +14940,7 @@ Defined in: [lib/control.ts:1689](https://github.com/maiyun/clickgo/blob/master/
|
|
|
14773
14940
|
|
|
14774
14941
|
> **detail**: `object`
|
|
14775
14942
|
|
|
14776
|
-
Defined in: [lib/control.ts:
|
|
14943
|
+
Defined in: [lib/control.ts:1702](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1702)
|
|
14777
14944
|
|
|
14778
14945
|
#### next
|
|
14779
14946
|
|
|
@@ -14798,7 +14965,7 @@ lib/control/interfaces/IFabricLayerlistchangeEvent.md
|
|
|
14798
14965
|
|
|
14799
14966
|
# Interface: IFabricLayerlistchangeEvent
|
|
14800
14967
|
|
|
14801
|
-
Defined in: [lib/control.ts:
|
|
14968
|
+
Defined in: [lib/control.ts:1710](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1710)
|
|
14802
14969
|
|
|
14803
14970
|
## Properties
|
|
14804
14971
|
|
|
@@ -14806,7 +14973,7 @@ Defined in: [lib/control.ts:1698](https://github.com/maiyun/clickgo/blob/master/
|
|
|
14806
14973
|
|
|
14807
14974
|
> **detail**: `object`
|
|
14808
14975
|
|
|
14809
|
-
Defined in: [lib/control.ts:
|
|
14976
|
+
Defined in: [lib/control.ts:1711](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1711)
|
|
14810
14977
|
|
|
14811
14978
|
#### names
|
|
14812
14979
|
|
|
@@ -14837,7 +15004,7 @@ lib/control/interfaces/IFabricObjectchangeEvent.md
|
|
|
14837
15004
|
|
|
14838
15005
|
# Interface: IFabricObjectchangeEvent
|
|
14839
15006
|
|
|
14840
|
-
Defined in: [lib/control.ts:
|
|
15007
|
+
Defined in: [lib/control.ts:1721](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1721)
|
|
14841
15008
|
|
|
14842
15009
|
## Properties
|
|
14843
15010
|
|
|
@@ -14845,7 +15012,7 @@ Defined in: [lib/control.ts:1709](https://github.com/maiyun/clickgo/blob/master/
|
|
|
14845
15012
|
|
|
14846
15013
|
> **detail**: `object`
|
|
14847
15014
|
|
|
14848
|
-
Defined in: [lib/control.ts:
|
|
15015
|
+
Defined in: [lib/control.ts:1722](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1722)
|
|
14849
15016
|
|
|
14850
15017
|
#### angle
|
|
14851
15018
|
|
|
@@ -16053,7 +16220,7 @@ lib/control/interfaces/INavItemSelectEvent.md
|
|
|
16053
16220
|
|
|
16054
16221
|
# Interface: INavItemSelectEvent
|
|
16055
16222
|
|
|
16056
|
-
Defined in: [lib/control.ts:
|
|
16223
|
+
Defined in: [lib/control.ts:1472](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1472)
|
|
16057
16224
|
|
|
16058
16225
|
Custom Event
|
|
16059
16226
|
|
|
@@ -16067,7 +16234,7 @@ Custom Event
|
|
|
16067
16234
|
|
|
16068
16235
|
> **detail**: `object`
|
|
16069
16236
|
|
|
16070
|
-
Defined in: [lib/control.ts:
|
|
16237
|
+
Defined in: [lib/control.ts:1473](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1473)
|
|
16071
16238
|
|
|
16072
16239
|
#### name
|
|
16073
16240
|
|
|
@@ -16242,7 +16409,7 @@ lib/control/interfaces/IObjviewerLine.md
|
|
|
16242
16409
|
|
|
16243
16410
|
# Interface: IObjviewerLine
|
|
16244
16411
|
|
|
16245
|
-
Defined in: [lib/control.ts:
|
|
16412
|
+
Defined in: [lib/control.ts:1737](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1737)
|
|
16246
16413
|
|
|
16247
16414
|
## Properties
|
|
16248
16415
|
|
|
@@ -16250,7 +16417,7 @@ Defined in: [lib/control.ts:1725](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16250
16417
|
|
|
16251
16418
|
> **end**: [`IObjviewerLineObj`](IObjviewerLineObj.md)
|
|
16252
16419
|
|
|
16253
|
-
Defined in: [lib/control.ts:
|
|
16420
|
+
Defined in: [lib/control.ts:1741](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1741)
|
|
16254
16421
|
|
|
16255
16422
|
***
|
|
16256
16423
|
|
|
@@ -16258,7 +16425,7 @@ Defined in: [lib/control.ts:1729](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16258
16425
|
|
|
16259
16426
|
> `optional` **hue?**: `string`
|
|
16260
16427
|
|
|
16261
|
-
Defined in: [lib/control.ts:
|
|
16428
|
+
Defined in: [lib/control.ts:1743](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1743)
|
|
16262
16429
|
|
|
16263
16430
|
默认 255
|
|
16264
16431
|
|
|
@@ -16268,7 +16435,7 @@ Defined in: [lib/control.ts:1731](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16268
16435
|
|
|
16269
16436
|
> `optional` **name?**: `string`
|
|
16270
16437
|
|
|
16271
|
-
Defined in: [lib/control.ts:
|
|
16438
|
+
Defined in: [lib/control.ts:1739](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1739)
|
|
16272
16439
|
|
|
16273
16440
|
-- 可自定义线段的名称
|
|
16274
16441
|
|
|
@@ -16278,7 +16445,7 @@ Defined in: [lib/control.ts:1727](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16278
16445
|
|
|
16279
16446
|
> `optional` **path?**: `string`
|
|
16280
16447
|
|
|
16281
|
-
Defined in: [lib/control.ts:
|
|
16448
|
+
Defined in: [lib/control.ts:1744](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1744)
|
|
16282
16449
|
|
|
16283
16450
|
***
|
|
16284
16451
|
|
|
@@ -16286,7 +16453,7 @@ Defined in: [lib/control.ts:1732](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16286
16453
|
|
|
16287
16454
|
> **start**: [`IObjviewerLineObj`](IObjviewerLineObj.md)
|
|
16288
16455
|
|
|
16289
|
-
Defined in: [lib/control.ts:
|
|
16456
|
+
Defined in: [lib/control.ts:1740](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1740)
|
|
16290
16457
|
|
|
16291
16458
|
***
|
|
16292
16459
|
|
|
@@ -16294,7 +16461,7 @@ Defined in: [lib/control.ts:1728](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16294
16461
|
|
|
16295
16462
|
> `optional` **stroke?**: `"solid"` \| `"dashed"` \| `"up"` \| `"down"`
|
|
16296
16463
|
|
|
16297
|
-
Defined in: [lib/control.ts:
|
|
16464
|
+
Defined in: [lib/control.ts:1746](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1746)
|
|
16298
16465
|
|
|
16299
16466
|
默认 solid
|
|
16300
16467
|
|
|
@@ -16309,7 +16476,7 @@ lib/control/interfaces/IObjviewerLineObj.md
|
|
|
16309
16476
|
|
|
16310
16477
|
# Interface: IObjviewerLineObj
|
|
16311
16478
|
|
|
16312
|
-
Defined in: [lib/control.ts:
|
|
16479
|
+
Defined in: [lib/control.ts:1749](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1749)
|
|
16313
16480
|
|
|
16314
16481
|
## Properties
|
|
16315
16482
|
|
|
@@ -16317,7 +16484,7 @@ Defined in: [lib/control.ts:1737](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16317
16484
|
|
|
16318
16485
|
> **obj**: `HTMLElement` \| [`AbstractControl`](../classes/AbstractControl.md)
|
|
16319
16486
|
|
|
16320
|
-
Defined in: [lib/control.ts:
|
|
16487
|
+
Defined in: [lib/control.ts:1750](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1750)
|
|
16321
16488
|
|
|
16322
16489
|
***
|
|
16323
16490
|
|
|
@@ -16325,7 +16492,7 @@ Defined in: [lib/control.ts:1738](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16325
16492
|
|
|
16326
16493
|
> **pos**: `"b"` \| `"tr"` \| `"l"` \| `"lt"` \| `"t"` \| `"r"` \| `"rb"` \| `"bl"`
|
|
16327
16494
|
|
|
16328
|
-
Defined in: [lib/control.ts:
|
|
16495
|
+
Defined in: [lib/control.ts:1751](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1751)
|
|
16329
16496
|
|
|
16330
16497
|
lib/control/interfaces/IPaletteChangedEvent.md
|
|
16331
16498
|
---
|
|
@@ -16338,7 +16505,7 @@ lib/control/interfaces/IPaletteChangedEvent.md
|
|
|
16338
16505
|
|
|
16339
16506
|
# Interface: IPaletteChangedEvent
|
|
16340
16507
|
|
|
16341
|
-
Defined in: [lib/control.ts:
|
|
16508
|
+
Defined in: [lib/control.ts:1509](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1509)
|
|
16342
16509
|
|
|
16343
16510
|
## Properties
|
|
16344
16511
|
|
|
@@ -16346,7 +16513,7 @@ Defined in: [lib/control.ts:1497](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16346
16513
|
|
|
16347
16514
|
> **detail**: `object`
|
|
16348
16515
|
|
|
16349
|
-
Defined in: [lib/control.ts:
|
|
16516
|
+
Defined in: [lib/control.ts:1510](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1510)
|
|
16350
16517
|
|
|
16351
16518
|
#### hsl?
|
|
16352
16519
|
|
|
@@ -16407,7 +16574,7 @@ lib/control/interfaces/IPanelGoEvent.md
|
|
|
16407
16574
|
|
|
16408
16575
|
# Interface: IPanelGoEvent
|
|
16409
16576
|
|
|
16410
|
-
Defined in: [lib/control.ts:
|
|
16577
|
+
Defined in: [lib/control.ts:1481](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1481)
|
|
16411
16578
|
|
|
16412
16579
|
Custom Event
|
|
16413
16580
|
|
|
@@ -16421,7 +16588,7 @@ Custom Event
|
|
|
16421
16588
|
|
|
16422
16589
|
> **detail**: `object`
|
|
16423
16590
|
|
|
16424
|
-
Defined in: [lib/control.ts:
|
|
16591
|
+
Defined in: [lib/control.ts:1482](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1482)
|
|
16425
16592
|
|
|
16426
16593
|
#### from
|
|
16427
16594
|
|
|
@@ -16470,7 +16637,7 @@ lib/control/interfaces/IPanelWentEvent.md
|
|
|
16470
16637
|
|
|
16471
16638
|
# Interface: IPanelWentEvent
|
|
16472
16639
|
|
|
16473
|
-
Defined in: [lib/control.ts:
|
|
16640
|
+
Defined in: [lib/control.ts:1488](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1488)
|
|
16474
16641
|
|
|
16475
16642
|
## Properties
|
|
16476
16643
|
|
|
@@ -16478,7 +16645,7 @@ Defined in: [lib/control.ts:1476](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16478
16645
|
|
|
16479
16646
|
> **detail**: `object`
|
|
16480
16647
|
|
|
16481
|
-
Defined in: [lib/control.ts:
|
|
16648
|
+
Defined in: [lib/control.ts:1489](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1489)
|
|
16482
16649
|
|
|
16483
16650
|
#### from
|
|
16484
16651
|
|
|
@@ -16705,7 +16872,7 @@ lib/control/interfaces/IRadioChangeEvent.md
|
|
|
16705
16872
|
|
|
16706
16873
|
# Interface: IRadioChangeEvent
|
|
16707
16874
|
|
|
16708
|
-
Defined in: [lib/control.ts:
|
|
16875
|
+
Defined in: [lib/control.ts:1498](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1498)
|
|
16709
16876
|
|
|
16710
16877
|
Custom Event
|
|
16711
16878
|
|
|
@@ -16719,7 +16886,7 @@ Custom Event
|
|
|
16719
16886
|
|
|
16720
16887
|
> **detail**: `object`
|
|
16721
16888
|
|
|
16722
|
-
Defined in: [lib/control.ts:
|
|
16889
|
+
Defined in: [lib/control.ts:1499](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1499)
|
|
16723
16890
|
|
|
16724
16891
|
#### selected
|
|
16725
16892
|
|
|
@@ -16772,7 +16939,7 @@ lib/control/interfaces/ISelectAddedEvent.md
|
|
|
16772
16939
|
|
|
16773
16940
|
# Interface: ISelectAddedEvent
|
|
16774
16941
|
|
|
16775
|
-
Defined in: [lib/control.ts:
|
|
16942
|
+
Defined in: [lib/control.ts:1568](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1568)
|
|
16776
16943
|
|
|
16777
16944
|
## Properties
|
|
16778
16945
|
|
|
@@ -16780,7 +16947,7 @@ Defined in: [lib/control.ts:1556](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16780
16947
|
|
|
16781
16948
|
> **detail**: `object`
|
|
16782
16949
|
|
|
16783
|
-
Defined in: [lib/control.ts:
|
|
16950
|
+
Defined in: [lib/control.ts:1569](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1569)
|
|
16784
16951
|
|
|
16785
16952
|
#### index
|
|
16786
16953
|
|
|
@@ -16801,7 +16968,7 @@ lib/control/interfaces/ISelectAddEvent.md
|
|
|
16801
16968
|
|
|
16802
16969
|
# Interface: ISelectAddEvent
|
|
16803
16970
|
|
|
16804
|
-
Defined in: [lib/control.ts:
|
|
16971
|
+
Defined in: [lib/control.ts:1553](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1553)
|
|
16805
16972
|
|
|
16806
16973
|
Custom Event
|
|
16807
16974
|
|
|
@@ -16815,7 +16982,7 @@ Custom Event
|
|
|
16815
16982
|
|
|
16816
16983
|
> **detail**: `object`
|
|
16817
16984
|
|
|
16818
|
-
Defined in: [lib/control.ts:
|
|
16985
|
+
Defined in: [lib/control.ts:1554](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1554)
|
|
16819
16986
|
|
|
16820
16987
|
#### index
|
|
16821
16988
|
|
|
@@ -16864,7 +17031,7 @@ lib/control/interfaces/ISelectChangedEvent.md
|
|
|
16864
17031
|
|
|
16865
17032
|
# Interface: ISelectChangedEvent
|
|
16866
17033
|
|
|
16867
|
-
Defined in: [lib/control.ts:
|
|
17034
|
+
Defined in: [lib/control.ts:1589](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1589)
|
|
16868
17035
|
|
|
16869
17036
|
## Properties
|
|
16870
17037
|
|
|
@@ -16872,7 +17039,7 @@ Defined in: [lib/control.ts:1577](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16872
17039
|
|
|
16873
17040
|
> **detail**: `object`
|
|
16874
17041
|
|
|
16875
|
-
Defined in: [lib/control.ts:
|
|
17042
|
+
Defined in: [lib/control.ts:1590](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1590)
|
|
16876
17043
|
|
|
16877
17044
|
#### before
|
|
16878
17045
|
|
|
@@ -16893,7 +17060,7 @@ lib/control/interfaces/ISelectChangeEvent.md
|
|
|
16893
17060
|
|
|
16894
17061
|
# Interface: ISelectChangeEvent
|
|
16895
17062
|
|
|
16896
|
-
Defined in: [lib/control.ts:
|
|
17063
|
+
Defined in: [lib/control.ts:1583](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1583)
|
|
16897
17064
|
|
|
16898
17065
|
Custom Event
|
|
16899
17066
|
|
|
@@ -16907,7 +17074,7 @@ Custom Event
|
|
|
16907
17074
|
|
|
16908
17075
|
> **detail**: `object`
|
|
16909
17076
|
|
|
16910
|
-
Defined in: [lib/control.ts:
|
|
17077
|
+
Defined in: [lib/control.ts:1584](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1584)
|
|
16911
17078
|
|
|
16912
17079
|
#### value
|
|
16913
17080
|
|
|
@@ -16952,7 +17119,7 @@ lib/control/interfaces/ISelectItemclickedEvent.md
|
|
|
16952
17119
|
|
|
16953
17120
|
# Interface: ISelectItemclickedEvent
|
|
16954
17121
|
|
|
16955
|
-
Defined in: [lib/control.ts:
|
|
17122
|
+
Defined in: [lib/control.ts:1611](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1611)
|
|
16956
17123
|
|
|
16957
17124
|
## Properties
|
|
16958
17125
|
|
|
@@ -16960,7 +17127,7 @@ Defined in: [lib/control.ts:1599](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16960
17127
|
|
|
16961
17128
|
> **detail**: `object`
|
|
16962
17129
|
|
|
16963
|
-
Defined in: [lib/control.ts:
|
|
17130
|
+
Defined in: [lib/control.ts:1612](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1612)
|
|
16964
17131
|
|
|
16965
17132
|
#### arrow
|
|
16966
17133
|
|
|
@@ -16985,7 +17152,7 @@ lib/control/interfaces/ISelectRemoteEvent.md
|
|
|
16985
17152
|
|
|
16986
17153
|
# Interface: ISelectRemoteEvent
|
|
16987
17154
|
|
|
16988
|
-
Defined in: [lib/control.ts:
|
|
17155
|
+
Defined in: [lib/control.ts:1603](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1603)
|
|
16989
17156
|
|
|
16990
17157
|
## Properties
|
|
16991
17158
|
|
|
@@ -16993,7 +17160,7 @@ Defined in: [lib/control.ts:1591](https://github.com/maiyun/clickgo/blob/master/
|
|
|
16993
17160
|
|
|
16994
17161
|
> **detail**: `object`
|
|
16995
17162
|
|
|
16996
|
-
Defined in: [lib/control.ts:
|
|
17163
|
+
Defined in: [lib/control.ts:1604](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1604)
|
|
16997
17164
|
|
|
16998
17165
|
#### callback
|
|
16999
17166
|
|
|
@@ -17026,7 +17193,7 @@ lib/control/interfaces/ISelectRemovedEvent.md
|
|
|
17026
17193
|
|
|
17027
17194
|
# Interface: ISelectRemovedEvent
|
|
17028
17195
|
|
|
17029
|
-
Defined in: [lib/control.ts:
|
|
17196
|
+
Defined in: [lib/control.ts:1575](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1575)
|
|
17030
17197
|
|
|
17031
17198
|
## Properties
|
|
17032
17199
|
|
|
@@ -17034,7 +17201,7 @@ Defined in: [lib/control.ts:1563](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17034
17201
|
|
|
17035
17202
|
> **detail**: `object`
|
|
17036
17203
|
|
|
17037
|
-
Defined in: [lib/control.ts:
|
|
17204
|
+
Defined in: [lib/control.ts:1576](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1576)
|
|
17038
17205
|
|
|
17039
17206
|
#### index
|
|
17040
17207
|
|
|
@@ -17059,7 +17226,7 @@ lib/control/interfaces/ISelectRemoveEvent.md
|
|
|
17059
17226
|
|
|
17060
17227
|
# Interface: ISelectRemoveEvent
|
|
17061
17228
|
|
|
17062
|
-
Defined in: [lib/control.ts:
|
|
17229
|
+
Defined in: [lib/control.ts:1560](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1560)
|
|
17063
17230
|
|
|
17064
17231
|
Custom Event
|
|
17065
17232
|
|
|
@@ -17073,7 +17240,7 @@ Custom Event
|
|
|
17073
17240
|
|
|
17074
17241
|
> **detail**: `object`
|
|
17075
17242
|
|
|
17076
|
-
Defined in: [lib/control.ts:
|
|
17243
|
+
Defined in: [lib/control.ts:1561](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1561)
|
|
17077
17244
|
|
|
17078
17245
|
#### index
|
|
17079
17246
|
|
|
@@ -17126,7 +17293,7 @@ lib/control/interfaces/ISelectTagclickEvent.md
|
|
|
17126
17293
|
|
|
17127
17294
|
# Interface: ISelectTagclickEvent
|
|
17128
17295
|
|
|
17129
|
-
Defined in: [lib/control.ts:
|
|
17296
|
+
Defined in: [lib/control.ts:1596](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1596)
|
|
17130
17297
|
|
|
17131
17298
|
## Properties
|
|
17132
17299
|
|
|
@@ -17134,7 +17301,7 @@ Defined in: [lib/control.ts:1584](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17134
17301
|
|
|
17135
17302
|
> **detail**: `object`
|
|
17136
17303
|
|
|
17137
|
-
Defined in: [lib/control.ts:
|
|
17304
|
+
Defined in: [lib/control.ts:1597](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1597)
|
|
17138
17305
|
|
|
17139
17306
|
#### index
|
|
17140
17307
|
|
|
@@ -17155,7 +17322,7 @@ lib/control/interfaces/IStabChangeEvent.md
|
|
|
17155
17322
|
|
|
17156
17323
|
# Interface: IStabChangeEvent
|
|
17157
17324
|
|
|
17158
|
-
Defined in: [lib/control.ts:
|
|
17325
|
+
Defined in: [lib/control.ts:1621](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1621)
|
|
17159
17326
|
|
|
17160
17327
|
Custom Event
|
|
17161
17328
|
|
|
@@ -17169,7 +17336,7 @@ Custom Event
|
|
|
17169
17336
|
|
|
17170
17337
|
> **detail**: `object`
|
|
17171
17338
|
|
|
17172
|
-
Defined in: [lib/control.ts:
|
|
17339
|
+
Defined in: [lib/control.ts:1622](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1622)
|
|
17173
17340
|
|
|
17174
17341
|
#### value
|
|
17175
17342
|
|
|
@@ -17214,7 +17381,7 @@ lib/control/interfaces/IStepClickedEvent.md
|
|
|
17214
17381
|
|
|
17215
17382
|
# Interface: IStepClickedEvent
|
|
17216
17383
|
|
|
17217
|
-
Defined in: [lib/control.ts:
|
|
17384
|
+
Defined in: [lib/control.ts:1691](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1691)
|
|
17218
17385
|
|
|
17219
17386
|
## Properties
|
|
17220
17387
|
|
|
@@ -17222,7 +17389,7 @@ Defined in: [lib/control.ts:1679](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17222
17389
|
|
|
17223
17390
|
> **detail**: `object`
|
|
17224
17391
|
|
|
17225
|
-
Defined in: [lib/control.ts:
|
|
17392
|
+
Defined in: [lib/control.ts:1692](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1692)
|
|
17226
17393
|
|
|
17227
17394
|
#### index
|
|
17228
17395
|
|
|
@@ -17247,7 +17414,7 @@ lib/control/interfaces/ISwitchChangeEvent.md
|
|
|
17247
17414
|
|
|
17248
17415
|
# Interface: ISwitchChangeEvent
|
|
17249
17416
|
|
|
17250
|
-
Defined in: [lib/control.ts:
|
|
17417
|
+
Defined in: [lib/control.ts:1629](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1629)
|
|
17251
17418
|
|
|
17252
17419
|
Custom Event
|
|
17253
17420
|
|
|
@@ -17261,7 +17428,7 @@ Custom Event
|
|
|
17261
17428
|
|
|
17262
17429
|
> **detail**: `object`
|
|
17263
17430
|
|
|
17264
|
-
Defined in: [lib/control.ts:
|
|
17431
|
+
Defined in: [lib/control.ts:1630](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1630)
|
|
17265
17432
|
|
|
17266
17433
|
#### value
|
|
17267
17434
|
|
|
@@ -17306,7 +17473,7 @@ lib/control/interfaces/ITabChangedEvent.md
|
|
|
17306
17473
|
|
|
17307
17474
|
# Interface: ITabChangedEvent
|
|
17308
17475
|
|
|
17309
|
-
Defined in: [lib/control.ts:
|
|
17476
|
+
Defined in: [lib/control.ts:1643](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1643)
|
|
17310
17477
|
|
|
17311
17478
|
## Properties
|
|
17312
17479
|
|
|
@@ -17314,7 +17481,7 @@ Defined in: [lib/control.ts:1631](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17314
17481
|
|
|
17315
17482
|
> **detail**: `object`
|
|
17316
17483
|
|
|
17317
|
-
Defined in: [lib/control.ts:
|
|
17484
|
+
Defined in: [lib/control.ts:1644](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1644)
|
|
17318
17485
|
|
|
17319
17486
|
#### value
|
|
17320
17487
|
|
|
@@ -17331,7 +17498,7 @@ lib/control/interfaces/ITabChangeEvent.md
|
|
|
17331
17498
|
|
|
17332
17499
|
# Interface: ITabChangeEvent
|
|
17333
17500
|
|
|
17334
|
-
Defined in: [lib/control.ts:
|
|
17501
|
+
Defined in: [lib/control.ts:1637](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1637)
|
|
17335
17502
|
|
|
17336
17503
|
Custom Event
|
|
17337
17504
|
|
|
@@ -17345,7 +17512,7 @@ Custom Event
|
|
|
17345
17512
|
|
|
17346
17513
|
> **detail**: `object`
|
|
17347
17514
|
|
|
17348
|
-
Defined in: [lib/control.ts:
|
|
17515
|
+
Defined in: [lib/control.ts:1638](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1638)
|
|
17349
17516
|
|
|
17350
17517
|
#### value
|
|
17351
17518
|
|
|
@@ -17390,7 +17557,7 @@ lib/control/interfaces/ITabCloseEvent.md
|
|
|
17390
17557
|
|
|
17391
17558
|
# Interface: ITabCloseEvent
|
|
17392
17559
|
|
|
17393
|
-
Defined in: [lib/control.ts:
|
|
17560
|
+
Defined in: [lib/control.ts:1649](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1649)
|
|
17394
17561
|
|
|
17395
17562
|
Custom Event
|
|
17396
17563
|
|
|
@@ -17404,7 +17571,7 @@ Custom Event
|
|
|
17404
17571
|
|
|
17405
17572
|
> **detail**: `object`
|
|
17406
17573
|
|
|
17407
|
-
Defined in: [lib/control.ts:
|
|
17574
|
+
Defined in: [lib/control.ts:1650](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1650)
|
|
17408
17575
|
|
|
17409
17576
|
#### index
|
|
17410
17577
|
|
|
@@ -17453,7 +17620,7 @@ lib/control/interfaces/ITableSortEvent.md
|
|
|
17453
17620
|
|
|
17454
17621
|
# Interface: ITableSortEvent
|
|
17455
17622
|
|
|
17456
|
-
Defined in: [lib/control.ts:
|
|
17623
|
+
Defined in: [lib/control.ts:1658](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1658)
|
|
17457
17624
|
|
|
17458
17625
|
Custom Event
|
|
17459
17626
|
|
|
@@ -17467,7 +17634,7 @@ Custom Event
|
|
|
17467
17634
|
|
|
17468
17635
|
> **detail**: `object`
|
|
17469
17636
|
|
|
17470
|
-
Defined in: [lib/control.ts:
|
|
17637
|
+
Defined in: [lib/control.ts:1659](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1659)
|
|
17471
17638
|
|
|
17472
17639
|
#### index
|
|
17473
17640
|
|
|
@@ -17520,7 +17687,7 @@ lib/control/interfaces/ITagDropEvent.md
|
|
|
17520
17687
|
|
|
17521
17688
|
# Interface: ITagDropEvent
|
|
17522
17689
|
|
|
17523
|
-
Defined in: [lib/control.ts:
|
|
17690
|
+
Defined in: [lib/control.ts:1682](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1682)
|
|
17524
17691
|
|
|
17525
17692
|
## Properties
|
|
17526
17693
|
|
|
@@ -17528,7 +17695,7 @@ Defined in: [lib/control.ts:1670](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17528
17695
|
|
|
17529
17696
|
> **detail**: `object`
|
|
17530
17697
|
|
|
17531
|
-
Defined in: [lib/control.ts:
|
|
17698
|
+
Defined in: [lib/control.ts:1683](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1683)
|
|
17532
17699
|
|
|
17533
17700
|
#### after
|
|
17534
17701
|
|
|
@@ -17675,7 +17842,7 @@ lib/control/interfaces/ITuieditorImguploadEvent.md
|
|
|
17675
17842
|
|
|
17676
17843
|
# Interface: ITuieditorImguploadEvent
|
|
17677
17844
|
|
|
17678
|
-
Defined in: [lib/control.ts:
|
|
17845
|
+
Defined in: [lib/control.ts:1668](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1668)
|
|
17679
17846
|
|
|
17680
17847
|
## Properties
|
|
17681
17848
|
|
|
@@ -17683,7 +17850,7 @@ Defined in: [lib/control.ts:1656](https://github.com/maiyun/clickgo/blob/master/
|
|
|
17683
17850
|
|
|
17684
17851
|
> **detail**: `object`
|
|
17685
17852
|
|
|
17686
|
-
Defined in: [lib/control.ts:
|
|
17853
|
+
Defined in: [lib/control.ts:1669](https://github.com/maiyun/clickgo/blob/master/dist/lib/control.ts#L1669)
|
|
17687
17854
|
|
|
17688
17855
|
#### callback
|
|
17689
17856
|
|
|
@@ -32525,7 +32692,7 @@ lib/native/interfaces/INativeLaunchEvent.md
|
|
|
32525
32692
|
|
|
32526
32693
|
# Interface: INativeLaunchEvent
|
|
32527
32694
|
|
|
32528
|
-
Defined in: lib/native/events.ts:5
|
|
32695
|
+
Defined in: [lib/native/events.ts:5](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L5)
|
|
32529
32696
|
|
|
32530
32697
|
普通 GUI 启动请求;CLI/stdio 由 Native 单独处理,不投递此事件
|
|
32531
32698
|
|
|
@@ -32535,7 +32702,7 @@ Defined in: lib/native/events.ts:5
|
|
|
32535
32702
|
|
|
32536
32703
|
> **args**: `string`[]
|
|
32537
32704
|
|
|
32538
|
-
Defined in: lib/native/events.ts:10
|
|
32705
|
+
Defined in: [lib/native/events.ts:10](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L10)
|
|
32539
32706
|
|
|
32540
32707
|
去掉可执行文件和开发入口后的业务参数,保留顺序
|
|
32541
32708
|
|
|
@@ -32545,7 +32712,7 @@ Defined in: lib/native/events.ts:10
|
|
|
32545
32712
|
|
|
32546
32713
|
> **cwd**: `string`
|
|
32547
32714
|
|
|
32548
|
-
Defined in: lib/native/events.ts:12
|
|
32715
|
+
Defined in: [lib/native/events.ts:12](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L12)
|
|
32549
32716
|
|
|
32550
32717
|
原生绝对工作目录,参数中的相对路径以此为基准
|
|
32551
32718
|
|
|
@@ -32555,7 +32722,7 @@ Defined in: lib/native/events.ts:12
|
|
|
32555
32722
|
|
|
32556
32723
|
> **requestId**: `number`
|
|
32557
32724
|
|
|
32558
|
-
Defined in: lib/native/events.ts:7
|
|
32725
|
+
Defined in: [lib/native/events.ts:7](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L7)
|
|
32559
32726
|
|
|
32560
32727
|
本进程内请求 ID;同一次启动的文件事件使用相同 ID
|
|
32561
32728
|
|
|
@@ -32565,7 +32732,7 @@ Defined in: lib/native/events.ts:7
|
|
|
32565
32732
|
|
|
32566
32733
|
> **source**: `"startup"` \| `"second-instance"`
|
|
32567
32734
|
|
|
32568
|
-
Defined in: lib/native/events.ts:8
|
|
32735
|
+
Defined in: [lib/native/events.ts:8](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L8)
|
|
32569
32736
|
|
|
32570
32737
|
lib/native/interfaces/INativeOpenFilesInfo.md
|
|
32571
32738
|
---
|
|
@@ -32578,7 +32745,7 @@ lib/native/interfaces/INativeOpenFilesInfo.md
|
|
|
32578
32745
|
|
|
32579
32746
|
# Interface: INativeOpenFilesInfo
|
|
32580
32747
|
|
|
32581
|
-
Defined in: lib/native/events.ts:16
|
|
32748
|
+
Defined in: [lib/native/events.ts:16](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L16)
|
|
32582
32749
|
|
|
32583
32750
|
文件事件上下文;paths 为不含 /storage/ 的 ClickGo 绝对文件路径
|
|
32584
32751
|
|
|
@@ -32588,7 +32755,7 @@ Defined in: lib/native/events.ts:16
|
|
|
32588
32755
|
|
|
32589
32756
|
> **requestId**: `number`
|
|
32590
32757
|
|
|
32591
|
-
Defined in: lib/native/events.ts:17
|
|
32758
|
+
Defined in: [lib/native/events.ts:17](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L17)
|
|
32592
32759
|
|
|
32593
32760
|
***
|
|
32594
32761
|
|
|
@@ -32596,7 +32763,7 @@ Defined in: lib/native/events.ts:17
|
|
|
32596
32763
|
|
|
32597
32764
|
> **source**: [`TNativeOpenFilesSource`](../type-aliases/TNativeOpenFilesSource.md)
|
|
32598
32765
|
|
|
32599
|
-
Defined in: lib/native/events.ts:18
|
|
32766
|
+
Defined in: [lib/native/events.ts:18](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L18)
|
|
32600
32767
|
|
|
32601
32768
|
lib/native/interfaces/IUpdateProgress.md
|
|
32602
32769
|
---
|
|
@@ -33081,7 +33248,7 @@ lib/native/type-aliases/TNativeOpenFilesSource.md
|
|
|
33081
33248
|
|
|
33082
33249
|
> **TNativeOpenFilesSource** = `"startup"` \| `"second-instance"` \| `"association"` \| `"drop"`
|
|
33083
33250
|
|
|
33084
|
-
Defined in: lib/native/events.ts:2
|
|
33251
|
+
Defined in: [lib/native/events.ts:2](https://github.com/maiyun/clickgo/blob/master/dist/lib/native/events.ts#L2)
|
|
33085
33252
|
|
|
33086
33253
|
操作系统文件打开请求来源
|
|
33087
33254
|
|
|
@@ -35976,7 +36143,7 @@ lib/tool/enumerations/ESTATE.md
|
|
|
35976
36143
|
|
|
35977
36144
|
# Enumeration: ESTATE
|
|
35978
36145
|
|
|
35979
|
-
Defined in: [lib/tool.ts:
|
|
36146
|
+
Defined in: [lib/tool.ts:593](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L593)
|
|
35980
36147
|
|
|
35981
36148
|
状态机状态
|
|
35982
36149
|
|
|
@@ -35986,7 +36153,7 @@ Defined in: [lib/tool.ts:591](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
35986
36153
|
|
|
35987
36154
|
> **COMMENT**: `4`
|
|
35988
36155
|
|
|
35989
|
-
Defined in: [lib/tool.ts:
|
|
36156
|
+
Defined in: [lib/tool.ts:603](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L603)
|
|
35990
36157
|
|
|
35991
36158
|
注释
|
|
35992
36159
|
|
|
@@ -35996,7 +36163,7 @@ Defined in: [lib/tool.ts:601](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
35996
36163
|
|
|
35997
36164
|
> **NORMAL**: `0`
|
|
35998
36165
|
|
|
35999
|
-
Defined in: [lib/tool.ts:
|
|
36166
|
+
Defined in: [lib/tool.ts:595](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L595)
|
|
36000
36167
|
|
|
36001
36168
|
普通
|
|
36002
36169
|
|
|
@@ -36006,7 +36173,7 @@ Defined in: [lib/tool.ts:593](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36006
36173
|
|
|
36007
36174
|
> **REG**: `3`
|
|
36008
36175
|
|
|
36009
|
-
Defined in: [lib/tool.ts:
|
|
36176
|
+
Defined in: [lib/tool.ts:601](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L601)
|
|
36010
36177
|
|
|
36011
36178
|
正则
|
|
36012
36179
|
|
|
@@ -36016,7 +36183,7 @@ Defined in: [lib/tool.ts:599](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36016
36183
|
|
|
36017
36184
|
> **STRING**: `2`
|
|
36018
36185
|
|
|
36019
|
-
Defined in: [lib/tool.ts:
|
|
36186
|
+
Defined in: [lib/tool.ts:599](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L599)
|
|
36020
36187
|
|
|
36021
36188
|
字符串
|
|
36022
36189
|
|
|
@@ -36026,7 +36193,7 @@ Defined in: [lib/tool.ts:597](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36026
36193
|
|
|
36027
36194
|
> **WORD**: `1`
|
|
36028
36195
|
|
|
36029
|
-
Defined in: [lib/tool.ts:
|
|
36196
|
+
Defined in: [lib/tool.ts:597](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L597)
|
|
36030
36197
|
|
|
36031
36198
|
单词
|
|
36032
36199
|
|
|
@@ -36043,7 +36210,7 @@ lib/tool/functions/blob2ArrayBuffer.md
|
|
|
36043
36210
|
|
|
36044
36211
|
> **blob2ArrayBuffer**(`blob`): `Promise`\<`ArrayBuffer`\>
|
|
36045
36212
|
|
|
36046
|
-
Defined in: [lib/tool.ts:
|
|
36213
|
+
Defined in: [lib/tool.ts:71](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L71)
|
|
36047
36214
|
|
|
36048
36215
|
将 blob 对象转换为 ArrayBuffer
|
|
36049
36216
|
|
|
@@ -36072,7 +36239,7 @@ lib/tool/functions/blob2DataUrl.md
|
|
|
36072
36239
|
|
|
36073
36240
|
> **blob2DataUrl**(`blob`): `Promise`\<`string`\>
|
|
36074
36241
|
|
|
36075
|
-
Defined in: [lib/tool.ts:
|
|
36242
|
+
Defined in: [lib/tool.ts:494](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L494)
|
|
36076
36243
|
|
|
36077
36244
|
将 blob 对象转换为 base64 url
|
|
36078
36245
|
|
|
@@ -36103,7 +36270,7 @@ lib/tool/functions/blob2Text.md
|
|
|
36103
36270
|
|
|
36104
36271
|
> **blob2Text**(`blob`): `Promise`\<`string`\>
|
|
36105
36272
|
|
|
36106
|
-
Defined in: [lib/tool.ts:
|
|
36273
|
+
Defined in: [lib/tool.ts:485](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L485)
|
|
36107
36274
|
|
|
36108
36275
|
将 blob 对象转换为 text
|
|
36109
36276
|
|
|
@@ -36132,7 +36299,7 @@ lib/tool/functions/clone.md
|
|
|
36132
36299
|
|
|
36133
36300
|
> **clone**\<`T`\>(`obj`): `T`
|
|
36134
36301
|
|
|
36135
|
-
Defined in: [lib/tool.ts:
|
|
36302
|
+
Defined in: [lib/tool.ts:98](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L98)
|
|
36136
36303
|
|
|
36137
36304
|
完整的克隆一份数组/对象
|
|
36138
36305
|
|
|
@@ -36169,7 +36336,7 @@ lib/tool/functions/compar.md
|
|
|
36169
36336
|
|
|
36170
36337
|
> **compar**(`before`, `after`): `object`
|
|
36171
36338
|
|
|
36172
|
-
Defined in: [lib/tool.ts:
|
|
36339
|
+
Defined in: [lib/tool.ts:507](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L507)
|
|
36173
36340
|
|
|
36174
36341
|
- 对比老值和新值,看看新值中哪些移除了,哪些新增了
|
|
36175
36342
|
|
|
@@ -36224,7 +36391,7 @@ lib/tool/functions/compressor.md
|
|
|
36224
36391
|
|
|
36225
36392
|
> **compressor**\<`T`\>(`file`, `options?`): `Promise`\<`false` \| `T`\>
|
|
36226
36393
|
|
|
36227
|
-
Defined in: [lib/tool.ts:
|
|
36394
|
+
Defined in: [lib/tool.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L35)
|
|
36228
36395
|
|
|
36229
36396
|
压缩一个图片
|
|
36230
36397
|
|
|
@@ -36268,6 +36435,80 @@ Defined in: [lib/tool.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
36268
36435
|
|
|
36269
36436
|
`Promise`\<`false` \| `T`\>
|
|
36270
36437
|
|
|
36438
|
+
lib/tool/functions/decodeText.md
|
|
36439
|
+
---
|
|
36440
|
+
|
|
36441
|
+
[**Documents for clickgo**](../../../index.md)
|
|
36442
|
+
|
|
36443
|
+
***
|
|
36444
|
+
|
|
36445
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / decodeText
|
|
36446
|
+
|
|
36447
|
+
# Function: decodeText()
|
|
36448
|
+
|
|
36449
|
+
> **decodeText**(`data`, `encoding?`): `false` \| [`IDecodedText`](../interfaces/IDecodedText.md)
|
|
36450
|
+
|
|
36451
|
+
Defined in: [lib/tool/encoding.ts:23](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L23)
|
|
36452
|
+
|
|
36453
|
+
严格解码文本;自动模式按 BOM 识别,否则采用 UTF-8,不猜测传统编码
|
|
36454
|
+
|
|
36455
|
+
## Parameters
|
|
36456
|
+
|
|
36457
|
+
### data
|
|
36458
|
+
|
|
36459
|
+
`ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\>
|
|
36460
|
+
|
|
36461
|
+
原始字节,Uint8Array 仅处理其视图范围
|
|
36462
|
+
|
|
36463
|
+
### encoding?
|
|
36464
|
+
|
|
36465
|
+
[`TTextEncoding`](../type-aliases/TTextEncoding.md)
|
|
36466
|
+
|
|
36467
|
+
显式编码;省略时自动识别,显式编码与 BOM 冲突时失败
|
|
36468
|
+
|
|
36469
|
+
## Returns
|
|
36470
|
+
|
|
36471
|
+
`false` \| [`IDecodedText`](../interfaces/IDecodedText.md)
|
|
36472
|
+
|
|
36473
|
+
正文与实际采用的编码/BOM;非法字节、不支持的编码或 UTF-32 BOM 为 false
|
|
36474
|
+
|
|
36475
|
+
lib/tool/functions/encodeText.md
|
|
36476
|
+
---
|
|
36477
|
+
|
|
36478
|
+
[**Documents for clickgo**](../../../index.md)
|
|
36479
|
+
|
|
36480
|
+
***
|
|
36481
|
+
|
|
36482
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / encodeText
|
|
36483
|
+
|
|
36484
|
+
# Function: encodeText()
|
|
36485
|
+
|
|
36486
|
+
> **encodeText**(`text`, `options?`): `false` \| `Uint8Array`\<`ArrayBuffer`\>
|
|
36487
|
+
|
|
36488
|
+
Defined in: [lib/tool/encoding.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L33)
|
|
36489
|
+
|
|
36490
|
+
将正文无损编码为字节,不自动规范化换行
|
|
36491
|
+
|
|
36492
|
+
## Parameters
|
|
36493
|
+
|
|
36494
|
+
### text
|
|
36495
|
+
|
|
36496
|
+
`string`
|
|
36497
|
+
|
|
36498
|
+
正文,不含文件头 BOM;正文自身的 U+FEFF 保留
|
|
36499
|
+
|
|
36500
|
+
### options?
|
|
36501
|
+
|
|
36502
|
+
[`ITextEncoding`](../interfaces/ITextEncoding.md) = `...`
|
|
36503
|
+
|
|
36504
|
+
编码及 BOM;默认 UTF-8 且无 BOM,GB18030 不允许 BOM
|
|
36505
|
+
|
|
36506
|
+
## Returns
|
|
36507
|
+
|
|
36508
|
+
`false` \| `Uint8Array`\<`ArrayBuffer`\>
|
|
36509
|
+
|
|
36510
|
+
新字节数组;非法 UTF-16 代理项、无损编码失败或无效选项为 false,不用替代字符
|
|
36511
|
+
|
|
36271
36512
|
lib/tool/functions/escapeHTML.md
|
|
36272
36513
|
---
|
|
36273
36514
|
|
|
@@ -36281,7 +36522,7 @@ lib/tool/functions/escapeHTML.md
|
|
|
36281
36522
|
|
|
36282
36523
|
> **escapeHTML**(`html`): `string`
|
|
36283
36524
|
|
|
36284
|
-
Defined in: [lib/tool.ts:
|
|
36525
|
+
Defined in: [lib/tool.ts:278](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L278)
|
|
36285
36526
|
|
|
36286
36527
|
转义 HTML
|
|
36287
36528
|
|
|
@@ -36310,7 +36551,7 @@ lib/tool/functions/eventsAttrWrap.md
|
|
|
36310
36551
|
|
|
36311
36552
|
> **eventsAttrWrap**(`layout`): `string`
|
|
36312
36553
|
|
|
36313
|
-
Defined in: [lib/tool.ts:
|
|
36554
|
+
Defined in: [lib/tool.ts:188](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L188)
|
|
36314
36555
|
|
|
36315
36556
|
对 layout 的 events 事件进行包裹
|
|
36316
36557
|
|
|
@@ -36339,7 +36580,7 @@ lib/tool/functions/execCommand.md
|
|
|
36339
36580
|
|
|
36340
36581
|
> **execCommand**(`ac`): `void`
|
|
36341
36582
|
|
|
36342
|
-
Defined in: [lib/tool.ts:
|
|
36583
|
+
Defined in: [lib/tool.ts:498](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L498)
|
|
36343
36584
|
|
|
36344
36585
|
## Parameters
|
|
36345
36586
|
|
|
@@ -36364,7 +36605,7 @@ lib/tool/functions/fetch.md
|
|
|
36364
36605
|
|
|
36365
36606
|
> **fetch**(`url`, `init?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
36366
36607
|
|
|
36367
|
-
Defined in: [lib/tool.ts:
|
|
36608
|
+
Defined in: [lib/tool.ts:377](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L377)
|
|
36368
36609
|
|
|
36369
36610
|
发起 fetch 请求
|
|
36370
36611
|
|
|
@@ -36401,7 +36642,7 @@ lib/tool/functions/formatColor.md
|
|
|
36401
36642
|
|
|
36402
36643
|
> **formatColor**(`color`): `number`[]
|
|
36403
36644
|
|
|
36404
|
-
Defined in: [lib/tool.ts:
|
|
36645
|
+
Defined in: [lib/tool.ts:294](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L294)
|
|
36405
36646
|
|
|
36406
36647
|
将 rgb 或 hsl 等颜色转换为数字数组
|
|
36407
36648
|
|
|
@@ -36430,7 +36671,7 @@ lib/tool/functions/formatSecond.md
|
|
|
36430
36671
|
|
|
36431
36672
|
> **formatSecond**(`second`): `string`
|
|
36432
36673
|
|
|
36433
|
-
Defined in: [lib/tool.ts:
|
|
36674
|
+
Defined in: [lib/tool.ts:519](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L519)
|
|
36434
36675
|
|
|
36435
36676
|
将秒数格式化为 0:0:0 的字符串
|
|
36436
36677
|
|
|
@@ -36457,7 +36698,7 @@ lib/tool/functions/formatTime.md
|
|
|
36457
36698
|
|
|
36458
36699
|
> **formatTime**(`ts`, `tz?`): `object`
|
|
36459
36700
|
|
|
36460
|
-
Defined in: [lib/tool.ts:
|
|
36701
|
+
Defined in: [lib/tool.ts:528](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L528)
|
|
36461
36702
|
|
|
36462
36703
|
将日期对象或毫秒级时间戳转换为字符串
|
|
36463
36704
|
|
|
@@ -36504,7 +36745,7 @@ lib/tool/functions/getArray.md
|
|
|
36504
36745
|
|
|
36505
36746
|
> **getArray**(`param`): `any`[]
|
|
36506
36747
|
|
|
36507
|
-
Defined in: [lib/tool.ts:
|
|
36748
|
+
Defined in: [lib/tool.ts:270](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L270)
|
|
36508
36749
|
|
|
36509
36750
|
根据参数获取最终的数组型,可传入类似 [1,2,3] 或 1,2,3
|
|
36510
36751
|
|
|
@@ -36533,7 +36774,7 @@ lib/tool/functions/getBoolean.md
|
|
|
36533
36774
|
|
|
36534
36775
|
> **getBoolean**(`param`): `boolean`
|
|
36535
36776
|
|
|
36536
|
-
Defined in: [lib/tool.ts:
|
|
36777
|
+
Defined in: [lib/tool.ts:254](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L254)
|
|
36537
36778
|
|
|
36538
36779
|
根据参数获取最终的布尔值
|
|
36539
36780
|
|
|
@@ -36562,7 +36803,7 @@ lib/tool/functions/getClassPrototype.md
|
|
|
36562
36803
|
|
|
36563
36804
|
> **getClassPrototype**(`obj`, `over?`, `level?`): [`IClassPrototype`](../interfaces/IClassPrototype.md)
|
|
36564
36805
|
|
|
36565
|
-
Defined in: [lib/tool.ts:
|
|
36806
|
+
Defined in: [lib/tool.ts:63](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L63)
|
|
36566
36807
|
|
|
36567
36808
|
获取 class 的所有 method 和 get/set
|
|
36568
36809
|
|
|
@@ -36603,7 +36844,7 @@ lib/tool/functions/get.md
|
|
|
36603
36844
|
|
|
36604
36845
|
> **get**(`url`, `init?`, `opt?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
36605
36846
|
|
|
36606
|
-
Defined in: [lib/tool.ts:
|
|
36847
|
+
Defined in: [lib/tool.ts:388](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L388)
|
|
36607
36848
|
|
|
36608
36849
|
发起 GET 请求
|
|
36609
36850
|
|
|
@@ -36650,7 +36891,7 @@ lib/tool/functions/getMimeByPath.md
|
|
|
36650
36891
|
|
|
36651
36892
|
> **getMimeByPath**(`path`): `object`
|
|
36652
36893
|
|
|
36653
|
-
Defined in: [lib/tool.ts:
|
|
36894
|
+
Defined in: [lib/tool.ts:214](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L214)
|
|
36654
36895
|
|
|
36655
36896
|
根据后缀、文件名或路径获取 mime 类型(简单版,完整版请使用 @litert/mime.js)
|
|
36656
36897
|
|
|
@@ -36687,7 +36928,7 @@ lib/tool/functions/getNumber.md
|
|
|
36687
36928
|
|
|
36688
36929
|
> **getNumber**(`param`): `number`
|
|
36689
36930
|
|
|
36690
|
-
Defined in: [lib/tool.ts:
|
|
36931
|
+
Defined in: [lib/tool.ts:262](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L262)
|
|
36691
36932
|
|
|
36692
36933
|
根据参数获取最终的数字型
|
|
36693
36934
|
|
|
@@ -36716,7 +36957,7 @@ lib/tool/functions/getResponseJson.md
|
|
|
36716
36957
|
|
|
36717
36958
|
> **getResponseJson**(`url`, `init?`): `Promise`\<`any`\>
|
|
36718
36959
|
|
|
36719
|
-
Defined in: [lib/tool.ts:
|
|
36960
|
+
Defined in: [lib/tool.ts:414](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L414)
|
|
36720
36961
|
|
|
36721
36962
|
发起 GET 请求并解析 JSON 响应
|
|
36722
36963
|
|
|
@@ -36753,7 +36994,7 @@ lib/tool/functions/hex2rgb.md
|
|
|
36753
36994
|
|
|
36754
36995
|
> **hex2rgb**(`hex`): `object`
|
|
36755
36996
|
|
|
36756
|
-
Defined in: [lib/tool.ts:
|
|
36997
|
+
Defined in: [lib/tool.ts:312](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L312)
|
|
36757
36998
|
|
|
36758
36999
|
hex 转换为 rgba,#27ae60ff, 27ae60 #fff
|
|
36759
37000
|
|
|
@@ -36802,7 +37043,7 @@ lib/tool/functions/hsl2rgb.md
|
|
|
36802
37043
|
|
|
36803
37044
|
> **hsl2rgb**(`h`, `s?`, `l?`, `a?`, `decimal?`): `object`
|
|
36804
37045
|
|
|
36805
|
-
Defined in: [lib/tool.ts:
|
|
37046
|
+
Defined in: [lib/tool.ts:350](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L350)
|
|
36806
37047
|
|
|
36807
37048
|
hsl 字符串转 rgb 数组
|
|
36808
37049
|
|
|
@@ -36875,7 +37116,7 @@ lib/tool/functions/isEscapeChar.md
|
|
|
36875
37116
|
|
|
36876
37117
|
> **isEscapeChar**(`code`, `index`): `boolean`
|
|
36877
37118
|
|
|
36878
|
-
Defined in: [lib/tool.ts:
|
|
37119
|
+
Defined in: [lib/tool.ts:588](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L588)
|
|
36879
37120
|
|
|
36880
37121
|
判断字符是否是转义字符
|
|
36881
37122
|
|
|
@@ -36912,7 +37153,7 @@ lib/tool/functions/isEscaped.md
|
|
|
36912
37153
|
|
|
36913
37154
|
> **isEscaped**(`str`, `pos`): `boolean`
|
|
36914
37155
|
|
|
36915
|
-
Defined in: [lib/tool.ts:
|
|
37156
|
+
Defined in: [lib/tool.ts:568](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L568)
|
|
36916
37157
|
|
|
36917
37158
|
转义字符检查
|
|
36918
37159
|
检查指定位置的字符是否被转义
|
|
@@ -36950,7 +37191,7 @@ lib/tool/functions/isFalsy.md
|
|
|
36950
37191
|
|
|
36951
37192
|
> **isFalsy**(`val`): `val is TFalsy`
|
|
36952
37193
|
|
|
36953
|
-
Defined in: [lib/tool.ts:
|
|
37194
|
+
Defined in: [lib/tool.ts:713](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L713)
|
|
36954
37195
|
|
|
36955
37196
|
判断一个值是否是虚假的(为 null/undefined/空字符串/false/0)
|
|
36956
37197
|
|
|
@@ -36979,7 +37220,7 @@ lib/tool/functions/isJson.md
|
|
|
36979
37220
|
|
|
36980
37221
|
> **isJson**(`value`): `value is TJson`
|
|
36981
37222
|
|
|
36982
|
-
Defined in: [lib/tool.ts:
|
|
37223
|
+
Defined in: [lib/tool.ts:705](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L705)
|
|
36983
37224
|
|
|
36984
37225
|
判断 JS 值是否符合 JSON 数据约束;字符串按数据值接受,不解析其内容
|
|
36985
37226
|
|
|
@@ -37010,7 +37251,7 @@ lib/tool/functions/isMs.md
|
|
|
37010
37251
|
|
|
37011
37252
|
> **isMs**(`time`): `boolean`
|
|
37012
37253
|
|
|
37013
|
-
Defined in: [lib/tool.ts:
|
|
37254
|
+
Defined in: [lib/tool.ts:540](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L540)
|
|
37014
37255
|
|
|
37015
37256
|
是否是毫秒
|
|
37016
37257
|
|
|
@@ -37039,7 +37280,7 @@ lib/tool/functions/isTruthy.md
|
|
|
37039
37280
|
|
|
37040
37281
|
> **isTruthy**(`val`): `val is any`
|
|
37041
37282
|
|
|
37042
|
-
Defined in: [lib/tool.ts:
|
|
37283
|
+
Defined in: [lib/tool.ts:721](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L721)
|
|
37043
37284
|
|
|
37044
37285
|
判断一个值是否是真实的(不为 null/undefined/空字符串/false/0)
|
|
37045
37286
|
|
|
@@ -37068,7 +37309,7 @@ lib/tool/functions/layoutAddTagClassAndReTagName.md
|
|
|
37068
37309
|
|
|
37069
37310
|
> **layoutAddTagClassAndReTagName**(`layout`, `retagname`): `string`
|
|
37070
37311
|
|
|
37071
|
-
Defined in: [lib/tool.ts:
|
|
37312
|
+
Defined in: [lib/tool.ts:161](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L161)
|
|
37072
37313
|
|
|
37073
37314
|
给标签增加 tag-tagname 的 class,同时给标签增加 cg- 前导(仅字符串,不是操作真实 dom)
|
|
37074
37315
|
|
|
@@ -37103,7 +37344,7 @@ lib/tool/functions/layoutClassPrepend.md
|
|
|
37103
37344
|
|
|
37104
37345
|
> **layoutClassPrepend**(`layout`, `preps`): `string`
|
|
37105
37346
|
|
|
37106
|
-
Defined in: [lib/tool.ts:
|
|
37347
|
+
Defined in: [lib/tool.ts:180](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L180)
|
|
37107
37348
|
|
|
37108
37349
|
给 class 增加 scope 的随机前缀,给 id 新增前缀
|
|
37109
37350
|
|
|
@@ -37138,7 +37379,7 @@ lib/tool/functions/layoutInsertAttr.md
|
|
|
37138
37379
|
|
|
37139
37380
|
> **layoutInsertAttr**(`layout`, `insert`, `opt?`): `string`
|
|
37140
37381
|
|
|
37141
|
-
Defined in: [lib/tool.ts:
|
|
37382
|
+
Defined in: [lib/tool.ts:171](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L171)
|
|
37142
37383
|
|
|
37143
37384
|
给标签追加 attr,即使 attr 存在也会追加上一个新的(非真实 DOM 操作,仅仅是对字符串进行处理)
|
|
37144
37385
|
|
|
@@ -37185,7 +37426,7 @@ lib/tool/functions/loadAssets.md
|
|
|
37185
37426
|
|
|
37186
37427
|
> **loadAssets**(`urls`, `opt?`): `Promise`\<`boolean`\>
|
|
37187
37428
|
|
|
37188
|
-
Defined in: [lib/tool.ts:
|
|
37429
|
+
Defined in: [lib/tool.ts:686](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L686)
|
|
37189
37430
|
|
|
37190
37431
|
批量并行加载 JS 和 CSS;JS 按列表顺序执行,CSS 按列表顺序插入
|
|
37191
37432
|
|
|
@@ -37224,7 +37465,7 @@ lib/tool/functions/loadLink.md
|
|
|
37224
37465
|
|
|
37225
37466
|
> **loadLink**(`url`, `pos?`): `Promise`\<`boolean`\>
|
|
37226
37467
|
|
|
37227
|
-
Defined in: [lib/tool.ts:
|
|
37468
|
+
Defined in: [lib/tool.ts:665](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L665)
|
|
37228
37469
|
|
|
37229
37470
|
加载 css 文件
|
|
37230
37471
|
|
|
@@ -37259,7 +37500,7 @@ lib/tool/functions/loadLinks.md
|
|
|
37259
37500
|
|
|
37260
37501
|
> **loadLinks**(`urls`, `opt?`): `Promise`\<`void`\>
|
|
37261
37502
|
|
|
37262
|
-
Defined in: [lib/tool.ts:
|
|
37503
|
+
Defined in: [lib/tool.ts:674](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L674)
|
|
37263
37504
|
|
|
37264
37505
|
批量加载 css 文件
|
|
37265
37506
|
|
|
@@ -37296,7 +37537,7 @@ lib/tool/functions/loadScript.md
|
|
|
37296
37537
|
|
|
37297
37538
|
> **loadScript**(`url`, `ordered?`): `Promise`\<`boolean`\>
|
|
37298
37539
|
|
|
37299
|
-
Defined in: [lib/tool.ts:
|
|
37540
|
+
Defined in: [lib/tool.ts:643](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L643)
|
|
37300
37541
|
|
|
37301
37542
|
加载脚本
|
|
37302
37543
|
|
|
@@ -37333,7 +37574,7 @@ lib/tool/functions/loadScripts.md
|
|
|
37333
37574
|
|
|
37334
37575
|
> **loadScripts**(`urls`, `opt?`): `Promise`\<`void`\>
|
|
37335
37576
|
|
|
37336
|
-
Defined in: [lib/tool.ts:
|
|
37577
|
+
Defined in: [lib/tool.ts:652](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L652)
|
|
37337
37578
|
|
|
37338
37579
|
批量加载 js 文件
|
|
37339
37580
|
|
|
@@ -37376,7 +37617,7 @@ lib/tool/functions/loadStyle.md
|
|
|
37376
37617
|
|
|
37377
37618
|
> **loadStyle**(`style`): `void`
|
|
37378
37619
|
|
|
37379
|
-
Defined in: [lib/tool.ts:
|
|
37620
|
+
Defined in: [lib/tool.ts:696](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L696)
|
|
37380
37621
|
|
|
37381
37622
|
加载 css 字符串
|
|
37382
37623
|
|
|
@@ -37405,7 +37646,7 @@ lib/tool/functions/logicalOr.md
|
|
|
37405
37646
|
|
|
37406
37647
|
> **logicalOr**\<`T`, `T2`\>(`v1`, `v2`): \[`T`\] *extends* \[[`TFalsy`](../type-aliases/TFalsy.md)\] ? `T2` : `T`
|
|
37407
37648
|
|
|
37408
|
-
Defined in: [lib/tool.ts:
|
|
37649
|
+
Defined in: [lib/tool.ts:730](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L730)
|
|
37409
37650
|
|
|
37410
37651
|
类似 || 运算符的效果
|
|
37411
37652
|
|
|
@@ -37450,7 +37691,7 @@ lib/tool/functions/match.md
|
|
|
37450
37691
|
|
|
37451
37692
|
> **match**(`str`, `regs`): `boolean`
|
|
37452
37693
|
|
|
37453
|
-
Defined in: [lib/tool.ts:
|
|
37694
|
+
Defined in: [lib/tool.ts:138](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L138)
|
|
37454
37695
|
|
|
37455
37696
|
传入正则进行匹配 str 是否有一项满足
|
|
37456
37697
|
|
|
@@ -37485,7 +37726,7 @@ lib/tool/functions/nextFrame.md
|
|
|
37485
37726
|
|
|
37486
37727
|
> **nextFrame**(): `Promise`\<`void`\>
|
|
37487
37728
|
|
|
37488
|
-
Defined in: [lib/tool.ts:
|
|
37729
|
+
Defined in: [lib/tool.ts:113](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L113)
|
|
37489
37730
|
|
|
37490
37731
|
等待浏览器帧
|
|
37491
37732
|
|
|
@@ -37506,7 +37747,7 @@ lib/tool/functions/parseArrayString.md
|
|
|
37506
37747
|
|
|
37507
37748
|
> **parseArrayString**(`arrayStr`): `string`[]
|
|
37508
37749
|
|
|
37509
|
-
Defined in: [lib/tool.ts:
|
|
37750
|
+
Defined in: [lib/tool.ts:578](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L578)
|
|
37510
37751
|
|
|
37511
37752
|
数组字符串解析器
|
|
37512
37753
|
解析数组字符串为各元素组成的字符串数组
|
|
@@ -37538,7 +37779,7 @@ lib/tool/functions/parseUrl.md
|
|
|
37538
37779
|
|
|
37539
37780
|
> **parseUrl**(`url`): [`IUrl`](../interfaces/IUrl.md)
|
|
37540
37781
|
|
|
37541
|
-
Defined in: [lib/tool.ts:
|
|
37782
|
+
Defined in: [lib/tool.ts:463](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L463)
|
|
37542
37783
|
|
|
37543
37784
|
传输 url 并解析为 IUrl 对象
|
|
37544
37785
|
|
|
@@ -37567,7 +37808,7 @@ lib/tool/functions/post.md
|
|
|
37567
37808
|
|
|
37568
37809
|
> **post**(`url`, `data`, `init?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
37569
37810
|
|
|
37570
|
-
Defined in: [lib/tool.ts:
|
|
37811
|
+
Defined in: [lib/tool.ts:402](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L402)
|
|
37571
37812
|
|
|
37572
37813
|
发起 POST 请求(除 FormData 外都会转换为 JSON 提交)
|
|
37573
37814
|
|
|
@@ -37610,7 +37851,7 @@ lib/tool/functions/postResponseEventStream.md
|
|
|
37610
37851
|
|
|
37611
37852
|
> **postResponseEventStream**(`url`, `data`, `opts?`): `AbortController`
|
|
37612
37853
|
|
|
37613
|
-
Defined in: [lib/tool.ts:
|
|
37854
|
+
Defined in: [lib/tool.ts:425](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L425)
|
|
37614
37855
|
|
|
37615
37856
|
发起 JSON 请求并获得文本 SSE 响应
|
|
37616
37857
|
|
|
@@ -37685,7 +37926,7 @@ lib/tool/functions/postResponseJson.md
|
|
|
37685
37926
|
|
|
37686
37927
|
> **postResponseJson**(`url`, `data`, `init?`): `Promise`\<`any`\>
|
|
37687
37928
|
|
|
37688
|
-
Defined in: [lib/tool.ts:
|
|
37929
|
+
Defined in: [lib/tool.ts:453](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L453)
|
|
37689
37930
|
|
|
37690
37931
|
发起 POST 请求并解析 JSON 响应
|
|
37691
37932
|
|
|
@@ -37728,7 +37969,7 @@ lib/tool/functions/purify.md
|
|
|
37728
37969
|
|
|
37729
37970
|
> **purify**(`text`): `string`
|
|
37730
37971
|
|
|
37731
|
-
Defined in: [lib/tool.ts:
|
|
37972
|
+
Defined in: [lib/tool.ts:129](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L129)
|
|
37732
37973
|
|
|
37733
37974
|
去除 html 的空白符、换行以及注释
|
|
37734
37975
|
|
|
@@ -37757,7 +37998,7 @@ lib/tool/functions/queryParse.md
|
|
|
37757
37998
|
|
|
37758
37999
|
> **queryParse**(`query`): `Record`\<`string`, `string` \| `string`[]\>
|
|
37759
38000
|
|
|
37760
|
-
Defined in: [lib/tool.ts:
|
|
38001
|
+
Defined in: [lib/tool.ts:557](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L557)
|
|
37761
38002
|
|
|
37762
38003
|
将 query string 转换为对象
|
|
37763
38004
|
|
|
@@ -37786,7 +38027,7 @@ lib/tool/functions/queryStringify.md
|
|
|
37786
38027
|
|
|
37787
38028
|
> **queryStringify**(`query`, `encode?`): `string`
|
|
37788
38029
|
|
|
37789
|
-
Defined in: [lib/tool.ts:
|
|
38030
|
+
Defined in: [lib/tool.ts:549](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L549)
|
|
37790
38031
|
|
|
37791
38032
|
将对象转换为 query string
|
|
37792
38033
|
|
|
@@ -37821,7 +38062,7 @@ lib/tool/functions/rand.md
|
|
|
37821
38062
|
|
|
37822
38063
|
> **rand**(`min`, `max`, `prec?`): `number`
|
|
37823
38064
|
|
|
37824
|
-
Defined in: [lib/tool.ts:
|
|
38065
|
+
Defined in: [lib/tool.ts:224](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L224)
|
|
37825
38066
|
|
|
37826
38067
|
生成范围内的随机数
|
|
37827
38068
|
|
|
@@ -37862,7 +38103,7 @@ lib/tool/functions/random.md
|
|
|
37862
38103
|
|
|
37863
38104
|
> **random**(`length?`, `source?`, `block?`): `string`
|
|
37864
38105
|
|
|
37865
|
-
Defined in: [lib/tool.ts:
|
|
38106
|
+
Defined in: [lib/tool.ts:246](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L246)
|
|
37866
38107
|
|
|
37867
38108
|
生成随机字符串
|
|
37868
38109
|
|
|
@@ -37905,7 +38146,7 @@ lib/tool/functions/request.md
|
|
|
37905
38146
|
|
|
37906
38147
|
> **request**(`url`, `opt`): `Promise`\<`any`\>
|
|
37907
38148
|
|
|
37908
|
-
Defined in: [lib/tool.ts:
|
|
38149
|
+
Defined in: [lib/tool.ts:367](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L367)
|
|
37909
38150
|
|
|
37910
38151
|
发起一个网络请求,若是返回值是 JSON 则自动解析,否则直接返回字符串
|
|
37911
38152
|
|
|
@@ -37940,7 +38181,7 @@ lib/tool/functions/rgb2hex.md
|
|
|
37940
38181
|
|
|
37941
38182
|
> **rgb2hex**(`r`, `g?`, `b?`, `a?`): `string`
|
|
37942
38183
|
|
|
37943
|
-
Defined in: [lib/tool.ts:
|
|
38184
|
+
Defined in: [lib/tool.ts:304](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L304)
|
|
37944
38185
|
|
|
37945
38186
|
将 r, g, b 转换为 hex 字符串,不含 #
|
|
37946
38187
|
|
|
@@ -37985,7 +38226,7 @@ lib/tool/functions/rgb2hsl.md
|
|
|
37985
38226
|
|
|
37986
38227
|
> **rgb2hsl**(`r`, `g?`, `b?`, `a?`, `decimal?`): `object`
|
|
37987
38228
|
|
|
37988
|
-
Defined in: [lib/tool.ts:
|
|
38229
|
+
Defined in: [lib/tool.ts:330](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L330)
|
|
37989
38230
|
|
|
37990
38231
|
rgb 字符串转 hsl 数组
|
|
37991
38232
|
|
|
@@ -38058,7 +38299,7 @@ lib/tool/functions/runIife.md
|
|
|
38058
38299
|
|
|
38059
38300
|
> **runIife**(`code`): `any`
|
|
38060
38301
|
|
|
38061
|
-
Defined in: [lib/tool.ts:
|
|
38302
|
+
Defined in: [lib/tool.ts:26](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L26)
|
|
38062
38303
|
|
|
38063
38304
|
运行 iife 代码
|
|
38064
38305
|
|
|
@@ -38089,7 +38330,7 @@ lib/tool/functions/sizeFormat.md
|
|
|
38089
38330
|
|
|
38090
38331
|
> **sizeFormat**(`size`, `spliter?`): `string`
|
|
38091
38332
|
|
|
38092
|
-
Defined in: [lib/tool.ts:
|
|
38333
|
+
Defined in: [lib/tool.ts:80](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L80)
|
|
38093
38334
|
|
|
38094
38335
|
将文件大小格式化为带单位的字符串
|
|
38095
38336
|
|
|
@@ -38124,7 +38365,7 @@ lib/tool/functions/sleepFrame.md
|
|
|
38124
38365
|
|
|
38125
38366
|
> **sleepFrame**(`count`): `Promise`\<`void`\>
|
|
38126
38367
|
|
|
38127
|
-
Defined in: [lib/tool.ts:
|
|
38368
|
+
Defined in: [lib/tool.ts:121](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L121)
|
|
38128
38369
|
|
|
38129
38370
|
等待浏览器帧
|
|
38130
38371
|
|
|
@@ -38153,7 +38394,7 @@ lib/tool/functions/sleep.md
|
|
|
38153
38394
|
|
|
38154
38395
|
> **sleep**(`ms?`): `Promise`\<`boolean`\>
|
|
38155
38396
|
|
|
38156
|
-
Defined in: [lib/tool.ts:
|
|
38397
|
+
Defined in: [lib/tool.ts:106](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L106)
|
|
38157
38398
|
|
|
38158
38399
|
等待毫秒
|
|
38159
38400
|
|
|
@@ -38182,7 +38423,7 @@ lib/tool/functions/stateMachine.md
|
|
|
38182
38423
|
|
|
38183
38424
|
> **stateMachine**(`code`, `start`, `process`): `void`
|
|
38184
38425
|
|
|
38185
|
-
Defined in: [lib/tool.ts:
|
|
38426
|
+
Defined in: [lib/tool.ts:613](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L613)
|
|
38186
38427
|
|
|
38187
38428
|
源码分段状态机,单词按 ASCII 字母、数字、_ 和 $ 识别
|
|
38188
38429
|
|
|
@@ -38225,7 +38466,7 @@ lib/tool/functions/stylePrepend.md
|
|
|
38225
38466
|
|
|
38226
38467
|
> **stylePrepend**(`style`, `prep?`): `object`
|
|
38227
38468
|
|
|
38228
|
-
Defined in: [lib/tool.ts:
|
|
38469
|
+
Defined in: [lib/tool.ts:206](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L206)
|
|
38229
38470
|
|
|
38230
38471
|
给 class 前部增加唯一标识符
|
|
38231
38472
|
|
|
@@ -38268,7 +38509,7 @@ lib/tool/functions/styleUrl2DataUrl.md
|
|
|
38268
38509
|
|
|
38269
38510
|
> **styleUrl2DataUrl**(`path`, `style`, `files`): `Promise`\<`string`\>
|
|
38270
38511
|
|
|
38271
|
-
Defined in: [lib/tool.ts:
|
|
38512
|
+
Defined in: [lib/tool.ts:148](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L148)
|
|
38272
38513
|
|
|
38273
38514
|
将 style 中的 url 转换成 base64 data url
|
|
38274
38515
|
|
|
@@ -38309,7 +38550,7 @@ lib/tool/functions/teleportGlue.md
|
|
|
38309
38550
|
|
|
38310
38551
|
> **teleportGlue**(`layout`, `formId`): `string`
|
|
38311
38552
|
|
|
38312
|
-
Defined in: [lib/tool.ts:
|
|
38553
|
+
Defined in: [lib/tool.ts:197](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L197)
|
|
38313
38554
|
|
|
38314
38555
|
对 layout 的 teleport 做转义处理为 vue 识别的内容
|
|
38315
38556
|
|
|
@@ -38344,7 +38585,7 @@ lib/tool/functions/unescapeHTML.md
|
|
|
38344
38585
|
|
|
38345
38586
|
> **unescapeHTML**(`html`): `string`
|
|
38346
38587
|
|
|
38347
|
-
Defined in: [lib/tool.ts:
|
|
38588
|
+
Defined in: [lib/tool.ts:286](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L286)
|
|
38348
38589
|
|
|
38349
38590
|
还原转义后的 HTML
|
|
38350
38591
|
|
|
@@ -38373,7 +38614,7 @@ lib/tool/functions/urlAtom.md
|
|
|
38373
38614
|
|
|
38374
38615
|
> **urlAtom**(`url`): `string`
|
|
38375
38616
|
|
|
38376
|
-
Defined in: [lib/tool.ts:
|
|
38617
|
+
Defined in: [lib/tool.ts:477](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L477)
|
|
38377
38618
|
|
|
38378
38619
|
处理 URL 中的 .. / . 等
|
|
38379
38620
|
|
|
@@ -38400,7 +38641,7 @@ lib/tool/functions/urlResolve.md
|
|
|
38400
38641
|
|
|
38401
38642
|
> **urlResolve**(`from`, `to`): `string`
|
|
38402
38643
|
|
|
38403
|
-
Defined in: [lib/tool.ts:
|
|
38644
|
+
Defined in: [lib/tool.ts:472](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L472)
|
|
38404
38645
|
|
|
38405
38646
|
将相对路径根据基准路径进行转换
|
|
38406
38647
|
|
|
@@ -38435,7 +38676,7 @@ lib/tool/functions/weightFormat.md
|
|
|
38435
38676
|
|
|
38436
38677
|
> **weightFormat**(`weight`, `spliter?`): `string`
|
|
38437
38678
|
|
|
38438
|
-
Defined in: [lib/tool.ts:
|
|
38679
|
+
Defined in: [lib/tool.ts:89](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L89)
|
|
38439
38680
|
|
|
38440
38681
|
将毫克重量格式化为带单位的字符串
|
|
38441
38682
|
|
|
@@ -38475,13 +38716,16 @@ lib/tool/index.md
|
|
|
38475
38716
|
## Interfaces
|
|
38476
38717
|
|
|
38477
38718
|
- [IClassPrototype](interfaces/IClassPrototype.md)
|
|
38719
|
+
- [IDecodedText](interfaces/IDecodedText.md)
|
|
38478
38720
|
- [IRequestOptions](interfaces/IRequestOptions.md)
|
|
38721
|
+
- [ITextEncoding](interfaces/ITextEncoding.md)
|
|
38479
38722
|
- [IUrl](interfaces/IUrl.md)
|
|
38480
38723
|
|
|
38481
38724
|
## Type Aliases
|
|
38482
38725
|
|
|
38483
38726
|
- [TFalsy](type-aliases/TFalsy.md)
|
|
38484
38727
|
- [TJson](type-aliases/TJson.md)
|
|
38728
|
+
- [TTextEncoding](type-aliases/TTextEncoding.md)
|
|
38485
38729
|
|
|
38486
38730
|
## Variables
|
|
38487
38731
|
|
|
@@ -38504,6 +38748,8 @@ lib/tool/index.md
|
|
|
38504
38748
|
- [clone](functions/clone.md)
|
|
38505
38749
|
- [compar](functions/compar.md)
|
|
38506
38750
|
- [compressor](functions/compressor.md)
|
|
38751
|
+
- [decodeText](functions/decodeText.md)
|
|
38752
|
+
- [encodeText](functions/encodeText.md)
|
|
38507
38753
|
- [escapeHTML](functions/escapeHTML.md)
|
|
38508
38754
|
- [eventsAttrWrap](functions/eventsAttrWrap.md)
|
|
38509
38755
|
- [execCommand](functions/execCommand.md)
|
|
@@ -38575,7 +38821,7 @@ lib/tool/interfaces/IClassPrototype.md
|
|
|
38575
38821
|
|
|
38576
38822
|
# Interface: IClassPrototype
|
|
38577
38823
|
|
|
38578
|
-
Defined in: [lib/tool.ts:
|
|
38824
|
+
Defined in: [lib/tool.ts:47](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L47)
|
|
38579
38825
|
|
|
38580
38826
|
类原型信息
|
|
38581
38827
|
|
|
@@ -38585,7 +38831,7 @@ Defined in: [lib/tool.ts:45](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
38585
38831
|
|
|
38586
38832
|
> **access**: `Record`\<`string`, \{ `get`: `any`; `set`: `any`; \}\>
|
|
38587
38833
|
|
|
38588
|
-
Defined in: [lib/tool.ts:
|
|
38834
|
+
Defined in: [lib/tool.ts:51](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L51)
|
|
38589
38835
|
|
|
38590
38836
|
访问器列表,key 为属性名,value 为包含 get 和 set 的对象,例如:{'prop1': { 'get': function() { ... }, 'set': function(v) { ... } }}
|
|
38591
38837
|
|
|
@@ -38595,10 +38841,61 @@ Defined in: [lib/tool.ts:49](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
38595
38841
|
|
|
38596
38842
|
> **method**: `Record`\<`string`, `any`\>
|
|
38597
38843
|
|
|
38598
|
-
Defined in: [lib/tool.ts:
|
|
38844
|
+
Defined in: [lib/tool.ts:49](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L49)
|
|
38599
38845
|
|
|
38600
38846
|
方法列表,key 为方法名,value 为函数体,例如:{'method1': function() { ... }}
|
|
38601
38847
|
|
|
38848
|
+
lib/tool/interfaces/IDecodedText.md
|
|
38849
|
+
---
|
|
38850
|
+
|
|
38851
|
+
[**Documents for clickgo**](../../../index.md)
|
|
38852
|
+
|
|
38853
|
+
***
|
|
38854
|
+
|
|
38855
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / IDecodedText
|
|
38856
|
+
|
|
38857
|
+
# Interface: IDecodedText
|
|
38858
|
+
|
|
38859
|
+
Defined in: [lib/tool/encoding.ts:13](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L13)
|
|
38860
|
+
|
|
38861
|
+
严格解码结果,BOM 不计入正文
|
|
38862
|
+
|
|
38863
|
+
## Extends
|
|
38864
|
+
|
|
38865
|
+
- [`ITextEncoding`](ITextEncoding.md)
|
|
38866
|
+
|
|
38867
|
+
## Properties
|
|
38868
|
+
|
|
38869
|
+
### bom
|
|
38870
|
+
|
|
38871
|
+
> **bom**: `boolean`
|
|
38872
|
+
|
|
38873
|
+
Defined in: [lib/tool/encoding.ts:9](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L9)
|
|
38874
|
+
|
|
38875
|
+
#### Inherited from
|
|
38876
|
+
|
|
38877
|
+
[`ITextEncoding`](ITextEncoding.md).[`bom`](ITextEncoding.md#bom)
|
|
38878
|
+
|
|
38879
|
+
***
|
|
38880
|
+
|
|
38881
|
+
### encoding
|
|
38882
|
+
|
|
38883
|
+
> **encoding**: [`TTextEncoding`](../type-aliases/TTextEncoding.md)
|
|
38884
|
+
|
|
38885
|
+
Defined in: [lib/tool/encoding.ts:8](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L8)
|
|
38886
|
+
|
|
38887
|
+
#### Inherited from
|
|
38888
|
+
|
|
38889
|
+
[`ITextEncoding`](ITextEncoding.md).[`encoding`](ITextEncoding.md#encoding)
|
|
38890
|
+
|
|
38891
|
+
***
|
|
38892
|
+
|
|
38893
|
+
### text
|
|
38894
|
+
|
|
38895
|
+
> **text**: `string`
|
|
38896
|
+
|
|
38897
|
+
Defined in: [lib/tool/encoding.ts:14](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L14)
|
|
38898
|
+
|
|
38602
38899
|
lib/tool/interfaces/IRequestOptions.md
|
|
38603
38900
|
---
|
|
38604
38901
|
|
|
@@ -38610,7 +38907,7 @@ lib/tool/interfaces/IRequestOptions.md
|
|
|
38610
38907
|
|
|
38611
38908
|
# Interface: IRequestOptions
|
|
38612
38909
|
|
|
38613
|
-
Defined in: [lib/tool.ts:
|
|
38910
|
+
Defined in: [lib/tool.ts:850](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L850)
|
|
38614
38911
|
|
|
38615
38912
|
请求选项
|
|
38616
38913
|
|
|
@@ -38620,7 +38917,7 @@ Defined in: [lib/tool.ts:848](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38620
38917
|
|
|
38621
38918
|
> `optional` **body?**: `FormData`
|
|
38622
38919
|
|
|
38623
|
-
Defined in: [lib/tool.ts:
|
|
38920
|
+
Defined in: [lib/tool.ts:853](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L853)
|
|
38624
38921
|
|
|
38625
38922
|
***
|
|
38626
38923
|
|
|
@@ -38628,7 +38925,7 @@ Defined in: [lib/tool.ts:851](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38628
38925
|
|
|
38629
38926
|
> `optional` **credentials?**: `boolean`
|
|
38630
38927
|
|
|
38631
|
-
Defined in: [lib/tool.ts:
|
|
38928
|
+
Defined in: [lib/tool.ts:851](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L851)
|
|
38632
38929
|
|
|
38633
38930
|
***
|
|
38634
38931
|
|
|
@@ -38636,7 +38933,7 @@ Defined in: [lib/tool.ts:849](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38636
38933
|
|
|
38637
38934
|
> `optional` **end?**: () => `void` \| `Promise`\<`void`\>
|
|
38638
38935
|
|
|
38639
|
-
Defined in: [lib/tool.ts:
|
|
38936
|
+
Defined in: [lib/tool.ts:862](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L862)
|
|
38640
38937
|
|
|
38641
38938
|
#### Returns
|
|
38642
38939
|
|
|
@@ -38648,7 +38945,7 @@ Defined in: [lib/tool.ts:860](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38648
38945
|
|
|
38649
38946
|
> `optional` **error?**: () => `void` \| `Promise`\<`void`\>
|
|
38650
38947
|
|
|
38651
|
-
Defined in: [lib/tool.ts:
|
|
38948
|
+
Defined in: [lib/tool.ts:865](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L865)
|
|
38652
38949
|
|
|
38653
38950
|
#### Returns
|
|
38654
38951
|
|
|
@@ -38660,7 +38957,7 @@ Defined in: [lib/tool.ts:863](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38660
38957
|
|
|
38661
38958
|
> `optional` **headers?**: `HeadersInit`
|
|
38662
38959
|
|
|
38663
|
-
Defined in: [lib/tool.ts:
|
|
38960
|
+
Defined in: [lib/tool.ts:856](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L856)
|
|
38664
38961
|
|
|
38665
38962
|
***
|
|
38666
38963
|
|
|
@@ -38668,7 +38965,7 @@ Defined in: [lib/tool.ts:854](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38668
38965
|
|
|
38669
38966
|
> `optional` **load?**: (`res`) => `void` \| `Promise`\<`void`\>
|
|
38670
38967
|
|
|
38671
|
-
Defined in: [lib/tool.ts:
|
|
38968
|
+
Defined in: [lib/tool.ts:864](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L864)
|
|
38672
38969
|
|
|
38673
38970
|
#### Parameters
|
|
38674
38971
|
|
|
@@ -38686,7 +38983,7 @@ Defined in: [lib/tool.ts:862](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38686
38983
|
|
|
38687
38984
|
> `optional` **method?**: `"GET"` \| `"POST"`
|
|
38688
38985
|
|
|
38689
|
-
Defined in: [lib/tool.ts:
|
|
38986
|
+
Defined in: [lib/tool.ts:852](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L852)
|
|
38690
38987
|
|
|
38691
38988
|
***
|
|
38692
38989
|
|
|
@@ -38694,7 +38991,7 @@ Defined in: [lib/tool.ts:850](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38694
38991
|
|
|
38695
38992
|
> `optional` **progress?**: (`loaded`, `total`) => `void` \| `Promise`\<`void`\>
|
|
38696
38993
|
|
|
38697
|
-
Defined in: [lib/tool.ts:
|
|
38994
|
+
Defined in: [lib/tool.ts:863](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L863)
|
|
38698
38995
|
|
|
38699
38996
|
#### Parameters
|
|
38700
38997
|
|
|
@@ -38716,7 +39013,7 @@ Defined in: [lib/tool.ts:861](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38716
39013
|
|
|
38717
39014
|
> `optional` **responseType?**: `XMLHttpRequestResponseType`
|
|
38718
39015
|
|
|
38719
|
-
Defined in: [lib/tool.ts:
|
|
39016
|
+
Defined in: [lib/tool.ts:855](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L855)
|
|
38720
39017
|
|
|
38721
39018
|
***
|
|
38722
39019
|
|
|
@@ -38724,7 +39021,7 @@ Defined in: [lib/tool.ts:853](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38724
39021
|
|
|
38725
39022
|
> `optional` **start?**: (`total`) => `void` \| `Promise`\<`void`\>
|
|
38726
39023
|
|
|
38727
|
-
Defined in: [lib/tool.ts:
|
|
39024
|
+
Defined in: [lib/tool.ts:861](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L861)
|
|
38728
39025
|
|
|
38729
39026
|
#### Parameters
|
|
38730
39027
|
|
|
@@ -38742,7 +39039,7 @@ Defined in: [lib/tool.ts:859](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38742
39039
|
|
|
38743
39040
|
> `optional` **timeout?**: `number`
|
|
38744
39041
|
|
|
38745
|
-
Defined in: [lib/tool.ts:
|
|
39042
|
+
Defined in: [lib/tool.ts:854](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L854)
|
|
38746
39043
|
|
|
38747
39044
|
***
|
|
38748
39045
|
|
|
@@ -38750,7 +39047,7 @@ Defined in: [lib/tool.ts:852](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38750
39047
|
|
|
38751
39048
|
> `optional` **uploadEnd?**: () => `void` \| `Promise`\<`void`\>
|
|
38752
39049
|
|
|
38753
|
-
Defined in: [lib/tool.ts:
|
|
39050
|
+
Defined in: [lib/tool.ts:860](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L860)
|
|
38754
39051
|
|
|
38755
39052
|
#### Returns
|
|
38756
39053
|
|
|
@@ -38762,7 +39059,7 @@ Defined in: [lib/tool.ts:858](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38762
39059
|
|
|
38763
39060
|
> `optional` **uploadProgress?**: (`loaded`, `total`) => `void` \| `Promise`\<`void`\>
|
|
38764
39061
|
|
|
38765
|
-
Defined in: [lib/tool.ts:
|
|
39062
|
+
Defined in: [lib/tool.ts:859](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L859)
|
|
38766
39063
|
|
|
38767
39064
|
#### Parameters
|
|
38768
39065
|
|
|
@@ -38784,7 +39081,7 @@ Defined in: [lib/tool.ts:857](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38784
39081
|
|
|
38785
39082
|
> `optional` **uploadStart?**: (`total`) => `void` \| `Promise`\<`void`\>
|
|
38786
39083
|
|
|
38787
|
-
Defined in: [lib/tool.ts:
|
|
39084
|
+
Defined in: [lib/tool.ts:858](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L858)
|
|
38788
39085
|
|
|
38789
39086
|
#### Parameters
|
|
38790
39087
|
|
|
@@ -38796,6 +39093,41 @@ Defined in: [lib/tool.ts:856](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38796
39093
|
|
|
38797
39094
|
`void` \| `Promise`\<`void`\>
|
|
38798
39095
|
|
|
39096
|
+
lib/tool/interfaces/ITextEncoding.md
|
|
39097
|
+
---
|
|
39098
|
+
|
|
39099
|
+
[**Documents for clickgo**](../../../index.md)
|
|
39100
|
+
|
|
39101
|
+
***
|
|
39102
|
+
|
|
39103
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / ITextEncoding
|
|
39104
|
+
|
|
39105
|
+
# Interface: ITextEncoding
|
|
39106
|
+
|
|
39107
|
+
Defined in: [lib/tool/encoding.ts:7](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L7)
|
|
39108
|
+
|
|
39109
|
+
文本保存编码及是否保留文件头 BOM
|
|
39110
|
+
|
|
39111
|
+
## Extended by
|
|
39112
|
+
|
|
39113
|
+
- [`IDecodedText`](IDecodedText.md)
|
|
39114
|
+
|
|
39115
|
+
## Properties
|
|
39116
|
+
|
|
39117
|
+
### bom
|
|
39118
|
+
|
|
39119
|
+
> **bom**: `boolean`
|
|
39120
|
+
|
|
39121
|
+
Defined in: [lib/tool/encoding.ts:9](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L9)
|
|
39122
|
+
|
|
39123
|
+
***
|
|
39124
|
+
|
|
39125
|
+
### encoding
|
|
39126
|
+
|
|
39127
|
+
> **encoding**: [`TTextEncoding`](../type-aliases/TTextEncoding.md)
|
|
39128
|
+
|
|
39129
|
+
Defined in: [lib/tool/encoding.ts:8](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L8)
|
|
39130
|
+
|
|
38799
39131
|
lib/tool/interfaces/IUrl.md
|
|
38800
39132
|
---
|
|
38801
39133
|
|
|
@@ -38807,7 +39139,7 @@ lib/tool/interfaces/IUrl.md
|
|
|
38807
39139
|
|
|
38808
39140
|
# Interface: IUrl
|
|
38809
39141
|
|
|
38810
|
-
Defined in: [lib/tool.ts:
|
|
39142
|
+
Defined in: [lib/tool.ts:835](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L835)
|
|
38811
39143
|
|
|
38812
39144
|
网址对象
|
|
38813
39145
|
|
|
@@ -38817,7 +39149,7 @@ Defined in: [lib/tool.ts:833](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38817
39149
|
|
|
38818
39150
|
> **auth**: `string` \| `null`
|
|
38819
39151
|
|
|
38820
|
-
Defined in: [lib/tool.ts:
|
|
39152
|
+
Defined in: [lib/tool.ts:836](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L836)
|
|
38821
39153
|
|
|
38822
39154
|
***
|
|
38823
39155
|
|
|
@@ -38825,7 +39157,7 @@ Defined in: [lib/tool.ts:834](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38825
39157
|
|
|
38826
39158
|
> **hash**: `string` \| `null`
|
|
38827
39159
|
|
|
38828
|
-
Defined in: [lib/tool.ts:
|
|
39160
|
+
Defined in: [lib/tool.ts:837](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L837)
|
|
38829
39161
|
|
|
38830
39162
|
***
|
|
38831
39163
|
|
|
@@ -38833,7 +39165,7 @@ Defined in: [lib/tool.ts:835](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38833
39165
|
|
|
38834
39166
|
> **host**: `string` \| `null`
|
|
38835
39167
|
|
|
38836
|
-
Defined in: [lib/tool.ts:
|
|
39168
|
+
Defined in: [lib/tool.ts:838](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L838)
|
|
38837
39169
|
|
|
38838
39170
|
***
|
|
38839
39171
|
|
|
@@ -38841,7 +39173,7 @@ Defined in: [lib/tool.ts:836](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38841
39173
|
|
|
38842
39174
|
> **hostname**: `string` \| `null`
|
|
38843
39175
|
|
|
38844
|
-
Defined in: [lib/tool.ts:
|
|
39176
|
+
Defined in: [lib/tool.ts:839](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L839)
|
|
38845
39177
|
|
|
38846
39178
|
***
|
|
38847
39179
|
|
|
@@ -38849,7 +39181,7 @@ Defined in: [lib/tool.ts:837](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38849
39181
|
|
|
38850
39182
|
> **pass**: `string` \| `null`
|
|
38851
39183
|
|
|
38852
|
-
Defined in: [lib/tool.ts:
|
|
39184
|
+
Defined in: [lib/tool.ts:840](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L840)
|
|
38853
39185
|
|
|
38854
39186
|
***
|
|
38855
39187
|
|
|
@@ -38857,7 +39189,7 @@ Defined in: [lib/tool.ts:838](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38857
39189
|
|
|
38858
39190
|
> **path**: `string` \| `null`
|
|
38859
39191
|
|
|
38860
|
-
Defined in: [lib/tool.ts:
|
|
39192
|
+
Defined in: [lib/tool.ts:841](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L841)
|
|
38861
39193
|
|
|
38862
39194
|
***
|
|
38863
39195
|
|
|
@@ -38865,7 +39197,7 @@ Defined in: [lib/tool.ts:839](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38865
39197
|
|
|
38866
39198
|
> **pathname**: `string`
|
|
38867
39199
|
|
|
38868
|
-
Defined in: [lib/tool.ts:
|
|
39200
|
+
Defined in: [lib/tool.ts:842](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L842)
|
|
38869
39201
|
|
|
38870
39202
|
***
|
|
38871
39203
|
|
|
@@ -38873,7 +39205,7 @@ Defined in: [lib/tool.ts:840](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38873
39205
|
|
|
38874
39206
|
> **port**: `string` \| `null`
|
|
38875
39207
|
|
|
38876
|
-
Defined in: [lib/tool.ts:
|
|
39208
|
+
Defined in: [lib/tool.ts:844](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L844)
|
|
38877
39209
|
|
|
38878
39210
|
***
|
|
38879
39211
|
|
|
@@ -38881,7 +39213,7 @@ Defined in: [lib/tool.ts:842](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38881
39213
|
|
|
38882
39214
|
> **protocol**: `string` \| `null`
|
|
38883
39215
|
|
|
38884
|
-
Defined in: [lib/tool.ts:
|
|
39216
|
+
Defined in: [lib/tool.ts:843](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L843)
|
|
38885
39217
|
|
|
38886
39218
|
***
|
|
38887
39219
|
|
|
@@ -38889,7 +39221,7 @@ Defined in: [lib/tool.ts:841](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38889
39221
|
|
|
38890
39222
|
> **query**: `string` \| `null`
|
|
38891
39223
|
|
|
38892
|
-
Defined in: [lib/tool.ts:
|
|
39224
|
+
Defined in: [lib/tool.ts:845](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L845)
|
|
38893
39225
|
|
|
38894
39226
|
***
|
|
38895
39227
|
|
|
@@ -38897,7 +39229,7 @@ Defined in: [lib/tool.ts:843](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
38897
39229
|
|
|
38898
39230
|
> **user**: `string` \| `null`
|
|
38899
39231
|
|
|
38900
|
-
Defined in: [lib/tool.ts:
|
|
39232
|
+
Defined in: [lib/tool.ts:846](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L846)
|
|
38901
39233
|
|
|
38902
39234
|
lib/tool/type-aliases/TFalsy.md
|
|
38903
39235
|
---
|
|
@@ -38912,7 +39244,7 @@ lib/tool/type-aliases/TFalsy.md
|
|
|
38912
39244
|
|
|
38913
39245
|
> **TFalsy** = `false` \| `""` \| `0` \| `null` \| `undefined` \| *typeof* `NaN`
|
|
38914
39246
|
|
|
38915
|
-
Defined in: [lib/tool.ts:
|
|
39247
|
+
Defined in: [lib/tool.ts:872](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L872)
|
|
38916
39248
|
|
|
38917
39249
|
虚假值类型
|
|
38918
39250
|
|
|
@@ -38929,10 +39261,27 @@ lib/tool/type-aliases/TJson.md
|
|
|
38929
39261
|
|
|
38930
39262
|
> **TJson** = `null` \| `boolean` \| `number` \| `string` \| `TJson`[] \| \{\[`key`: `string`\]: `TJson`; \}
|
|
38931
39263
|
|
|
38932
|
-
Defined in: [lib/tool.ts:
|
|
39264
|
+
Defined in: [lib/tool.ts:869](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L869)
|
|
38933
39265
|
|
|
38934
39266
|
JSON 数据值,不包含 undefined、BigInt、函数和非有限数
|
|
38935
39267
|
|
|
39268
|
+
lib/tool/type-aliases/TTextEncoding.md
|
|
39269
|
+
---
|
|
39270
|
+
|
|
39271
|
+
[**Documents for clickgo**](../../../index.md)
|
|
39272
|
+
|
|
39273
|
+
***
|
|
39274
|
+
|
|
39275
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / TTextEncoding
|
|
39276
|
+
|
|
39277
|
+
# Type Alias: TTextEncoding
|
|
39278
|
+
|
|
39279
|
+
> **TTextEncoding** = `"utf-8"` \| `"utf-16le"` \| `"utf-16be"` \| `"gb18030"`
|
|
39280
|
+
|
|
39281
|
+
Defined in: [lib/tool/encoding.ts:4](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool/encoding.ts#L4)
|
|
39282
|
+
|
|
39283
|
+
共享文本编码;GB18030 不使用 BOM
|
|
39284
|
+
|
|
38936
39285
|
lib/tool/variables/lang.md
|
|
38937
39286
|
---
|
|
38938
39287
|
|
|
@@ -38946,7 +39295,7 @@ lib/tool/variables/lang.md
|
|
|
38946
39295
|
|
|
38947
39296
|
> `const` **lang**: `object`
|
|
38948
39297
|
|
|
38949
|
-
Defined in: [lib/tool.ts:
|
|
39298
|
+
Defined in: [lib/tool.ts:735](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L735)
|
|
38950
39299
|
|
|
38951
39300
|
语言相关
|
|
38952
39301
|
|
|
@@ -39043,7 +39392,7 @@ lib/tool/variables/RANDOM_L.md
|
|
|
39043
39392
|
|
|
39044
39393
|
> `const` **RANDOM\_L**: `"abcdefghijklmnopqrstuvwxyz"` = `'abcdefghijklmnopqrstuvwxyz'`
|
|
39045
39394
|
|
|
39046
|
-
Defined in: [lib/tool.ts:
|
|
39395
|
+
Defined in: [lib/tool.ts:230](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L230)
|
|
39047
39396
|
|
|
39048
39397
|
lib/tool/variables/RANDOM_LN.md
|
|
39049
39398
|
---
|
|
@@ -39058,7 +39407,7 @@ lib/tool/variables/RANDOM_LN.md
|
|
|
39058
39407
|
|
|
39059
39408
|
> `const` **RANDOM\_LN**: `string`
|
|
39060
39409
|
|
|
39061
|
-
Defined in: [lib/tool.ts:
|
|
39410
|
+
Defined in: [lib/tool.ts:233](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L233)
|
|
39062
39411
|
|
|
39063
39412
|
lib/tool/variables/RANDOM_LU.md
|
|
39064
39413
|
---
|
|
@@ -39073,7 +39422,7 @@ lib/tool/variables/RANDOM_LU.md
|
|
|
39073
39422
|
|
|
39074
39423
|
> `const` **RANDOM\_LU**: `string`
|
|
39075
39424
|
|
|
39076
|
-
Defined in: [lib/tool.ts:
|
|
39425
|
+
Defined in: [lib/tool.ts:234](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L234)
|
|
39077
39426
|
|
|
39078
39427
|
lib/tool/variables/RANDOM_LUN.md
|
|
39079
39428
|
---
|
|
@@ -39088,7 +39437,7 @@ lib/tool/variables/RANDOM_LUN.md
|
|
|
39088
39437
|
|
|
39089
39438
|
> `const` **RANDOM\_LUN**: `string`
|
|
39090
39439
|
|
|
39091
|
-
Defined in: [lib/tool.ts:
|
|
39440
|
+
Defined in: [lib/tool.ts:235](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L235)
|
|
39092
39441
|
|
|
39093
39442
|
lib/tool/variables/RANDOM_LUNS.md
|
|
39094
39443
|
---
|
|
@@ -39103,7 +39452,7 @@ lib/tool/variables/RANDOM_LUNS.md
|
|
|
39103
39452
|
|
|
39104
39453
|
> `const` **RANDOM\_LUNS**: `string`
|
|
39105
39454
|
|
|
39106
|
-
Defined in: [lib/tool.ts:
|
|
39455
|
+
Defined in: [lib/tool.ts:237](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L237)
|
|
39107
39456
|
|
|
39108
39457
|
lib/tool/variables/RANDOM_N.md
|
|
39109
39458
|
---
|
|
@@ -39118,7 +39467,7 @@ lib/tool/variables/RANDOM_N.md
|
|
|
39118
39467
|
|
|
39119
39468
|
> `const` **RANDOM\_N**: `"0123456789"` = `'0123456789'`
|
|
39120
39469
|
|
|
39121
|
-
Defined in: [lib/tool.ts:
|
|
39470
|
+
Defined in: [lib/tool.ts:228](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L228)
|
|
39122
39471
|
|
|
39123
39472
|
lib/tool/variables/RANDOM_U.md
|
|
39124
39473
|
---
|
|
@@ -39133,7 +39482,7 @@ lib/tool/variables/RANDOM_U.md
|
|
|
39133
39482
|
|
|
39134
39483
|
> `const` **RANDOM\_U**: `"ABCDEFGHIJKLMNOPQRSTUVWXYZ"` = `'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
39135
39484
|
|
|
39136
|
-
Defined in: [lib/tool.ts:
|
|
39485
|
+
Defined in: [lib/tool.ts:229](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L229)
|
|
39137
39486
|
|
|
39138
39487
|
lib/tool/variables/RANDOM_UN.md
|
|
39139
39488
|
---
|
|
@@ -39148,7 +39497,7 @@ lib/tool/variables/RANDOM_UN.md
|
|
|
39148
39497
|
|
|
39149
39498
|
> `const` **RANDOM\_UN**: `string`
|
|
39150
39499
|
|
|
39151
|
-
Defined in: [lib/tool.ts:
|
|
39500
|
+
Defined in: [lib/tool.ts:232](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L232)
|
|
39152
39501
|
|
|
39153
39502
|
lib/tool/variables/RANDOM_V.md
|
|
39154
39503
|
---
|
|
@@ -39163,7 +39512,7 @@ lib/tool/variables/RANDOM_V.md
|
|
|
39163
39512
|
|
|
39164
39513
|
> `const` **RANDOM\_V**: `"ACEFGHJKLMNPRSTWXY34567"` = `'ACEFGHJKLMNPRSTWXY34567'`
|
|
39165
39514
|
|
|
39166
|
-
Defined in: [lib/tool.ts:
|
|
39515
|
+
Defined in: [lib/tool.ts:236](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L236)
|
|
39167
39516
|
|
|
39168
39517
|
lib/zip/classes/Zip.md
|
|
39169
39518
|
---
|