@ibiz-template/mob-vue3-components 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +5 -5
- package/dist/index.system.min.js.map +1 -1
- package/es/common/carousel/carousel.css +1 -0
- package/es/common/carousel/carousel.d.ts +52 -0
- package/es/common/carousel/carousel.mjs +61 -0
- package/es/common/index.mjs +2 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +4 -3
- package/es/control/calendar/calendar.mjs +94 -12
- package/es/control/calendar/index.d.ts +2 -1
- package/es/control/dashboard/dashboard.css +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +5 -1
- package/es/control/list/md-ctrl/md-ctrl.css +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +2 -1
- package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.d.ts +2 -0
- package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.mjs +17 -4
- package/es/editor/index.mjs +10 -0
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.css +1 -0
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.d.ts +65 -0
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.mjs +71 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.css +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +3 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +40 -9
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.css +1 -1
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.d.ts +1 -2
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.mjs +12 -5
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -4
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +13 -13
- package/es/editor/upload/index.d.ts +1 -0
- package/es/editor/upload/index.mjs +1 -0
- package/es/editor/upload/upload-editor.controller.d.ts +8 -0
- package/es/editor/upload/upload-editor.controller.mjs +50 -0
- package/es/editor/upload/upload-editor.provider.mjs +3 -0
- package/es/editor/upload/use/use-van-upload.mjs +3 -14
- package/es/index.mjs +8 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +29 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +66 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.d.ts +15 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.mjs +21 -0
- package/es/panel-component/auth-userinfo/index.d.ts +26 -0
- package/es/panel-component/auth-userinfo/index.mjs +15 -0
- package/es/panel-component/index.mjs +6 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +1 -1
- package/es/panel-component/panel-button/panel-button.controller.mjs +12 -8
- package/es/panel-component/panel-carousel/index.d.ts +20 -0
- package/es/panel-component/panel-carousel/index.mjs +16 -0
- package/es/panel-component/panel-carousel/panel-carousel.controller.d.ts +50 -0
- package/es/panel-component/panel-carousel/panel-carousel.controller.mjs +76 -0
- package/es/panel-component/panel-carousel/panel-carousel.css +1 -0
- package/es/panel-component/panel-carousel/panel-carousel.d.ts +20 -0
- package/es/panel-component/panel-carousel/panel-carousel.mjs +42 -0
- package/es/panel-component/panel-carousel/panel-carousel.provider.d.ts +14 -0
- package/es/panel-component/panel-carousel/panel-carousel.provider.mjs +21 -0
- package/es/panel-component/panel-video-player/index.d.ts +22 -0
- package/es/panel-component/panel-video-player/index.mjs +19 -0
- package/es/panel-component/panel-video-player/panel-video-player.controller.d.ts +50 -0
- package/es/panel-component/panel-video-player/panel-video-player.controller.mjs +81 -0
- package/es/panel-component/panel-video-player/panel-video-player.css +1 -0
- package/es/panel-component/panel-video-player/panel-video-player.d.ts +22 -0
- package/es/panel-component/panel-video-player/panel-video-player.mjs +59 -0
- package/es/panel-component/panel-video-player/panel-video-player.provider.d.ts +14 -0
- package/es/panel-component/panel-video-player/panel-video-player.provider.mjs +21 -0
- package/es/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
- package/es/platform/index.d.ts +1 -0
- package/es/platform/index.mjs +3 -0
- package/es/platform/vue-browser-platform-provider.d.ts +20 -0
- package/es/platform/vue-browser-platform-provider.mjs +20 -0
- package/lib/common/carousel/carousel.cjs +63 -0
- package/lib/common/carousel/carousel.css +1 -0
- package/lib/common/index.cjs +2 -0
- package/lib/control/calendar/calendar.cjs +94 -12
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/dashboard/dashboard.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +5 -1
- package/lib/control/list/md-ctrl/md-ctrl.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +2 -1
- package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.cjs +17 -4
- package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.css +1 -1
- package/lib/editor/index.cjs +10 -0
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/upload/ibiz-carousel/ibiz-carousel.cjs +73 -0
- package/lib/editor/upload/ibiz-carousel/ibiz-carousel.css +1 -0
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +39 -8
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.css +1 -1
- package/lib/editor/upload/ibiz-image-select/ibiz-image-select.cjs +12 -5
- package/lib/editor/upload/ibiz-image-select/ibiz-image-select.css +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +12 -12
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
- package/lib/editor/upload/index.cjs +2 -0
- package/lib/editor/upload/upload-editor.controller.cjs +50 -0
- package/lib/editor/upload/upload-editor.provider.cjs +3 -0
- package/lib/editor/upload/use/use-van-upload.cjs +3 -14
- package/lib/index.cjs +8 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +68 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.provider.cjs +23 -0
- package/lib/panel-component/auth-userinfo/index.cjs +20 -0
- package/lib/panel-component/index.cjs +6 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +1 -1
- package/lib/panel-component/panel-button/panel-button.controller.cjs +12 -8
- package/lib/panel-component/panel-carousel/index.cjs +23 -0
- package/lib/panel-component/panel-carousel/panel-carousel.cjs +47 -0
- package/lib/panel-component/panel-carousel/panel-carousel.controller.cjs +78 -0
- package/lib/panel-component/panel-carousel/panel-carousel.css +1 -0
- package/lib/panel-component/panel-carousel/panel-carousel.provider.cjs +23 -0
- package/lib/panel-component/panel-video-player/index.cjs +26 -0
- package/lib/panel-component/panel-video-player/panel-video-player.cjs +64 -0
- package/lib/panel-component/panel-video-player/panel-video-player.controller.cjs +83 -0
- package/lib/panel-component/panel-video-player/panel-video-player.css +1 -0
- package/lib/panel-component/panel-video-player/panel-video-player.provider.cjs +23 -0
- package/lib/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
- package/lib/platform/index.cjs +7 -0
- package/lib/platform/vue-browser-platform-provider.cjs +22 -0
- package/package.json +5 -5
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './auth-userinfo.css';
|
|
4
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const AuthUserinfo = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "IBizAuthUserinfo",
|
|
9
|
+
props: {
|
|
10
|
+
modelData: {
|
|
11
|
+
type: Object,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
controller: {
|
|
15
|
+
type: PanelItemController,
|
|
16
|
+
required: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(prop) {
|
|
20
|
+
var _a;
|
|
21
|
+
const ns = useNamespace("user-info");
|
|
22
|
+
const c = prop.controller;
|
|
23
|
+
const {
|
|
24
|
+
srfusername = "\u6E38\u5BA2",
|
|
25
|
+
srfpersonname,
|
|
26
|
+
srforgname
|
|
27
|
+
} = ((_a = ibiz.appData) == null ? void 0 : _a.context) || {};
|
|
28
|
+
return {
|
|
29
|
+
ns,
|
|
30
|
+
c,
|
|
31
|
+
srfusername,
|
|
32
|
+
srfpersonname,
|
|
33
|
+
srforgname
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
render() {
|
|
37
|
+
return createVNode("div", {
|
|
38
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
|
|
39
|
+
}, [createVNode("div", {
|
|
40
|
+
"class": this.ns.b("left")
|
|
41
|
+
}, [createVNode(resolveComponent("van-image"), null, {
|
|
42
|
+
error: () => {
|
|
43
|
+
return createVNode(resolveComponent("van-icon"), {
|
|
44
|
+
"name": "contact-o"
|
|
45
|
+
}, null);
|
|
46
|
+
},
|
|
47
|
+
loading: () => {
|
|
48
|
+
return createVNode(resolveComponent("van-icon"), {
|
|
49
|
+
"name": "contact-o"
|
|
50
|
+
}, null);
|
|
51
|
+
}
|
|
52
|
+
})]), createVNode("div", {
|
|
53
|
+
"class": this.ns.b("center")
|
|
54
|
+
}, [createVNode("div", {
|
|
55
|
+
"class": this.ns.e("username")
|
|
56
|
+
}, [this.srfusername || this.srfpersonname]), createVNode("div", {
|
|
57
|
+
"class": this.ns.e("org")
|
|
58
|
+
}, [this.srforgname])]), createVNode("div", {
|
|
59
|
+
"class": this.ns.b("right")
|
|
60
|
+
}, [createVNode(resolveComponent("van-icon"), {
|
|
61
|
+
"name": "arrow"
|
|
62
|
+
}, null)])]);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export { AuthUserinfo };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
/**
|
|
4
|
+
* 用户信息适配器
|
|
5
|
+
*
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2022-09-19 22:09:03
|
|
8
|
+
* @export
|
|
9
|
+
* @class AuthUserinfoProvider
|
|
10
|
+
* @implements {EditorProvider}
|
|
11
|
+
*/
|
|
12
|
+
export declare class AuthUserinfoProvider implements IPanelItemProvider {
|
|
13
|
+
component: string;
|
|
14
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelItemController>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class AuthUserinfoProvider {
|
|
11
|
+
constructor() {
|
|
12
|
+
__publicField(this, "component", "IBizAuthUserinfo");
|
|
13
|
+
}
|
|
14
|
+
async createController(panelItem, panel, parent) {
|
|
15
|
+
const c = new PanelItemController(panelItem, panel, parent);
|
|
16
|
+
await c.init();
|
|
17
|
+
return c;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { AuthUserinfoProvider };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const IBizAuthUserinfo: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
modelData: {
|
|
3
|
+
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
controller: {
|
|
7
|
+
type: typeof import("@ibiz-template/runtime").PanelItemController;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
+
c: import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>;
|
|
13
|
+
srfusername: any;
|
|
14
|
+
srfpersonname: any;
|
|
15
|
+
srforgname: any;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
modelData: {
|
|
18
|
+
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
controller: {
|
|
22
|
+
type: typeof import("@ibiz-template/runtime").PanelItemController;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}>>, {}, {}>>;
|
|
26
|
+
export default IBizAuthUserinfo;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { AuthUserinfo } from './auth-userinfo.mjs';
|
|
4
|
+
import { AuthUserinfoProvider } from './auth-userinfo.provider.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const IBizAuthUserinfo = withInstall(AuthUserinfo, function(v) {
|
|
8
|
+
v.component(AuthUserinfo.name, AuthUserinfo);
|
|
9
|
+
registerPanelItemProvider(
|
|
10
|
+
"RAWITEM_AUTH_USERINFO",
|
|
11
|
+
() => new AuthUserinfoProvider()
|
|
12
|
+
);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export { IBizAuthUserinfo, IBizAuthUserinfo as default };
|
|
@@ -7,6 +7,9 @@ import { IBizWFActionButton } from './wf-action-button/index.mjs';
|
|
|
7
7
|
import { IBizWFStepTrace } from './wf-step-trace/index.mjs';
|
|
8
8
|
import { IBizNavPosIndex } from './nav-pos-index/index.mjs';
|
|
9
9
|
import { IBizPanelTabPanel } from './panel-tab-panel/index.mjs';
|
|
10
|
+
import { IBizPanelCarousel } from './panel-carousel/index.mjs';
|
|
11
|
+
import { IBizPanelVideoPlayer } from './panel-video-player/index.mjs';
|
|
12
|
+
import { IBizAuthUserinfo } from './auth-userinfo/index.mjs';
|
|
10
13
|
|
|
11
14
|
"use strict";
|
|
12
15
|
const IBizPanelComponents = {
|
|
@@ -31,6 +34,9 @@ const IBizPanelComponents = {
|
|
|
31
34
|
v.use(IBizPanelContainerGroup);
|
|
32
35
|
v.use(IBizPanelContainerImage);
|
|
33
36
|
v.use(IBizScrollContainer);
|
|
37
|
+
v.use(IBizPanelCarousel);
|
|
38
|
+
v.use(IBizPanelVideoPlayer);
|
|
39
|
+
v.use(IBizAuthUserinfo);
|
|
34
40
|
}
|
|
35
41
|
};
|
|
36
42
|
|
|
@@ -90,14 +90,18 @@ class PanelButtonController extends PanelItemController {
|
|
|
90
90
|
*/
|
|
91
91
|
async onActionClick(event) {
|
|
92
92
|
const { uiactionId } = this.model;
|
|
93
|
-
await UIActionUtil.execAndResolved(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
await UIActionUtil.execAndResolved(
|
|
94
|
+
uiactionId,
|
|
95
|
+
{
|
|
96
|
+
context: this.panel.context,
|
|
97
|
+
params: this.panel.params,
|
|
98
|
+
data: [this.data],
|
|
99
|
+
view: this.panel.view,
|
|
100
|
+
event,
|
|
101
|
+
noWaitRoute: true
|
|
102
|
+
},
|
|
103
|
+
this.model.appId
|
|
104
|
+
);
|
|
101
105
|
}
|
|
102
106
|
calcItemVisible(data) {
|
|
103
107
|
if (this.state.uiActionState.visible === false) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './panel-carousel.provider';
|
|
2
|
+
export * from './panel-carousel.controller';
|
|
3
|
+
export declare const IBizPanelCarousel: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
4
|
+
controller: {
|
|
5
|
+
type: typeof import("./panel-carousel.controller").PanelCarouselController;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
10
|
+
autoplay: string | undefined;
|
|
11
|
+
duration: string | undefined;
|
|
12
|
+
showIndicators: string | undefined;
|
|
13
|
+
touchable: string | undefined;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
controller: {
|
|
16
|
+
type: typeof import("./panel-carousel.controller").PanelCarouselController;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>>, {}, {}>>;
|
|
20
|
+
export default IBizPanelCarousel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { PanelCarousel } from './panel-carousel.mjs';
|
|
4
|
+
import { PanelCarouselProvider } from './panel-carousel.provider.mjs';
|
|
5
|
+
export { PanelCarouselController } from './panel-carousel.controller.mjs';
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const IBizPanelCarousel = withInstall(PanelCarousel, function(v) {
|
|
9
|
+
v.component(PanelCarousel.name, PanelCarousel);
|
|
10
|
+
registerPanelItemProvider(
|
|
11
|
+
"RAWITEM_STATIC_CAROUSEL",
|
|
12
|
+
() => new PanelCarouselProvider()
|
|
13
|
+
);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { IBizPanelCarousel, PanelCarouselProvider, IBizPanelCarousel as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelRawItem, ISysImage } from '@ibiz/model-core';
|
|
3
|
+
/**
|
|
4
|
+
* 面板轮播图控制器
|
|
5
|
+
*
|
|
6
|
+
* @author zk
|
|
7
|
+
* @date 2023-12-08 02:12:18
|
|
8
|
+
* @export
|
|
9
|
+
* @class PanelCarouselController
|
|
10
|
+
* @extends {PanelItemController<IPanelRawItem>}
|
|
11
|
+
*/
|
|
12
|
+
export declare class PanelCarouselController extends PanelItemController<IPanelRawItem> {
|
|
13
|
+
/**
|
|
14
|
+
* 图片集
|
|
15
|
+
*
|
|
16
|
+
* @author zk
|
|
17
|
+
* @date 2023-12-08 01:12:38
|
|
18
|
+
* @memberof PanelCarouselController
|
|
19
|
+
*/
|
|
20
|
+
images: ISysImage[];
|
|
21
|
+
/**
|
|
22
|
+
* 初始化
|
|
23
|
+
*
|
|
24
|
+
* @author zk
|
|
25
|
+
* @date 2023-12-08 11:12:23
|
|
26
|
+
* @protected
|
|
27
|
+
* @return {*} {Promise<void>}
|
|
28
|
+
* @memberof PanelCarouselController
|
|
29
|
+
*/
|
|
30
|
+
protected onInit(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* 初始化轮播图资源
|
|
33
|
+
*
|
|
34
|
+
* @author zk
|
|
35
|
+
* @date 2023-12-08 02:12:03
|
|
36
|
+
* @return {*} {void}
|
|
37
|
+
* @memberof PanelCarouselController
|
|
38
|
+
*/
|
|
39
|
+
initCarouselImages(): void;
|
|
40
|
+
/**
|
|
41
|
+
* 获取直接内容参数
|
|
42
|
+
*
|
|
43
|
+
* @author zk
|
|
44
|
+
* @date 2023-12-08 02:12:51
|
|
45
|
+
* @param {string} key
|
|
46
|
+
* @return {*} {(string | undefined)}
|
|
47
|
+
* @memberof PanelCarouselController
|
|
48
|
+
*/
|
|
49
|
+
getParamsValue(key: string): string | undefined;
|
|
50
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class PanelCarouselController extends PanelItemController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 图片集
|
|
15
|
+
*
|
|
16
|
+
* @author zk
|
|
17
|
+
* @date 2023-12-08 01:12:38
|
|
18
|
+
* @memberof PanelCarouselController
|
|
19
|
+
*/
|
|
20
|
+
__publicField(this, "images", []);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 初始化
|
|
24
|
+
*
|
|
25
|
+
* @author zk
|
|
26
|
+
* @date 2023-12-08 11:12:23
|
|
27
|
+
* @protected
|
|
28
|
+
* @return {*} {Promise<void>}
|
|
29
|
+
* @memberof PanelCarouselController
|
|
30
|
+
*/
|
|
31
|
+
async onInit() {
|
|
32
|
+
super.onInit();
|
|
33
|
+
this.initCarouselImages();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 初始化轮播图资源
|
|
37
|
+
*
|
|
38
|
+
* @author zk
|
|
39
|
+
* @date 2023-12-08 02:12:03
|
|
40
|
+
* @return {*} {void}
|
|
41
|
+
* @memberof PanelCarouselController
|
|
42
|
+
*/
|
|
43
|
+
initCarouselImages() {
|
|
44
|
+
const params = this.model.rawItem.rawItemParams;
|
|
45
|
+
if (!params) {
|
|
46
|
+
ibiz.log.error("\u672A\u914D\u7F6E\u8F6E\u64AD\u56FE\u8D44\u6E90");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.images = params.filter((item) => item.key === "img").map((item) => item.sysImage);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 获取直接内容参数
|
|
53
|
+
*
|
|
54
|
+
* @author zk
|
|
55
|
+
* @date 2023-12-08 02:12:51
|
|
56
|
+
* @param {string} key
|
|
57
|
+
* @return {*} {(string | undefined)}
|
|
58
|
+
* @memberof PanelCarouselController
|
|
59
|
+
*/
|
|
60
|
+
getParamsValue(key) {
|
|
61
|
+
let value;
|
|
62
|
+
const params = this.model.rawItem.rawItemParams;
|
|
63
|
+
if (!params) {
|
|
64
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u8F6E\u64AD\u56FE\u53C2\u6570:${key}}`);
|
|
65
|
+
return void 0;
|
|
66
|
+
}
|
|
67
|
+
params.forEach((item) => {
|
|
68
|
+
if (item.key === key) {
|
|
69
|
+
value = item.value;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { PanelCarouselController };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-carousel{height:100%}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PanelCarouselController } from './panel-carousel.controller';
|
|
2
|
+
import './panel-carousel.scss';
|
|
3
|
+
export declare const PanelCarousel: import("vue").DefineComponent<{
|
|
4
|
+
controller: {
|
|
5
|
+
type: typeof PanelCarouselController;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
10
|
+
autoplay: string | undefined;
|
|
11
|
+
duration: string | undefined;
|
|
12
|
+
showIndicators: string | undefined;
|
|
13
|
+
touchable: string | undefined;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
controller: {
|
|
16
|
+
type: typeof PanelCarouselController;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>>, {}, {}>;
|
|
20
|
+
export default PanelCarousel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { PanelCarouselController } from './panel-carousel.controller.mjs';
|
|
4
|
+
import './panel-carousel.css';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const PanelCarousel = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "IBizPanelCarousel",
|
|
9
|
+
props: {
|
|
10
|
+
controller: {
|
|
11
|
+
type: PanelCarouselController,
|
|
12
|
+
required: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(_props) {
|
|
16
|
+
const ns = useNamespace("panel-carousel");
|
|
17
|
+
const autoplay = _props.controller.getParamsValue("autoplay") === "1" ? _props.controller.getParamsValue("timespan") : void 0;
|
|
18
|
+
const duration = _props.controller.getParamsValue("duration");
|
|
19
|
+
const showIndicators = _props.controller.getParamsValue("showIndicators");
|
|
20
|
+
const touchable = _props.controller.getParamsValue("touchable");
|
|
21
|
+
return {
|
|
22
|
+
ns,
|
|
23
|
+
autoplay,
|
|
24
|
+
duration,
|
|
25
|
+
showIndicators,
|
|
26
|
+
touchable
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
render() {
|
|
30
|
+
return createVNode("div", {
|
|
31
|
+
"class": this.ns.b()
|
|
32
|
+
}, [createVNode(resolveComponent("iBizCarousel"), {
|
|
33
|
+
"images": this.controller.images,
|
|
34
|
+
"autoplay": this.autoplay,
|
|
35
|
+
"duration": this.duration,
|
|
36
|
+
"showIndicators": this.showIndicators,
|
|
37
|
+
"touchable": this.touchable
|
|
38
|
+
}, null)]);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { PanelCarousel, PanelCarousel as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
3
|
+
import { PanelCarouselController } from './panel-carousel.controller';
|
|
4
|
+
/**
|
|
5
|
+
* 流程跟踪组件适配器
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class WFStepTraceProvider
|
|
9
|
+
* @implements {IPanelItemProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class PanelCarouselProvider implements IPanelItemProvider {
|
|
12
|
+
component: string;
|
|
13
|
+
createController(panelItem: IPanelItem, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelCarouselController>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PanelCarouselController } from './panel-carousel.controller.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class PanelCarouselProvider {
|
|
11
|
+
constructor() {
|
|
12
|
+
__publicField(this, "component", "IBizPanelCarousel");
|
|
13
|
+
}
|
|
14
|
+
async createController(panelItem, panel, parent) {
|
|
15
|
+
const c = new PanelCarouselController(panelItem, panel, parent);
|
|
16
|
+
await c.init();
|
|
17
|
+
return c;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { PanelCarouselProvider };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './panel-video-player.provider';
|
|
2
|
+
export * from './panel-video-player.controller';
|
|
3
|
+
export declare const IBizPanelVideoPlayer: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
4
|
+
controller: {
|
|
5
|
+
type: typeof import("./panel-video-player.controller").PanelVideoPlayerController;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
10
|
+
id: string;
|
|
11
|
+
path: string | undefined;
|
|
12
|
+
autoplay: boolean;
|
|
13
|
+
showcontrols: boolean;
|
|
14
|
+
replay: boolean;
|
|
15
|
+
mute: boolean;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
controller: {
|
|
18
|
+
type: typeof import("./panel-video-player.controller").PanelVideoPlayerController;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}>>, {}, {}>>;
|
|
22
|
+
export default IBizPanelVideoPlayer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { PanelVideoPlayer } from './panel-video-player.mjs';
|
|
4
|
+
import { PanelVideoPlayerProvider } from './panel-video-player.provider.mjs';
|
|
5
|
+
export { PanelVideoPlayerController } from './panel-video-player.controller.mjs';
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const IBizPanelVideoPlayer = withInstall(
|
|
9
|
+
PanelVideoPlayer,
|
|
10
|
+
function(v) {
|
|
11
|
+
v.component(PanelVideoPlayer.name, PanelVideoPlayer);
|
|
12
|
+
registerPanelItemProvider(
|
|
13
|
+
"RAWITEM_STATIC_VIDEOPLAYER",
|
|
14
|
+
() => new PanelVideoPlayerProvider()
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export { IBizPanelVideoPlayer, PanelVideoPlayerProvider, IBizPanelVideoPlayer as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
3
|
+
/**
|
|
4
|
+
* 面板视频播放器控制器
|
|
5
|
+
*
|
|
6
|
+
* @author zk
|
|
7
|
+
* @date 2023-12-08 02:12:07
|
|
8
|
+
* @export
|
|
9
|
+
* @class PanelCarouselController
|
|
10
|
+
* @extends {PanelItemController<IPanelRawItem>}
|
|
11
|
+
*/
|
|
12
|
+
export declare class PanelVideoPlayerController extends PanelItemController<IPanelRawItem> {
|
|
13
|
+
/**
|
|
14
|
+
* 视频播放器额外参数
|
|
15
|
+
*
|
|
16
|
+
* @author zk
|
|
17
|
+
* @date 2023-12-08 03:12:09
|
|
18
|
+
* @memberof PanelVideoPlayerController
|
|
19
|
+
*/
|
|
20
|
+
rawItemParams: {};
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* @author zk
|
|
25
|
+
* @date 2023-12-08 03:12:26
|
|
26
|
+
* @protected
|
|
27
|
+
* @return {*} {Promise<void>}
|
|
28
|
+
* @memberof PanelVideoPlayerController
|
|
29
|
+
*/
|
|
30
|
+
protected onInit(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* 获取直接内容参数
|
|
33
|
+
*
|
|
34
|
+
* @author zk
|
|
35
|
+
* @date 2023-12-08 02:12:51
|
|
36
|
+
* @param {string} key
|
|
37
|
+
* @return {*} {(string | undefined)}
|
|
38
|
+
* @memberof PanelCarouselController
|
|
39
|
+
*/
|
|
40
|
+
getParamsValue(key: string): string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* 初始化额外参数
|
|
43
|
+
*
|
|
44
|
+
* @author zk
|
|
45
|
+
* @date 2023-12-08 03:12:27
|
|
46
|
+
* @return {*} {void}
|
|
47
|
+
* @memberof PanelVideoPlayerController
|
|
48
|
+
*/
|
|
49
|
+
initRawItemParams(): void;
|
|
50
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
class PanelVideoPlayerController extends PanelItemController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 视频播放器额外参数
|
|
15
|
+
*
|
|
16
|
+
* @author zk
|
|
17
|
+
* @date 2023-12-08 03:12:09
|
|
18
|
+
* @memberof PanelVideoPlayerController
|
|
19
|
+
*/
|
|
20
|
+
__publicField(this, "rawItemParams", {});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* @author zk
|
|
26
|
+
* @date 2023-12-08 03:12:26
|
|
27
|
+
* @protected
|
|
28
|
+
* @return {*} {Promise<void>}
|
|
29
|
+
* @memberof PanelVideoPlayerController
|
|
30
|
+
*/
|
|
31
|
+
async onInit() {
|
|
32
|
+
super.onInit();
|
|
33
|
+
this.initRawItemParams();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 获取直接内容参数
|
|
37
|
+
*
|
|
38
|
+
* @author zk
|
|
39
|
+
* @date 2023-12-08 02:12:51
|
|
40
|
+
* @param {string} key
|
|
41
|
+
* @return {*} {(string | undefined)}
|
|
42
|
+
* @memberof PanelCarouselController
|
|
43
|
+
*/
|
|
44
|
+
getParamsValue(key) {
|
|
45
|
+
let value;
|
|
46
|
+
const params = this.model.rawItem.rawItemParams;
|
|
47
|
+
if (!params) {
|
|
48
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u89C6\u9891\u64AD\u653E\u53C2\u6570:${key}}`);
|
|
49
|
+
return void 0;
|
|
50
|
+
}
|
|
51
|
+
params.forEach((item) => {
|
|
52
|
+
if (item.key === key) {
|
|
53
|
+
value = item.value;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 初始化额外参数
|
|
60
|
+
*
|
|
61
|
+
* @author zk
|
|
62
|
+
* @date 2023-12-08 03:12:27
|
|
63
|
+
* @return {*} {void}
|
|
64
|
+
* @memberof PanelVideoPlayerController
|
|
65
|
+
*/
|
|
66
|
+
initRawItemParams() {
|
|
67
|
+
const arrayParams = this.model.rawItem.rawItemParams;
|
|
68
|
+
if (!arrayParams) {
|
|
69
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u89C6\u9891\u64AD\u653E\u53C2\u6570`);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const rawItemParams = {};
|
|
73
|
+
for (let i = 0; i < arrayParams.length; i++) {
|
|
74
|
+
const item = arrayParams[i];
|
|
75
|
+
rawItemParams[item.key] = item.value;
|
|
76
|
+
}
|
|
77
|
+
this.rawItemParams = rawItemParams;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { PanelVideoPlayerController };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-video-player{width:100%;height:100%}.ibiz-panel-video-player__video{width:100%;height:100%}.ibiz-panel-video-player__video video{width:100%;height:100%}
|