@ibiz-template/mob-vue3-components 0.0.5 → 0.0.6
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 +6 -6
- package/dist/index.system.min.js.map +1 -1
- package/es/_virtual/customParseFormat.mjs +3 -0
- package/es/common/index.mjs +6 -1
- package/es/common/preset-view-back/preset-view-back.css +1 -0
- package/es/common/preset-view-back/preset-view-back.d.ts +17 -0
- package/es/common/preset-view-back/preset-view-back.mjs +49 -0
- package/es/common/preset-view-header/preset-view-header.css +1 -0
- package/es/common/preset-view-header/preset-view-header.d.ts +20 -0
- package/es/common/preset-view-header/preset-view-header.mjs +47 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +1 -3
- package/es/control/app-menu/app-menu.mjs +35 -134
- package/es/control/app-menu/index.d.ts +1 -3
- package/es/control/app-menu-icon-view/app-menu-icon-view.css +1 -0
- package/es/control/app-menu-icon-view/app-menu-icon-view.d.ts +38 -0
- package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +76 -0
- package/es/control/app-menu-icon-view/app-menu-icon-view.provider.d.ts +13 -0
- package/es/control/app-menu-icon-view/app-menu-icon-view.provider.mjs +14 -0
- package/es/control/app-menu-icon-view/index.d.ts +35 -0
- package/es/control/app-menu-icon-view/index.mjs +18 -0
- package/es/control/app-menu-list-view/app-menu-list-view.css +1 -0
- package/es/control/app-menu-list-view/app-menu-list-view.d.ts +37 -0
- package/es/control/app-menu-list-view/app-menu-list-view.mjs +84 -0
- package/es/control/app-menu-list-view/app-menu-list-view.provider.d.ts +13 -0
- package/es/control/app-menu-list-view/app-menu-list-view.provider.mjs +14 -0
- package/es/control/app-menu-list-view/index.d.ts +34 -0
- package/es/control/app-menu-list-view/index.mjs +18 -0
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +1 -2
- package/es/control/form/form-detail/form-button/form-button.css +1 -1
- package/es/control/form/form-detail/form-button/form-button.mjs +2 -1
- package/es/control/form/form-detail/form-page/form-page-item/form-page-item.css +1 -1
- package/es/control/form/form-detail/form-page/form-page-item/form-page-item.mjs +1 -1
- package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +14 -6
- package/es/control/index.d.ts +2 -0
- package/es/control/index.mjs +2 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.css +1 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -1
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -1
- package/es/editor/common/data-mpicker/ibiz-data-mpicker.css +1 -0
- package/es/editor/common/data-mpicker/ibiz-data-mpicker.d.ts +44 -0
- package/es/editor/common/data-mpicker/ibiz-data-mpicker.mjs +139 -0
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +4 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +38 -31
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -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 +3 -6
- package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.mjs +28 -104
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.css +1 -1
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -1
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +1 -1
- package/es/editor/span/span/span.d.ts +27 -1
- package/es/editor/span/span/span.mjs +78 -28
- package/es/editor/span/span-link/span-link.d.ts +1 -1
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -1
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
- package/es/editor/text-box/input/input.d.ts +1 -1
- package/es/editor/upload/ibiz-carousel/ibiz-carousel.d.ts +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -1
- package/es/editor/upload/ibiz-image-select/ibiz-image-select.d.ts +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -1
- package/es/index.mjs +5 -1
- package/es/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/plugin/customParseFormat.mjs +13 -0
- package/es/panel-component/panel-button/index.d.ts +1 -1
- package/es/panel-component/panel-button/panel-button.d.ts +1 -1
- package/es/panel-component/view-content-panel-container/view-content-panel-container.mjs +7 -2
- package/es/panel-component/view-header-panel-container/index.d.ts +1 -1
- package/es/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
- package/es/panel-component/view-header-panel-container/view-header-panel-container.d.ts +1 -1
- package/es/panel-component/view-header-panel-container/view-header-panel-container.mjs +6 -12
- package/es/util/store/view-stack/view-stack.d.ts +1 -1
- package/es/view-engine/mob-wf-dyna-action-view.engine.mjs +1 -1
- package/es/view-engine/mob-wf-dyna-start-view.engine.mjs +1 -1
- package/lib/_virtual/customParseFormat.cjs +5 -0
- package/lib/common/index.cjs +5 -0
- package/lib/common/preset-view-back/preset-view-back.cjs +51 -0
- package/lib/common/preset-view-back/preset-view-back.css +1 -0
- package/lib/common/preset-view-header/preset-view-header.cjs +49 -0
- package/lib/common/preset-view-header/preset-view-header.css +1 -0
- package/lib/control/app-menu/app-menu.cjs +34 -133
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +78 -0
- package/lib/control/app-menu-icon-view/app-menu-icon-view.css +1 -0
- package/lib/control/app-menu-icon-view/app-menu-icon-view.provider.cjs +16 -0
- package/lib/control/app-menu-icon-view/index.cjs +23 -0
- package/lib/control/app-menu-list-view/app-menu-list-view.cjs +86 -0
- package/lib/control/app-menu-list-view/app-menu-list-view.css +1 -0
- package/lib/control/app-menu-list-view/app-menu-list-view.provider.cjs +16 -0
- package/lib/control/app-menu-list-view/index.cjs +23 -0
- package/lib/control/dashboard/portlet/menu-portlet/menu-portlet.cjs +1 -2
- package/lib/control/form/form-detail/form-button/form-button.cjs +2 -1
- package/lib/control/form/form-detail/form-button/form-button.css +1 -1
- package/lib/control/form/form-detail/form-page/form-page-item/form-page-item.cjs +1 -1
- package/lib/control/form/form-detail/form-page/form-page-item/form-page-item.css +1 -1
- package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +14 -6
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/index.cjs +60 -56
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.css +1 -1
- package/lib/editor/common/data-mpicker/ibiz-data-mpicker.cjs +141 -0
- package/lib/editor/common/data-mpicker/ibiz-data-mpicker.css +1 -0
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +38 -31
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.cjs +27 -103
- package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.css +1 -1
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.css +1 -1
- package/lib/editor/span/span/span.cjs +77 -27
- package/lib/index.cjs +80 -74
- package/lib/node_modules/.pnpm/dayjs@1.11.10/node_modules/dayjs/plugin/customParseFormat.cjs +17 -0
- package/lib/panel-component/view-content-panel-container/view-content-panel-container.cjs +7 -2
- package/lib/panel-component/view-header-panel-container/view-header-panel-container.cjs +6 -12
- package/lib/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
- package/lib/view-engine/mob-wf-dyna-action-view.engine.cjs +1 -1
- package/lib/view-engine/mob-wf-dyna-start-view.engine.cjs +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useControlController, prepareControl } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './app-menu-list-view.css';
|
|
4
|
+
import { AppMenuController } from '@ibiz-template/runtime';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const AppMenuListViewControl = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "IBizAppMenuListViewControl",
|
|
9
|
+
props: {
|
|
10
|
+
modelData: {
|
|
11
|
+
type: Object,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
context: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
params: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({})
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup() {
|
|
24
|
+
const c = useControlController((...args) => new AppMenuController(...args));
|
|
25
|
+
const {
|
|
26
|
+
controlClass,
|
|
27
|
+
ns
|
|
28
|
+
} = prepareControl(c);
|
|
29
|
+
return {
|
|
30
|
+
controlClass,
|
|
31
|
+
c,
|
|
32
|
+
ns
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
render() {
|
|
36
|
+
const {
|
|
37
|
+
model
|
|
38
|
+
} = this.c;
|
|
39
|
+
const {
|
|
40
|
+
controlStyle
|
|
41
|
+
} = model;
|
|
42
|
+
return createVNode(resolveComponent("van-list"), {
|
|
43
|
+
"class": [this.ns.b(), this.ns.b(controlStyle.toLowerCase()), this.ns.m(this.modelData.id)]
|
|
44
|
+
}, {
|
|
45
|
+
default: () => {
|
|
46
|
+
var _a;
|
|
47
|
+
return [(_a = model == null ? void 0 : model.appMenuItems) == null ? void 0 : _a.map((item) => {
|
|
48
|
+
if (item.hidden === true) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
let renderItem = null;
|
|
52
|
+
switch (item.itemType) {
|
|
53
|
+
case "MENUITEM":
|
|
54
|
+
renderItem = createVNode(resolveComponent("van-cell"), {
|
|
55
|
+
"class": [this.ns.b("item")],
|
|
56
|
+
"is-link": true,
|
|
57
|
+
"center": true,
|
|
58
|
+
"clickable": true,
|
|
59
|
+
"title": item.caption,
|
|
60
|
+
"onClick": (event) => this.c.onClickMenuItem(item.id, event, false)
|
|
61
|
+
}, {
|
|
62
|
+
icon: () => {
|
|
63
|
+
return item.sysImage && createVNode("div", {
|
|
64
|
+
"class": this.ns.b("icon")
|
|
65
|
+
}, [createVNode(resolveComponent("iBizIcon"), {
|
|
66
|
+
"icon": item.sysImage
|
|
67
|
+
}, null)]);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
break;
|
|
71
|
+
case "SEPERATOR":
|
|
72
|
+
renderItem = createVNode(resolveComponent("van-divider"), null, null);
|
|
73
|
+
break;
|
|
74
|
+
default:
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
return renderItem;
|
|
78
|
+
})];
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export { AppMenuListViewControl };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IControlProvider } from '@ibiz-template/runtime';
|
|
2
|
+
/**
|
|
3
|
+
* 应用菜单(列表样式)适配器
|
|
4
|
+
*
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2022-10-25 18:10:57
|
|
7
|
+
* @export
|
|
8
|
+
* @class AppMenuProvider
|
|
9
|
+
* @implements {IControlProvider}
|
|
10
|
+
*/
|
|
11
|
+
export declare class AppMenuListViewProvider implements IControlProvider {
|
|
12
|
+
component: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => {
|
|
5
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
return value;
|
|
7
|
+
};
|
|
8
|
+
class AppMenuListViewProvider {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "component", "IBizAppMenuListViewControl");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { AppMenuListViewProvider };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const IBizAppMenuListViewControl: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
modelData: {
|
|
3
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppMenu>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
context: {
|
|
7
|
+
type: import("vue").PropType<IContext>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
params: {
|
|
11
|
+
type: import("vue").PropType<IParams>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
controlClass: string[];
|
|
16
|
+
c: import("@ibiz-template/runtime").AppMenuController;
|
|
17
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
modelData: {
|
|
20
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppMenu>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
context: {
|
|
24
|
+
type: import("vue").PropType<IContext>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
params: {
|
|
28
|
+
type: import("vue").PropType<IParams>;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
31
|
+
}>>, {
|
|
32
|
+
params: IParams;
|
|
33
|
+
}, {}>>;
|
|
34
|
+
export default IBizAppMenuListViewControl;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { AppMenuListViewProvider } from './app-menu-list-view.provider.mjs';
|
|
4
|
+
import { AppMenuListViewControl } from './app-menu-list-view.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const IBizAppMenuListViewControl = withInstall(
|
|
8
|
+
AppMenuListViewControl,
|
|
9
|
+
function(v) {
|
|
10
|
+
v.component(AppMenuListViewControl.name, AppMenuListViewControl);
|
|
11
|
+
registerControlProvider(
|
|
12
|
+
`${ControlType.APP_MENU}_LISTVIEW`,
|
|
13
|
+
() => new AppMenuListViewProvider()
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export { IBizAppMenuListViewControl, IBizAppMenuListViewControl as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { MenuPortletController } from '@ibiz-template/runtime';
|
|
4
|
-
import { IBizAppMenuControl } from '../../../app-menu/index.mjs';
|
|
5
4
|
|
|
6
5
|
"use strict";
|
|
7
6
|
const MenuPortlet = /* @__PURE__ */ defineComponent({
|
|
@@ -37,7 +36,7 @@ const MenuPortlet = /* @__PURE__ */ defineComponent({
|
|
|
37
36
|
"controller": this.controller,
|
|
38
37
|
"class": classArr
|
|
39
38
|
}, {
|
|
40
|
-
default: () => [this.menu && createVNode(
|
|
39
|
+
default: () => [this.menu && createVNode(resolveComponent("iBizControlShell"), {
|
|
41
40
|
"modelData": this.menu,
|
|
42
41
|
"context": context,
|
|
43
42
|
"params": params
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-button{--ibiz-form-button-icon-margin:var(--ibiz-spacing-extra-tight);--ibiz-form-button-icon-max-width:var(--ibiz-width-icon-medium);--ibiz-form-button-icon-max-height:var(--ibiz-width-icon-medium);width:100%;height:100%;padding:var(--ibiz-spacing-tight);overflow:hidden}.ibiz-form-button .van-button{width:100
|
|
1
|
+
.ibiz-form-button{--ibiz-form-button-icon-margin:var(--ibiz-spacing-extra-tight);--ibiz-form-button-icon-max-width:var(--ibiz-width-icon-medium);--ibiz-form-button-icon-max-height:var(--ibiz-width-icon-medium);width:100%;height:100%;padding:var(--ibiz-spacing-tight);overflow:hidden}.ibiz-form-button .van-button{width:100%}.ibiz-form-button .van-button .ibiz-form-button-content{display:flex;align-items:center;justify-content:flex-start}.ibiz-form-button .van-button .ibiz-form-button-content i,.ibiz-form-button .van-button .ibiz-form-button-content img{display:inline-block;max-width:var(--ibiz-form-button-icon-max-width);max-height:var(--ibiz-form-button-icon-max-height)}.ibiz-form-button .van-button .ibiz-form-button-content .ibiz-icon+.ibiz-form-button-content--caption{margin-left:var(--ibiz-form-button-icon-margin)}.ibiz-form-button.is-loading .van-button .ibiz-icon{display:none}
|
|
@@ -47,7 +47,8 @@ const FormButton = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
}, [createVNode(resolveComponent("van-button"), {
|
|
48
48
|
"onClick": this.controller.onClick.bind(this.controller),
|
|
49
49
|
"loading": this.controller.state.loading,
|
|
50
|
-
"disabled": this.controller.state.disabled
|
|
50
|
+
"disabled": this.controller.state.disabled,
|
|
51
|
+
"size": "small"
|
|
51
52
|
}, {
|
|
52
53
|
default: () => [createVNode("div", {
|
|
53
54
|
"class": this.ns.b("content")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-page-item{--ibiz-form-page-item-
|
|
1
|
+
.ibiz-form-page-item{--ibiz-form-page-item-margin:0 0 var(--ibiz-spacing-tight) 0;border-radius:var(--ibiz-border-radius-small)}.ibiz-form-page-item>.van-col{margin:var(--ibiz-form-page-item-margin)}
|
|
@@ -39,7 +39,7 @@ const IBizFormPageItem = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
return createVNode(resolveComponent("iBizRow"), {
|
|
42
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.id)],
|
|
42
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass],
|
|
43
43
|
"layout": this.modelData.layout
|
|
44
44
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
45
45
|
const props = slot.props;
|
|
@@ -31,7 +31,7 @@ const FormTabPage = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
let _slot;
|
|
32
32
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
33
33
|
return createVNode(resolveComponent("iBizRow"), {
|
|
34
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.codeName)],
|
|
34
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
35
35
|
"layout": this.modelData.layout
|
|
36
36
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
37
37
|
const props = slot.props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-form-tab-panel{width:100%;height:100
|
|
1
|
+
.ibiz-form-tab-panel{width:100%;height:100%;overflow:auto}.ibiz-form-tab-panel__caption{display:flex;align-items:center;justify-content:center}
|
|
@@ -30,8 +30,8 @@ const FormTabPanel = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
var _a, _b, _c;
|
|
31
31
|
let _slot;
|
|
32
32
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
33
|
-
return createVNode(resolveComponent("
|
|
34
|
-
"class": [
|
|
33
|
+
return createVNode(resolveComponent("van-tabs"), {
|
|
34
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
35
35
|
"model-value": (_c = this.modelData.deformTabPages) == null ? void 0 : _c[0].id
|
|
36
36
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
37
37
|
const props = slot.props;
|
|
@@ -42,13 +42,21 @@ const FormTabPanel = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
if (!c.state.visible && !c.state.keepAlive) {
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
|
-
return createVNode(resolveComponent("
|
|
45
|
+
return createVNode(resolveComponent("van-tab"), {
|
|
46
46
|
"class": this.ns.b("tab-item"),
|
|
47
|
-
"
|
|
47
|
+
"title": c.model.caption,
|
|
48
48
|
"name": c.model.id,
|
|
49
|
+
"title-class": c.labelClass,
|
|
49
50
|
"lazy": true
|
|
50
|
-
},
|
|
51
|
-
default: () =>
|
|
51
|
+
}, {
|
|
52
|
+
default: () => slot,
|
|
53
|
+
title: () => {
|
|
54
|
+
return createVNode("span", {
|
|
55
|
+
"class": this.ns.e("caption")
|
|
56
|
+
}, [c.model.sysImage && createVNode(resolveComponent("iBizIcon"), {
|
|
57
|
+
"icon": c.model.sysImage
|
|
58
|
+
}, null), c.model.showCaption && c.model.caption]);
|
|
59
|
+
}
|
|
52
60
|
});
|
|
53
61
|
})) ? _slot : {
|
|
54
62
|
default: () => [_slot]
|
package/es/control/index.d.ts
CHANGED
package/es/control/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { IBizMDCtrlControl } from './list/md-ctrl/index.mjs';
|
|
2
2
|
export { IBizAppMenuControl } from './app-menu/index.mjs';
|
|
3
|
+
export { IBizAppMenuIconViewControl } from './app-menu-icon-view/index.mjs';
|
|
4
|
+
export { IBizAppMenuListViewControl } from './app-menu-list-view/index.mjs';
|
|
3
5
|
import './form/index.mjs';
|
|
4
6
|
export { IBizPickupViewPanelControl } from './pickup-view-panel/index.mjs';
|
|
5
7
|
export { IBizListControl } from './list/list/index.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-cascader{height:100%}.ibiz-cascader .van-cell--clickable:active{background-color:transparent}.ibiz-cascader--disabled{color:var(--ibiz-form-item-disabled-color);--van-field-input-text-color:var(--ibiz-form-item-disabled-color)}.ibiz-cascader--readonly{--van-field-input-text-color:var(--ibiz-form-item-readonly-color);color:var(--ibiz-form-item-readonly-color)}
|
|
1
|
+
.ibiz-cascader{height:100%}.ibiz-cascader .van-field{font-size:var(--ibiz-form-item-font-size)}.ibiz-cascader .van-field::after{display:none}.ibiz-cascader .van-cell--clickable:active{background-color:transparent}.ibiz-cascader--disabled{color:var(--ibiz-form-item-disabled-color);--van-field-input-text-color:var(--ibiz-form-item-disabled-color)}.ibiz-cascader--readonly{--van-field-input-text-color:var(--ibiz-form-item-readonly-color);color:var(--ibiz-form-item-readonly-color)}
|
|
@@ -68,8 +68,8 @@ export declare const IBizCascader: import("vue").DefineComponent<{
|
|
|
68
68
|
onFocus?: ((_event?: IData | undefined) => any) | undefined;
|
|
69
69
|
onBlur?: ((_event?: IData | undefined) => any) | undefined;
|
|
70
70
|
onChange?: ((_value: unknown, _name?: string | undefined) => any) | undefined;
|
|
71
|
-
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
72
71
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
72
|
+
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
73
73
|
}, {
|
|
74
74
|
disabled: boolean;
|
|
75
75
|
readonly: boolean;
|
|
@@ -50,8 +50,8 @@ export declare const IBizCheckbox: import("vue").DefineComponent<{
|
|
|
50
50
|
onFocus?: ((_event?: IData | undefined) => any) | undefined;
|
|
51
51
|
onBlur?: ((_event?: IData | undefined) => any) | undefined;
|
|
52
52
|
onChange?: ((_value: unknown, _name?: string | undefined) => any) | undefined;
|
|
53
|
-
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
54
53
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
54
|
+
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
disabled: boolean;
|
|
57
57
|
readonly: boolean;
|
|
@@ -53,8 +53,8 @@ export declare const IBizCheckboxList: import("vue").DefineComponent<{
|
|
|
53
53
|
onFocus?: ((_event?: IData | undefined) => any) | undefined;
|
|
54
54
|
onBlur?: ((_event?: IData | undefined) => any) | undefined;
|
|
55
55
|
onChange?: ((_value: unknown, _name?: string | undefined) => any) | undefined;
|
|
56
|
-
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
57
56
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
57
|
+
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
disabled: boolean;
|
|
60
60
|
readonly: boolean;
|
|
@@ -54,8 +54,8 @@ export declare const IBizColorPicker: import("vue").DefineComponent<{
|
|
|
54
54
|
onFocus?: ((_event?: IData | undefined) => any) | undefined;
|
|
55
55
|
onBlur?: ((_event?: IData | undefined) => any) | undefined;
|
|
56
56
|
onChange?: ((_value: unknown, _name?: string | undefined) => any) | undefined;
|
|
57
|
-
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
58
57
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
58
|
+
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
disabled: boolean;
|
|
61
61
|
readonly: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-data-mpicker .ibiz-data-mpicker-toolbar{display:flex;align-items:center;justify-content:space-between;padding:var(--ibiz-spacing-base-tight)}.ibiz-data-mpicker .ibiz-data-mpicker-toolbar button{padding:0;background-color:transparent;border:none}.ibiz-data-mpicker-toolbar__confirm{color:var(--ibiz-color-primary)}.ibiz-data-mpicker-toolbar__cancel{color:var(--ibiz-color-text-3)}.ibiz-data-mpicker .ibiz-data-mpicker-columns{min-height:30vh;max-height:50vh;overflow:auto}.ibiz-data-mpicker .ibiz-data-mpicker-columns .van-cell-group{height:100%;overflow:auto}.ibiz-data-mpicker .ibiz-data-mpicker-columns .van-cell{justify-content:flex-end;padding:var(--ibiz-spacing-base-tight)}.ibiz-data-mpicker .van-cell-group--inset{margin:0}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Ref, PropType } from 'vue';
|
|
2
|
+
import './ibiz-data-mpicker.scss';
|
|
3
|
+
export declare const IBizDataMPicker: import("vue").DefineComponent<{
|
|
4
|
+
value: {
|
|
5
|
+
type: PropType<string[]>;
|
|
6
|
+
default: never[];
|
|
7
|
+
};
|
|
8
|
+
items: {
|
|
9
|
+
type: PropType<IData[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
showPicker: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
18
|
+
checkboxRefs: Ref<IData>;
|
|
19
|
+
curValue: import("vue").WritableComputedRef<string[]>;
|
|
20
|
+
emit: (event: "change" | "update:showPicker", ...args: any[]) => void;
|
|
21
|
+
toggle: (index: number) => void;
|
|
22
|
+
onCancel: (e: Event) => void;
|
|
23
|
+
onConfirm: (e: Event) => void;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:showPicker")[], "change" | "update:showPicker", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
value: {
|
|
26
|
+
type: PropType<string[]>;
|
|
27
|
+
default: never[];
|
|
28
|
+
};
|
|
29
|
+
items: {
|
|
30
|
+
type: PropType<IData[]>;
|
|
31
|
+
default: () => never[];
|
|
32
|
+
};
|
|
33
|
+
showPicker: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
}>> & {
|
|
38
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
"onUpdate:showPicker"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
value: string[];
|
|
42
|
+
items: IData[];
|
|
43
|
+
showPicker: boolean;
|
|
44
|
+
}, {}>;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { isVNode, ref, computed, watch, createTextVNode, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './ibiz-data-mpicker.css';
|
|
4
|
+
import { clone } from 'ramda';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
function _isSlot(s) {
|
|
8
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
9
|
+
}
|
|
10
|
+
const IBizDataMPicker = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "IBizDataMPicker",
|
|
12
|
+
props: {
|
|
13
|
+
value: {
|
|
14
|
+
type: Object,
|
|
15
|
+
// eslint-disable-next-line vue/require-valid-default-prop
|
|
16
|
+
default: []
|
|
17
|
+
},
|
|
18
|
+
items: {
|
|
19
|
+
type: Object,
|
|
20
|
+
// eslint-disable-next-line vue/require-valid-default-prop
|
|
21
|
+
default: () => []
|
|
22
|
+
},
|
|
23
|
+
showPicker: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:showPicker", "change"],
|
|
29
|
+
setup(props, {
|
|
30
|
+
emit
|
|
31
|
+
}) {
|
|
32
|
+
const ns = useNamespace("data-mpicker");
|
|
33
|
+
const localSelectValue = ref([]);
|
|
34
|
+
const curValue = computed({
|
|
35
|
+
get() {
|
|
36
|
+
return localSelectValue.value;
|
|
37
|
+
},
|
|
38
|
+
set(select) {
|
|
39
|
+
localSelectValue.value = select;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
watch(() => props.value, (newVal) => {
|
|
43
|
+
if (newVal || newVal === null) {
|
|
44
|
+
localSelectValue.value = newVal;
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
immediate: true
|
|
48
|
+
});
|
|
49
|
+
const onConfirm = (e) => {
|
|
50
|
+
e.stopPropagation();
|
|
51
|
+
emit("update:showPicker", false);
|
|
52
|
+
const value = clone(localSelectValue.value);
|
|
53
|
+
emit("change", value);
|
|
54
|
+
};
|
|
55
|
+
const onCancel = (e) => {
|
|
56
|
+
e.stopPropagation();
|
|
57
|
+
emit("update:showPicker", false);
|
|
58
|
+
localSelectValue.value = props.value;
|
|
59
|
+
};
|
|
60
|
+
const checkboxRefs = ref([]);
|
|
61
|
+
const toggle = (index) => {
|
|
62
|
+
checkboxRefs.value[index].toggle();
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
ns,
|
|
66
|
+
checkboxRefs,
|
|
67
|
+
curValue,
|
|
68
|
+
emit,
|
|
69
|
+
toggle,
|
|
70
|
+
onCancel,
|
|
71
|
+
onConfirm
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
render() {
|
|
75
|
+
const renderToolbar = () => {
|
|
76
|
+
return createVNode("div", {
|
|
77
|
+
"class": this.ns.b("toolbar")
|
|
78
|
+
}, [createVNode("button", {
|
|
79
|
+
"type": "button",
|
|
80
|
+
"class": this.ns.be("toolbar", "cancel"),
|
|
81
|
+
"onClick": (e) => {
|
|
82
|
+
this.onCancel(e);
|
|
83
|
+
}
|
|
84
|
+
}, [createTextVNode("\u53D6\u6D88")]), createVNode("button", {
|
|
85
|
+
"type": "button",
|
|
86
|
+
"class": this.ns.be("toolbar", "confirm"),
|
|
87
|
+
"onClick": (e) => {
|
|
88
|
+
this.onConfirm(e);
|
|
89
|
+
}
|
|
90
|
+
}, [createTextVNode("\u786E\u5B9A")])]);
|
|
91
|
+
};
|
|
92
|
+
const renderColumns = () => {
|
|
93
|
+
let _slot;
|
|
94
|
+
return createVNode(resolveComponent("van-checkbox-group"), {
|
|
95
|
+
"class": this.ns.b("columns"),
|
|
96
|
+
"modelValue": this.curValue,
|
|
97
|
+
"onUpdate:modelValue": ($event) => this.curValue = $event
|
|
98
|
+
}, {
|
|
99
|
+
default: () => [createVNode(resolveComponent("van-cell-group"), {
|
|
100
|
+
"inset": true
|
|
101
|
+
}, _isSlot(_slot = this.items.map((item, index) => {
|
|
102
|
+
return createVNode(resolveComponent("van-cell"), {
|
|
103
|
+
"title": item.text,
|
|
104
|
+
"clickable": true,
|
|
105
|
+
"onClick": () => {
|
|
106
|
+
this.toggle(index);
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
"right-icon": () => {
|
|
110
|
+
return createVNode(resolveComponent("van-checkbox"), {
|
|
111
|
+
"ref": (el) => this.checkboxRefs[index] = el,
|
|
112
|
+
"name": item.value,
|
|
113
|
+
"onClick": (e) => e.stopPropagation()
|
|
114
|
+
}, null);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
})) ? _slot : {
|
|
118
|
+
default: () => [_slot]
|
|
119
|
+
})]
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
return createVNode(resolveComponent("van-popup"), {
|
|
123
|
+
"class": this.ns.b(),
|
|
124
|
+
"show": this.showPicker,
|
|
125
|
+
"onUpdate:show": ($event) => this.showPicker = $event,
|
|
126
|
+
"round": true,
|
|
127
|
+
"position": "bottom",
|
|
128
|
+
"close-on-click-overlay": false,
|
|
129
|
+
"onClickOverlay": (e) => {
|
|
130
|
+
e.stopPropagation();
|
|
131
|
+
this.emit("update:showPicker", false);
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
default: () => [renderToolbar(), renderColumns()]
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
export { IBizDataMPicker };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.ibiz-mpicker{--van-tag-radius:3.125rem}.ibiz-mpicker .van-field{font-size:var(--ibiz-form-item-font-size)}.ibiz-mpicker .van-
|
|
1
|
+
@charset "UTF-8";.ibiz-mpicker{--van-tag-radius:3.125rem}.ibiz-mpicker .van-field{font-size:var(--ibiz-form-item-font-size)}.ibiz-mpicker .van-field::after{display:none}.ibiz-mpicker .van-field__right-icon button{color:var(--van-field-right-icon-color);border:none}.ibiz-mpicker .van-field__control--custom{flex-wrap:wrap}.ibiz-mpicker .van-field__control{gap:.5rem}.ibiz-mpicker .van-field__control .van-tag{height:100%;padding:.3125rem;--van-tag-font-size:var(--ibiz-form-item-font-size)}.ibiz-mpicker input:disabled{color:var(--ibiz-form-item-disabled-color);background-color:var(--ibiz-form-item-disabled-bg-color);border-color:var(--ibiz-form-item-disabled-border-color);-webkit-text-fill-color:var(--ibiz-form-item-disabled-color)}.ibiz-mpicker--disabled{opacity:.8}.ibiz-mpicker--readonly{color:var(--ibiz-form-item-readonly-color);-webkit-text-fill-color:var(--ibiz-form-item-readonly-color)}
|
|
@@ -26,11 +26,12 @@ export declare const IBizMPicker: import("vue").DefineComponent<{
|
|
|
26
26
|
items: Ref<IData[]>;
|
|
27
27
|
valueText: import("vue").ComputedRef<string>;
|
|
28
28
|
selectItems: Ref<IData[]>;
|
|
29
|
-
|
|
29
|
+
showPicker: Ref<boolean>;
|
|
30
|
+
onSearch: (query?: string) => Promise<void>;
|
|
30
31
|
onRemove: (tag: string) => void;
|
|
31
|
-
onOpenChange: (flag: boolean) => void;
|
|
32
32
|
onSelect: (selects: string[]) => void;
|
|
33
33
|
openPickUpView: () => Promise<void>;
|
|
34
|
+
openPicker: () => Promise<void>;
|
|
34
35
|
onFocus: () => void;
|
|
35
36
|
onBlur: () => void;
|
|
36
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -61,8 +62,8 @@ export declare const IBizMPicker: import("vue").DefineComponent<{
|
|
|
61
62
|
onFocus?: ((_event?: IData | undefined) => any) | undefined;
|
|
62
63
|
onBlur?: ((_event?: IData | undefined) => any) | undefined;
|
|
63
64
|
onChange?: ((_value: unknown, _name?: string | undefined) => any) | undefined;
|
|
64
|
-
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
65
65
|
onInfoTextChange?: ((_text: string) => any) | undefined;
|
|
66
|
+
onEnter?: ((_event?: IData | undefined) => any) | undefined;
|
|
66
67
|
}, {
|
|
67
68
|
disabled: boolean;
|
|
68
69
|
readonly: boolean;
|