mrxy-yk 0.0.1-beta.11
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/LICENSE +21 -0
- package/README.md +34 -0
- package/dist/@type/components/a-map-canvas/index.d.ts +1 -0
- package/dist/@type/components/adaptive-box/AdaptiveBox.d.ts +42 -0
- package/dist/@type/components/coordinate-pickup/CoordinatePickup.d.ts +29 -0
- package/dist/@type/components/drag-drop-box/DragDropBox.d.ts +33 -0
- package/dist/@type/components/drag-drop-container/DragDropContainer.d.ts +39 -0
- package/dist/@type/components/drag-drop-container/type.d.ts +3 -0
- package/dist/@type/components/echarts-canvas/EChartsCanvas.d.ts +21 -0
- package/dist/@type/components/in-body/InBody.d.ts +22 -0
- package/dist/@type/components/index.d.ts +12 -0
- package/dist/@type/components/position-anchor/PositionAnchor.d.ts +23 -0
- package/dist/@type/components/progress-bar/ProgressBar.d.ts +35 -0
- package/dist/@type/components/progress-bar/type.d.ts +5 -0
- package/dist/@type/components/progress-ring/ProgressRing.d.ts +22 -0
- package/dist/@type/components/scroll-container/ScrollContainer.d.ts +35 -0
- package/dist/@type/components/show-log/ShowLog.d.ts +25 -0
- package/dist/@type/components/ys-video/@type/index.d.ts +151 -0
- package/dist/@type/components/ys-video/YsVideo.d.ts +18 -0
- package/dist/@type/components/ys-video/components/BtnLineRec.d.ts +7 -0
- package/dist/@type/components/ys-video/type.d.ts +9 -0
- package/dist/@type/config/index.d.ts +23 -0
- package/dist/@type/directive/index.d.ts +1 -0
- package/dist/@type/directive/ref-height/index.d.ts +3 -0
- package/dist/@type/directive/ref-height/type.d.ts +11 -0
- package/dist/@type/directive/table-scroll-carousel/index.d.ts +3 -0
- package/dist/@type/element-plus/components/attrs.d.ts +2 -0
- package/dist/@type/element-plus/components/date-picker/DatePicker.d.ts +16 -0
- package/dist/@type/element-plus/components/date-picker/index.d.ts +22 -0
- package/dist/@type/element-plus/components/date-picker/type.d.ts +17 -0
- package/dist/@type/element-plus/components/empty/Empty.d.ts +31 -0
- package/dist/@type/element-plus/components/empty/config.d.ts +24 -0
- package/dist/@type/element-plus/components/empty/hooks/index.d.ts +2 -0
- package/dist/@type/element-plus/components/empty/hooks/type.d.ts +12 -0
- package/dist/@type/element-plus/components/empty/type.d.ts +9 -0
- package/dist/@type/element-plus/components/form-dialog/FormDialog.d.ts +400 -0
- package/dist/@type/element-plus/components/form-dialog/type.d.ts +4 -0
- package/dist/@type/element-plus/components/images/Images.d.ts +16 -0
- package/dist/@type/element-plus/components/images/index.d.ts +9 -0
- package/dist/@type/element-plus/components/index.d.ts +9 -0
- package/dist/@type/element-plus/components/pagination/Pagination.d.ts +18 -0
- package/dist/@type/element-plus/components/table-column/TableColumn.d.ts +27 -0
- package/dist/@type/element-plus/components/upload/accept/index.d.ts +1 -0
- package/dist/@type/element-plus/components/upload/index.d.ts +42 -0
- package/dist/@type/element-plus/components/upload/select-file/SelectFile.d.ts +822 -0
- package/dist/@type/element-plus/components/upload/upload-files/UploadFiles.d.ts +844 -0
- package/dist/@type/element-plus/components/upload/upload-images/UploadImages.d.ts +842 -0
- package/dist/@type/element-plus/hooks/dialog/index.d.ts +2 -0
- package/dist/@type/element-plus/hooks/dialog/type.d.ts +20 -0
- package/dist/@type/element-plus/hooks/form/index.d.ts +2 -0
- package/dist/@type/element-plus/hooks/form/type.d.ts +45 -0
- package/dist/@type/element-plus/hooks/form-dialog/index.d.ts +2 -0
- package/dist/@type/element-plus/hooks/form-dialog/type.d.ts +70 -0
- package/dist/@type/element-plus/hooks/index.d.ts +5 -0
- package/dist/@type/element-plus/hooks/table-sort/index.d.ts +20 -0
- package/dist/@type/element-plus/hooks/table-sort/type.d.ts +21 -0
- package/dist/@type/element-plus/index.d.ts +2 -0
- package/dist/@type/element-plus/type.d.ts +15 -0
- package/dist/@type/element-plus/utils/form-rule/index.d.ts +4 -0
- package/dist/@type/element-plus/utils/form-rule/rule.d.ts +22 -0
- package/dist/@type/element-plus/utils/form-rule/type.d.ts +14 -0
- package/dist/@type/element-plus/utils/index.d.ts +2 -0
- package/dist/@type/element-plus/utils/table-util/index.d.ts +25 -0
- package/dist/@type/entity/BigFloat.d.ts +48 -0
- package/dist/@type/entity/Pages.d.ts +9 -0
- package/dist/@type/entity/RejectError.d.ts +24 -0
- package/dist/@type/entity/index.d.ts +3 -0
- package/dist/@type/hooks/index.d.ts +1 -0
- package/dist/@type/hooks/table-search/index.d.ts +3 -0
- package/dist/@type/hooks/table-search/type.d.ts +54 -0
- package/dist/@type/icons/index.d.ts +2 -0
- package/dist/@type/index.d.ts +13 -0
- package/dist/@type/resolver/index.d.ts +3 -0
- package/dist/@type/type.d.ts +11 -0
- package/dist/@type/typings.d.ts +20 -0
- package/dist/@type/utils/amap/@type/AMap.d.ts +24 -0
- package/dist/@type/utils/amap/@type/Bounds.d.ts +18 -0
- package/dist/@type/utils/amap/@type/Control.d.ts +19 -0
- package/dist/@type/utils/amap/@type/Event.d.ts +11 -0
- package/dist/@type/utils/amap/@type/Icon.d.ts +12 -0
- package/dist/@type/utils/amap/@type/InfoWindow.d.ts +40 -0
- package/dist/@type/utils/amap/@type/LngLat.d.ts +34 -0
- package/dist/@type/utils/amap/@type/Map.d.ts +218 -0
- package/dist/@type/utils/amap/@type/Marker.d.ts +137 -0
- package/dist/@type/utils/amap/@type/MarkerCluster.d.ts +65 -0
- package/dist/@type/utils/amap/@type/MoveAnimation.d.ts +33 -0
- package/dist/@type/utils/amap/@type/Pixel.d.ts +11 -0
- package/dist/@type/utils/amap/@type/Polyline.d.ts +80 -0
- package/dist/@type/utils/amap/@type/Size.d.ts +9 -0
- package/dist/@type/utils/amap/@type/index.d.ts +23 -0
- package/dist/@type/utils/amap/@type/other.d.ts +11 -0
- package/dist/@type/utils/amap/index.d.ts +3 -0
- package/dist/@type/utils/amap/type.d.ts +21 -0
- package/dist/@type/utils/amap/utils/coordinates.d.ts +24 -0
- package/dist/@type/utils/amap/utils/index.d.ts +12 -0
- package/dist/@type/utils/amap/utils/type.d.ts +4 -0
- package/dist/@type/utils/echarts/hooks/index.d.ts +76 -0
- package/dist/@type/utils/echarts/index.d.ts +3 -0
- package/dist/@type/utils/echarts/modules/coordinate/basic.d.ts +27 -0
- package/dist/@type/utils/echarts/modules/coordinate/cartesian.d.ts +25 -0
- package/dist/@type/utils/echarts/modules/coordinate/polar.d.ts +14 -0
- package/dist/@type/utils/echarts/modules/index.d.ts +5 -0
- package/dist/@type/utils/echarts/modules/series/bar.d.ts +16 -0
- package/dist/@type/utils/echarts/modules/series/line.d.ts +16 -0
- package/dist/@type/utils/echarts/modules/series/pie.d.ts +28 -0
- package/dist/@type/utils/echarts/modules/type.d.ts +83 -0
- package/dist/@type/utils/echarts/type.d.ts +8 -0
- package/dist/@type/utils/echarts/utils/assignOption.d.ts +7 -0
- package/dist/@type/utils/echarts/utils/index.d.ts +27 -0
- package/dist/@type/utils/fn-periodically/FnBatchPeriodically.d.ts +32 -0
- package/dist/@type/utils/fn-periodically/FnPeriodically.d.ts +37 -0
- package/dist/@type/utils/fn-periodically/index.d.ts +2 -0
- package/dist/@type/utils/fn-periodically/type.d.ts +30 -0
- package/dist/@type/utils/index.d.ts +6 -0
- package/dist/@type/utils/match-unit/dataset.d.ts +8 -0
- package/dist/@type/utils/match-unit/index.d.ts +10 -0
- package/dist/@type/utils/match-unit/type.d.ts +39 -0
- package/dist/@type/utils/mitt/hooks/inject-events/index.d.ts +7 -0
- package/dist/@type/utils/mitt/hooks/inject-events/type.d.ts +9 -0
- package/dist/@type/utils/prototype/index.d.ts +5 -0
- package/dist/@type/utils/prototype/lib/ArrayUtil.d.ts +87 -0
- package/dist/@type/utils/prototype/lib/ComponentUtil.d.ts +18 -0
- package/dist/@type/utils/prototype/lib/FileUtil.d.ts +19 -0
- package/dist/@type/utils/prototype/lib/NumberUtil.d.ts +9 -0
- package/dist/@type/utils/prototype/lib/ObjectUtil.d.ts +152 -0
- package/dist/@type/utils/prototype/lib/PromiseUtil.d.ts +7 -0
- package/dist/@type/utils/prototype/type.d.ts +28 -0
- package/dist/@type/utils/sandbox/Sandbox.d.ts +25 -0
- package/dist/@type/utils/transition-fade/index.d.ts +32 -0
- package/dist/@type/utils/transition-fade/type.d.ts +6 -0
- package/dist/_virtual/_plugin-vue_export-helper.es.js +10 -0
- package/dist/components/adaptive-box/AdaptiveBox.vue.es.js +7 -0
- package/dist/components/adaptive-box/AdaptiveBox.vue.es2.js +170 -0
- package/dist/components/coordinate-pickup/CoordinatePickup.vue.es.js +10 -0
- package/dist/components/coordinate-pickup/CoordinatePickup.vue.es2.js +302 -0
- package/dist/components/drag-drop-box/DragDropBox.vue.es.js +7 -0
- package/dist/components/drag-drop-box/DragDropBox.vue.es2.js +59 -0
- package/dist/components/drag-drop-container/DragDropContainer.vue.es.js +7 -0
- package/dist/components/drag-drop-container/DragDropContainer.vue.es2.js +113 -0
- package/dist/components/echarts-canvas/EChartsCanvas.vue.es.js +7 -0
- package/dist/components/echarts-canvas/EChartsCanvas.vue.es2.js +73 -0
- package/dist/components/in-body/InBody.vue.es.js +24 -0
- package/dist/components/in-body/InBody.vue.es2.js +4 -0
- package/dist/components/index.es.js +26 -0
- package/dist/components/position-anchor/PositionAnchor.vue.es.js +7 -0
- package/dist/components/position-anchor/PositionAnchor.vue.es2.js +22 -0
- package/dist/components/progress-bar/ProgressBar.vue.es.js +7 -0
- package/dist/components/progress-bar/ProgressBar.vue.es2.js +126 -0
- package/dist/components/progress-ring/ProgressRing.vue.es.js +7 -0
- package/dist/components/progress-ring/ProgressRing.vue.es2.js +87 -0
- package/dist/components/scroll-container/ScrollContainer.vue.es.js +7 -0
- package/dist/components/scroll-container/ScrollContainer.vue.es2.js +89 -0
- package/dist/components/show-log/ShowLog.vue.es.js +7 -0
- package/dist/components/show-log/ShowLog.vue.es2.js +61 -0
- package/dist/components/ys-video/YsVideo.vue.es.js +7 -0
- package/dist/components/ys-video/YsVideo.vue.es2.js +122 -0
- package/dist/components/ys-video/components/BtnLineRec.vue.es.js +7 -0
- package/dist/components/ys-video/components/BtnLineRec.vue.es2.js +57 -0
- package/dist/components/ys-video/images/btn-play.png.es.js +4 -0
- package/dist/config/index.es.js +16 -0
- package/dist/directive/index.es.js +4 -0
- package/dist/directive/ref-height/index.es.js +49 -0
- package/dist/element-plus/components/date-picker/DatePicker.vue.es.js +107 -0
- package/dist/element-plus/components/date-picker/DatePicker.vue.es2.js +4 -0
- package/dist/element-plus/components/date-picker/index.es.js +213 -0
- package/dist/element-plus/components/empty/Empty.vue.es.js +92 -0
- package/dist/element-plus/components/empty/Empty.vue.es3.js +5 -0
- package/dist/element-plus/components/empty/config.es.js +10 -0
- package/dist/element-plus/components/empty/hooks/index.es.js +24 -0
- package/dist/element-plus/components/form-dialog/FormDialog.vue.es.js +135 -0
- package/dist/element-plus/components/form-dialog/FormDialog.vue.es2.js +4 -0
- package/dist/element-plus/components/images/Images.vue.es.js +7 -0
- package/dist/element-plus/components/images/Images.vue.es2.js +93 -0
- package/dist/element-plus/components/images/index.es.js +10 -0
- package/dist/element-plus/components/index.es.js +21 -0
- package/dist/element-plus/components/pagination/Pagination.vue.es.js +7 -0
- package/dist/element-plus/components/pagination/Pagination.vue.es2.js +66 -0
- package/dist/element-plus/components/table-column/TableColumn.vue.es.js +34 -0
- package/dist/element-plus/components/table-column/TableColumn.vue.es2.js +4 -0
- package/dist/element-plus/components/upload/accept/index.es.js +12 -0
- package/dist/element-plus/components/upload/index.es.js +35 -0
- package/dist/element-plus/components/upload/select-file/SelectFile.vue.es.js +7 -0
- package/dist/element-plus/components/upload/select-file/SelectFile.vue.es2.js +66 -0
- package/dist/element-plus/components/upload/upload-files/UploadFiles.vue.es.js +7 -0
- package/dist/element-plus/components/upload/upload-files/UploadFiles.vue.es2.js +204 -0
- package/dist/element-plus/components/upload/upload-images/UploadImages.vue.es.js +7 -0
- package/dist/element-plus/components/upload/upload-images/UploadImages.vue.es2.js +212 -0
- package/dist/element-plus/hooks/dialog/index.es.js +44 -0
- package/dist/element-plus/hooks/form/index.es.js +45 -0
- package/dist/element-plus/hooks/form-dialog/index.es.js +53 -0
- package/dist/element-plus/hooks/table-sort/index.es.js +30 -0
- package/dist/element-plus/index.es.js +51 -0
- package/dist/element-plus/utils/form-rule/rule.es.js +107 -0
- package/dist/element-plus/utils/table-util/index.es.js +56 -0
- package/dist/entity/BigFloat.es.js +102 -0
- package/dist/entity/Pages.es.js +11 -0
- package/dist/entity/RejectError.es.js +35 -0
- package/dist/entity/index.es.js +8 -0
- package/dist/hooks/index.es.js +4 -0
- package/dist/hooks/table-search/index.es.js +72 -0
- package/dist/icons/images/Image.svg.es.js +4 -0
- package/dist/icons/images/ImageError.svg.es.js +4 -0
- package/dist/icons/index.es.js +12 -0
- package/dist/index.es.js +111 -0
- package/dist/mrxy-yk.css +1 -0
- package/dist/resolver/index.es.js +24 -0
- package/dist/styles/plugins/colors/index.scss +52 -0
- package/dist/styles/plugins/colors/var.scss +77 -0
- package/dist/styles/plugins/template.scss +37 -0
- package/dist/utils/amap/index.es.js +21 -0
- package/dist/utils/amap/utils/coordinates.es.js +61 -0
- package/dist/utils/amap/utils/index.es.js +39 -0
- package/dist/utils/echarts/hooks/index.es.js +32 -0
- package/dist/utils/echarts/modules/coordinate/basic.es.js +103 -0
- package/dist/utils/echarts/modules/coordinate/cartesian.es.js +79 -0
- package/dist/utils/echarts/modules/series/bar.es.js +43 -0
- package/dist/utils/echarts/modules/series/line.es.js +47 -0
- package/dist/utils/echarts/modules/series/pie.es.js +126 -0
- package/dist/utils/echarts/utils/assignOption.es.js +40 -0
- package/dist/utils/echarts/utils/index.es.js +99 -0
- package/dist/utils/fn-periodically/FnBatchPeriodically.es.js +70 -0
- package/dist/utils/fn-periodically/FnPeriodically.es.js +85 -0
- package/dist/utils/index.es.js +49 -0
- package/dist/utils/match-unit/dataset.es.js +143 -0
- package/dist/utils/match-unit/index.es.js +56 -0
- package/dist/utils/mitt/hooks/inject-events/index.es.js +27 -0
- package/dist/utils/prototype/lib/ArrayUtil.es.js +115 -0
- package/dist/utils/prototype/lib/ComponentUtil.es.js +45 -0
- package/dist/utils/prototype/lib/NumberUtil.es.js +17 -0
- package/dist/utils/prototype/lib/ObjectUtil.es.js +277 -0
- package/dist/utils/prototype/lib/PromiseUtil.es.js +18 -0
- package/dist/utils/transition-fade/index.es.js +79 -0
- package/global.d.ts +55 -0
- package/package.json +134 -0
- package/web-types-mr.json +923 -0
- package/web-types-yk.json +923 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 曹新华
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# mrxy-yk
|
|
2
|
+
|
|
3
|
+
## 全量引入
|
|
4
|
+
```typescript
|
|
5
|
+
// main.ts
|
|
6
|
+
import 'yk/styles/index.css'
|
|
7
|
+
import Yk from 'yk'
|
|
8
|
+
|
|
9
|
+
const app = createApp(App)
|
|
10
|
+
app.use(Yk)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 按需自动引入
|
|
14
|
+
使用`unplugin-vue-components`插件自动引入组件
|
|
15
|
+
```typescript
|
|
16
|
+
// vite.config.ts
|
|
17
|
+
import Components from 'unplugin-vue-components/vite'
|
|
18
|
+
import YkResolver from 'yk/resolver'
|
|
19
|
+
|
|
20
|
+
export default defineConfig({
|
|
21
|
+
plugins: [
|
|
22
|
+
Components({
|
|
23
|
+
resolvers: [
|
|
24
|
+
YkResolver(),
|
|
25
|
+
],
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
})
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 推荐在`env.d.ts`中引入全局类型
|
|
32
|
+
```typescript
|
|
33
|
+
/// <reference types="yk/global" />
|
|
34
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
reference?: HTMLElement | Window;
|
|
4
|
+
minWidth?: number;
|
|
5
|
+
maxWidth?: number;
|
|
6
|
+
updateWidth?: boolean;
|
|
7
|
+
observeNodeUpdate?: boolean;
|
|
8
|
+
mode?: 'equal-width' | 'contain' | 'full-height';
|
|
9
|
+
};
|
|
10
|
+
declare function resize(): void;
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
adaptiveBoxRef: HTMLDivElement;
|
|
18
|
+
adaptiveContentRef: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
24
|
+
resize: typeof resize;
|
|
25
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
|
+
reference: HTMLElement | Window;
|
|
27
|
+
minWidth: number;
|
|
28
|
+
maxWidth: number;
|
|
29
|
+
updateWidth: boolean;
|
|
30
|
+
observeNodeUpdate: boolean;
|
|
31
|
+
mode: "equal-width" | "contain" | "full-height";
|
|
32
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
33
|
+
adaptiveBoxRef: HTMLDivElement;
|
|
34
|
+
adaptiveContentRef: HTMLDivElement;
|
|
35
|
+
}, HTMLDivElement>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
lnglat?: string;
|
|
5
|
+
address?: string;
|
|
6
|
+
regeocodeRequired?: boolean;
|
|
7
|
+
mapKey?: string;
|
|
8
|
+
mapSecret?: string;
|
|
9
|
+
modal?: boolean;
|
|
10
|
+
mapStyle?: string | 'darkblue';
|
|
11
|
+
};
|
|
12
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
+
change: (...args: any[]) => void;
|
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
|
15
|
+
"update:lnglat": (...args: any[]) => void;
|
|
16
|
+
"update:address": (...args: any[]) => void;
|
|
17
|
+
open: (...args: any[]) => void;
|
|
18
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onChange?: (...args: any[]) => any;
|
|
20
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
21
|
+
"onUpdate:lnglat"?: (...args: any[]) => any;
|
|
22
|
+
"onUpdate:address"?: (...args: any[]) => any;
|
|
23
|
+
onOpen?: (...args: any[]) => any;
|
|
24
|
+
}>, {
|
|
25
|
+
regeocodeRequired: boolean;
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
|
+
coordinatePickupRef: HTMLDivElement;
|
|
28
|
+
}, any>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
top?: string;
|
|
4
|
+
left?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
"update:top": (...args: any[]) => void;
|
|
18
|
+
"update:left": (...args: any[]) => void;
|
|
19
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:top"?: (...args: any[]) => any;
|
|
21
|
+
"onUpdate:left"?: (...args: any[]) => any;
|
|
22
|
+
}>, {
|
|
23
|
+
top: string;
|
|
24
|
+
left: string;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Options } from './type';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
step?: number;
|
|
5
|
+
scale?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare function getOption(): Options;
|
|
8
|
+
declare function setOption(option: Options): void;
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
dragDropRef: HTMLDivElement;
|
|
16
|
+
dragDropContentRef: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
rootEl: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
22
|
+
reset: () => void;
|
|
23
|
+
autoSize: () => void;
|
|
24
|
+
getOption: typeof getOption;
|
|
25
|
+
setOption: typeof setOption;
|
|
26
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
27
|
+
step: number;
|
|
28
|
+
scale: boolean;
|
|
29
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
30
|
+
dragDropRef: HTMLDivElement;
|
|
31
|
+
dragDropContentRef: HTMLDivElement;
|
|
32
|
+
}, HTMLDivElement>;
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EChartsType, EChartsOption } from 'echarts';
|
|
2
|
+
import { EcBasicOption } from '../../utils/echarts';
|
|
3
|
+
import { UseEmptyHooksExample } from '../../element-plus/components/empty/hooks/type';
|
|
4
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
emptyHook?: UseEmptyHooksExample;
|
|
7
|
+
resize?: boolean;
|
|
8
|
+
theme?: 'default' | 'dark' | 'auto';
|
|
9
|
+
option?: EChartsOption | EcBasicOption;
|
|
10
|
+
};
|
|
11
|
+
declare function setOption(option: EChartsOption): void;
|
|
12
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
|
13
|
+
setOption: typeof setOption;
|
|
14
|
+
ec: EChartsType;
|
|
15
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
resize: boolean;
|
|
17
|
+
theme: "default" | "dark" | "auto";
|
|
18
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
19
|
+
chartRef: HTMLDivElement;
|
|
20
|
+
}, HTMLDivElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
currentDomRef: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
14
|
+
currentDomRef: HTMLDivElement;
|
|
15
|
+
}, HTMLDivElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as PositionAnchor } from './position-anchor/PositionAnchor';
|
|
2
|
+
export { default as ProgressRing } from './progress-ring/ProgressRing';
|
|
3
|
+
export { default as AdaptiveBox } from './adaptive-box/AdaptiveBox';
|
|
4
|
+
export { default as CoordinatePickup } from './coordinate-pickup/CoordinatePickup';
|
|
5
|
+
export { default as InBody } from './in-body/InBody';
|
|
6
|
+
export { default as DragDropBox } from './drag-drop-box/DragDropBox';
|
|
7
|
+
export { default as DragDropContainer } from './drag-drop-container/DragDropContainer';
|
|
8
|
+
export { default as ProgressBar } from './progress-bar/ProgressBar';
|
|
9
|
+
export { default as YsVideo } from './ys-video/YsVideo';
|
|
10
|
+
export { default as ShowLog } from './show-log/ShowLog';
|
|
11
|
+
export { default as EChartsCanvas } from './echarts-canvas/EChartsCanvas';
|
|
12
|
+
export { default as ScrollContainer } from './scroll-container/ScrollContainer';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
anchor?: 'center' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'bottom' | 'top' | 'right' | 'left';
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
anchor: "center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "bottom" | "top" | "right" | "left";
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
progress: number;
|
|
4
|
+
bgColor?: string;
|
|
5
|
+
pattern?: boolean;
|
|
6
|
+
patternWidth?: number;
|
|
7
|
+
patternGap?: number;
|
|
8
|
+
colors?: string | string[];
|
|
9
|
+
};
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
dot?(_: {}): any;
|
|
14
|
+
pattern?(_: {}): any;
|
|
15
|
+
track?(_: {}): any;
|
|
16
|
+
progressbar?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
+
pattern: boolean;
|
|
24
|
+
bgColor: string;
|
|
25
|
+
colors: string | string[];
|
|
26
|
+
patternWidth: number;
|
|
27
|
+
patternGap: number;
|
|
28
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
progress?: number;
|
|
4
|
+
size?: number;
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
offsetAngle?: number;
|
|
7
|
+
maxAngle?: number;
|
|
8
|
+
bgColor?: string;
|
|
9
|
+
colors?: string | string[];
|
|
10
|
+
duration?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
progress: number;
|
|
14
|
+
size: number;
|
|
15
|
+
strokeWidth: number;
|
|
16
|
+
offsetAngle: number;
|
|
17
|
+
maxAngle: number;
|
|
18
|
+
bgColor: string;
|
|
19
|
+
colors: string | string[];
|
|
20
|
+
duration: number;
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
speed?: number;
|
|
4
|
+
copyClass?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {
|
|
10
|
+
class: string;
|
|
11
|
+
}): any;
|
|
12
|
+
default?(_: {
|
|
13
|
+
class: string[];
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {
|
|
17
|
+
scrollRef: HTMLDivElement;
|
|
18
|
+
slotRef: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
24
|
+
speed: number;
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
26
|
+
scrollRef: HTMLDivElement;
|
|
27
|
+
slotRef: HTMLDivElement;
|
|
28
|
+
}, HTMLDivElement>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
top?: string;
|
|
5
|
+
left?: string;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
title: string;
|
|
18
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
declare module 'ezuikit-js' {
|
|
2
|
+
namespace EZUIKit {
|
|
3
|
+
class EZUIKitPlayer {
|
|
4
|
+
readonly themeId: string
|
|
5
|
+
|
|
6
|
+
constructor(options: EZUIKitPlayerOptions)
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 开始播放
|
|
10
|
+
*/
|
|
11
|
+
play(): Promise<unknown>
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 停止播放
|
|
15
|
+
*/
|
|
16
|
+
stop(): Promise<unknown>
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 开启声音
|
|
20
|
+
*/
|
|
21
|
+
openSound(): Promise<unknown>
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 开始录制
|
|
25
|
+
* @param fileName
|
|
26
|
+
*/
|
|
27
|
+
startSave(fileName: string): Promise<unknown>
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 停止录制并下载文件
|
|
31
|
+
*/
|
|
32
|
+
stopSave(): Promise<unknown>
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 抓图
|
|
36
|
+
* @param fileName
|
|
37
|
+
* @param capCallback
|
|
38
|
+
* 方式1 - 下载到本地
|
|
39
|
+
* player.capturePict(fileName)
|
|
40
|
+
* 方式2 - 返回base64格式
|
|
41
|
+
* player.capturePict(fileName, capCallback)
|
|
42
|
+
*/
|
|
43
|
+
capturePicture(fileName: string, capCallback?: { (data: string): void }): void
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 开始对讲
|
|
47
|
+
*/
|
|
48
|
+
startTalk(): void
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 全屏
|
|
52
|
+
*/
|
|
53
|
+
stopTalk(): void
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 全屏
|
|
57
|
+
*/
|
|
58
|
+
fullScreen(): void
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 取消全屏
|
|
62
|
+
*/
|
|
63
|
+
cancelFullScreen(): void
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 获取OSD时间
|
|
67
|
+
*/
|
|
68
|
+
getOSDTime(): Promise<number>
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* 切换地址播放
|
|
72
|
+
* @param options
|
|
73
|
+
*/
|
|
74
|
+
changePlayUrl(options: {
|
|
75
|
+
type?: 'live' | 'rec' | 'cloud.rec'
|
|
76
|
+
deviceSerial?: string,
|
|
77
|
+
channelNo?: number,
|
|
78
|
+
accessToken?: string,
|
|
79
|
+
hd?: boolean,
|
|
80
|
+
validCode?: string,
|
|
81
|
+
begin?: string,
|
|
82
|
+
end?: string
|
|
83
|
+
}): Promise<unknown>
|
|
84
|
+
|
|
85
|
+
Theme: {
|
|
86
|
+
/**
|
|
87
|
+
* 切换模板主题
|
|
88
|
+
*/
|
|
89
|
+
changeTheme(template: EZUIKitPlayerOptions['template'])
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* 开启电子放大
|
|
94
|
+
*/
|
|
95
|
+
enableZoom(): Promise<unknown>
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* 关闭电子放大
|
|
99
|
+
*/
|
|
100
|
+
enableZoom(): Promise<unknown>
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* 重置画面宽高
|
|
104
|
+
* @param width
|
|
105
|
+
* @param height
|
|
106
|
+
*/
|
|
107
|
+
reSize(width: number, height: number)
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export default EZUIKit
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
type EZUIKitPlayerOptionsThemeDataBtnList = {
|
|
114
|
+
iconId: 'deviceID' | 'deviceName' | 'cloudRec' | 'rec' | 'play' | 'capturePicture' | 'sound' | 'pantile' | 'recordvideo' | 'talk' | 'zoom' | 'hd' | 'webExpend' | 'expend',
|
|
115
|
+
part: 'left' | 'right',
|
|
116
|
+
defaultActive: number,
|
|
117
|
+
memo: string,
|
|
118
|
+
isrender: number
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
type EZUIKitPlayerOptionsThemeData = {
|
|
122
|
+
autoFocus: number,
|
|
123
|
+
// 连接视频时的占位图片
|
|
124
|
+
poster?: string,
|
|
125
|
+
header: {
|
|
126
|
+
color?: string,
|
|
127
|
+
activeColor?: string,
|
|
128
|
+
backgroundColor?: string,
|
|
129
|
+
btnList: EZUIKitPlayerOptionsThemeDataBtnList[]
|
|
130
|
+
},
|
|
131
|
+
footer: {
|
|
132
|
+
color?: string,
|
|
133
|
+
activeColor?: string,
|
|
134
|
+
backgroundColor?: string,
|
|
135
|
+
btnList: EZUIKitPlayerOptionsThemeDataBtnList[]
|
|
136
|
+
},
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type EZUIKitPlayerOptions = {
|
|
140
|
+
id: string,
|
|
141
|
+
url: string,
|
|
142
|
+
accessToken: string,
|
|
143
|
+
width: number,
|
|
144
|
+
height: number,
|
|
145
|
+
template?: 'mobileLive' | 'mobileRec' | 'simple' | 'pcLive' | 'security' | 'voice' | 'pcRec' | string,
|
|
146
|
+
themeData?: EZUIKitPlayerOptionsThemeData,
|
|
147
|
+
// 例:talk
|
|
148
|
+
plugin?: string[],
|
|
149
|
+
handleSuccess?(),
|
|
150
|
+
seekFrequency?: number
|
|
151
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { YsVideo } from './type';
|
|
2
|
+
import { EZUIKitPlayerOptions } from './@type';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
ysVideo: YsVideo;
|
|
6
|
+
autoPlay?: boolean;
|
|
7
|
+
template?: EZUIKitPlayerOptions['template'];
|
|
8
|
+
themeData?: EZUIKitPlayerOptions['themeData'];
|
|
9
|
+
};
|
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
|
11
|
+
getPlayer: () => EZUIKit.EZUIKitPlayer;
|
|
12
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
template: EZUIKitPlayerOptions["template"];
|
|
14
|
+
autoPlay: boolean;
|
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
16
|
+
videoRef: HTMLDivElement;
|
|
17
|
+
}, HTMLDivElement>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as EZUIKit } from 'ezuikit-js';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
player: EZUIKit.EZUIKitPlayer;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EmptyOption } from '../element-plus/components/empty/type';
|
|
2
|
+
export * from '../element-plus/components/attrs';
|
|
3
|
+
export declare const AMapConfig: {
|
|
4
|
+
mapKey: string;
|
|
5
|
+
mapSecret: string;
|
|
6
|
+
};
|
|
7
|
+
export interface EmptyTypeInterface {
|
|
8
|
+
LOADING: unknown;
|
|
9
|
+
NONE: unknown;
|
|
10
|
+
SUCCESS: unknown;
|
|
11
|
+
EMPTY: unknown;
|
|
12
|
+
EMPTY_VAR: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* // 扩展Empty组件类型
|
|
17
|
+
* declare module 'mrxy-yk/config' {
|
|
18
|
+
* export interface EmptyTypeInterface {
|
|
19
|
+
* EMPTY_VAR3: string
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
export declare const EmptyStatusExtendConfig: Record<Capitalize<string>, EmptyOption>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RefHeight } from './ref-height';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Directive } from 'vue';
|
|
2
|
+
export type MapValueType = {
|
|
3
|
+
// 生成css变量名称,不包含--
|
|
4
|
+
cssVarName?: string,
|
|
5
|
+
// 回调函数,用于在高度变化时调用
|
|
6
|
+
callback?: {(height: number)}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type RefHeightParams = undefined | string | MapValueType
|
|
10
|
+
|
|
11
|
+
export type vRefHeight = Directive<HTMLElement, RefHeightParams>
|