@ibiz-template/vue3-components 0.7.4 → 0.7.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-rHXmoO9Y.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-UXWgtlzc.js → xlsx-util-QjtIWX97.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +1 -1
- package/es/common/rawitem/rawitem.mjs +5 -3
- package/es/common/view-message/view-message.d.ts +1 -0
- package/es/common/view-message/view-message.mjs +5 -1
- package/es/control/app-menu/app-menu.mjs +5 -3
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +25 -3
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +19 -5
- package/es/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +18 -4
- package/es/control/dashboard/dashboard.d.ts +0 -1
- package/es/control/dashboard/dashboard.mjs +3 -11
- package/es/control/dashboard/index.d.ts +0 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +3 -6
- package/es/control/drbar/drbar.controller.mjs +2 -1
- package/es/control/drbar/drbar.mjs +9 -4
- package/es/control/drtab/drtab.controller.mjs +5 -1
- package/es/control/drtab/drtab.mjs +17 -5
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +5 -4
- package/es/control/grid/grid/grid-control.util.d.ts +3 -0
- package/es/control/grid/grid/grid-control.util.mjs +97 -1
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +1 -0
- package/es/control/grid/grid/grid.mjs +41 -3
- package/es/control/grid/grid/index.d.ts +1 -0
- package/es/control/grid/grid/index.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +14 -3
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- package/es/control/grid/index.mjs +1 -1
- package/es/control/index.mjs +1 -1
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.mjs +2 -1
- package/es/control/tree/tree.mjs +9 -4
- package/es/control/wizard-panel/wizard-panel.mjs +8 -9
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +7 -1
- package/es/editor/code/monaco-editor/monaco-editor.mjs +13 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +23 -9
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +7 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -1
- package/es/editor/span/span/span.mjs +7 -1
- package/es/index.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.d.ts +27 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +43 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.mjs +3 -0
- package/es/panel-component/panel-button/panel-button.controller.mjs +2 -0
- package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +13 -5
- package/es/view-engine/wizard-view-engine.mjs +2 -2
- package/lib/common/action-toolbar/action-toolbar.cjs +1 -1
- package/lib/common/rawitem/rawitem.cjs +5 -3
- package/lib/common/view-message/view-message.cjs +5 -1
- package/lib/control/app-menu/app-menu.cjs +5 -3
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +19 -5
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +18 -4
- package/lib/control/dashboard/dashboard-design/dashboard-design.css +1 -1
- package/lib/control/dashboard/dashboard.cjs +2 -10
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +3 -6
- package/lib/control/drbar/drbar.cjs +8 -3
- package/lib/control/drbar/drbar.controller.cjs +2 -1
- package/lib/control/drtab/drtab.cjs +16 -4
- package/lib/control/drtab/drtab.controller.cjs +5 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +5 -4
- package/lib/control/grid/grid/grid-control.util.cjs +97 -0
- package/lib/control/grid/grid/grid.cjs +40 -2
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid/index.cjs +1 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +13 -2
- package/lib/control/grid/index.cjs +1 -0
- package/lib/control/index.cjs +1 -0
- package/lib/control/kanban/kanban.cjs +2 -1
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/tree/tree.cjs +8 -3
- package/lib/control/wizard-panel/wizard-panel.cjs +8 -9
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +1 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +6 -0
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +13 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +22 -8
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +6 -0
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +6 -0
- package/lib/editor/span/span/span.cjs +6 -0
- package/lib/index.cjs +1 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.cjs +3 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +43 -0
- package/lib/panel-component/panel-button/panel-button.controller.cjs +2 -0
- package/lib/panel-component/panel-static-carousel/panel-static-carousel.cjs +13 -5
- package/lib/view-engine/wizard-view-engine.cjs +2 -2
- package/package.json +6 -6
- package/dist/index-36xAWDJE.js +0 -4
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { resolveComponent, mergeProps, h, createVNode, createTextVNode, renderSlot, onUnmounted, defineComponent } from 'vue';
|
|
2
2
|
import { useControlController, useNamespace, useUIStore } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { ScriptFactory, GridController } from '@ibiz-template/runtime';
|
|
4
|
-
import {
|
|
4
|
+
import { NOOP } from '@ibiz-template/core';
|
|
5
|
+
import { useITableEvent, useGridHeaderStyle, useGridDraggable, useAppGridBase } from './grid-control.util.mjs';
|
|
5
6
|
import './grid.css';
|
|
6
7
|
import { useRowEditPopover } from '../row-edit-popover/use-row-edit-popover.mjs';
|
|
7
8
|
import '../../../util/index.mjs';
|
|
@@ -164,6 +165,9 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
164
165
|
const {
|
|
165
166
|
headerCssVars
|
|
166
167
|
} = useGridHeaderStyle(tableRef, ns);
|
|
168
|
+
const {
|
|
169
|
+
cleanup = NOOP
|
|
170
|
+
} = useGridDraggable(tableRef, ns, c);
|
|
167
171
|
const renderNoData = () => {
|
|
168
172
|
var _a;
|
|
169
173
|
const {
|
|
@@ -227,8 +231,41 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
227
231
|
}
|
|
228
232
|
return renderChildColumn(c, model, renderColumns.value, index);
|
|
229
233
|
};
|
|
234
|
+
const renderDragIconColumn = () => {
|
|
235
|
+
return createVNode(resolveComponent("el-table-column"), {
|
|
236
|
+
"class-name": ns.e("drag-icon"),
|
|
237
|
+
"type": "default",
|
|
238
|
+
"width": "16"
|
|
239
|
+
}, {
|
|
240
|
+
default: () => {
|
|
241
|
+
return createVNode("svg", {
|
|
242
|
+
"viewBox": "0 0 16 16",
|
|
243
|
+
"class": "icon",
|
|
244
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
245
|
+
"height": "1em",
|
|
246
|
+
"width": "1em",
|
|
247
|
+
"preserveAspectRatio": "drag-icon",
|
|
248
|
+
"focusable": "false"
|
|
249
|
+
}, [createVNode("g", {
|
|
250
|
+
"id": "drag-icon/drag--",
|
|
251
|
+
"stroke-width": "1",
|
|
252
|
+
"fill-rule": "evenodd"
|
|
253
|
+
}, [createVNode("g", {
|
|
254
|
+
"id": "drag-icon",
|
|
255
|
+
"transform": "translate(5 1)",
|
|
256
|
+
"fill-rule": "nonzero"
|
|
257
|
+
}, [createVNode("path", {
|
|
258
|
+
"d": "M1 2a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM1 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm4 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",
|
|
259
|
+
"id": "drag-icon-air"
|
|
260
|
+
}, null)])])]);
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
};
|
|
230
264
|
onUnmounted(() => {
|
|
231
265
|
zIndex.decrement();
|
|
266
|
+
if (cleanup !== NOOP) {
|
|
267
|
+
cleanup();
|
|
268
|
+
}
|
|
232
269
|
});
|
|
233
270
|
return {
|
|
234
271
|
c,
|
|
@@ -251,7 +288,8 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
251
288
|
renderPopover,
|
|
252
289
|
defaultSort,
|
|
253
290
|
renderBatchToolBar,
|
|
254
|
-
headerCssVars
|
|
291
|
+
headerCssVars,
|
|
292
|
+
renderDragIconColumn
|
|
255
293
|
};
|
|
256
294
|
},
|
|
257
295
|
render() {
|
|
@@ -289,7 +327,7 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
289
327
|
}, {
|
|
290
328
|
empty: this.renderNoData,
|
|
291
329
|
default: () => {
|
|
292
|
-
return [!state.singleSelect && createVNode(resolveComponent("el-table-column"), {
|
|
330
|
+
return [this.c.enableRowEditOrder && this.renderDragIconColumn(), !state.singleSelect && createVNode(resolveComponent("el-table-column"), {
|
|
293
331
|
"class-name": this.ns.e("selection"),
|
|
294
332
|
"type": "selection",
|
|
295
333
|
"width": "55"
|
|
@@ -94,6 +94,7 @@ export declare const IBizGridControl: import("@ibiz-template/vue3-util").TypeWit
|
|
|
94
94
|
[key: string]: any;
|
|
95
95
|
}> | undefined;
|
|
96
96
|
headerCssVars: IData;
|
|
97
|
+
renderDragIconColumn: () => JSX.Element;
|
|
97
98
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
98
99
|
modelData: {
|
|
99
100
|
type: import("vue").PropType<import("@ibiz/model-core").IDEGrid>;
|
|
@@ -4,7 +4,7 @@ import '../grid-column/index.mjs';
|
|
|
4
4
|
import { IBizRowEditPopover } from '../row-edit-popover/row-edit-popover.mjs';
|
|
5
5
|
import { GridControl } from './grid.mjs';
|
|
6
6
|
import { GridProvider } from './grid.provider.mjs';
|
|
7
|
-
export { useAppGridBase, useAppGridPagination, useGridHeaderStyle, useITableEvent } from './grid-control.util.mjs';
|
|
7
|
+
export { useAppGridBase, useAppGridPagination, useGridDraggable, useGridHeaderStyle, useITableEvent } from './grid-control.util.mjs';
|
|
8
8
|
import { IBizGridFieldColumn } from '../grid-column/grid-field-column/index.mjs';
|
|
9
9
|
import { IBizGridUAColumn } from '../grid-column/grid-ua-column/index.mjs';
|
|
10
10
|
import { IBizGridFieldEditColumn } from '../grid-column/grid-field-edit-column/index.mjs';
|
|
@@ -22,6 +22,7 @@ export declare const GridFieldColumn: import("vue").DefineComponent<{
|
|
|
22
22
|
codeListValue: import("vue").ComputedRef<string>;
|
|
23
23
|
tooltip: import("vue").ComputedRef<string | undefined>;
|
|
24
24
|
zIndex: number | undefined;
|
|
25
|
+
items: import("vue").Ref<readonly IData[]>;
|
|
25
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
27
|
controller: {
|
|
27
28
|
type: typeof GridFieldColumnController;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useNamespace, useCodeListListen } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './grid-field-column.css';
|
|
4
4
|
import { GridFieldColumnController, GridRowState, ValueExUtil } from '@ibiz-template/runtime';
|
|
5
5
|
import { isNotNil } from 'ramda';
|
|
@@ -51,6 +51,16 @@ const GridFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
const onActionClick = async (detail, event) => {
|
|
52
52
|
await props.controller.onActionClick(detail, props.row, event);
|
|
53
53
|
};
|
|
54
|
+
const items = ref([]);
|
|
55
|
+
if (props.controller.codeList) {
|
|
56
|
+
items.value = props.controller.codeListItems;
|
|
57
|
+
}
|
|
58
|
+
const fn = (data) => {
|
|
59
|
+
if (data) {
|
|
60
|
+
items.value = data;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
useCodeListListen(props.controller.model.appCodeListId, props.controller.context.srfappid, fn);
|
|
54
64
|
return {
|
|
55
65
|
ns,
|
|
56
66
|
onCellClick,
|
|
@@ -62,7 +72,8 @@ const GridFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
62
72
|
formatValue,
|
|
63
73
|
codeListValue,
|
|
64
74
|
tooltip,
|
|
65
|
-
zIndex
|
|
75
|
+
zIndex,
|
|
76
|
+
items
|
|
66
77
|
};
|
|
67
78
|
},
|
|
68
79
|
render() {
|
|
@@ -85,7 +96,7 @@ const GridFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
85
96
|
} else if (c.codeList) {
|
|
86
97
|
content = createVNode(resolveComponent("iBizCodeList"), {
|
|
87
98
|
"class": this.ns.e("text"),
|
|
88
|
-
"codeListItems":
|
|
99
|
+
"codeListItems": this.items,
|
|
89
100
|
"codeList": c.codeList,
|
|
90
101
|
"value": this.codeListValue,
|
|
91
102
|
"onClick": this.onTextClick,
|
|
@@ -19,6 +19,7 @@ export declare const IBizGridFieldColumn: import("@ibiz-template/vue3-util").Typ
|
|
|
19
19
|
codeListValue: import("vue").ComputedRef<string>;
|
|
20
20
|
tooltip: import("vue").ComputedRef<string | undefined>;
|
|
21
21
|
zIndex: number | undefined;
|
|
22
|
+
items: import("vue").Ref<readonly IData[]>;
|
|
22
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
24
|
controller: {
|
|
24
25
|
type: typeof import("@ibiz-template/runtime").GridFieldColumnController;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { IBizGridControl } from './grid/index.mjs';
|
|
2
2
|
import './grid-column/index.mjs';
|
|
3
|
-
export { useAppGridBase, useAppGridPagination, useGridHeaderStyle, useITableEvent } from './grid/grid-control.util.mjs';
|
|
3
|
+
export { useAppGridBase, useAppGridPagination, useGridDraggable, useGridHeaderStyle, useITableEvent } from './grid/grid-control.util.mjs';
|
|
4
4
|
export { IBizGridFieldColumn } from './grid-column/grid-field-column/index.mjs';
|
|
5
5
|
export { IBizGridUAColumn } from './grid-column/grid-ua-column/index.mjs';
|
|
6
6
|
export { IBizGridFieldEditColumn } from './grid-column/grid-field-edit-column/index.mjs';
|
package/es/control/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ export { IBizMapControl } from './map/index.mjs';
|
|
|
25
25
|
export { IBizReportPanelControl } from './report-panel/index.mjs';
|
|
26
26
|
export { IBizGanttControl } from './gantt/index.mjs';
|
|
27
27
|
export { IBizContextMenuControl } from './context-menu/index.mjs';
|
|
28
|
-
export { useAppGridBase, useAppGridPagination, useGridHeaderStyle, useITableEvent } from './grid/grid/grid-control.util.mjs';
|
|
28
|
+
export { useAppGridBase, useAppGridPagination, useGridDraggable, useGridHeaderStyle, useITableEvent } from './grid/grid/grid-control.util.mjs';
|
|
29
29
|
export { IBizGridControl } from './grid/grid/index.mjs';
|
|
30
30
|
export { IBizGridFieldColumn } from './grid/grid-column/grid-field-column/index.mjs';
|
|
31
31
|
export { IBizGridUAColumn } from './grid/grid-column/grid-ua-column/index.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-kanban{--ibiz-control-kanban-text-color:var(--ibiz-color-text-0);--ibiz-control-kanban-font-size:var(--ibiz-font-size-regular);--ibiz-control-kanban-font-weight:var(--ibiz-font-weight-bold);--ibiz-control-kanban-hover-bg-color:var(--ibiz-color-fill-0);--ibiz-control-kanban-selected-bg-color:var(--ibiz-color-fill-0);--ibiz-control-kanban-group-header-height:48px;width:100%;height:100%}.ibiz-control-kanban--row .ibiz-control-kanban-group-container{display:flex;padding-bottom:var(--ibiz-spacing-tight);overflow:auto}.ibiz-control-kanban--row .ibiz-control-kanban-group-container>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse{width:32px}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header{position:relative;flex-direction:column;align-items:start;height:100%;padding:0}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header ion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header-caption{align-self:center;transform:rotate(90deg) translate(35px,0)}.ibiz-control-kanban--column .ibiz-control-kanban-group-container{display:flex;flex-direction:column}.ibiz-control-kanban--column .ibiz-control-kanban-group-container>*+*{margin-top:var(--ibiz-spacing-base)}.ibiz-control-kanban--column .ibiz-control-kanban-group.is-collapse{width:100%}.ibiz-control-kanban--column .ibiz-control-kanban-group.is-collapse ion-icon{transform:rotate(-90deg)}.ibiz-control-kanban-group-container{width:100%;height:100%}.ibiz-control-kanban-group{display:flex;flex-flow:column nowrap;flex-shrink:0;border:1px solid var(--ibiz-color-border);border-radius:4px;transition:all .3s}.ibiz-control-kanban-group__header{position:relative;height:var(--ibiz-control-kanban-group-header-height);padding:0 var(--ibiz-spacing-base);font-size:var(--ibiz-control-kanban-font-size);font-weight:var(--ibiz-control-kanban-font-weight);border-bottom:1px solid var(--ibiz-color-border);display:flex;align-items:center;justify-content:space-between}.ibiz-control-kanban-group__header::before{position:absolute;top:0;left:0;display:block;width:100%;content:"";border-color:inherit;border-top:2px solid}.ibiz-control-kanban-group__header-left{display:flex;align-items:center;justify-content:center}.ibiz-control-kanban-group__header-left ion-icon{margin-right:var(--ibiz-spacing-tight);transition:transform .3s}.ibiz-control-kanban-group__header-caption{padding:0 var(--ibiz-spacing-tight);white-space:nowrap;border-radius:100px}.ibiz-control-kanban-group__header-caption.is-badge{color:var(--ibiz-color-primary-active-text)}.ibiz-control-kanban-group__list{position:relative;flex:auto;width:100%;height:calc(100% - 48px);padding:0 var(--ibiz-spacing-tight);overflow:auto}.ibiz-control-kanban-group__draggable{min-height:100%;padding:var(--ibiz-spacing-base) 0}.ibiz-control-kanban-group__list.is-empty .ibiz-control-kanban__quicktoolbar{position:absolute;top:50%;width:calc(100% - var(--ibiz-spacing-base));transform:translateY(86px)}.ibiz-control-kanban-group__list.is-empty .ibiz-control-toolbar__item{justify-content:center}.ibiz-control-kanban-group__header-actions{width:32px;height:32px;padding:var(--ibiz-spacing-tight);margin-left:4px;font-size:var(--ibiz-control-kanban-font-size);color:var(--ibiz-color-primary);cursor:pointer;border-radius:50%}.ibiz-control-kanban-group__header-actions:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-control-kanban-group__actions-dropdown{padding:var(--ibiz-spacing-extra-tight) 0}.ibiz-control-kanban-group__actions-dropdown .ibiz-action-toolbar{display:flex;flex-flow:column nowrap}.ibiz-control-kanban-group__actions-dropdown .el-button{--el-button-size:var(--ibiz-height-control-large);justify-content:flex-start;width:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);margin:0;font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-primary-text)}.ibiz-control-kanban-group__actions-dropdown .el-button ion-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-control-kanban-group__actions-dropdown .el-button.is-text:not(.is-disabled):hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color)}.ibiz-control-kanban-item{cursor:pointer}.ibiz-control-kanban-item:hover{background-color:var(--ibiz-control-kanban-hover-bg-color)}.ibiz-control-kanban-item.is-selected{background-color:var(--ibiz-control-kanban-selected-bg-color)}.ibiz-control-kanban-item.is-disabled{cursor:no-drop}.ibiz-control-kanban-item+.ibiz-control-kanban-item{margin-top:var(--ibiz-spacing-base)}.ibiz-control-kanban{position:relative;padding-right:calc(var(--ibiz-control-kanban-group-header-height) + var(--ibiz-spacing-base))}.ibiz-control-kanban__quicktoolbar{display:flex;flex-flow:column nowrap;margin-bottom:var(--ibiz-spacing-base)}.ibiz-control-kanban__quicktoolbar>*+*{margin-top:var(--ibiz-spacing-tight)}.ibiz-control-kanban__full-btn{display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;width:var(--ibiz-control-kanban-group-header-height);height:var(--ibiz-control-kanban-group-header-height);font-size:var(--ibiz-font-size-header-4);font-weight:var(--ibiz-font-weight-regular);color:var(--ibiz-color-primary);background-color:var(--ibiz-color-bg-2);border:1px solid var(--ibiz-color-border)}.ibiz-control-kanban.is-full{padding:var(--ibiz-spacing-base);padding-right:calc(var(--ibiz-control-kanban-group-header-height) + var(--ibiz-spacing-extra-loose));background-color:var(--ibiz-color-bg-2)}.ibiz-control-kanban.is-full .ibiz-control-kanban__full-btn{top:var(--ibiz-spacing-base);right:var(--ibiz-spacing-base)}.ibiz-control-kanban-batch{padding:var(--ibiz-spacing-base-tight);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-kanban-batch__toolbar .ibiz-control-toolbar{flex-wrap:wrap;row-gap:var(--ibiz-spacing-tight)}.ibiz-control-kanban-batch__check{display:flex;align-items:center;justify-content:space-between;margin-top:var(--ibiz-spacing-base-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-control-kanban-batch__info span{margin:0 var(--ibiz-spacing-extra-tight);color:var(--ibiz-color-primary)}
|
|
1
|
+
.ibiz-control-kanban{--ibiz-control-kanban-text-color:var(--ibiz-color-text-0);--ibiz-control-kanban-font-size:var(--ibiz-font-size-regular);--ibiz-control-kanban-font-weight:var(--ibiz-font-weight-bold);--ibiz-control-kanban-hover-bg-color:var(--ibiz-color-fill-0);--ibiz-control-kanban-selected-bg-color:var(--ibiz-color-fill-0);--ibiz-control-kanban-group-header-height:48px;width:100%;height:100%}.ibiz-control-kanban--row .ibiz-control-kanban-group-container{display:flex;padding-bottom:var(--ibiz-spacing-tight);overflow:auto}.ibiz-control-kanban--row .ibiz-control-kanban-group-container>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse{width:32px}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header{position:relative;flex-direction:column;align-items:start;height:100%;padding:0}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header ion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ibiz-control-kanban--row .ibiz-control-kanban-group.is-collapse .ibiz-control-kanban-group__header-caption{align-self:center;transform:rotate(90deg) translate(35px,0)}.ibiz-control-kanban--column .ibiz-control-kanban-group-container{display:flex;flex-direction:column}.ibiz-control-kanban--column .ibiz-control-kanban-group-container>*+*{margin-top:var(--ibiz-spacing-base)}.ibiz-control-kanban--column .ibiz-control-kanban-group.is-collapse{width:100%}.ibiz-control-kanban--column .ibiz-control-kanban-group.is-collapse ion-icon{transform:rotate(-90deg)}.ibiz-control-kanban-group-container{width:100%;height:100%}.ibiz-control-kanban-group{display:flex;flex-flow:column nowrap;flex-shrink:0;border:1px solid var(--ibiz-color-border);border-radius:4px;transition:all .3s}.ibiz-control-kanban-group__header{position:relative;height:var(--ibiz-control-kanban-group-header-height);padding:0 var(--ibiz-spacing-base);font-size:var(--ibiz-control-kanban-font-size);font-weight:var(--ibiz-control-kanban-font-weight);border-bottom:1px solid var(--ibiz-color-border);display:flex;align-items:center;justify-content:space-between}.ibiz-control-kanban-group__header::before{position:absolute;top:0;left:0;display:block;width:100%;content:"";border-color:inherit;border-top:2px solid}.ibiz-control-kanban-group__header-left{display:flex;align-items:center;justify-content:center}.ibiz-control-kanban-group__header-left ion-icon{margin-right:var(--ibiz-spacing-tight);transition:transform .3s}.ibiz-control-kanban-group__header-caption{padding:0 var(--ibiz-spacing-tight);white-space:nowrap;border-radius:100px}.ibiz-control-kanban-group__header-caption.is-badge{color:var(--ibiz-color-primary-active-text)}.ibiz-control-kanban-group__list{position:relative;flex:auto;width:100%;height:calc(100% - 48px);padding:0 var(--ibiz-spacing-tight);overflow:auto}.ibiz-control-kanban-group__draggable{min-height:100%;padding:var(--ibiz-spacing-base) 0}.ibiz-control-kanban-group__list.is-empty .ibiz-control-kanban__quicktoolbar{position:absolute;top:50%;width:calc(100% - var(--ibiz-spacing-base));transform:translateY(86px)}.ibiz-control-kanban-group__list.is-empty .ibiz-control-toolbar__item{justify-content:center}.ibiz-control-kanban-group__header-actions{position:relative;z-index:100;width:32px;height:32px;padding:var(--ibiz-spacing-tight);margin-left:4px;font-size:var(--ibiz-control-kanban-font-size);color:var(--ibiz-color-primary);cursor:pointer;border-radius:50%}.ibiz-control-kanban-group__header-actions:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-control-kanban-group__actions-dropdown{padding:var(--ibiz-spacing-extra-tight) 0}.ibiz-control-kanban-group__actions-dropdown .ibiz-action-toolbar{display:flex;flex-flow:column nowrap}.ibiz-control-kanban-group__actions-dropdown .el-button{--el-button-size:var(--ibiz-height-control-large);justify-content:flex-start;width:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);margin:0;font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-primary-text)}.ibiz-control-kanban-group__actions-dropdown .el-button ion-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-control-kanban-group__actions-dropdown .el-button.is-text:not(.is-disabled):hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color)}.ibiz-control-kanban-item{cursor:pointer}.ibiz-control-kanban-item:hover{background-color:var(--ibiz-control-kanban-hover-bg-color)}.ibiz-control-kanban-item.is-selected{background-color:var(--ibiz-control-kanban-selected-bg-color)}.ibiz-control-kanban-item.is-disabled{cursor:no-drop}.ibiz-control-kanban-item+.ibiz-control-kanban-item{margin-top:var(--ibiz-spacing-base)}.ibiz-control-kanban{position:relative;padding-right:calc(var(--ibiz-control-kanban-group-header-height) + var(--ibiz-spacing-base))}.ibiz-control-kanban__quicktoolbar{display:flex;flex-flow:column nowrap;margin-bottom:var(--ibiz-spacing-base)}.ibiz-control-kanban__quicktoolbar>*+*{margin-top:var(--ibiz-spacing-tight)}.ibiz-control-kanban__full-btn{display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;width:var(--ibiz-control-kanban-group-header-height);height:var(--ibiz-control-kanban-group-header-height);font-size:var(--ibiz-font-size-header-4);font-weight:var(--ibiz-font-weight-regular);color:var(--ibiz-color-primary);background-color:var(--ibiz-color-bg-2);border:1px solid var(--ibiz-color-border)}.ibiz-control-kanban.is-full{padding:var(--ibiz-spacing-base);padding-right:calc(var(--ibiz-control-kanban-group-header-height) + var(--ibiz-spacing-extra-loose));background-color:var(--ibiz-color-bg-2)}.ibiz-control-kanban.is-full .ibiz-control-kanban__full-btn{top:var(--ibiz-spacing-base);right:var(--ibiz-spacing-base)}.ibiz-control-kanban-batch{padding:var(--ibiz-spacing-base-tight);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-kanban-batch__toolbar .ibiz-control-toolbar{flex-wrap:wrap;row-gap:var(--ibiz-spacing-tight)}.ibiz-control-kanban-batch__check{display:flex;align-items:center;justify-content:space-between;margin-top:var(--ibiz-spacing-base-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-control-kanban-batch__info span{margin:0 var(--ibiz-spacing-extra-tight);color:var(--ibiz-color-primary)}
|
|
@@ -292,7 +292,8 @@ const KanbanControl = /* @__PURE__ */ defineComponent({
|
|
|
292
292
|
}, null)]
|
|
293
293
|
}), showActionBar && createVNode(resolveComponent("el-dropdown"), {
|
|
294
294
|
"class": ns.be("group", "header-actions"),
|
|
295
|
-
"trigger": "click"
|
|
295
|
+
"trigger": "click",
|
|
296
|
+
"teleported": false
|
|
296
297
|
}, {
|
|
297
298
|
default: () => createVNode("span", null, [createTextVNode("\xB7\xB7\xB7")]),
|
|
298
299
|
dropdown: () => createVNode("div", {
|
package/es/control/tree/tree.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, ref, reactive, watch, computed, nextTick, resolveComponent, createVNode, onMounted,
|
|
1
|
+
import { isVNode, ref, reactive, onUnmounted, watch, computed, nextTick, resolveComponent, createVNode, onMounted, resolveDirective, withDirectives, defineComponent } from 'vue';
|
|
2
2
|
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { createUUID } from 'qx-util';
|
|
4
4
|
import { debounce } from 'lodash-es';
|
|
@@ -69,16 +69,21 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
69
69
|
const c = useControlController((...args) => new TreeController(...args));
|
|
70
70
|
const cascadeSelect = ref(false);
|
|
71
71
|
const counterData = reactive({});
|
|
72
|
+
const fn = (counter) => {
|
|
73
|
+
Object.assign(counterData, counter);
|
|
74
|
+
};
|
|
72
75
|
c.evt.on("onCreated", () => {
|
|
73
76
|
if (c.counter) {
|
|
74
|
-
c.counter.onChange(
|
|
75
|
-
Object.assign(counterData, counter);
|
|
76
|
-
}, true);
|
|
77
|
+
c.counter.onChange(fn, true);
|
|
77
78
|
}
|
|
78
79
|
if (c.controlParams.cascadeselect) {
|
|
79
80
|
cascadeSelect.value = true;
|
|
80
81
|
}
|
|
81
82
|
});
|
|
83
|
+
onUnmounted(() => {
|
|
84
|
+
var _a;
|
|
85
|
+
(_a = c.counter) == null ? void 0 : _a.offChange(fn);
|
|
86
|
+
});
|
|
82
87
|
const ns = useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
83
88
|
const treeRef = ref(null);
|
|
84
89
|
const treeviewRef = ref(null);
|
|
@@ -35,16 +35,15 @@ const WizardPanelControl = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
};
|
|
36
36
|
},
|
|
37
37
|
render() {
|
|
38
|
-
var _a, _b;
|
|
38
|
+
var _a, _b, _c, _d, _e;
|
|
39
39
|
const {
|
|
40
|
-
activeFormTag
|
|
40
|
+
activeFormTag,
|
|
41
|
+
buttonsState
|
|
41
42
|
} = this.c.state;
|
|
42
43
|
let stepsTitle = null;
|
|
43
44
|
let formComponent = null;
|
|
44
45
|
let footer = null;
|
|
45
46
|
if (activeFormTag && this.c.activeWizardForm) {
|
|
46
|
-
const wizardForm = this.c.activeWizardForm;
|
|
47
|
-
const supportActions = wizardForm.stepActions;
|
|
48
47
|
if (this.c.providers[activeFormTag]) {
|
|
49
48
|
const component = resolveComponent(this.c.providers[activeFormTag].component);
|
|
50
49
|
const editForm = (_a = this.c.model.deeditForms) == null ? void 0 : _a.find((_editForm) => {
|
|
@@ -64,22 +63,22 @@ const WizardPanelControl = /* @__PURE__ */ defineComponent({
|
|
|
64
63
|
const {
|
|
65
64
|
dewizard
|
|
66
65
|
} = this.c.model;
|
|
67
|
-
footer =
|
|
66
|
+
footer = dewizard && createVNode("div", {
|
|
68
67
|
"key": "".concat(activeFormTag, "footer"),
|
|
69
68
|
"class": this.ns.b("footer")
|
|
70
|
-
}, [
|
|
69
|
+
}, [((_b = buttonsState["".concat(activeFormTag, "@PREV")]) == null ? void 0 : _b.visible) && createVNode(resolveComponent("el-button"), {
|
|
71
70
|
"onClick": () => {
|
|
72
71
|
this.c.onPrevClick();
|
|
73
72
|
}
|
|
74
73
|
}, {
|
|
75
74
|
default: () => [dewizard.prevCaption ? dewizard.prevCaption : "\u540E\u9000"]
|
|
76
|
-
}),
|
|
75
|
+
}), ((_c = buttonsState["".concat(activeFormTag, "@NEXT")]) == null ? void 0 : _c.visible) && createVNode(resolveComponent("el-button"), {
|
|
77
76
|
"onClick": () => {
|
|
78
77
|
this.c.onNextClick();
|
|
79
78
|
}
|
|
80
79
|
}, {
|
|
81
80
|
default: () => [dewizard.nextCaption ? dewizard.nextCaption : "\u524D\u8FDB"]
|
|
82
|
-
}),
|
|
81
|
+
}), ((_d = buttonsState["".concat(activeFormTag, "@FINISH")]) == null ? void 0 : _d.visible) && createVNode(resolveComponent("el-button"), {
|
|
83
82
|
"onClick": () => {
|
|
84
83
|
this.c.onFinishClick();
|
|
85
84
|
}
|
|
@@ -91,7 +90,7 @@ const WizardPanelControl = /* @__PURE__ */ defineComponent({
|
|
|
91
90
|
} = dewizard;
|
|
92
91
|
if (this.c.model.showStepBar && dewizardSteps && dewizardSteps.length > 0) {
|
|
93
92
|
let _slot;
|
|
94
|
-
const active = this.c.steps.indexOf(this.c.stepTags["".concat(this.c.model.name, "_form_").concat((
|
|
93
|
+
const active = this.c.steps.indexOf(this.c.stepTags["".concat(this.c.model.name, "_form_").concat((_e = this.c.state.activeFormTag) == null ? void 0 : _e.toLowerCase())]) + 1;
|
|
95
94
|
stepsTitle = createVNode(resolveComponent("el-steps"), {
|
|
96
95
|
"class": this.ns.b("header"),
|
|
97
96
|
"align-center": true,
|
|
@@ -166,7 +166,7 @@ const IBizAutoComplete = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
"placeholder": this.c.placeHolder,
|
|
167
167
|
"placement": "bottom",
|
|
168
168
|
"clearable": this.autoCompleteClearable,
|
|
169
|
-
"popper-class":
|
|
169
|
+
"popper-class": this.ns.e("transfer"),
|
|
170
170
|
"teleported": !this.showFormDefaultContent,
|
|
171
171
|
"fetch-suggestions": this.onSearch,
|
|
172
172
|
"onClear": this.onClear,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, computed, ref, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { getCheckboxListProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { getCheckboxListProps, getEditorEmits, useNamespace, useCodeListListen, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { isNil } from 'ramda';
|
|
4
4
|
import './ibiz-checkbox-list.css';
|
|
5
5
|
|
|
@@ -38,6 +38,12 @@ const IBizCheckboxList = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
}
|
|
39
39
|
return "str";
|
|
40
40
|
});
|
|
41
|
+
const fn = (data) => {
|
|
42
|
+
if (data) {
|
|
43
|
+
items.value = data;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
41
47
|
let valueSeparator = ",";
|
|
42
48
|
if (codeList && codeList.valueSeparator) {
|
|
43
49
|
valueSeparator = codeList.valueSeparator;
|
|
@@ -33,6 +33,15 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
}, {
|
|
34
34
|
immediate: true
|
|
35
35
|
});
|
|
36
|
+
watch(() => props.readonly, (newVal) => {
|
|
37
|
+
if (editor) {
|
|
38
|
+
editor.updateOptions({
|
|
39
|
+
readOnly: newVal
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
immediate: true
|
|
44
|
+
});
|
|
36
45
|
const codeEditBox = ref();
|
|
37
46
|
const editorInit = () => {
|
|
38
47
|
nextTick(() => {
|
|
@@ -56,8 +65,11 @@ const IBizCode = /* @__PURE__ */ defineComponent({
|
|
|
56
65
|
minimap: {
|
|
57
66
|
enabled: true
|
|
58
67
|
},
|
|
59
|
-
readOnly:
|
|
68
|
+
readOnly: props.readonly,
|
|
60
69
|
// 只读
|
|
70
|
+
readOnlyMessage: {
|
|
71
|
+
value: "\u5F53\u524D\u4E3A\u53EA\u8BFB\u6A21\u5F0F\uFF0C\u4E0D\u53EF\u7F16\u8F91"
|
|
72
|
+
},
|
|
61
73
|
fontSize: 16,
|
|
62
74
|
// 字体大小
|
|
63
75
|
scrollBeyondLastLine: false,
|
|
@@ -259,7 +259,7 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
259
259
|
"value-key": this.c.textName,
|
|
260
260
|
"placeholder": this.c.placeHolder,
|
|
261
261
|
"clearable": true,
|
|
262
|
-
"popper-class":
|
|
262
|
+
"popper-class": this.ns.e("transfer"),
|
|
263
263
|
"fetch-suggestions": this.onSearch,
|
|
264
264
|
"onClear": this.onClear,
|
|
265
265
|
"onBlur": this.onBlur,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, ref, computed, watch, nextTick, onMounted, onUnmounted, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { getDropdownProps, getEditorEmits, useNamespace, useClickOutside } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { getDropdownProps, getEditorEmits, useNamespace, useCodeListListen, useClickOutside } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-dropdown.css';
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
@@ -26,6 +26,7 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
const isLoading = ref(false);
|
|
27
27
|
let editorState = "";
|
|
28
28
|
let funcs;
|
|
29
|
+
const codeItemValueNumber = ref(false);
|
|
29
30
|
const showFormDefaultContent = computed(() => {
|
|
30
31
|
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
31
32
|
return true;
|
|
@@ -64,6 +65,13 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
64
65
|
return list;
|
|
65
66
|
};
|
|
66
67
|
const loadCodeList = async () => {
|
|
68
|
+
if (c.model.appCodeListId) {
|
|
69
|
+
const app = ibiz.hub.getApp(c.context.srfappid);
|
|
70
|
+
const codeListModel = app.codeList.getCodeList(c.model.appCodeListId);
|
|
71
|
+
if (codeListModel) {
|
|
72
|
+
codeItemValueNumber.value = codeListModel.codeItemValueNumber || false;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
67
75
|
isLoading.value = true;
|
|
68
76
|
const codeList = await c.loadCodeList(props.data);
|
|
69
77
|
isLoadedCodeList.value = true;
|
|
@@ -102,20 +110,20 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
102
110
|
};
|
|
103
111
|
const curValue = computed({
|
|
104
112
|
get() {
|
|
105
|
-
var _a, _b;
|
|
113
|
+
var _a, _b, _c;
|
|
106
114
|
if (!isLoadedCodeList.value) {
|
|
107
115
|
return c.multiple ? [] : "";
|
|
108
116
|
}
|
|
109
117
|
if (editorItems && editorItems.length > 0 && !c.multiple) {
|
|
110
|
-
return props.data[editorItems[0].id];
|
|
118
|
+
return (_a = props.data[editorItems[0].id]) == null ? void 0 : _a.toString();
|
|
111
119
|
}
|
|
112
120
|
if (props.value && typeof props.value === "string") {
|
|
113
|
-
return c.multiple ? (
|
|
121
|
+
return c.multiple ? (_b = props.value) == null ? void 0 : _b.toString().split(",") : props.value.toString();
|
|
114
122
|
}
|
|
115
123
|
if (props.value && Array.isArray(props.value)) {
|
|
116
124
|
return c.multiple ? props.value : props.value.toString();
|
|
117
125
|
}
|
|
118
|
-
return (
|
|
126
|
+
return (_c = props.value) == null ? void 0 : _c.toString();
|
|
119
127
|
},
|
|
120
128
|
set(select) {
|
|
121
129
|
if (Array.isArray(select)) {
|
|
@@ -129,13 +137,13 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
129
137
|
}
|
|
130
138
|
emit("change", selectArr);
|
|
131
139
|
} else if (editorItems && editorItems.length > 0) {
|
|
132
|
-
emit("change", select, editorItems[0].id);
|
|
133
|
-
const selectItem = getCodeListItemByValue(select);
|
|
140
|
+
emit("change", codeItemValueNumber.value ? Number(select) : select, editorItems[0].id);
|
|
141
|
+
const selectItem = getCodeListItemByValue(codeItemValueNumber.value ? Number(select) : select);
|
|
134
142
|
if (selectItem) {
|
|
135
143
|
emit("change", selectItem.text);
|
|
136
144
|
}
|
|
137
145
|
} else {
|
|
138
|
-
emit("change", select);
|
|
146
|
+
emit("change", codeItemValueNumber.value ? Number(select) : select);
|
|
139
147
|
}
|
|
140
148
|
setEditable(false);
|
|
141
149
|
}
|
|
@@ -146,7 +154,7 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
146
154
|
const textArr = [];
|
|
147
155
|
valueArr.forEach((item) => {
|
|
148
156
|
list.forEach((codeItem) => {
|
|
149
|
-
if (codeItem.value === item) {
|
|
157
|
+
if (codeItemValueNumber.value ? codeItem.value === Number(item) : codeItem.value === item) {
|
|
150
158
|
textArr.push(codeItem.text);
|
|
151
159
|
}
|
|
152
160
|
});
|
|
@@ -197,6 +205,12 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
197
205
|
}
|
|
198
206
|
}
|
|
199
207
|
};
|
|
208
|
+
const fn = (data) => {
|
|
209
|
+
if (data) {
|
|
210
|
+
items.value = data;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
200
214
|
onMounted(() => {
|
|
201
215
|
if (editorRef.value) {
|
|
202
216
|
funcs = useClickOutside(editorRef, async (_evt) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, computed, ref, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { getListBoxProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { getListBoxProps, getEditorEmits, useNamespace, useCodeListListen, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { isNil } from 'ramda';
|
|
4
4
|
import './ibiz-list-box.css';
|
|
5
5
|
|
|
@@ -52,6 +52,12 @@ const IBizListBox = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
loadListBoxItems();
|
|
55
|
+
const fn = (data) => {
|
|
56
|
+
if (data) {
|
|
57
|
+
items.value = data;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
55
61
|
const currentMode = computed(() => {
|
|
56
62
|
if (codeList && codeList.orMode) {
|
|
57
63
|
return codeList.orMode.toLowerCase();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, ref, watch, computed, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { getRadioProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { getRadioProps, getEditorEmits, useNamespace, useCodeListListen, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-radio.css';
|
|
4
4
|
import { notNilEmpty } from 'qx-util';
|
|
5
5
|
|
|
@@ -39,6 +39,12 @@ const IBizRadio = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
immediate: true,
|
|
40
40
|
deep: true
|
|
41
41
|
});
|
|
42
|
+
const fn = (data) => {
|
|
43
|
+
if (data) {
|
|
44
|
+
items.value = data;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
42
48
|
const valueText = computed(() => {
|
|
43
49
|
var _a;
|
|
44
50
|
return ((_a = items.value.find((item) => item.value == props.value)) == null ? void 0 : _a.text) || "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, computed, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { getSpanProps, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { getSpanProps, useNamespace, useCodeListListen, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './span.css';
|
|
4
4
|
import { isNil } from 'ramda';
|
|
5
5
|
import { DataTypes } from '@ibiz-template/core';
|
|
@@ -95,6 +95,12 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
deep: true
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
+
const fn = (data) => {
|
|
99
|
+
if (data) {
|
|
100
|
+
items.value = data;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
98
104
|
const {
|
|
99
105
|
componentRef: editorRef
|
|
100
106
|
} = useFocusAndBlur(() => emit("focus"), () => emit("blur"));
|
package/es/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ export { IBizSplitTrigger } from './common/split-trigger/split-trigger.mjs';
|
|
|
17
17
|
export { IBizSortBar } from './common/sort-bar/sort-bar.mjs';
|
|
18
18
|
export { IBizAppMenuControl } from './control/app-menu/index.mjs';
|
|
19
19
|
export { IBizAppMenuIconViewControl } from './control/app-menu-icon-view/index.mjs';
|
|
20
|
-
export { useAppGridBase, useAppGridPagination, useGridHeaderStyle, useITableEvent } from './control/grid/grid/grid-control.util.mjs';
|
|
20
|
+
export { useAppGridBase, useAppGridPagination, useGridDraggable, useGridHeaderStyle, useITableEvent } from './control/grid/grid/grid-control.util.mjs';
|
|
21
21
|
export { IBizGridControl } from './control/grid/grid/index.mjs';
|
|
22
22
|
export { IBizGridFieldColumn } from './control/grid/grid-column/grid-field-column/index.mjs';
|
|
23
23
|
export { IBizGridUAColumn } from './control/grid/grid-column/grid-ua-column/index.mjs';
|
|
@@ -35,6 +35,14 @@ export declare class NavPosIndexController extends PanelItemController<IPanelRaw
|
|
|
35
35
|
* @type {boolean}
|
|
36
36
|
*/
|
|
37
37
|
autoGoLast: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* 无缓存
|
|
40
|
+
* @author lxm
|
|
41
|
+
* @date 2024-04-22 04:12:41
|
|
42
|
+
* @readonly
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
*/
|
|
45
|
+
noCache: boolean;
|
|
38
46
|
protected createState(): NavPosIndexState;
|
|
39
47
|
setRouter(router: Router): void;
|
|
40
48
|
/**
|
|
@@ -60,6 +68,16 @@ export declare class NavPosIndexController extends PanelItemController<IPanelRaw
|
|
|
60
68
|
* @type {(IAppMenuController | undefined)}
|
|
61
69
|
*/
|
|
62
70
|
get appmenu(): IAppMenuController | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* 自定义补充参数
|
|
73
|
+
*
|
|
74
|
+
* @author zk
|
|
75
|
+
* @date 2023-09-27 03:09:02
|
|
76
|
+
* @type {IData}
|
|
77
|
+
* @memberof NavPosController
|
|
78
|
+
*/
|
|
79
|
+
rawItemParams: IData;
|
|
80
|
+
protected onInit(): Promise<void>;
|
|
63
81
|
/**
|
|
64
82
|
* 改变显示视图
|
|
65
83
|
* @author lxm
|
|
@@ -124,4 +142,13 @@ export declare class NavPosIndexController extends PanelItemController<IPanelRaw
|
|
|
124
142
|
* @protected
|
|
125
143
|
*/
|
|
126
144
|
protected goLast(): void;
|
|
145
|
+
/**
|
|
146
|
+
* 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
|
|
147
|
+
*
|
|
148
|
+
* @author zk
|
|
149
|
+
* @date 2023-09-27 03:09:55
|
|
150
|
+
* @protected
|
|
151
|
+
* @memberof NavPosController
|
|
152
|
+
*/
|
|
153
|
+
protected handleRawItemParams(): void;
|
|
127
154
|
}
|