@pusdn/pgz-comp-elep 0.2.13 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/lib/adaptive-page/index.d.ts +17096 -0
  2. package/lib/adaptive-page/src/index.vue.d.ts +5731 -0
  3. package/lib/adaptive-page/src/type.d.ts +9 -0
  4. package/lib/button/index.d.ts +134 -0
  5. package/lib/button/src/index.vue.d.ts +67 -0
  6. package/lib/button/src/type.d.ts +10 -0
  7. package/lib/chart/index.d.ts +164 -0
  8. package/lib/chart/src/index.vue.d.ts +77 -0
  9. package/lib/chart/src/type.d.ts +7 -0
  10. package/lib/checkbox/index.d.ts +206 -0
  11. package/lib/checkbox/src/checkbox.d.ts +5 -0
  12. package/lib/checkbox/src/index.vue.d.ts +91 -0
  13. package/lib/components.d.ts +57 -0
  14. package/lib/date-picker/index.d.ts +170 -0
  15. package/lib/date-picker/src/index.vue.d.ts +77 -0
  16. package/lib/date-picker/src/type.d.ts +10 -0
  17. package/lib/detail/index.d.ts +182 -0
  18. package/lib/detail/src/index.vue.d.ts +88 -0
  19. package/lib/detail/src/renderLabel.vue.d.ts +8 -0
  20. package/lib/detail/src/renderTooltip.vue.d.ts +8 -0
  21. package/lib/detail/src/type.d.ts +27 -0
  22. package/lib/favicon.ico +0 -0
  23. package/lib/form/index.d.ts +308 -0
  24. package/lib/form/src/index.vue.d.ts +125 -0
  25. package/lib/form/src/renderBtn.vue.d.ts +8 -0
  26. package/lib/form/src/renderComp.vue.d.ts +8 -0
  27. package/lib/form/src/type.d.ts +26 -0
  28. package/lib/index.d.ts +42 -0
  29. package/lib/input/index.d.ts +215 -0
  30. package/lib/input/src/index.vue.d.ts +109 -0
  31. package/lib/input/src/type.d.ts +13 -0
  32. package/lib/layout-page/index.d.ts +114 -0
  33. package/lib/layout-page/src/index.vue.d.ts +62 -0
  34. package/lib/layout-page-item/index.d.ts +35 -0
  35. package/lib/layout-page-item/src/index.vue.d.ts +14 -0
  36. package/lib/module-form/index.d.ts +530 -0
  37. package/lib/module-form/src/index.vue.d.ts +243 -0
  38. package/lib/module-form/src/moduleDetail.vue.d.ts +30 -0
  39. package/lib/module-form/src/moduleForm.vue.d.ts +36 -0
  40. package/lib/module-form/src/type.d.ts +19 -0
  41. package/lib/pgz-checkbox/index.d.ts +149 -0
  42. package/lib/pgz-checkbox/src/index.vue.d.ts +65 -0
  43. package/lib/pgz-checkbox/src/type.d.ts +12 -0
  44. package/lib/pgz-comp-elep.es.js +39723 -0
  45. package/lib/pgz-comp-elep.es.js.gz +0 -0
  46. package/lib/pgz-comp-elep.umd.js +261 -0
  47. package/lib/pgz-comp-elep.umd.js.gz +0 -0
  48. package/lib/pgz-html-preview-modal/index.d.ts +77 -0
  49. package/lib/pgz-html-preview-modal/src/index.vue.d.ts +22 -0
  50. package/lib/pgz-html-preview-modal/src/type.d.ts +7 -0
  51. package/lib/pgz-search-select/index.d.ts +5 -0
  52. package/lib/pgz-search-select/src/index.vue.d.ts +194 -0
  53. package/lib/pgz-search-select/src/type.d.ts +16 -0
  54. package/lib/pgz-tdt-mark/index.d.ts +407 -0
  55. package/lib/pgz-tdt-mark/src/env.d.ts +7 -0
  56. package/lib/pgz-tdt-mark/src/index.vue.d.ts +167 -0
  57. package/lib/pgz-tdt-mark/src/props.d.ts +63 -0
  58. package/lib/pgz-tdt-mark/src/types/index.d.ts +1 -0
  59. package/lib/pgz-tdt-mark/src/types/tdt.d.ts +88 -0
  60. package/lib/pgz-tdt-ploygon/index.d.ts +401 -0
  61. package/lib/pgz-tdt-ploygon/src/env.d.ts +7 -0
  62. package/lib/pgz-tdt-ploygon/src/index.vue.d.ts +164 -0
  63. package/lib/pgz-tdt-ploygon/src/props.d.ts +35 -0
  64. package/lib/pgz-tdt-ploygon/src/tmp-fix.d.ts +10 -0
  65. package/lib/pgz-tdt-ploygon/src/types/index.d.ts +1 -0
  66. package/lib/pgz-tdt-ploygon/src/types/tdt.d.ts +120 -0
  67. package/lib/pgz-tdt-ploygon/src/types.d.ts +27 -0
  68. package/lib/pgz-video-xg-modal/index.d.ts +181 -0
  69. package/lib/pgz-video-xg-modal/src/env.d.ts +7 -0
  70. package/lib/pgz-video-xg-modal/src/index.vue.d.ts +73 -0
  71. package/lib/pgz-video-xg-modal/src/types/xgplayer.d.ts +59 -0
  72. package/lib/query-condition/index.d.ts +701 -0
  73. package/lib/query-condition/src/index.vue.d.ts +326 -0
  74. package/lib/query-condition/src/moreChoose.vue.d.ts +37 -0
  75. package/lib/query-condition/src/renderComp.vue.d.ts +8 -0
  76. package/lib/query-condition/src/type.d.ts +21 -0
  77. package/lib/query-condition/src/useComputed.d.ts +27 -0
  78. package/lib/radio/index.d.ts +206 -0
  79. package/lib/radio/src/index.vue.d.ts +91 -0
  80. package/lib/radio/src/radio.d.ts +12 -0
  81. package/lib/select/index.d.ts +371 -0
  82. package/lib/select/src/index.vue.d.ts +200 -0
  83. package/lib/select/src/type.d.ts +42 -0
  84. package/lib/select-icon/index.d.ts +174 -0
  85. package/lib/select-icon/src/index.vue.d.ts +89 -0
  86. package/lib/select-table/index.d.ts +2165 -0
  87. package/lib/select-table/src/index.vue.d.ts +963 -0
  88. package/lib/select-table/src/renderCol.vue.d.ts +20 -0
  89. package/lib/select-table/src/type.d.ts +56 -0
  90. package/lib/select-table/src/useVirtualized.d.ts +11 -0
  91. package/lib/step-wizard/index.d.ts +146 -0
  92. package/lib/step-wizard/src/index.vue.d.ts +71 -0
  93. package/lib/step-wizard/src/type.d.ts +25 -0
  94. package/lib/style.css +1 -0
  95. package/lib/style.css.gz +0 -0
  96. package/lib/table/index.d.ts +2540 -0
  97. package/lib/table/src/ColumnSet.vue.d.ts +148 -0
  98. package/lib/table/src/TTableColumn.vue.d.ts +173 -0
  99. package/lib/table/src/index.vue.d.ts +941 -0
  100. package/lib/table/src/operator.vue.d.ts +80 -0
  101. package/lib/table/src/renderCol.vue.d.ts +20 -0
  102. package/lib/table/src/renderHeader.vue.d.ts +16 -0
  103. package/lib/table/src/singleEdit.vue.d.ts +122 -0
  104. package/lib/table/src/singleEditCell.vue.d.ts +120 -0
  105. package/lib/table/src/tableProps.d.ts +100 -0
  106. package/lib/table/src/useExpose.d.ts +16 -0
  107. package/lib/table/src/useVirtualized.d.ts +9 -0
  108. package/lib/tabs/index.d.ts +69 -0
  109. package/lib/tabs/src/index.vue.d.ts +34 -0
  110. package/lib/timer-btn/index.d.ts +92 -0
  111. package/lib/timer-btn/src/index.vue.d.ts +43 -0
  112. package/lib/utils/directives/click-outside/index.d.ts +3 -0
  113. package/lib/utils/http/api.d.ts +76 -0
  114. package/lib/utils/http/index.d.ts +79 -0
  115. package/lib/utils/http/types.d.ts +13 -0
  116. package/lib/utils/index.d.ts +40 -0
  117. package/lib/withInstall.d.ts +4 -0
  118. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ // 临时修复天地图类型错误的声明文件
