ranui 0.1.9 → 0.1.10-alpha-25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.zh-CN.md +192 -0
- package/dist/assets/image/failImage.d.ts +2 -0
- package/dist/button.js +7 -0
- package/dist/checkbox.js +7 -0
- package/dist/colorpicker.js +11 -0
- package/dist/components/button/index.d.ts +8 -5
- package/dist/components/checkbox/index.d.ts +30 -0
- package/dist/components/colorpicker/index.d.ts +120 -0
- package/dist/components/dropdown/index.d.ts +34 -0
- package/dist/components/input/index.d.ts +66 -41
- package/dist/components/loading/index.d.ts +76 -0
- package/dist/components/math/index.d.ts +16 -0
- package/dist/components/message/index.d.ts +10 -7
- package/dist/components/player/index.d.ts +46 -9
- package/dist/components/popover/content/index.d.ts +16 -0
- package/dist/components/popover/index.d.ts +91 -0
- package/dist/components/preview/constant.d.ts +5 -0
- package/dist/components/preview/index.d.ts +1 -4
- package/dist/components/preview/pdf.d.ts +51 -1
- package/dist/components/preview/types.d.ts +11 -0
- package/dist/components/progress/index.d.ts +12 -7
- package/dist/components/radar/index.d.ts +1 -1
- package/dist/components/scratch/index.d.ts +7 -5
- package/dist/components/select/dropdown-item/index.d.ts +23 -0
- package/dist/components/select/index.d.ts +22 -13
- package/dist/components/select/option/index.d.ts +2 -0
- package/dist/components/tab/index.d.ts +80 -64
- package/dist/components/tabpane/index.d.ts +73 -57
- package/dist/icon.js +6 -0
- package/dist/iconShadowless.js +6 -0
- package/dist/image.js +4 -0
- package/dist/{index-01b17e26.js → index-BEm1a2pr.js} +3 -6
- package/dist/{index-e2e5d725.js → index-BSyn-jmY.js} +4734 -2976
- package/dist/index-BVD0qcjJ.js +656 -0
- package/dist/{index-e03d23e7.js → index-Bb55l8nf.js} +2 -11
- package/dist/{index-0d5b9435.js → index-BbW0dxzy.js} +12 -16
- package/dist/index-BgUpm4LA.js +103 -0
- package/dist/{index-458debf7.js → index-C841uRgZ.js} +16 -51
- package/dist/{index-4443363f.js → index-CUZna268.js} +41 -69
- package/dist/index-CiA5qRK3.js +381 -0
- package/dist/index-CoJMn8Jm.js +511 -0
- package/dist/{index-b7790662.js → index-DAxs7Dd2.js} +6 -13
- package/dist/index-DHI8URkB.js +309 -0
- package/dist/index-D_cD4u43.js +70 -0
- package/dist/index-DghvN1MU.js +710 -0
- package/dist/index-DvSe_Ms7.js +494 -0
- package/dist/{index-7216d6b0.js → index-W52VzrXL.js} +20 -49
- package/dist/index-gBy2cXLV.js +140 -0
- package/dist/index-hdtEL8P_.js +101 -0
- package/dist/{index-1048a998.js → index-jVKJoKXA.js} +105 -62
- package/dist/{index-2d16a084.js → index-ltt3w4zP.js} +13 -23
- package/dist/index-n4X6wdwJ.js +156 -0
- package/dist/{index-3cf72afd.js → index-s0ioL3L2.js} +23 -45
- package/dist/index.d.ts +276 -14
- package/dist/index.js +24 -24
- package/dist/input.js +7 -0
- package/dist/inputShadowless.js +6 -0
- package/dist/katex-es-CGqSCDjs.js +14634 -0
- package/dist/loading-scene-BMc2wqKm.js +4 -0
- package/dist/loading.js +8 -0
- package/dist/math.js +7 -0
- package/dist/message.js +6 -0
- package/dist/modal.js +4 -0
- package/dist/more-2vsTDpcc.js +31 -0
- package/dist/pdf-BKWcQYL4.js +136 -0
- package/dist/player.js +8 -0
- package/dist/plus-DgJxWGlo.js +56799 -0
- package/dist/popover.js +9 -0
- package/dist/preview.js +7 -0
- package/dist/progress.js +7 -0
- package/dist/radar.js +6 -0
- package/dist/ranui.css +1 -0
- package/dist/search-BWdfjyP8.js +4 -0
- package/dist/select.js +10 -0
- package/dist/{index-1b73beee.js → selectShadowless.js} +159 -167
- package/dist/{umd/components → shadowless}/icon/index.d.ts +1 -0
- package/dist/{umd/components → shadowless}/input/index.d.ts +66 -41
- package/dist/{umd/components → shadowless}/select/index.d.ts +19 -16
- package/dist/shadowless/select/option/index.d.ts +2 -0
- package/dist/shadowless.d.ts +3 -0
- package/dist/shadowless.js +8 -0
- package/dist/skeleton.js +4 -0
- package/dist/sort-DWqiUONr.js +4 -0
- package/dist/sprite-CH2zLtZy.js +141 -0
- package/dist/tab.js +6 -0
- package/dist/tabpane.js +4 -0
- package/dist/tsconfig.json +31 -0
- package/dist/typings.d.ts +257 -0
- package/dist/umd/index.css +1 -0
- package/dist/umd/index.umd.cjs +1 -71
- package/dist/umd/shadowless/shadowless.css +1 -0
- package/dist/umd/shadowless/shadowless.umd.cjs +1 -0
- package/dist/utils/color.d.ts +52 -0
- package/dist/utils/image.d.ts +8 -1
- package/dist/utils/index.d.ts +20 -5
- package/dist/utils/math.d.ts +3 -3
- package/dist/vite.config.d.ts +1 -0
- package/dist/without-content-CdJw7vHM.js +4 -0
- package/package.json +115 -64
- package/readme.md +41 -57
- package/typings.d.ts +257 -0
- package/dist/colz-746223ab.js +0 -241
- package/dist/components/button/index.js +0 -8
- package/dist/components/icon/index.js +0 -6
- package/dist/components/image/index.js +0 -4
- package/dist/components/input/index.js +0 -6
- package/dist/components/message/index.js +0 -4
- package/dist/components/modal/index.js +0 -4
- package/dist/components/option/index.d.ts +0 -2
- package/dist/components/option/index.js +0 -95
- package/dist/components/player/index.js +0 -12
- package/dist/components/preview/colz.d.ts +0 -72
- package/dist/components/preview/docx.d.ts +0 -8
- package/dist/components/preview/excel/excel.d.ts +0 -2
- package/dist/components/preview/excel/index.d.ts +0 -1
- package/dist/components/preview/excel/media.d.ts +0 -37
- package/dist/components/preview/index.js +0 -8
- package/dist/components/preview/pptx/index.d.ts +0 -16
- package/dist/components/preview/pptx/process_pptx.d.ts +0 -23
- package/dist/components/preview/pptx/t_xml.d.ts +0 -1
- package/dist/components/preview/pptx/worker.d.ts +0 -1
- package/dist/components/progress/index.js +0 -8
- package/dist/components/radar/index.js +0 -7
- package/dist/components/select/index.js +0 -11
- package/dist/components/skeleton/index.js +0 -4
- package/dist/components/tab/index.js +0 -7
- package/dist/components/tabpane/index.js +0 -4
- package/dist/docx-c5d02d8c.js +0 -21
- package/dist/index-57492b9b.js +0 -48
- package/dist/index-73ce455b.js +0 -264
- package/dist/index-7913ec46.js +0 -239
- package/dist/index-7b8840f9.js +0 -18690
- package/dist/index-c14450a9.js +0 -662
- package/dist/pdf-bdb7818a.js +0 -113
- package/dist/style.css +0 -1
- package/dist/umd/build/config.d.ts +0 -3
- package/dist/umd/build/config.umd.d.ts +0 -2
- package/dist/umd/components/button/index.d.ts +0 -35
- package/dist/umd/components/form/index.d.ts +0 -2
- package/dist/umd/components/image/index.d.ts +0 -2
- package/dist/umd/components/message/index.d.ts +0 -14
- package/dist/umd/components/modal/index.d.ts +0 -2
- package/dist/umd/components/option/index.d.ts +0 -2
- package/dist/umd/components/player/index.d.ts +0 -213
- package/dist/umd/components/preview/colz.d.ts +0 -72
- package/dist/umd/components/preview/docx.d.ts +0 -8
- package/dist/umd/components/preview/excel/excel.d.ts +0 -2
- package/dist/umd/components/preview/excel/index.d.ts +0 -1
- package/dist/umd/components/preview/excel/media.d.ts +0 -37
- package/dist/umd/components/preview/index.d.ts +0 -6
- package/dist/umd/components/preview/pdf.d.ts +0 -1
- package/dist/umd/components/preview/pptx/index.d.ts +0 -16
- package/dist/umd/components/preview/pptx/process_pptx.d.ts +0 -23
- package/dist/umd/components/preview/pptx/t_xml.d.ts +0 -1
- package/dist/umd/components/preview/pptx/worker.d.ts +0 -1
- package/dist/umd/components/progress/index.d.ts +0 -36
- package/dist/umd/components/radar/index.d.ts +0 -2
- package/dist/umd/components/scratch/index.d.ts +0 -19
- package/dist/umd/components/skeleton/index.d.ts +0 -2
- package/dist/umd/components/tab/index.d.ts +0 -408
- package/dist/umd/components/tabpane/index.d.ts +0 -352
- package/dist/umd/index.d.ts +0 -14
- package/dist/umd/playwright.config.d.ts +0 -9
- package/dist/umd/plugins/auto-import-file.d.ts +0 -0
- package/dist/umd/plugins/load-style.d.ts +0 -6
- package/dist/umd/plugins/load-svg.d.ts +0 -9
- package/dist/umd/style.css +0 -1
- package/dist/umd/tests/button.spec.d.ts +0 -1
- package/dist/umd/utils/image.d.ts +0 -32
- package/dist/umd/utils/index.d.ts +0 -64
- package/dist/umd/utils/math.d.ts +0 -26
- package/dist/umd/utils/tween.d.ts +0 -21
- package/dist/umd/vite.config.d.ts +0 -6
- package/dist/vendor-f71e6f68.js +0 -92126
- /package/dist/{add-user-b2bed3e7.js → add-user-BN1JlY7e.js} +0 -0
- /package/dist/{book-b11a68eb.js → book-nTEFXU2x.js} +0 -0
- /package/dist/{umd/build/config.es.d.ts → build/config.sha.d.ts} +0 -0
- /package/dist/{check-circle-fill-dc284144.js → check-circle-fill-B_pd8ZSs.js} +0 -0
- /package/dist/{check-circle-74bd09c3.js → check-circle-szyAJiap.js} +0 -0
- /package/dist/{close-20925345.js → close-CFnkhudp.js} +0 -0
- /package/dist/{close-circle-720c18be.js → close-circle-CwmuN2C6.js} +0 -0
- /package/dist/{close-circle-fill-238a66b1.js → close-circle-fill-jSqPPw9i.js} +0 -0
- /package/dist/{eye-5e742329.js → eye-D_mEt17f.js} +0 -0
- /package/dist/{eye-close-3874f1ae.js → eye-close-BVr3NJtg.js} +0 -0
- /package/dist/{home-c4a05e8b.js → home-BUQ4USMk.js} +0 -0
- /package/dist/{index-8e1e2573.js → index-CQTJoWhb.js} +0 -0
- /package/dist/{info-circle-5826decc.js → info-circle-COnL5bTJ.js} +0 -0
- /package/dist/{info-circle-fill-90ec9aa9.js → info-circle-fill-DjI8gXS3.js} +0 -0
- /package/dist/{loading-09ca52df.js → loading-Dcc5RApI.js} +0 -0
- /package/dist/{lock-1d2487c9.js → lock-Cr7BnmWN.js} +0 -0
- /package/dist/{message-b2bfdea7.js → message-D36_Zo2l.js} +0 -0
- /package/dist/{power-off-6ade5a91.js → power-off-lQRbiBak.js} +0 -0
- /package/dist/{preview-b291aea8.js → preview-CJbz9GjO.js} +0 -0
- /package/dist/{setting-1e5ccb6d.js → setting-DemlgzVC.js} +0 -0
- /package/dist/{team-ca6a12e1.js → team-tl4NJXPC.js} +0 -0
- /package/dist/{unlock-f56086fd.js → unlock-CeU74z9n.js} +0 -0
- /package/dist/{user-5c01e665.js → user-B-eVXwuk.js} +0 -0
- /package/dist/{warning-circle-035e025c.js → warning-circle-DDUgEDIv.js} +0 -0
- /package/dist/{warning-circle-fill-d17c37c9.js → warning-circle-fill-lODUKz0i.js} +0 -0
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
declare const Progress_base: {
|
|
2
|
+
new (): HTMLElement;
|
|
3
|
+
prototype: HTMLElement;
|
|
4
|
+
};
|
|
5
|
+
declare class Progress extends Progress_base {
|
|
2
6
|
_progress: HTMLDivElement;
|
|
3
7
|
_progressWrap: HTMLDivElement;
|
|
4
8
|
_progressWrapValue: HTMLDivElement;
|
|
@@ -6,11 +10,12 @@ export declare class Progress extends HTMLElement {
|
|
|
6
10
|
moveProgress: {
|
|
7
11
|
mouseDown: boolean;
|
|
8
12
|
};
|
|
13
|
+
_shadowDom: ShadowRoot;
|
|
9
14
|
constructor();
|
|
10
15
|
static get observedAttributes(): string[];
|
|
11
|
-
get percent():
|
|
12
|
-
set percent(value:
|
|
13
|
-
get total():
|
|
16
|
+
get percent(): string;
|
|
17
|
+
set percent(value: string);
|
|
18
|
+
get total(): string;
|
|
14
19
|
set total(value: string);
|
|
15
20
|
get type(): string;
|
|
16
21
|
set type(value: string);
|
|
@@ -21,16 +26,16 @@ export declare class Progress extends HTMLElement {
|
|
|
21
26
|
progressClick: (e: MouseEvent) => void;
|
|
22
27
|
progressDotMouseDown: () => void;
|
|
23
28
|
progressDotMouseMove: (e: MouseEvent) => void;
|
|
24
|
-
progressDotMouseUp: (
|
|
29
|
+
progressDotMouseUp: () => void;
|
|
25
30
|
change: () => void;
|
|
26
31
|
appendProgressDot: () => void;
|
|
27
32
|
updateCurrentProgress: () => void;
|
|
28
33
|
dragEvent: () => void;
|
|
29
|
-
createProgress: () => void;
|
|
30
34
|
private resize;
|
|
31
35
|
connectedCallback(): void;
|
|
32
36
|
disconnectCallback(): void;
|
|
33
37
|
attributeChangedCallback(k: string, o: string, n: string): void;
|
|
34
38
|
}
|
|
35
|
-
declare const _default: import(
|
|
39
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
36
40
|
export default _default;
|
|
41
|
+
export { Progress };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
2
2
|
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const ScratchTicket_base: {
|
|
2
|
+
new (): HTMLElement;
|
|
3
|
+
prototype: HTMLElement;
|
|
4
|
+
};
|
|
5
|
+
declare class ScratchTicket extends ScratchTicket_base {
|
|
2
6
|
scratchTicketContainer: HTMLDivElement;
|
|
3
7
|
scratchTicket: HTMLCanvasElement;
|
|
4
8
|
state: {
|
|
@@ -9,11 +13,9 @@ declare class ScratchTicket extends HTMLElement {
|
|
|
9
13
|
static get observedAttributes(): string[];
|
|
10
14
|
constructor();
|
|
11
15
|
touchStartScratch: (e: TouchEvent) => void;
|
|
12
|
-
touchMoveScratch: (
|
|
16
|
+
touchMoveScratch: () => void;
|
|
13
17
|
touchEndScratch: () => void;
|
|
14
18
|
drawScratchTicket: () => void;
|
|
15
|
-
|
|
16
|
-
disconnectCallback(): void;
|
|
17
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
19
|
+
attributeChangedCallback(): void;
|
|
18
20
|
}
|
|
19
21
|
export default ScratchTicket;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Chain } from 'ranuts/utils';
|
|
2
|
+
declare const DropdownItem_base: {
|
|
3
|
+
new (): HTMLElement;
|
|
4
|
+
prototype: HTMLElement;
|
|
5
|
+
};
|
|
6
|
+
export declare class DropdownItem extends DropdownItem_base {
|
|
7
|
+
ionDropdownItem: Chain;
|
|
8
|
+
_slot: Chain;
|
|
9
|
+
_shadowDom: ShadowRoot;
|
|
10
|
+
ionDropdownItemContent: Chain;
|
|
11
|
+
static get observedAttributes(): string[];
|
|
12
|
+
constructor();
|
|
13
|
+
get value(): string;
|
|
14
|
+
set value(value: string);
|
|
15
|
+
get active(): string;
|
|
16
|
+
set active(value: string);
|
|
17
|
+
get title(): string;
|
|
18
|
+
set title(value: string);
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
attributeChangedCallback(name: string, _: string, newValue: string): void;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
23
|
+
export default _default;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import '@/components/select/option';
|
|
2
|
+
import '@/components/dropdown';
|
|
3
|
+
import '@/components/select/dropdown-item';
|
|
4
|
+
import '@/components/icon';
|
|
5
|
+
import '@/components/input';
|
|
6
|
+
import type { Input } from '@/components/input';
|
|
3
7
|
interface Option {
|
|
4
8
|
label: string | number;
|
|
5
9
|
value: string | number;
|
|
6
10
|
}
|
|
7
|
-
|
|
11
|
+
declare const Select_base: {
|
|
12
|
+
new (): HTMLElement;
|
|
13
|
+
prototype: HTMLElement;
|
|
14
|
+
};
|
|
15
|
+
export declare class Select extends Select_base {
|
|
8
16
|
removeTimeId?: NodeJS.Timeout;
|
|
9
17
|
_slot: HTMLSlotElement;
|
|
10
18
|
_shadowDom: ShadowRoot;
|
|
@@ -13,7 +21,7 @@ export declare class Select extends HTMLElement {
|
|
|
13
21
|
_search: Input;
|
|
14
22
|
_icon: HTMLElement;
|
|
15
23
|
_selectDropdown?: HTMLDivElement;
|
|
16
|
-
_selectionDropdown?:
|
|
24
|
+
_selectionDropdown?: HTMLElement;
|
|
17
25
|
_selectDropDownInTimeId?: NodeJS.Timeout;
|
|
18
26
|
_selectDropDownOutTimeId?: NodeJS.Timeout;
|
|
19
27
|
_optionList: Option[];
|
|
@@ -22,7 +30,7 @@ export declare class Select extends HTMLElement {
|
|
|
22
30
|
_activeOption?: HTMLElement;
|
|
23
31
|
_text: HTMLSpanElement;
|
|
24
32
|
_selector: HTMLDivElement;
|
|
25
|
-
onSearch:
|
|
33
|
+
onSearch?: (this: HTMLElement, ev: Event) => unknown;
|
|
26
34
|
static get observedAttributes(): string[];
|
|
27
35
|
constructor();
|
|
28
36
|
get value(): string;
|
|
@@ -41,8 +49,8 @@ export declare class Select extends HTMLElement {
|
|
|
41
49
|
set getPopupContainerId(value: string);
|
|
42
50
|
get dropdownclass(): string;
|
|
43
51
|
set dropdownclass(value: string);
|
|
44
|
-
get
|
|
45
|
-
set
|
|
52
|
+
get trigger(): string;
|
|
53
|
+
set trigger(value: string);
|
|
46
54
|
get disabled(): boolean;
|
|
47
55
|
set disabled(value: boolean | string | undefined | null);
|
|
48
56
|
handlerExternalCss(): void;
|
|
@@ -61,13 +69,13 @@ export declare class Select extends HTMLElement {
|
|
|
61
69
|
* @description: 设置下拉框
|
|
62
70
|
* @return {*}
|
|
63
71
|
*/
|
|
64
|
-
selectMouseDown: () => void;
|
|
65
|
-
removeDropDownTimeId: () => void;
|
|
72
|
+
selectMouseDown: (e: Event) => void;
|
|
73
|
+
removeDropDownTimeId: (e: Event) => void;
|
|
66
74
|
/**
|
|
67
|
-
* @description: 焦点移除的情况,需要移除select 下拉框
|
|
75
|
+
* @description: 焦点移除的情况,需要移除 select 下拉框
|
|
68
76
|
* @return {*}
|
|
69
77
|
*/
|
|
70
|
-
selectBlur: () => void;
|
|
78
|
+
selectBlur: (e: Event) => void;
|
|
71
79
|
/**
|
|
72
80
|
* @description: 选中一个选项的情况
|
|
73
81
|
* @param {MouseEvent} e
|
|
@@ -85,7 +93,7 @@ export declare class Select extends HTMLElement {
|
|
|
85
93
|
*/
|
|
86
94
|
removeSelectDropdown: () => void;
|
|
87
95
|
/**
|
|
88
|
-
* @description: 当select中有option元素的时候,给dropdown添加元素
|
|
96
|
+
* @description: 当 select 中有 option 元素的时候,给 dropdown 添加元素
|
|
89
97
|
* @return {*}
|
|
90
98
|
*/
|
|
91
99
|
addOptionToSlot: () => void;
|
|
@@ -97,9 +105,10 @@ export declare class Select extends HTMLElement {
|
|
|
97
105
|
listenSlotChange: () => void;
|
|
98
106
|
removeListenSlotChange: () => void;
|
|
99
107
|
listenActionEvent: () => void;
|
|
108
|
+
clickRemoveSelect: (e: Event) => void;
|
|
100
109
|
connectedCallback(): void;
|
|
101
110
|
disconnectCallback(): void;
|
|
102
111
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
103
112
|
}
|
|
104
|
-
declare const _default: import(
|
|
113
|
+
declare const _default: import("@/utils/index").CustomErrorType;
|
|
105
114
|
export default _default;
|
|
@@ -13,20 +13,20 @@ declare const _default: {
|
|
|
13
13
|
active: string | null;
|
|
14
14
|
effect: string | null;
|
|
15
15
|
/**
|
|
16
|
-
* @description: 构建tabPane组件key值和index的映射,同时判断一个tabs下的tabPane key值不能重复
|
|
16
|
+
* @description: 构建 tabPane 组件 key 值和 index 的映射,同时判断一个 tabs 下的 tabPane key 值不能重复
|
|
17
17
|
* @param {string} key
|
|
18
18
|
* @param {number} index
|
|
19
19
|
*/
|
|
20
20
|
initTabHeaderKeyMapIndex: (key: string, index: number) => void;
|
|
21
21
|
/**
|
|
22
|
-
* @description: 根据传入的tabPane生成tabs的头部
|
|
22
|
+
* @description: 根据传入的 tabPane 生成 tabs 的头部
|
|
23
23
|
* @param {Element} tabPane
|
|
24
24
|
* @param {number} index
|
|
25
25
|
* @return {Element}
|
|
26
26
|
*/
|
|
27
27
|
createTabHeader(tabPane: Element, index: number): HTMLElement;
|
|
28
28
|
/**
|
|
29
|
-
* @description: 初始化tabLine的位置,主要是当tabs的align属性为center时需要处理
|
|
29
|
+
* @description: 初始化 tabLine 的位置,主要是当 tabs 的 align 属性为 center 时需要处理
|
|
30
30
|
*/
|
|
31
31
|
initTabLineAlignCenter: () => void;
|
|
32
32
|
/**
|
|
@@ -43,7 +43,7 @@ declare const _default: {
|
|
|
43
43
|
*/
|
|
44
44
|
setTabContent: (key: string) => void;
|
|
45
45
|
/**
|
|
46
|
-
* @description: 根据点击设置tabLine的位置
|
|
46
|
+
* @description: 根据点击设置 tabLine 的位置
|
|
47
47
|
* @param {Event} e
|
|
48
48
|
* @param {number} index
|
|
49
49
|
* @param {number} width
|
|
@@ -56,20 +56,20 @@ declare const _default: {
|
|
|
56
56
|
*/
|
|
57
57
|
updateAttribute: (key: string, attribute: string, value?: string | null) => void;
|
|
58
58
|
/**
|
|
59
|
-
* @description: 初始化tabs的active属性和tabLine,tabContent
|
|
59
|
+
* @description: 初始化 tabs 的 active 属性和 tabLine,tabContent
|
|
60
60
|
*/
|
|
61
61
|
initActive: () => void;
|
|
62
62
|
/**
|
|
63
|
-
* @description: 监听slot组件的添加/删除/替换操作,进行tabs初始化
|
|
63
|
+
* @description: 监听 slot 组件的添加/删除/替换操作,进行 tabs 初始化
|
|
64
64
|
* @return {*}
|
|
65
65
|
*/
|
|
66
66
|
listenSlotChange: () => void;
|
|
67
67
|
/**
|
|
68
|
-
* @description: 初始化tab
|
|
68
|
+
* @description: 初始化 tab
|
|
69
69
|
*/
|
|
70
70
|
initTab: () => void;
|
|
71
71
|
/**
|
|
72
|
-
* @description: 卸载tab
|
|
72
|
+
* @description: 卸载 tab
|
|
73
73
|
*/
|
|
74
74
|
unloadTab: () => void;
|
|
75
75
|
connectedCallback(): void;
|
|
@@ -94,35 +94,40 @@ declare const _default: {
|
|
|
94
94
|
spellcheck: boolean;
|
|
95
95
|
title: string;
|
|
96
96
|
translate: boolean;
|
|
97
|
+
writingSuggestions: string;
|
|
97
98
|
attachInternals(): ElementInternals;
|
|
98
99
|
click(): void;
|
|
99
100
|
hidePopover(): void;
|
|
100
101
|
showPopover(): void;
|
|
101
|
-
togglePopover(
|
|
102
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions
|
|
103
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions
|
|
104
|
-
removeEventListener<
|
|
105
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions
|
|
106
|
-
mozRequestFullScreen: (options?: FullscreenOptions
|
|
107
|
-
msRequestFullscreen: (options?: FullscreenOptions
|
|
108
|
-
oRequestFullscreen: (options?: FullscreenOptions
|
|
109
|
-
webkitRequestFullscreen: (options?: FullscreenOptions
|
|
110
|
-
webkitEnterFullscreen: (options?: FullscreenOptions
|
|
102
|
+
togglePopover(options?: boolean): boolean;
|
|
103
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
104
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
105
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
106
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
107
|
+
mozRequestFullScreen: (options?: FullscreenOptions) => Promise<void>;
|
|
108
|
+
msRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
109
|
+
oRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
110
|
+
webkitRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
111
|
+
webkitEnterFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
111
112
|
readonly attributes: NamedNodeMap;
|
|
112
|
-
|
|
113
|
+
get classList(): DOMTokenList;
|
|
114
|
+
set classList(value: string);
|
|
113
115
|
className: string;
|
|
114
116
|
readonly clientHeight: number;
|
|
115
117
|
readonly clientLeft: number;
|
|
116
118
|
readonly clientTop: number;
|
|
117
119
|
readonly clientWidth: number;
|
|
120
|
+
readonly currentCSSZoom: number;
|
|
118
121
|
id: string;
|
|
122
|
+
innerHTML: string;
|
|
119
123
|
readonly localName: string;
|
|
120
124
|
readonly namespaceURI: string | null;
|
|
121
125
|
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
122
126
|
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
123
127
|
outerHTML: string;
|
|
124
128
|
readonly ownerDocument: Document;
|
|
125
|
-
|
|
129
|
+
get part(): DOMTokenList;
|
|
130
|
+
set part(value: string);
|
|
126
131
|
readonly prefix: string | null;
|
|
127
132
|
readonly scrollHeight: number;
|
|
128
133
|
scrollLeft: number;
|
|
@@ -132,10 +137,10 @@ declare const _default: {
|
|
|
132
137
|
slot: string;
|
|
133
138
|
readonly tagName: string;
|
|
134
139
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
135
|
-
checkVisibility(options?: CheckVisibilityOptions
|
|
136
|
-
closest<
|
|
137
|
-
closest<
|
|
138
|
-
closest<
|
|
140
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
141
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
142
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
143
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
139
144
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
140
145
|
computedStyleMap(): StylePropertyMapReadOnly;
|
|
141
146
|
getAttribute(qualifiedName: string): string | null;
|
|
@@ -146,42 +151,44 @@ declare const _default: {
|
|
|
146
151
|
getBoundingClientRect(): DOMRect;
|
|
147
152
|
getClientRects(): DOMRectList;
|
|
148
153
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
149
|
-
getElementsByTagName<
|
|
150
|
-
getElementsByTagName<
|
|
151
|
-
getElementsByTagName<
|
|
152
|
-
getElementsByTagName<
|
|
154
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
155
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
156
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
157
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
153
158
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
154
159
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
155
160
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
156
161
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
157
162
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
163
|
+
getHTML(options?: GetHTMLOptions): string;
|
|
158
164
|
hasAttribute(qualifiedName: string): boolean;
|
|
159
165
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
160
166
|
hasAttributes(): boolean;
|
|
161
167
|
hasPointerCapture(pointerId: number): boolean;
|
|
162
168
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
163
|
-
insertAdjacentHTML(position: InsertPosition,
|
|
169
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
164
170
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
165
171
|
matches(selectors: string): boolean;
|
|
166
172
|
releasePointerCapture(pointerId: number): void;
|
|
167
173
|
removeAttribute(qualifiedName: string): void;
|
|
168
174
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
169
175
|
removeAttributeNode(attr: Attr): Attr;
|
|
170
|
-
requestFullscreen(options?: FullscreenOptions
|
|
171
|
-
requestPointerLock(): void
|
|
172
|
-
scroll(options?: ScrollToOptions
|
|
176
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
177
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
178
|
+
scroll(options?: ScrollToOptions): void;
|
|
173
179
|
scroll(x: number, y: number): void;
|
|
174
|
-
scrollBy(options?: ScrollToOptions
|
|
180
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
175
181
|
scrollBy(x: number, y: number): void;
|
|
176
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions
|
|
177
|
-
scrollTo(options?: ScrollToOptions
|
|
182
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
183
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
178
184
|
scrollTo(x: number, y: number): void;
|
|
179
185
|
setAttribute(qualifiedName: string, value: string): void;
|
|
180
186
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
181
187
|
setAttributeNode(attr: Attr): Attr | null;
|
|
182
188
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
189
|
+
setHTMLUnsafe(html: string): void;
|
|
183
190
|
setPointerCapture(pointerId: number): void;
|
|
184
|
-
toggleAttribute(qualifiedName: string, force?: boolean
|
|
191
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
185
192
|
webkitMatchesSelector(selectors: string): boolean;
|
|
186
193
|
readonly baseURI: string;
|
|
187
194
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -197,20 +204,20 @@ declare const _default: {
|
|
|
197
204
|
readonly previousSibling: ChildNode | null;
|
|
198
205
|
textContent: string | null;
|
|
199
206
|
appendChild<T extends Node>(node: T): T;
|
|
200
|
-
cloneNode(
|
|
207
|
+
cloneNode(subtree?: boolean): Node;
|
|
201
208
|
compareDocumentPosition(other: Node): number;
|
|
202
209
|
contains(other: Node | null): boolean;
|
|
203
|
-
getRootNode(options?: GetRootNodeOptions
|
|
210
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
204
211
|
hasChildNodes(): boolean;
|
|
205
|
-
insertBefore<
|
|
212
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
206
213
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
207
214
|
isEqualNode(otherNode: Node | null): boolean;
|
|
208
215
|
isSameNode(otherNode: Node | null): boolean;
|
|
209
216
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
210
217
|
lookupPrefix(namespace: string | null): string | null;
|
|
211
218
|
normalize(): void;
|
|
212
|
-
removeChild<
|
|
213
|
-
replaceChild<
|
|
219
|
+
removeChild<T extends Node>(child: T): T;
|
|
220
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
214
221
|
readonly ELEMENT_NODE: 1;
|
|
215
222
|
readonly ATTRIBUTE_NODE: 2;
|
|
216
223
|
readonly TEXT_NODE: 3;
|
|
@@ -232,12 +239,16 @@ declare const _default: {
|
|
|
232
239
|
dispatchEvent(event: Event): boolean;
|
|
233
240
|
ariaAtomic: string | null;
|
|
234
241
|
ariaAutoComplete: string | null;
|
|
242
|
+
ariaBrailleLabel: string | null;
|
|
243
|
+
ariaBrailleRoleDescription: string | null;
|
|
235
244
|
ariaBusy: string | null;
|
|
236
245
|
ariaChecked: string | null;
|
|
237
246
|
ariaColCount: string | null;
|
|
238
247
|
ariaColIndex: string | null;
|
|
248
|
+
ariaColIndexText: string | null;
|
|
239
249
|
ariaColSpan: string | null;
|
|
240
250
|
ariaCurrent: string | null;
|
|
251
|
+
ariaDescription: string | null;
|
|
241
252
|
ariaDisabled: string | null;
|
|
242
253
|
ariaExpanded: string | null;
|
|
243
254
|
ariaHasPopup: string | null;
|
|
@@ -255,10 +266,12 @@ declare const _default: {
|
|
|
255
266
|
ariaPosInSet: string | null;
|
|
256
267
|
ariaPressed: string | null;
|
|
257
268
|
ariaReadOnly: string | null;
|
|
269
|
+
ariaRelevant: string | null;
|
|
258
270
|
ariaRequired: string | null;
|
|
259
271
|
ariaRoleDescription: string | null;
|
|
260
272
|
ariaRowCount: string | null;
|
|
261
273
|
ariaRowIndex: string | null;
|
|
274
|
+
ariaRowIndexText: string | null;
|
|
262
275
|
ariaRowSpan: string | null;
|
|
263
276
|
ariaSelected: string | null;
|
|
264
277
|
ariaSetSize: string | null;
|
|
@@ -268,35 +281,35 @@ declare const _default: {
|
|
|
268
281
|
ariaValueNow: string | null;
|
|
269
282
|
ariaValueText: string | null;
|
|
270
283
|
role: string | null;
|
|
271
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions
|
|
272
|
-
getAnimations(options?: GetAnimationsOptions
|
|
273
|
-
after(...nodes: (
|
|
274
|
-
before(...nodes: (
|
|
284
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
285
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
286
|
+
after(...nodes: (Node | string)[]): void;
|
|
287
|
+
before(...nodes: (Node | string)[]): void;
|
|
275
288
|
remove(): void;
|
|
276
|
-
replaceWith(...nodes: (
|
|
277
|
-
innerHTML: string;
|
|
289
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
278
290
|
readonly nextElementSibling: Element | null;
|
|
279
291
|
readonly previousElementSibling: Element | null;
|
|
280
292
|
readonly childElementCount: number;
|
|
281
293
|
readonly children: HTMLCollection;
|
|
282
294
|
readonly firstElementChild: Element | null;
|
|
283
295
|
readonly lastElementChild: Element | null;
|
|
284
|
-
append(...nodes: (
|
|
285
|
-
prepend(...nodes: (
|
|
286
|
-
querySelector<
|
|
287
|
-
querySelector<
|
|
288
|
-
querySelector<
|
|
289
|
-
querySelector<
|
|
290
|
-
querySelector<
|
|
291
|
-
querySelectorAll<
|
|
292
|
-
querySelectorAll<
|
|
293
|
-
querySelectorAll<
|
|
294
|
-
querySelectorAll<
|
|
295
|
-
querySelectorAll<
|
|
296
|
-
replaceChildren(...nodes: (
|
|
296
|
+
append(...nodes: (Node | string)[]): void;
|
|
297
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
298
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
299
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
300
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
301
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
302
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
303
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
304
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
305
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
306
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
307
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
308
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
297
309
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
298
310
|
readonly attributeStyleMap: StylePropertyMap;
|
|
299
|
-
|
|
311
|
+
get style(): CSSStyleDeclaration;
|
|
312
|
+
set style(cssText: string);
|
|
300
313
|
contentEditable: string;
|
|
301
314
|
enterKeyHint: string;
|
|
302
315
|
inputMode: string;
|
|
@@ -308,6 +321,7 @@ declare const _default: {
|
|
|
308
321
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
309
322
|
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
310
323
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
324
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
311
325
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
312
326
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
313
327
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -315,7 +329,9 @@ declare const _default: {
|
|
|
315
329
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
330
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
317
331
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
332
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
333
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
334
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
319
335
|
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
320
336
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
321
337
|
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -363,7 +379,7 @@ declare const _default: {
|
|
|
363
379
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
364
380
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
365
381
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
366
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent
|
|
382
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
367
383
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
368
384
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
369
385
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
@@ -398,10 +414,10 @@ declare const _default: {
|
|
|
398
414
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
399
415
|
autofocus: boolean;
|
|
400
416
|
readonly dataset: DOMStringMap;
|
|
401
|
-
nonce?: string
|
|
417
|
+
nonce?: string;
|
|
402
418
|
tabIndex: number;
|
|
403
419
|
blur(): void;
|
|
404
|
-
focus(options?: FocusOptions
|
|
420
|
+
focus(options?: FocusOptions): void;
|
|
405
421
|
};
|
|
406
422
|
readonly observedAttributes: string[];
|
|
407
423
|
} | undefined;
|