@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,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
+
var panelCarousel = require('./panel-carousel.cjs');
|
|
8
|
+
var panelCarousel_provider = require('./panel-carousel.provider.cjs');
|
|
9
|
+
var panelCarousel_controller = require('./panel-carousel.controller.cjs');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const IBizPanelCarousel = vue3Util.withInstall(panelCarousel.PanelCarousel, function(v) {
|
|
13
|
+
v.component(panelCarousel.PanelCarousel.name, panelCarousel.PanelCarousel);
|
|
14
|
+
runtime.registerPanelItemProvider(
|
|
15
|
+
"RAWITEM_STATIC_CAROUSEL",
|
|
16
|
+
() => new panelCarousel_provider.PanelCarouselProvider()
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
exports.PanelCarouselProvider = panelCarousel_provider.PanelCarouselProvider;
|
|
21
|
+
exports.PanelCarouselController = panelCarousel_controller.PanelCarouselController;
|
|
22
|
+
exports.IBizPanelCarousel = IBizPanelCarousel;
|
|
23
|
+
exports.default = IBizPanelCarousel;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
+
var panelCarousel_controller = require('./panel-carousel.controller.cjs');
|
|
8
|
+
require('./panel-carousel.css');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
const PanelCarousel = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
name: "IBizPanelCarousel",
|
|
13
|
+
props: {
|
|
14
|
+
controller: {
|
|
15
|
+
type: panelCarousel_controller.PanelCarouselController,
|
|
16
|
+
required: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(_props) {
|
|
20
|
+
const ns = vue3Util.useNamespace("panel-carousel");
|
|
21
|
+
const autoplay = _props.controller.getParamsValue("autoplay") === "1" ? _props.controller.getParamsValue("timespan") : void 0;
|
|
22
|
+
const duration = _props.controller.getParamsValue("duration");
|
|
23
|
+
const showIndicators = _props.controller.getParamsValue("showIndicators");
|
|
24
|
+
const touchable = _props.controller.getParamsValue("touchable");
|
|
25
|
+
return {
|
|
26
|
+
ns,
|
|
27
|
+
autoplay,
|
|
28
|
+
duration,
|
|
29
|
+
showIndicators,
|
|
30
|
+
touchable
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
render() {
|
|
34
|
+
return vue.createVNode("div", {
|
|
35
|
+
"class": this.ns.b()
|
|
36
|
+
}, [vue.createVNode(vue.resolveComponent("iBizCarousel"), {
|
|
37
|
+
"images": this.controller.images,
|
|
38
|
+
"autoplay": this.autoplay,
|
|
39
|
+
"duration": this.duration,
|
|
40
|
+
"showIndicators": this.showIndicators,
|
|
41
|
+
"touchable": this.touchable
|
|
42
|
+
}, null)]);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
exports.PanelCarousel = PanelCarousel;
|
|
47
|
+
exports.default = PanelCarousel;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
12
|
+
class PanelCarouselController extends runtime.PanelItemController {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* 图片集
|
|
17
|
+
*
|
|
18
|
+
* @author zk
|
|
19
|
+
* @date 2023-12-08 01:12:38
|
|
20
|
+
* @memberof PanelCarouselController
|
|
21
|
+
*/
|
|
22
|
+
__publicField(this, "images", []);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 初始化
|
|
26
|
+
*
|
|
27
|
+
* @author zk
|
|
28
|
+
* @date 2023-12-08 11:12:23
|
|
29
|
+
* @protected
|
|
30
|
+
* @return {*} {Promise<void>}
|
|
31
|
+
* @memberof PanelCarouselController
|
|
32
|
+
*/
|
|
33
|
+
async onInit() {
|
|
34
|
+
super.onInit();
|
|
35
|
+
this.initCarouselImages();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 初始化轮播图资源
|
|
39
|
+
*
|
|
40
|
+
* @author zk
|
|
41
|
+
* @date 2023-12-08 02:12:03
|
|
42
|
+
* @return {*} {void}
|
|
43
|
+
* @memberof PanelCarouselController
|
|
44
|
+
*/
|
|
45
|
+
initCarouselImages() {
|
|
46
|
+
const params = this.model.rawItem.rawItemParams;
|
|
47
|
+
if (!params) {
|
|
48
|
+
ibiz.log.error("\u672A\u914D\u7F6E\u8F6E\u64AD\u56FE\u8D44\u6E90");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.images = params.filter((item) => item.key === "img").map((item) => item.sysImage);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 获取直接内容参数
|
|
55
|
+
*
|
|
56
|
+
* @author zk
|
|
57
|
+
* @date 2023-12-08 02:12:51
|
|
58
|
+
* @param {string} key
|
|
59
|
+
* @return {*} {(string | undefined)}
|
|
60
|
+
* @memberof PanelCarouselController
|
|
61
|
+
*/
|
|
62
|
+
getParamsValue(key) {
|
|
63
|
+
let value;
|
|
64
|
+
const params = this.model.rawItem.rawItemParams;
|
|
65
|
+
if (!params) {
|
|
66
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u8F6E\u64AD\u56FE\u53C2\u6570:${key}}`);
|
|
67
|
+
return void 0;
|
|
68
|
+
}
|
|
69
|
+
params.forEach((item) => {
|
|
70
|
+
if (item.key === key) {
|
|
71
|
+
value = item.value;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
exports.PanelCarouselController = PanelCarouselController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-carousel{height:100%}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelCarousel_controller = require('./panel-carousel.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
12
|
+
class PanelCarouselProvider {
|
|
13
|
+
constructor() {
|
|
14
|
+
__publicField(this, "component", "IBizPanelCarousel");
|
|
15
|
+
}
|
|
16
|
+
async createController(panelItem, panel, parent) {
|
|
17
|
+
const c = new panelCarousel_controller.PanelCarouselController(panelItem, panel, parent);
|
|
18
|
+
await c.init();
|
|
19
|
+
return c;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.PanelCarouselProvider = PanelCarouselProvider;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
+
var panelVideoPlayer = require('./panel-video-player.cjs');
|
|
8
|
+
var panelVideoPlayer_provider = require('./panel-video-player.provider.cjs');
|
|
9
|
+
var panelVideoPlayer_controller = require('./panel-video-player.controller.cjs');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const IBizPanelVideoPlayer = vue3Util.withInstall(
|
|
13
|
+
panelVideoPlayer.PanelVideoPlayer,
|
|
14
|
+
function(v) {
|
|
15
|
+
v.component(panelVideoPlayer.PanelVideoPlayer.name, panelVideoPlayer.PanelVideoPlayer);
|
|
16
|
+
runtime.registerPanelItemProvider(
|
|
17
|
+
"RAWITEM_STATIC_VIDEOPLAYER",
|
|
18
|
+
() => new panelVideoPlayer_provider.PanelVideoPlayerProvider()
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
exports.PanelVideoPlayerProvider = panelVideoPlayer_provider.PanelVideoPlayerProvider;
|
|
24
|
+
exports.PanelVideoPlayerController = panelVideoPlayer_controller.PanelVideoPlayerController;
|
|
25
|
+
exports.IBizPanelVideoPlayer = IBizPanelVideoPlayer;
|
|
26
|
+
exports.default = IBizPanelVideoPlayer;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
+
var qxUtil = require('qx-util');
|
|
8
|
+
var panelVideoPlayer_controller = require('./panel-video-player.controller.cjs');
|
|
9
|
+
require('./panel-video-player.css');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const PanelVideoPlayer = /* @__PURE__ */ vue.defineComponent({
|
|
13
|
+
name: "IBizPanelVideoPlayer",
|
|
14
|
+
props: {
|
|
15
|
+
controller: {
|
|
16
|
+
type: panelVideoPlayer_controller.PanelVideoPlayerController,
|
|
17
|
+
required: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(props) {
|
|
21
|
+
const ns = vue3Util.useNamespace("panel-video-player");
|
|
22
|
+
const id = qxUtil.createUUID();
|
|
23
|
+
const path = props.controller.getParamsValue("path");
|
|
24
|
+
const autoplay = props.controller.getParamsValue("autoplay") === "1";
|
|
25
|
+
const showcontrols = props.controller.getParamsValue("showcontrols") === "1";
|
|
26
|
+
const replay = props.controller.getParamsValue("replay") === "1";
|
|
27
|
+
const mute = props.controller.getParamsValue("mute") === "1";
|
|
28
|
+
return {
|
|
29
|
+
ns,
|
|
30
|
+
id,
|
|
31
|
+
path,
|
|
32
|
+
autoplay,
|
|
33
|
+
showcontrols,
|
|
34
|
+
replay,
|
|
35
|
+
mute
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
render() {
|
|
39
|
+
return vue.createVNode("div", {
|
|
40
|
+
"class": this.ns.b()
|
|
41
|
+
}, [vue.createVNode("div", {
|
|
42
|
+
"class": this.ns.e("video")
|
|
43
|
+
}, [vue.createVNode("video", vue.mergeProps(this.controller.rawItemParams, {
|
|
44
|
+
"id": this.id,
|
|
45
|
+
"src": this.path,
|
|
46
|
+
"autoplay": this.autoplay,
|
|
47
|
+
"controls": this.showcontrols,
|
|
48
|
+
"loop": this.replay,
|
|
49
|
+
"muted": this.mute
|
|
50
|
+
}), [vue.createVNode("source", {
|
|
51
|
+
"src": this.path,
|
|
52
|
+
"type": "video/mp4"
|
|
53
|
+
}, null), vue.createVNode("source", {
|
|
54
|
+
"src": this.path,
|
|
55
|
+
"type": "video/ogg"
|
|
56
|
+
}, null), vue.createVNode("source", {
|
|
57
|
+
"src": this.path,
|
|
58
|
+
"type": "video/webm"
|
|
59
|
+
}, null), vue.createTextVNode("\u60A8\u7684\u8BBE\u5907\u4E0D\u652F\u6301video\u6807\u7B7E")])])]);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
exports.PanelVideoPlayer = PanelVideoPlayer;
|
|
64
|
+
exports.default = PanelVideoPlayer;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
12
|
+
class PanelVideoPlayerController extends runtime.PanelItemController {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* 视频播放器额外参数
|
|
17
|
+
*
|
|
18
|
+
* @author zk
|
|
19
|
+
* @date 2023-12-08 03:12:09
|
|
20
|
+
* @memberof PanelVideoPlayerController
|
|
21
|
+
*/
|
|
22
|
+
__publicField(this, "rawItemParams", {});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* @author zk
|
|
28
|
+
* @date 2023-12-08 03:12:26
|
|
29
|
+
* @protected
|
|
30
|
+
* @return {*} {Promise<void>}
|
|
31
|
+
* @memberof PanelVideoPlayerController
|
|
32
|
+
*/
|
|
33
|
+
async onInit() {
|
|
34
|
+
super.onInit();
|
|
35
|
+
this.initRawItemParams();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 获取直接内容参数
|
|
39
|
+
*
|
|
40
|
+
* @author zk
|
|
41
|
+
* @date 2023-12-08 02:12:51
|
|
42
|
+
* @param {string} key
|
|
43
|
+
* @return {*} {(string | undefined)}
|
|
44
|
+
* @memberof PanelCarouselController
|
|
45
|
+
*/
|
|
46
|
+
getParamsValue(key) {
|
|
47
|
+
let value;
|
|
48
|
+
const params = this.model.rawItem.rawItemParams;
|
|
49
|
+
if (!params) {
|
|
50
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u89C6\u9891\u64AD\u653E\u53C2\u6570:${key}}`);
|
|
51
|
+
return void 0;
|
|
52
|
+
}
|
|
53
|
+
params.forEach((item) => {
|
|
54
|
+
if (item.key === key) {
|
|
55
|
+
value = item.value;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 初始化额外参数
|
|
62
|
+
*
|
|
63
|
+
* @author zk
|
|
64
|
+
* @date 2023-12-08 03:12:27
|
|
65
|
+
* @return {*} {void}
|
|
66
|
+
* @memberof PanelVideoPlayerController
|
|
67
|
+
*/
|
|
68
|
+
initRawItemParams() {
|
|
69
|
+
const arrayParams = this.model.rawItem.rawItemParams;
|
|
70
|
+
if (!arrayParams) {
|
|
71
|
+
ibiz.log.error(`\u672A\u914D\u7F6E\u89C6\u9891\u64AD\u653E\u53C2\u6570`);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const rawItemParams = {};
|
|
75
|
+
for (let i = 0; i < arrayParams.length; i++) {
|
|
76
|
+
const item = arrayParams[i];
|
|
77
|
+
rawItemParams[item.key] = item.value;
|
|
78
|
+
}
|
|
79
|
+
this.rawItemParams = rawItemParams;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
exports.PanelVideoPlayerController = 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%}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelVideoPlayer_controller = require('./panel-video-player.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
12
|
+
class PanelVideoPlayerProvider {
|
|
13
|
+
constructor() {
|
|
14
|
+
__publicField(this, "component", "IBizPanelVideoPlayer");
|
|
15
|
+
}
|
|
16
|
+
async createController(panelItem, panel, parent) {
|
|
17
|
+
const c = new panelVideoPlayer_controller.PanelVideoPlayerController(panelItem, panel, parent);
|
|
18
|
+
await c.init();
|
|
19
|
+
return c;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.PanelVideoPlayerProvider = PanelVideoPlayerProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-view-header{--ibiz-panel-component-view-header-bg-color:var(--ibiz-color-bg-1);--ibiz-panel-component-view-header-back-font-size:var(--ibiz-font-size-header-3);--ibiz-panel-component-view-header-back-padding:0 var(--ibiz-spacing-tight);--ibiz-panel-component-view-header-back-width:2.5rem;--ibiz-panel-component-view-header-back-height:100%;--ibiz-panel-component-view-header-color:var(--ibiz-color-text-0);position:relative;color:var(--ibiz-panel-component-view-header-color);background-color:var(--ibiz-panel-component-view-header-bg-color)}.ibiz-view-header .ibiz-view-header-back-button{position:absolute;display:flex;align-items:center;width:var(--ibiz-panel-component-view-header-back-width);height:var(--ibiz-panel-component-view-header-back-height);padding:var(--ibiz-panel-component-view-header-back-padding);font-size:var(--ibiz-panel-component-view-header-back-font-size)}.ibiz-view-header .ibiz-view-header-precut-back{padding-left:var(--ibiz-panel-component-view-header-back-width)}
|
|
1
|
+
.ibiz-view-header{--ibiz-panel-component-view-header-bg-color:var(--ibiz-color-bg-1);--ibiz-panel-component-view-header-back-font-size:var(--ibiz-font-size-header-3);--ibiz-panel-component-view-header-back-padding:0 var(--ibiz-spacing-tight);--ibiz-panel-component-view-header-back-width:2.5rem;--ibiz-panel-component-view-header-back-height:100%;--ibiz-panel-component-view-header-color:var(--ibiz-color-text-0);position:relative;color:var(--ibiz-panel-component-view-header-color);background-color:var(--ibiz-panel-component-view-header-bg-color)}.ibiz-view-header .ibiz-view-header-back-button{position:absolute;display:flex;align-items:center;width:var(--ibiz-panel-component-view-header-back-width);height:var(--ibiz-panel-component-view-header-back-height);padding:var(--ibiz-panel-component-view-header-back-padding);font-size:var(--ibiz-panel-component-view-header-back-font-size)}.ibiz-view-header .ibiz-view-header-precut-back .ibiz-control-toolbar-left{padding-left:var(--ibiz-panel-component-view-header-back-width)}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
require('../util/index.cjs');
|
|
5
|
+
var viewStack = require('../util/store/view-stack/view-stack.cjs');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
class VueBrowserPlatformProvider extends runtime.BrowserPlatformProvider {
|
|
9
|
+
/**
|
|
10
|
+
* 返回事件
|
|
11
|
+
*
|
|
12
|
+
* @author zk
|
|
13
|
+
* @date 2023-12-12 01:12:56
|
|
14
|
+
* @memberof VueBrowserPlatformProvider
|
|
15
|
+
*/
|
|
16
|
+
back() {
|
|
17
|
+
const { goBack } = viewStack.useViewStack();
|
|
18
|
+
goBack();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
exports.VueBrowserPlatformProvider = VueBrowserPlatformProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/mob-vue3-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@ibiz-template-package/vs-tree-ex": "^0.1.1",
|
|
27
|
-
"@ibiz-template/core": "^0.4.
|
|
28
|
-
"@ibiz-template/model-helper": "^0.4.
|
|
29
|
-
"@ibiz-template/runtime": "^0.4.
|
|
27
|
+
"@ibiz-template/core": "^0.4.6",
|
|
28
|
+
"@ibiz-template/model-helper": "^0.4.8",
|
|
29
|
+
"@ibiz-template/runtime": "^0.4.8",
|
|
30
30
|
"@ibiz-template/theme": "^0.4.0",
|
|
31
|
-
"@ibiz-template/vue3-util": "^0.4.
|
|
31
|
+
"@ibiz-template/vue3-util": "^0.4.8",
|
|
32
32
|
"@ibiz/model-core": "^0.0.26",
|
|
33
33
|
"async-validator": "^4.2.5",
|
|
34
34
|
"cherry-markdown": "^0.8.26",
|