2
+ declare namespace T {
3
+ const PolygonTool: any;
4
+ const Polygon: any;
5
+ const LocalCity: any;
6
+
7
+ namespace Control {
8
+ const MapType: any;
9
+ }
10
+ }
@@ -0,0 +1 @@
1
+ /// <reference path="./tdt.d.ts" />
@@ -0,0 +1,120 @@
1
+ // 天地图接口类型声明文件
2
+
3
+ interface Window {
4
+ T: {
5
+ LngLat: new (lng: number | string, lat: number | string) => any;
6
+ Map: new (containerId: string) => any;
7
+ Marker: new (lnglat: any, options?: any) => any;
8
+ InfoWindow: new (content?: string, options?: any) => any;
9
+ Polyline: new (lngLats: any[], options?: any) => any;
10
+ Polygon: new (lngLats: any[], options?: any) => any;
11
+ PolygonTool: new (map: any, options?: any) => any;
12
+ Icon: new (options: any) => any;
13
+ Point: new (x: number, y: number) => any;
14
+ LocalSearch: new (map: any, options?: any) => any;
15
+ LocalCity: new () => any;
16
+ Geocoder: new () => any;
17
+ Control: {
18
+ Scale: new () => any;
19
+ Zoom: new () => any;
20
+ MapType: new () => any;
21
+ }
22
+ };
23
+ TMAP_SATELLITE_MAP: any;
24
+ TMAP_HYBRID_MAP: any;
25
+ TMAP_TERRAIN_MAP: any;
26
+ TMAP_TERRAIN_HYBRID_MAP: any;
27
+ TMAP_NORMAL_MAP: any;
28
+ T_ANCHOR_BOTTOM_RIGHT: any;
29
+ poiPicker: {
30
+ clearSearchResults: () => void;
31
+ };
32
+ }
33
+
34
+ // 扩展Element接口添加style属性
35
+ interface Element {
36
+ style: CSSStyleDeclaration;
37
+ }
38
+
39
+ declare namespace TDT {
40
+ interface LngLat {
41
+ getLng(): number;
42
+ getLat(): number;
43
+ lng: number;
44
+ lat: number;
45
+ }
46
+
47
+ interface Map {
48
+ centerAndZoom(lnglat: any, zoom: number): void;
49
+ panTo(lnglat: any): void;
50
+ clearOverLays(): void;
51
+ addOverLay(overlay: any): void;
52
+ removeOverLay(overlay: any): void;
53
+ getOverlays(): any[];
54
+ addControl(control: any): void;
55
+ disableScrollWheelZoom(): void;
56
+ zoomIn(): void;
57
+ zoomOut(): void;
58
+ setMapType(mapType: any): void;
59
+ setViewport(lnglats: any[]): void;
60
+ addEventListener(event: string, callback: (e: any) => void): void;
61
+ }
62
+
63
+ interface Marker {
64
+ openInfoWindow(infoWindow: any): void;
65
+ addEventListener(event: string, callback: (e: any) => void): void;
66
+ }
67
+
68
+ interface Polygon {
69
+ getLngLats(): LngLat[][];
70
+ addEventListener(event: string, callback: (e: any) => void): void;
71
+ }
72
+
73
+ interface PolygonTool {
74
+ open(polygon?: any): void;
75
+ close(): void;
76
+ endDraw(): void;
77
+ on(event: string, callback: (e: any) => void): void;
78
+ }
79
+
80
+ interface Geocoder {
81
+ getLocation(lnglat: any, callback: (result: any) => void): void;
82
+ }
83
+
84
+ interface LocalSearch {
85
+ search(keyword: string): void;
86
+ getCountNumber(): number;
87
+ getCountPage(): number;
88
+ getPageIndex(): number;
89
+ getResultType(): number;
90
+ firstPage(): void;
91
+ previousPage(): void;
92
+ nextPage(): void;
93
+ lastPage(): void;
94
+ gotoPage(page: number): void;
95
+ }
96
+
97
+ interface LocalCity {
98
+ location(callback: (result: any) => void): void;
99
+ }
100
+
101
+ interface SearchResult {
102
+ getResultType(): number;
103
+ getPois(): any[];
104
+ getStatistics(): any;
105
+ getArea(): any;
106
+ getSuggests(): any[];
107
+ getLineData(): any;
108
+ }
109
+
110
+ interface LocationPoint {
111
+ getLng(): number;
112
+ getLat(): number;
113
+ }
114
+
115
+ interface GeocodeResult {
116
+ getStatus(): number;
117
+ getAddress(): string;
118
+ getLocationPoint(): LocationPoint;
119
+ }
120
+ }
@@ -0,0 +1,27 @@
1
+ export interface PolygonEditorState {
2
+ address: string;
3
+ keyWord: string;
4
+ promptsVisible: boolean;
5
+ statisticsVisible: boolean;
6
+ suggestsVisible: boolean;
7
+ lineDataVisible: boolean;
8
+ resultVisible: boolean;
9
+ promptHtml: string;
10
+ statisticsHtml: string;
11
+ suggestsHtml: string;
12
+ lineDataHtml: string;
13
+ searchResultHtml: string;
14
+ pageId: number;
15
+ poi: Record<string, any>;
16
+ itemPolygon: any;
17
+ marker: any;
18
+ map: any;
19
+ localsearch: any;
20
+ box: boolean;
21
+ oldPoi: Record<string, any>;
22
+ loading: boolean;
23
+ allData: Record<string, any>;
24
+ oldAllData: Record<string, any>;
25
+ polyEditor: any;
26
+ currentPolygon: any;
27
+ }
@@ -0,0 +1,181 @@
1
+ import PgzVideoXgModalComponent from "./src/index.vue";
2
+ export type PgzVideoXgModalInstance = InstanceType<typeof PgzVideoXgModalComponent>;
3
+ declare const PgzVideoXgModal: ({
4
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
5
+ isLive: {
6
+ type: BooleanConstructor;
7
+ required: false;
8
+ default: boolean;
9
+ };
10
+ autoplay: {
11
+ type: BooleanConstructor;
12
+ required: false;
13
+ default: boolean;
14
+ };
15
+ sourceList: {
16
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor | null)[];
17
+ required: false;
18
+ default: null;
19
+ };
20
+ }>> & Readonly<{}>, {
21
+ props: any;
22
+ open: import("vue").Ref<boolean, boolean>;
23
+ submitLoading: import("vue").Ref<boolean, boolean>;
24
+ videoLoading: import("vue").Ref<boolean, boolean>;
25
+ modal: import("vue").Ref<{
26
+ fullscreen: boolean;
27
+ switchFullscreen: boolean;
28
+ }, {
29
+ fullscreen: boolean;
30
+ switchFullscreen: boolean;
31
+ } | {
32
+ fullscreen: boolean;
33
+ switchFullscreen: boolean;
34
+ }>;
35
+ formTitle: import("vue").Ref<string, string>;
36
+ noData: import("vue").Ref<string | null, string | null>;
37
+ player: import("vue").Ref<any, any>;
38
+ playingVideo: import("vue").Ref<Record<string, any>, Record<string, any>>;
39
+ playerTemp: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
40
+ fullScreen: import("vue").Ref<boolean, boolean>;
41
+ localIsLive: import("vue").ComputedRef<any>;
42
+ checkHEVCSupport: () => boolean;
43
+ initTCPlayer: () => void;
44
+ sourceList: import("vue").Ref<(string | Record<string, any>)[], (string | Record<string, any>)[]>;
45
+ currentVideoIndex: import("vue").Ref<number, number>;
46
+ getVideoTitle: (item: string | Record<string, any>, index: number) => any;
47
+ initPlayer: (url: string) => void;
48
+ playVideoByIndex: (index: number) => void;
49
+ showDetail: (data: any) => void;
50
+ cancel: () => void;
51
+ handleSnapshot: (data: any) => void;
52
+ createDemoPlayer: (source: string, cover?: string | undefined) => void;
53
+ playNext: () => void;
54
+ playPrevious: () => void;
55
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
56
+ isLive: boolean;
57
+ autoplay: boolean;
58
+ sourceList: string | Record<string, any> | unknown[] | null;
59
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
60
+ P: {};
61
+ B: {};
62
+ D: {};
63
+ C: {};
64
+ M: {};
65
+ Defaults: {};
66
+ }, Readonly<import("vue").ExtractPropTypes<{
67
+ isLive: {
68
+ type: BooleanConstructor;
69
+ required: false;
70
+ default: boolean;
71
+ };
72
+ autoplay: {
73
+ type: BooleanConstructor;
74
+ required: false;
75
+ default: boolean;
76
+ };
77
+ sourceList: {
78
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor | null)[];
79
+ required: false;
80
+ default: null;
81
+ };
82
+ }>> & Readonly<{}>, {
83
+ props: any;
84
+ open: import("vue").Ref<boolean, boolean>;
85
+ submitLoading: import("vue").Ref<boolean, boolean>;
86
+ videoLoading: import("vue").Ref<boolean, boolean>;
87
+ modal: import("vue").Ref<{
88
+ fullscreen: boolean;
89
+ switchFullscreen: boolean;
90
+ }, {
91
+ fullscreen: boolean;
92
+ switchFullscreen: boolean;
93
+ } | {
94
+ fullscreen: boolean;
95
+ switchFullscreen: boolean;
96
+ }>;
97
+ formTitle: import("vue").Ref<string, string>;
98
+ noData: import("vue").Ref<string | null, string | null>;
99
+ player: import("vue").Ref<any, any>;
100
+ playingVideo: import("vue").Ref<Record<string, any>, Record<string, any>>;
101
+ playerTemp: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
102
+ fullScreen: import("vue").Ref<boolean, boolean>;
103
+ localIsLive: import("vue").ComputedRef<any>;
104
+ checkHEVCSupport: () => boolean;
105
+ initTCPlayer: () => void;
106
+ sourceList: import("vue").Ref<(string | Record<string, any>)[], (string | Record<string, any>)[]>;
107
+ currentVideoIndex: import("vue").Ref<number, number>;
108
+ getVideoTitle: (item: string | Record<string, any>, index: number) => any;
109
+ initPlayer: (url: string) => void;
110
+ playVideoByIndex: (index: number) => void;
111
+ showDetail: (data: any) => void;
112
+ cancel: () => void;
113
+ handleSnapshot: (data: any) => void;
114
+ createDemoPlayer: (source: string, cover?: string | undefined) => void;
115
+ playNext: () => void;
116
+ playPrevious: () => void;
117
+ }, {}, {}, {}, {
118
+ isLive: boolean;
119
+ autoplay: boolean;
120
+ sourceList: string | Record<string, any> | unknown[] | null;
121
+ }>;
122
+ __isFragment?: undefined;
123
+ __isTeleport?: undefined;
124
+ __isSuspense?: undefined;
125
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
126
+ isLive: {
127
+ type: BooleanConstructor;
128
+ required: false;
129
+ default: boolean;
130
+ };
131
+ autoplay: {
132
+ type: BooleanConstructor;
133
+ required: false;
134
+ default: boolean;
135
+ };
136
+ sourceList: {
137
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor | null)[];
138
+ required: false;
139
+ default: null;
140
+ };
141
+ }>> & Readonly<{}>, {
142
+ props: any;
143
+ open: import("vue").Ref<boolean, boolean>;
144
+ submitLoading: import("vue").Ref<boolean, boolean>;
145
+ videoLoading: import("vue").Ref<boolean, boolean>;
146
+ modal: import("vue").Ref<{
147
+ fullscreen: boolean;
148
+ switchFullscreen: boolean;
149
+ }, {
150
+ fullscreen: boolean;
151
+ switchFullscreen: boolean;
152
+ } | {
153
+ fullscreen: boolean;
154
+ switchFullscreen: boolean;
155
+ }>;
156
+ formTitle: import("vue").Ref<string, string>;
157
+ noData: import("vue").Ref<string | null, string | null>;
158
+ player: import("vue").Ref<any, any>;
159
+ playingVideo: import("vue").Ref<Record<string, any>, Record<string, any>>;
160
+ playerTemp: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
161
+ fullScreen: import("vue").Ref<boolean, boolean>;
162
+ localIsLive: import("vue").ComputedRef<any>;
163
+ checkHEVCSupport: () => boolean;
164
+ initTCPlayer: () => void;
165
+ sourceList: import("vue").Ref<(string | Record<string, any>)[], (string | Record<string, any>)[]>;
166
+ currentVideoIndex: import("vue").Ref<number, number>;
167
+ getVideoTitle: (item: string | Record<string, any>, index: number) => any;
168
+ initPlayer: (url: string) => void;
169
+ playVideoByIndex: (index: number) => void;
170
+ showDetail: (data: any) => void;
171
+ cancel: () => void;
172
+ handleSnapshot: (data: any) => void;
173
+ createDemoPlayer: (source: string, cover?: string | undefined) => void;
174
+ playNext: () => void;
175
+ playPrevious: () => void;
176
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
177
+ isLive: boolean;
178
+ autoplay: boolean;
179
+ sourceList: string | Record<string, any> | unknown[] | null;
180
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>) & Record<string, any>;
181
+ export default PgzVideoXgModal;
@@ -0,0 +1,7 @@
1
+ /// <reference path="./types/xgplayer.d.ts" />
2
+
3
+ declare module '*.vue' {
4
+ import type { DefineComponent } from 'vue'
5
+ const component: DefineComponent<{}, {}, any>
6
+ export default component
7
+ }
@@ -0,0 +1,73 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ isLive: {
3
+ type: BooleanConstructor;
4
+ required: false;
5
+ default: boolean;
6
+ };
7
+ autoplay: {
8
+ type: BooleanConstructor;
9
+ required: false;
10
+ default: boolean;
11
+ };
12
+ sourceList: {
13
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor | null)[];
14
+ required: false;
15
+ default: null;
16
+ };
17
+ }>, {
18
+ props: any;
19
+ open: import("vue").Ref<boolean, boolean>;
20
+ submitLoading: import("vue").Ref<boolean, boolean>;
21
+ videoLoading: import("vue").Ref<boolean, boolean>;
22
+ modal: import("vue").Ref<{
23
+ fullscreen: boolean;
24
+ switchFullscreen: boolean;
25
+ }, {
26
+ fullscreen: boolean;
27
+ switchFullscreen: boolean;
28
+ } | {
29
+ fullscreen: boolean;
30
+ switchFullscreen: boolean;
31
+ }>;
32
+ formTitle: import("vue").Ref<string, string>;
33
+ noData: import("vue").Ref<string | null, string | null>;
34
+ player: import("vue").Ref<any, any>;
35
+ playingVideo: import("vue").Ref<Record<string, any>, Record<string, any>>;
36
+ playerTemp: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
37
+ fullScreen: import("vue").Ref<boolean, boolean>;
38
+ localIsLive: import("vue").ComputedRef<any>;
39
+ checkHEVCSupport: () => boolean;
40
+ initTCPlayer: () => void;
41
+ sourceList: import("vue").Ref<(string | Record<string, any>)[], (string | Record<string, any>)[]>;
42
+ currentVideoIndex: import("vue").Ref<number, number>;
43
+ getVideoTitle: (item: string | Record<string, any>, index: number) => any;
44
+ initPlayer: (url: string) => void;
45
+ playVideoByIndex: (index: number) => void;
46
+ showDetail: (data: any) => void;
47
+ cancel: () => void;
48
+ handleSnapshot: (data: any) => void;
49
+ createDemoPlayer: (source: string, cover?: string) => void;
50
+ playNext: () => void;
51
+ playPrevious: () => void;
52
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
53
+ isLive: {
54
+ type: BooleanConstructor;
55
+ required: false;
56
+ default: boolean;
57
+ };
58
+ autoplay: {
59
+ type: BooleanConstructor;
60
+ required: false;
61
+ default: boolean;
62
+ };
63
+ sourceList: {
64
+ type: (ObjectConstructor | StringConstructor | ArrayConstructor | null)[];
65
+ required: false;
66
+ default: null;
67
+ };
68
+ }>> & Readonly<{}>, {
69
+ isLive: boolean;
70
+ autoplay: boolean;
71
+ sourceList: string | Record<string, any> | unknown[] | null;
72
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
73
+ export default _sfc_main;
@@ -0,0 +1,59 @@
1
+ // 西瓜播放器类型定义
2
+
3
+ declare module 'xgplayer' {
4
+ export interface IPlayerOptions {
5
+ id: string;
6
+ url: string;
7
+ isLive?: boolean;
8
+ playsinline?: boolean;
9
+ plugins?: any[];
10
+ width?: string | number;
11
+ height?: string | number;
12
+ autoplay?: boolean;
13
+ autoplayMuted?: boolean;
14
+ fluid?: boolean;
15
+ lang?: string;
16
+ playbackRate?: boolean | number[];
17
+ enableContextmenu?: boolean;
18
+ rotate?: {
19
+ clockwise?: boolean;
20
+ innerRotate?: boolean;
21
+ };
22
+ screenShot?: boolean;
23
+ videoAttributes?: Record<string, any>;
24
+ pip?: boolean;
25
+ keyShortcut?: boolean;
26
+ closeVideoClick?: boolean;
27
+ controls?: boolean;
28
+ poster?: string;
29
+ 'x5-video-player-type'?: string;
30
+ 'x5-video-player-fullscreen'?: boolean;
31
+ 'x5-video-orientation'?: string;
32
+ [key: string]: any;
33
+ }
34
+
35
+ export interface XgPlayer {
36
+ on(event: string, callback: () => void): void;
37
+ destroy(): void;
38
+ }
39
+
40
+ const Player: {
41
+ new(options: IPlayerOptions): XgPlayer;
42
+ };
43
+
44
+ export default Player;
45
+
46
+ export namespace Events {
47
+ export const PLAY: string;
48
+ export const REPLAY: string;
49
+ export const PAUSE: string;
50
+ export const READY: string;
51
+ }
52
+ }
53
+
54
+ declare module 'xgplayer-hls' {
55
+ const HlsPlugin: any;
56
+ export default HlsPlugin;
57
+
58
+ export function isSupported(): boolean;
59
+ }