@ibiz-template/vue3-components 0.7.41-alpha.6 → 0.7.41-alpha.8
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-4CBJktLS.js → index-CsiyXR27.js} +1 -1
- package/dist/index-bg15JdWL.js +4 -0
- package/dist/{index-QL7Ukex9.js → index-tjsobxd3.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-kEzIt0zV.js → wang-editor-7B_U_6_C.js} +1 -1
- package/dist/{xlsx-util-_VPcoWqm.js → xlsx-util-J0IypI5_.js} +1 -1
- package/es/common/editor-empty-text/editor-empty-text.css +1 -0
- package/es/common/editor-empty-text/editor-empty-text.d.ts +25 -0
- package/es/common/editor-empty-text/editor-empty-text.mjs +31 -0
- package/es/common/index.mjs +2 -0
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.mjs +4 -4
- package/es/control/drbar/drbar.controller.mjs +3 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.mjs +3 -5
- package/es/control/drtab/drtab.d.ts +13 -0
- package/es/control/drtab/drtab.mjs +7 -1
- package/es/control/drtab/index.d.ts +7 -0
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.d.ts +2 -2
- package/es/control/kanban/kanban.mjs +14 -9
- package/es/control/kanban/lane-kanban/lane-kanban.css +1 -0
- package/es/control/kanban/lane-kanban/lane-kanban.d.ts +27 -0
- package/es/control/kanban/lane-kanban/lane-kanban.mjs +409 -0
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.mjs +232 -132
- package/es/control/tree/el-tree-util.d.ts +11 -0
- package/es/control/tree/el-tree-util.mjs +35 -1
- package/es/control/tree/index.d.ts +1 -0
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +2 -2
- package/es/control/tree/tree.mjs +61 -5
- package/es/control/wizard-panel/wizard-panel.css +1 -1
- package/es/control/wizard-panel/wizard-panel.mjs +24 -8
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +4 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +4 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +4 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +11 -12
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +17 -17
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +10 -9
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +4 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +4 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +4 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +4 -1
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +4 -1
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.mjs +4 -1
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +4 -1
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +2 -2
- package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +2 -0
- package/es/editor/span/span/span.d.ts +3 -3
- package/es/editor/span/span/span.mjs +7 -4
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +2 -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 +2 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +5 -2
- package/es/editor/text-box/input/input.d.ts +4 -3
- package/es/editor/text-box/input/input.mjs +6 -3
- package/es/locale/en/index.d.ts +6 -0
- package/es/locale/en/index.mjs +5 -0
- package/es/locale/zh-CN/index.d.ts +6 -0
- package/es/locale/zh-CN/index.mjs +5 -0
- package/es/panel-component/app-extend-menu/bottom-side-menu/bottom-side-menu.css +1 -1
- package/es/panel-component/app-extend-menu/extend-menu-base/common-extend-menu/common-extend-menu.d.ts +1 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/common-extend-menu/common-extend-menu.mjs +25 -4
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-button-menu/extend-button-menu.css +1 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-button-menu/extend-button-menu.d.ts +2030 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-button-menu/extend-button-menu.mjs +231 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-menu-base.util.d.ts +166 -0
- package/es/panel-component/app-extend-menu/extend-menu-base/extend-menu-base.util.mjs +339 -0
- package/es/panel-component/app-extend-menu/left-side-menu/left-side-menu.css +1 -1
- package/es/panel-component/app-extend-menu/right-side-menu/right-side-menu.css +1 -1
- package/es/panel-component/app-extend-menu/top-side-menu/top-side-menu.css +1 -1
- package/es/util/app-util/app-util.d.ts +6 -0
- package/es/util/app-util/app-util.mjs +8 -0
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/app-start-view.engine.d.ts +12 -0
- package/es/view-engine/app-start-view.engine.mjs +11 -0
- package/es/view-engine/app-welcome-view.engine.d.ts +12 -0
- package/es/view-engine/app-welcome-view.engine.mjs +11 -0
- package/es/view-engine/edit-view.engine.d.ts +11 -2
- package/es/view-engine/edit-view.engine.mjs +23 -8
- package/es/view-engine/edit-view4.engine.mjs +4 -0
- package/es/view-engine/index.mjs +10 -0
- package/es/view-engine/opt-view.engine.d.ts +11 -2
- package/es/view-engine/opt-view.engine.mjs +23 -8
- package/es/view-engine/tab-exp-view.engine.mjs +1 -0
- package/lib/common/editor-empty-text/editor-empty-text.cjs +33 -0
- package/lib/common/editor-empty-text/editor-empty-text.css +1 -0
- package/lib/common/index.cjs +2 -0
- package/lib/control/data-view/data-view.cjs +4 -4
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +3 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +7 -1
- package/lib/control/drtab/drtab.controller.cjs +3 -5
- package/lib/control/kanban/kanban.cjs +14 -9
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/kanban/lane-kanban/lane-kanban.cjs +411 -0
- package/lib/control/kanban/lane-kanban/lane-kanban.css +1 -0
- package/lib/control/toolbar/toolbar.cjs +232 -132
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/control/tree/el-tree-util.cjs +35 -0
- package/lib/control/tree/tree.cjs +59 -3
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/wizard-panel/wizard-panel.cjs +23 -7
- package/lib/control/wizard-panel/wizard-panel.css +1 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +4 -1
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +4 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +4 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +11 -12
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +17 -17
- package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.cjs +9 -8
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +4 -1
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +4 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +4 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +4 -1
- package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +4 -1
- package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.cjs +4 -1
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +4 -1
- package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +2 -0
- package/lib/editor/span/span/span.cjs +7 -4
- package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +2 -1
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +5 -2
- package/lib/editor/text-box/input/input.cjs +6 -3
- package/lib/locale/en/index.cjs +5 -0
- package/lib/locale/zh-CN/index.cjs +5 -0
- package/lib/panel-component/app-extend-menu/bottom-side-menu/bottom-side-menu.css +1 -1
- package/lib/panel-component/app-extend-menu/extend-menu-base/common-extend-menu/common-extend-menu.cjs +24 -3
- package/lib/panel-component/app-extend-menu/extend-menu-base/extend-button-menu/extend-button-menu.cjs +233 -0
- package/lib/panel-component/app-extend-menu/extend-menu-base/extend-button-menu/extend-button-menu.css +1 -0
- package/lib/panel-component/app-extend-menu/extend-menu-base/extend-menu-base.util.cjs +344 -0
- package/lib/panel-component/app-extend-menu/left-side-menu/left-side-menu.css +1 -1
- package/lib/panel-component/app-extend-menu/right-side-menu/right-side-menu.css +1 -1
- package/lib/panel-component/app-extend-menu/top-side-menu/top-side-menu.css +1 -1
- package/lib/util/app-util/app-util.cjs +8 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/app-start-view.engine.cjs +13 -0
- package/lib/view-engine/app-welcome-view.engine.cjs +13 -0
- package/lib/view-engine/edit-view.engine.cjs +23 -8
- package/lib/view-engine/edit-view4.engine.cjs +4 -0
- package/lib/view-engine/index.cjs +10 -0
- package/lib/view-engine/opt-view.engine.cjs +23 -8
- package/lib/view-engine/tab-exp-view.engine.cjs +1 -0
- package/package.json +8 -8
- package/dist/index-2Djp0sQl.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.2_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.7_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.2_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.7_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
package/es/control/tree/tree.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, ref, onUnmounted, watch,
|
|
1
|
+
import { isVNode, ref, onUnmounted, watch, nextTick, computed, resolveComponent, createVNode, onMounted, mergeProps, 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 { cloneDeep, debounce } from 'lodash-es';
|
|
@@ -6,7 +6,7 @@ import { TreeController, AppDataEntity, PanelItemEventName } from '@ibiz-templat
|
|
|
6
6
|
import './tree.css';
|
|
7
7
|
import { RuntimeError } from '@ibiz-template/core';
|
|
8
8
|
import { isNil } from 'ramda';
|
|
9
|
-
import { useAppTreeBase, getNewNodeControlPanel, findNodeData, useElTreeUtil, findChildItems, formatNodeDropType, getNodeControlPanel } from './el-tree-util.mjs';
|
|
9
|
+
import { useAppTreeBase, getNewNodeControlPanel, findNodeData, useElTreeUtil, useLoadMoreUtil, findChildItems, formatNodeDropType, getNodeControlPanel } from './el-tree-util.mjs';
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
12
|
function _isSlot(s) {
|
|
@@ -305,6 +305,9 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
305
305
|
updateUI,
|
|
306
306
|
triggerNodeExpand
|
|
307
307
|
} = useElTreeUtil(treeRef, c);
|
|
308
|
+
const {
|
|
309
|
+
addLoadMoreNode
|
|
310
|
+
} = useLoadMoreUtil(treeRef, c);
|
|
308
311
|
const toElNodes = (nodes) => {
|
|
309
312
|
return nodes.map((node) => ({
|
|
310
313
|
_id: node._id,
|
|
@@ -323,6 +326,9 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
323
326
|
const elNodes = toElNodes(children);
|
|
324
327
|
treeRef.value.updateKeyChildren(parentNode._id, elNodes);
|
|
325
328
|
updateUI();
|
|
329
|
+
nextTick(() => {
|
|
330
|
+
addLoadMoreNode(parentNode._id, parentNode);
|
|
331
|
+
});
|
|
326
332
|
}
|
|
327
333
|
});
|
|
328
334
|
c.evt.on("onAfterNodeDrop", (event) => {
|
|
@@ -386,6 +392,10 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
386
392
|
ibiz.log.debug("\u7ED9\u6811\u8FD4\u56DE\u503C", nodes);
|
|
387
393
|
callback(toElNodes(nodes));
|
|
388
394
|
updateUI();
|
|
395
|
+
nextTick(() => {
|
|
396
|
+
var _a, _b, _c;
|
|
397
|
+
addLoadMoreNode(item.level === 0 ? (_b = (_a = c.state.rootNodes) == null ? void 0 : _a[0]) == null ? void 0 : _b._id : (_c = item.data) == null ? void 0 : _c._id, item);
|
|
398
|
+
});
|
|
389
399
|
};
|
|
390
400
|
let selectionWait = false;
|
|
391
401
|
c.evt.on("onLoadSuccess", () => {
|
|
@@ -633,12 +643,20 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
633
643
|
debounceSearch();
|
|
634
644
|
};
|
|
635
645
|
const allowDrop = (draggingNode, dropNode, type) => {
|
|
646
|
+
var _a;
|
|
647
|
+
if ((_a = dropNode.data) == null ? void 0 : _a._load_more) {
|
|
648
|
+
return false;
|
|
649
|
+
}
|
|
636
650
|
const draggingNodeData = findNodeData(draggingNode.data._uuid, c);
|
|
637
651
|
const dropNodeData = findNodeData(dropNode.data._uuid, c);
|
|
638
652
|
const result = c.calcAllowDrop(draggingNodeData, dropNodeData, type);
|
|
639
653
|
return result;
|
|
640
654
|
};
|
|
641
655
|
const allowDrag = (draggingNode) => {
|
|
656
|
+
var _a;
|
|
657
|
+
if ((_a = draggingNode.data) == null ? void 0 : _a._load_more) {
|
|
658
|
+
return false;
|
|
659
|
+
}
|
|
642
660
|
const nodeData = findNodeData(draggingNode.data._uuid, c);
|
|
643
661
|
return c.calcAllowDrag(nodeData);
|
|
644
662
|
};
|
|
@@ -724,6 +742,28 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
724
742
|
}
|
|
725
743
|
}, null)]);
|
|
726
744
|
};
|
|
745
|
+
const handleLoadMore = async (e, item) => {
|
|
746
|
+
var _a, _b;
|
|
747
|
+
e.stopPropagation();
|
|
748
|
+
if (!item) {
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
if (item.level === 0) {
|
|
752
|
+
await c.loadNodes(void 0, true);
|
|
753
|
+
return;
|
|
754
|
+
}
|
|
755
|
+
const nodeData = findNodeData((_a = item.data) == null ? void 0 : _a._uuid, c);
|
|
756
|
+
if (!nodeData) {
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
await c.loadNodes(nodeData, true);
|
|
760
|
+
const elNodes = toElNodes(nodeData._children || []);
|
|
761
|
+
(_b = treeRef.value) == null ? void 0 : _b.updateKeyChildren(nodeData._id, elNodes);
|
|
762
|
+
updateUI();
|
|
763
|
+
nextTick(() => {
|
|
764
|
+
addLoadMoreNode(nodeData._id, nodeData);
|
|
765
|
+
});
|
|
766
|
+
};
|
|
727
767
|
return {
|
|
728
768
|
c,
|
|
729
769
|
ns,
|
|
@@ -752,7 +792,8 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
752
792
|
handleDrop,
|
|
753
793
|
onNodeTextEditBlur,
|
|
754
794
|
renderNewNode,
|
|
755
|
-
handleEditKeyDown
|
|
795
|
+
handleEditKeyDown,
|
|
796
|
+
handleLoadMore
|
|
756
797
|
};
|
|
757
798
|
},
|
|
758
799
|
render() {
|
|
@@ -794,7 +835,13 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
794
835
|
label: "_text",
|
|
795
836
|
children: "_children",
|
|
796
837
|
isLeaf: "_leaf",
|
|
797
|
-
disabled: "_disableSelect"
|
|
838
|
+
disabled: "_disableSelect",
|
|
839
|
+
class: (data) => {
|
|
840
|
+
if (data == null ? void 0 : data._load_more) {
|
|
841
|
+
return this.ns.is("load-more", true);
|
|
842
|
+
}
|
|
843
|
+
return "";
|
|
844
|
+
}
|
|
798
845
|
},
|
|
799
846
|
"lazy": true,
|
|
800
847
|
"load": this.loadData,
|
|
@@ -811,9 +858,18 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
811
858
|
"onNodeDrop": this.handleDrop
|
|
812
859
|
}, this.$attrs), {
|
|
813
860
|
default: ({
|
|
814
|
-
data
|
|
861
|
+
data,
|
|
862
|
+
node
|
|
815
863
|
}) => {
|
|
816
864
|
var _a, _b;
|
|
865
|
+
if (data._load_more) {
|
|
866
|
+
return createVNode("div", {
|
|
867
|
+
"class": this.ns.b("node"),
|
|
868
|
+
"onClick": (e) => {
|
|
869
|
+
this.handleLoadMore(e, node == null ? void 0 : node.parent);
|
|
870
|
+
}
|
|
871
|
+
}, [data._text]);
|
|
872
|
+
}
|
|
817
873
|
if (this.newNodeKey === data._id)
|
|
818
874
|
return this.renderNewNode();
|
|
819
875
|
const nodeData = this.findNodeData(data._uuid, this.c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.ibiz-control-wizardpanel{--ibiz-control-wizard-panel-header-height:60px;--ibiz-control-wizard-panel-footer-height:40px;height:100%}.ibiz-control-wizardpanel .ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height));overflow:auto}.ibiz-control-wizardpanel.is-header .ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height) - var(--ibiz-control-wizard-panel-header-height))}.ibiz-control-wizardpanel-header{height:var(--ibiz-control-wizard-panel-header-height)}.ibiz-control-wizardpanel-footer{display:flex;align-items:center;justify-content:flex-end;height:var(--ibiz-control-wizard-panel-footer-height);padding-right:var(--ibiz-padding)}
|
|
1
|
+
@charset "UTF-8";.ibiz-control-wizardpanel{--ibiz-control-wizard-panel-header-height:60px;--ibiz-control-wizard-panel-footer-height:40px;--ibiz-control-wizard-panel-step-icon-width:22px;height:100%}.ibiz-control-wizardpanel .ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height));overflow:auto}.ibiz-control-wizardpanel.is-header .ibiz-control-wizardpanel__form{height:calc(100% - var(--ibiz-control-wizard-panel-footer-height) - var(--ibiz-control-wizard-panel-header-height))}.ibiz-control-wizardpanel-header{height:var(--ibiz-control-wizard-panel-header-height)}.ibiz-control-wizardpanel-header--step-icon{font-size:var(--ibiz-control-wizard-panel-step-icon-width)}.ibiz-control-wizardpanel-header .el-step__icon{--el-bg-color:var(--ibiz-color-bg-1)}.ibiz-control-wizardpanel-footer{display:flex;align-items:center;justify-content:flex-end;height:var(--ibiz-control-wizard-panel-footer-height);padding-right:var(--ibiz-padding)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode, resolveComponent, h, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { useControlController, useNamespace, IBizIcon } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './wizard-panel.css';
|
|
4
4
|
import { WizardPanelController } from '@ibiz-template/runtime';
|
|
5
5
|
import { showTitle } from '@ibiz-template/core';
|
|
@@ -105,7 +105,7 @@ const WizardPanelControl = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
dewizardSteps
|
|
106
106
|
} = dewizard;
|
|
107
107
|
if (this.c.model.showStepBar && dewizardSteps && dewizardSteps.length > 0) {
|
|
108
|
-
let
|
|
108
|
+
let _slot2;
|
|
109
109
|
let 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())]);
|
|
110
110
|
if (active === -1)
|
|
111
111
|
active = 0;
|
|
@@ -114,12 +114,28 @@ const WizardPanelControl = /* @__PURE__ */ defineComponent({
|
|
|
114
114
|
"align-center": true,
|
|
115
115
|
"finish-status": "success",
|
|
116
116
|
"active": active
|
|
117
|
-
}, _isSlot(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
}, _isSlot(_slot2 = dewizardSteps.map((step) => {
|
|
118
|
+
const _slot = {
|
|
119
|
+
title: () => {
|
|
120
|
+
var _a2;
|
|
121
|
+
return createVNode("span", {
|
|
122
|
+
"class": [this.ns.bm("header", "title"), (_a2 = step.titleSysCss) == null ? void 0 : _a2.cssName]
|
|
123
|
+
}, [showTitle(step.title)]);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
if (step.sysImage) {
|
|
127
|
+
Object.assign(_slot, {
|
|
128
|
+
icon: () => createVNode(IBizIcon, {
|
|
129
|
+
"class": this.ns.bm("header", "step-icon"),
|
|
130
|
+
"icon": step.sysImage
|
|
131
|
+
}, null)
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return createVNode(resolveComponent("el-step"), null, _isSlot(_slot) ? _slot : {
|
|
135
|
+
default: () => [_slot]
|
|
136
|
+
});
|
|
137
|
+
})) ? _slot2 : {
|
|
138
|
+
default: () => [_slot2]
|
|
123
139
|
});
|
|
124
140
|
}
|
|
125
141
|
}
|
|
@@ -292,7 +292,10 @@ const IBizAutoComplete = /* @__PURE__ */ defineComponent({
|
|
|
292
292
|
}, [this.curValue]);
|
|
293
293
|
const formDefaultContent = createVNode("div", {
|
|
294
294
|
"class": this.ns.b("form-default-content")
|
|
295
|
-
}, [this.curValue ? this.curValue :
|
|
295
|
+
}, [this.curValue ? this.curValue : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
296
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
297
|
+
"placeHolder": this.c.placeHolder
|
|
298
|
+
}, null)]);
|
|
296
299
|
return createVNode("div", {
|
|
297
300
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)]
|
|
298
301
|
}, [this.showFormDefaultContent && formDefaultContent, this.readonly ? readonlyContent : editContent]);
|
|
@@ -467,7 +467,10 @@ const IBizCascader = /* @__PURE__ */ defineComponent({
|
|
|
467
467
|
}, [this.valueText]);
|
|
468
468
|
const formDefaultContent = createVNode("div", {
|
|
469
469
|
"class": this.ns.b("form-default-content")
|
|
470
|
-
}, [this.valueText ? this.valueText :
|
|
470
|
+
}, [this.valueText ? this.valueText : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
471
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
472
|
+
"placeHolder": this.c.placeHolder
|
|
473
|
+
}, null)]);
|
|
471
474
|
return createVNode("div", {
|
|
472
475
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
473
476
|
"onKeyup": this.handleKeyUp
|
|
@@ -371,7 +371,10 @@ const IBizMPicker = /* @__PURE__ */ defineComponent({
|
|
|
371
371
|
return createVNode("span", {
|
|
372
372
|
"class": this.ns.b("content-item")
|
|
373
373
|
}, [item[this.c.textName]]);
|
|
374
|
-
}) :
|
|
374
|
+
}) : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
375
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
376
|
+
"placeHolder": this.c.placeHolder
|
|
377
|
+
}, null)]);
|
|
375
378
|
return createVNode("div", {
|
|
376
379
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)]
|
|
377
380
|
}, [this.showFormDefaultContent && formDefaultContent, this.readonly ? readonlyContent : editContent]);
|
|
@@ -28,20 +28,18 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
return false;
|
|
29
29
|
});
|
|
30
30
|
const resetCurValue = () => {
|
|
31
|
-
const
|
|
31
|
+
const {
|
|
32
|
+
value
|
|
33
|
+
} = props;
|
|
32
34
|
if (c.model.valueType === "OBJECT") {
|
|
33
|
-
curValue.value = value ? value[c.objectNameField] : null;
|
|
35
|
+
curValue.value = value && c.objectNameField ? value[c.objectNameField] : null;
|
|
34
36
|
} else {
|
|
35
37
|
curValue.value = value;
|
|
36
38
|
}
|
|
37
|
-
if (value === null) {
|
|
38
|
-
curValue.value = "";
|
|
39
|
-
}
|
|
40
39
|
const valueItem = props.data[c.valueItem];
|
|
41
40
|
const index = items.value.findIndex((item) => Object.is(item[c.keyName], valueItem));
|
|
42
|
-
if (index !== -1)
|
|
41
|
+
if (index !== -1)
|
|
43
42
|
return;
|
|
44
|
-
}
|
|
45
43
|
items.value = [];
|
|
46
44
|
if (value && !isEmpty(valueItem)) {
|
|
47
45
|
items.value.push({
|
|
@@ -50,10 +48,8 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
50
48
|
});
|
|
51
49
|
}
|
|
52
50
|
};
|
|
53
|
-
watch(() => props.value, (
|
|
54
|
-
|
|
55
|
-
resetCurValue();
|
|
56
|
-
}
|
|
51
|
+
watch(() => props.value, () => {
|
|
52
|
+
resetCurValue();
|
|
57
53
|
}, {
|
|
58
54
|
immediate: true
|
|
59
55
|
});
|
|
@@ -374,7 +370,10 @@ const IBizPicker = /* @__PURE__ */ defineComponent({
|
|
|
374
370
|
}, [this.valueText]);
|
|
375
371
|
const formDefaultContent = createVNode("div", {
|
|
376
372
|
"class": this.ns.b("form-default-content")
|
|
377
|
-
}, [this.curValue ? this.valueText :
|
|
373
|
+
}, [this.curValue ? this.valueText : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
374
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
375
|
+
"placeHolder": this.c.placeHolder
|
|
376
|
+
}, null)]);
|
|
378
377
|
return createVNode("div", {
|
|
379
378
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)]
|
|
380
379
|
}, [this.showFormDefaultContent && formDefaultContent, this.readonly ? readonlyContent : editContent]);
|
|
@@ -31,32 +31,29 @@ const IBizPickerDropDown = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
return false;
|
|
32
32
|
});
|
|
33
33
|
const resetCurValue = () => {
|
|
34
|
+
const {
|
|
35
|
+
value
|
|
36
|
+
} = props;
|
|
34
37
|
if (c.model.valueType === "OBJECT") {
|
|
35
|
-
curValue.value =
|
|
38
|
+
curValue.value = value && c.objectNameField ? value[c.objectNameField] : null;
|
|
36
39
|
} else {
|
|
37
|
-
curValue.value =
|
|
40
|
+
curValue.value = value;
|
|
38
41
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
refValue.value = value || curValue.value;
|
|
44
|
-
const index = items.value.findIndex((item) => Object.is(item[c.keyName], value));
|
|
45
|
-
if (index !== -1) {
|
|
42
|
+
const valueItem = props.data[c.valueItem];
|
|
43
|
+
refValue.value = valueItem || curValue.value;
|
|
44
|
+
const index = items.value.findIndex((item) => Object.is(item[c.keyName], valueItem));
|
|
45
|
+
if (index !== -1)
|
|
46
46
|
return;
|
|
47
|
-
}
|
|
48
47
|
items.value = [];
|
|
49
|
-
if (!isNil(props.value) && !isNil(
|
|
48
|
+
if (!isNil(props.value) && !isNil(valueItem)) {
|
|
50
49
|
items.value.push({
|
|
51
50
|
[c.textName]: props.value,
|
|
52
|
-
[c.keyName]:
|
|
51
|
+
[c.keyName]: valueItem
|
|
53
52
|
});
|
|
54
53
|
}
|
|
55
54
|
};
|
|
56
|
-
watch(() => props.value, (
|
|
57
|
-
|
|
58
|
-
resetCurValue();
|
|
59
|
-
}
|
|
55
|
+
watch(() => props.value, () => {
|
|
56
|
+
resetCurValue();
|
|
60
57
|
}, {
|
|
61
58
|
immediate: true
|
|
62
59
|
});
|
|
@@ -356,7 +353,10 @@ const IBizPickerDropDown = /* @__PURE__ */ defineComponent({
|
|
|
356
353
|
}, [this.valueText]);
|
|
357
354
|
const formDefaultContent = createVNode("div", {
|
|
358
355
|
"class": this.ns.b("form-default-content")
|
|
359
|
-
}, [this.curValue ? this.valueText :
|
|
356
|
+
}, [this.curValue ? this.valueText : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
357
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
358
|
+
"placeHolder": this.c.placeHolder
|
|
359
|
+
}, null)]);
|
|
360
360
|
const hiddenInput = createVNode("input", {
|
|
361
361
|
"ref": "hiddenInputRef",
|
|
362
362
|
"type": "text",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed, watch, onMounted, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { ref, computed, watch, onMounted, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getDataPickerProps, getEditorEmits, useNamespace, useAutoFocusBlur, useFocusAndBlur, renderString } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { showTitle } from '@ibiz-template/core';
|
|
4
4
|
import { isNil } from 'ramda';
|
|
@@ -40,13 +40,11 @@ const IBizPickerLink = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
}
|
|
41
41
|
return false;
|
|
42
42
|
});
|
|
43
|
-
watch(() => props.value, (newVal
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
curValue.value = newVal;
|
|
49
|
-
}
|
|
43
|
+
watch(() => props.value, (newVal) => {
|
|
44
|
+
if (c.model.valueType === "OBJECT") {
|
|
45
|
+
curValue.value = newVal && c.objectNameField ? newVal[c.objectNameField] : null;
|
|
46
|
+
} else {
|
|
47
|
+
curValue.value = newVal;
|
|
50
48
|
}
|
|
51
49
|
}, {
|
|
52
50
|
immediate: true
|
|
@@ -131,7 +129,10 @@ const IBizPickerLink = /* @__PURE__ */ defineComponent({
|
|
|
131
129
|
}
|
|
132
130
|
this.openLinkView();
|
|
133
131
|
}
|
|
134
|
-
}, [isEmpty ?
|
|
132
|
+
}, [isEmpty ? createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
133
|
+
"showPlaceholder": this.controller.emptyShowPlaceholder,
|
|
134
|
+
"placeHolder": this.controller.placeHolder
|
|
135
|
+
}, null) : this.curValue])]);
|
|
135
136
|
}
|
|
136
137
|
});
|
|
137
138
|
|
|
@@ -505,7 +505,10 @@ const IBizPickerSelectView = /* @__PURE__ */ defineComponent({
|
|
|
505
505
|
"class": this.ns.b("content-item")
|
|
506
506
|
}, [this.valueText]) : this.valueText.split(",").map((item) => createVNode("span", {
|
|
507
507
|
"class": this.ns.b("content-item")
|
|
508
|
-
}, [item])) :
|
|
508
|
+
}, [item])) : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
509
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
510
|
+
"placeHolder": this.c.placeHolder
|
|
511
|
+
}, null)]);
|
|
509
512
|
return createVNode("div", {
|
|
510
513
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)]
|
|
511
514
|
}, [this.showFormDefaultContent && formDefaultContent, this.readonly ? readonlyContent : editContent]);
|
|
@@ -156,7 +156,10 @@ const IBizDatePicker = /* @__PURE__ */ defineComponent({
|
|
|
156
156
|
const readonlyContent = this.formatValue;
|
|
157
157
|
const formDefaultContent = createVNode("div", {
|
|
158
158
|
"class": this.ns.b("form-default-content")
|
|
159
|
-
}, [this.formatValue ? this.formatValue :
|
|
159
|
+
}, [this.formatValue ? this.formatValue : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
160
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
161
|
+
"placeHolder": this.c.placeHolder
|
|
162
|
+
}, null)]);
|
|
160
163
|
return createVNode("div", {
|
|
161
164
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.e(this.editorModel.editorType), this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
162
165
|
"onKeyup": this.handleKeyUp
|
|
@@ -192,7 +192,10 @@ const IBizDateRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
192
192
|
"start-placeholder": this.startPlaceHolder,
|
|
193
193
|
"end-placeholder": this.endPlaceHolder,
|
|
194
194
|
"unlink-panels": this.unlinkPanels
|
|
195
|
-
}, this.$attrs), null) :
|
|
195
|
+
}, this.$attrs), null) : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
196
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
197
|
+
"placeHolder": this.c.placeHolder
|
|
198
|
+
}, null)]);
|
|
196
199
|
return createVNode("div", {
|
|
197
200
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
198
201
|
"onKeyup": this.handleKeyUp
|
|
@@ -476,7 +476,10 @@ const IBizDropdown = /* @__PURE__ */ defineComponent({
|
|
|
476
476
|
}, [createVNode("span", {
|
|
477
477
|
"class": this.ns.be("content-item", "label")
|
|
478
478
|
}, [text])]);
|
|
479
|
-
}) :
|
|
479
|
+
}) : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
480
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
481
|
+
"placeHolder": this.c.placeHolder
|
|
482
|
+
}, null)]);
|
|
480
483
|
const hiddenInput = createVNode("input", {
|
|
481
484
|
"ref": "hiddenInputRef",
|
|
482
485
|
"type": "text",
|
|
@@ -87,7 +87,10 @@ const IBizEmojiPicker = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
const renderFormDefaultContent = () => {
|
|
88
88
|
return createVNode("div", {
|
|
89
89
|
"class": [ns.b("form-default-content"), ns.is("clear", !!emoji.value)]
|
|
90
|
-
}, [emoji.value ? emoji.value :
|
|
90
|
+
}, [emoji.value ? emoji.value : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
91
|
+
"showPlaceholder": c.emptyShowPlaceholder,
|
|
92
|
+
"placeHolder": c.placeHolder
|
|
93
|
+
}, null)]);
|
|
91
94
|
};
|
|
92
95
|
const renderReference = () => {
|
|
93
96
|
return createVNode(resolveComponent("el-button"), {
|
|
@@ -354,7 +354,10 @@ const IBizMapPicker = /* @__PURE__ */ defineComponent({
|
|
|
354
354
|
}
|
|
355
355
|
const formDefaultContent = createVNode("div", {
|
|
356
356
|
"class": this.ns.b("form-default-content")
|
|
357
|
-
}, [this.value ? this.value :
|
|
357
|
+
}, [this.value ? this.value : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
358
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
359
|
+
"placeHolder": this.c.placeHolder
|
|
360
|
+
}, null)]);
|
|
358
361
|
return createVNode("div", {
|
|
359
362
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
|
|
360
363
|
}, [this.showFormDefaultContent && formDefaultContent, content]);
|
|
@@ -191,7 +191,10 @@ const IBizNumberRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
191
191
|
"class": this.ns.b("default-separator")
|
|
192
192
|
}, [this.rangeSeparator]), createVNode("div", {
|
|
193
193
|
"class": this.ns.b("default-max")
|
|
194
|
-
}, [this.maxValue])] :
|
|
194
|
+
}, [this.maxValue])] : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
195
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
196
|
+
"placeHolder": this.c.placeHolder
|
|
197
|
+
}, null)]);
|
|
195
198
|
return createVNode("div", {
|
|
196
199
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
197
200
|
"ref": "componentRef"
|
|
@@ -6,8 +6,8 @@ import './ibiz-raw.scss';
|
|
|
6
6
|
*
|
|
7
7
|
* @description 用于绘制配置的直接内容,如HTML内容、视频内容、图片内容等。支持编辑器类型包含:`直接内容`
|
|
8
8
|
* @primary
|
|
9
|
-
* @editorparams {name:contenttype,parameterType:'IMAGE' | 'TEXT' | 'RAW' | 'HEADING1' | 'HEADING2' | 'HEADING3' | 'HEADING4' | 'HEADING5' | 'HEADING6' | 'PARAGRAPH' | 'HTML' | 'VIDEO' | 'DIVIDER' | 'INFO' | 'WARNING' | 'ERROR' | 'MARKDOWN' | 'PLACEHOLDER',defaultvalue:'TEXT',description
|
|
10
|
-
* @editorparams {name:template,parameterType:string,description:配置的handlerBars
|
|
9
|
+
* @editorparams {name:contenttype,parameterType:'IMAGE' | 'TEXT' | 'RAW' | 'HEADING1' | 'HEADING2' | 'HEADING3' | 'HEADING4' | 'HEADING5' | 'HEADING6' | 'PARAGRAPH' | 'HTML' | 'VIDEO' | 'DIVIDER' | 'INFO' | 'WARNING' | 'ERROR' | 'MARKDOWN' | 'PLACEHOLDER',defaultvalue:'TEXT',description:定义组件展示的内容类型。包含`IMAGE`(图片)、`TEXT`(文本)、`RAW`(直接内容)、`HEADING1`-`HEADING6`(各级标题)、`PARAGRAPH`(段落)、`HTML`(Html内容)、`VIDEO`(视频)、`DIVIDER`(分割线)、`INFO`(常规提示)、`WARNING`(警告提示)、`ERROR`(错误提示)、`MARKDOWN`(Markdown内容)、`PLACEHOLDER`(占位)}
|
|
10
|
+
* @editorparams {name:template,parameterType:string,description:配置的handlerBars模板内容,用于将组件输入参数中的value值解析并转换为HTML内容,实现动态内容的渲染}
|
|
11
11
|
* @ignoreprops autoFocus | overflowMode
|
|
12
12
|
* @ignoreemits change | blur | focus | enter | infoTextChange
|
|
13
13
|
*/
|
|
@@ -56,6 +56,8 @@ const IBizRaw = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
+
ibiz.log.debug("\u6A21\u677F\u5185\u5BB9\uFF1A", template);
|
|
60
|
+
ibiz.log.debug("\u6A21\u677F\u7F16\u8BD1\u5BF9\u8C61\uFF1A", obj);
|
|
59
61
|
content.value = await ibiz.util.hbs.render(template, obj);
|
|
60
62
|
}
|
|
61
63
|
}
|
|
@@ -4,10 +4,10 @@ import { SpanEditorController } from '../span-editor.controller';
|
|
|
4
4
|
/**
|
|
5
5
|
* 标签
|
|
6
6
|
*
|
|
7
|
-
* @description
|
|
7
|
+
* @description 直接呈现文本内容,可配置单位,无值时显示全局配置的emptyText,支持编辑器类型包含:`标签`
|
|
8
8
|
* @primary
|
|
9
|
-
* @editorparams {name:
|
|
10
|
-
* @editorparams {name:
|
|
9
|
+
* @editorparams {"name":"textseparator","parameterType":"string","defaultvalue":"','","description":"文本分隔符。如果是数组数据,在呈现时会使用文本分隔符拼接为字符串显示"}
|
|
10
|
+
* @editorparams {name:overflowmode,parameterType:'auto' | 'ellipsis',defaultvalue:'auto',description:文本换行模式。当参数为 'auto' 时,若内容超出宽度则会换行显示;当参数为 'ellipsis' 时,若内容超出宽度则会显示省略号}
|
|
11
11
|
* @ignoreprops autoFocus | overflowMode
|
|
12
12
|
* @ignoreemits change | blur | focus | enter | infoTextChange
|
|
13
13
|
*/
|
|
@@ -20,7 +20,7 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
setup(props, {
|
|
21
21
|
emit
|
|
22
22
|
}) {
|
|
23
|
-
var _a;
|
|
23
|
+
var _a, _b;
|
|
24
24
|
const ns = useNamespace("span");
|
|
25
25
|
const c = props.controller;
|
|
26
26
|
const text = ref("");
|
|
@@ -31,7 +31,7 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
unitName
|
|
32
32
|
} = c.parent;
|
|
33
33
|
const spanTitle = ref("");
|
|
34
|
-
const textSeparator = c.model.textSeparator || ((_a = c.editorParams) == null ? void 0 : _a.TEXTSEPARATOR) || ",";
|
|
34
|
+
const textSeparator = c.model.textSeparator || ((_a = c.editorParams) == null ? void 0 : _a.TEXTSEPARATOR) || ((_b = c.editorParams) == null ? void 0 : _b.textseparator) || ",";
|
|
35
35
|
watch(() => props.value, (newVal, oldVal) => {
|
|
36
36
|
if (newVal !== oldVal) {
|
|
37
37
|
if (isNil(newVal)) {
|
|
@@ -158,9 +158,12 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
158
158
|
content = this.text;
|
|
159
159
|
this.spanTitle = this.text;
|
|
160
160
|
} else {
|
|
161
|
-
content =
|
|
161
|
+
content = createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
162
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
163
|
+
"placeHolder": this.c.placeHolder
|
|
164
|
+
}, null);
|
|
162
165
|
}
|
|
163
|
-
const isEllipsis = this.c.editorParams.overflowMode === "ellipsis" || this.c.model.wrapMode === "NOWRAP";
|
|
166
|
+
const isEllipsis = this.c.editorParams.overflowMode === "ellipsis" || this.c.editorParams.overflowmode === "ellipsis" || this.c.model.wrapMode === "NOWRAP";
|
|
164
167
|
return createVNode("span", {
|
|
165
168
|
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent), this.ns.is("is-ellipsis", isEllipsis)],
|
|
166
169
|
"ref": "editorRef",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getStepperProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { isNilOrEmpty } from 'qx-util';
|
|
3
4
|
import { toNumber } from 'lodash-es';
|
|
4
5
|
import './ibiz-stepper.css';
|
|
5
6
|
|
|
@@ -75,7 +76,7 @@ const IBizStepper = /* @__PURE__ */ defineComponent({
|
|
|
75
76
|
render() {
|
|
76
77
|
let content = null;
|
|
77
78
|
if (this.readonly) {
|
|
78
|
-
content = "".concat(this.currentVal);
|
|
79
|
+
content = isNilOrEmpty(this.currentVal) ? "" : "".concat(this.currentVal);
|
|
79
80
|
} else {
|
|
80
81
|
content = [createVNode(resolveComponent("el-input-number"), mergeProps({
|
|
81
82
|
"ref": "inputRef",
|
|
@@ -5,7 +5,7 @@ import { SwitchEditorController } from '../switch-editor.controller';
|
|
|
5
5
|
*
|
|
6
6
|
* @description 使用el-switch组件,表示两种相互对立的状态间的切换,多用于触发「开/关」。支持编辑器类型包含:`开关部件`
|
|
7
7
|
* @primary
|
|
8
|
-
* @editorparams {"name":"dicData","parameterType":"Array<{value: number;label: string;}>","defaultvalue":[{"value":0,"label":""},{"value":1,"label":""}],"description":"
|
|
8
|
+
* @editorparams {"name":"dicData","parameterType":"Array<{value: number;label: string;}>","defaultvalue":[{"value":0,"label":""},{"value":1,"label":""}],"description":"开关的文字描述。在配置的数组中,value值为0时,是 switch 关闭时的文字描述;value值为1时,是 switch 打开时的文字描述"}
|
|
9
9
|
* @ignoreprops overflowMode
|
|
10
10
|
* @ignoreemits blur | focus | enter | infoTextChange
|
|
11
11
|
*/
|
|
@@ -7,9 +7,9 @@ import { TextBoxEditorController } from '../text-box-editor.controller';
|
|
|
7
7
|
* @primary
|
|
8
8
|
* @editorparams {name:precision,parameterType:number,description:el-input-number组件的precision属性,设置数值精度}
|
|
9
9
|
* @editorparams {name:maxvalue,parameterType:number,defaultvalue:Infinity,description:el-input-number组件的max属性,设置数值框允许的最大值}
|
|
10
|
-
* @editorparams {name:minvalue,parameterType:number,defaultvalue
|
|
10
|
+
* @editorparams {name:minvalue,parameterType:number,defaultvalue:-Infinity,description:el-input-number组件的min属性,设置数值框允许的最小值}
|
|
11
11
|
* @editorparams {name:enablethousands,parameterType:boolean,defaultvalue:false,description:是否启用千分位}
|
|
12
|
-
* @editorparams {"name":"
|
|
12
|
+
* @editorparams {"name":"triggermode","parameterType":"'blur' | 'input'","defaultvalue":"'blur'","description":"指定编辑器触发 `change` 值变更事件的模式,input: 输入框输入时触发事件,blur:输入框blur时触发事件"}
|
|
13
13
|
* @ignoreprops overflowMode
|
|
14
14
|
* @ignoreemits infoTextChange
|
|
15
15
|
*/
|
|
@@ -43,7 +43,7 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
minimumFractionDigits: decimalPlaces,
|
|
44
44
|
maximumFractionDigits: decimalPlaces
|
|
45
45
|
};
|
|
46
|
-
return num.toLocaleString("en-US", options);
|
|
46
|
+
return num == null ? void 0 : num.toLocaleString("en-US", options);
|
|
47
47
|
};
|
|
48
48
|
const convertToNumber = (str) => {
|
|
49
49
|
const stringWithoutCommas = str.replace(/,/g, "");
|
|
@@ -203,7 +203,10 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
203
203
|
}
|
|
204
204
|
return createVNode("div", {
|
|
205
205
|
"class": this.ns.b("form-default-content")
|
|
206
|
-
}, [this.currentVal || this.currentVal === 0 ? this.currentFormatVal + unit :
|
|
206
|
+
}, [this.currentVal || this.currentVal === 0 ? this.currentFormatVal + unit : createVNode(resolveComponent("iBizEditorEmptyText"), {
|
|
207
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
208
|
+
"placeHolder": this.c.placeHolder
|
|
209
|
+
}, null)]);
|
|
207
210
|
};
|
|
208
211
|
return createVNode("div", {
|
|
209
212
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("editable", this.isEditable), this.ns.is("show-default", this.showFormDefaultContent)]
|
|
@@ -5,12 +5,13 @@ import './input.scss';
|
|
|
5
5
|
*
|
|
6
6
|
* @description 使用el-input组件,用于数据录入,通过鼠标或键盘输入字符。支持编辑器类型包含:`文本框`、`多行输入框`、`多行输入(10行)`、`密码框`
|
|
7
7
|
* @primary
|
|
8
|
-
* @editorparams {name:
|
|
9
|
-
* @editorparams {name:
|
|
8
|
+
* @editorparams {name:showlimit,parameterType:boolean,defaultvalue:true,description:el-input组件的show-word-limit属性,控制文本域是否显示字数限制,当编辑器类型为多行输入框、多行输入(10行)时生效}
|
|
9
|
+
* @editorparams {name:isauto,parameterType:boolean,defaultvalue:false,description:el-input组件的autosize属性,控制文本域高度是否自适应,当编辑器类型为多行输入框、多行输入(10行)时生效}
|
|
10
10
|
* @editorparams {name:autocomplete,parameterType:boolean,defaultvalue:false,description:el-input组件的autocomplete属性,是否允许自动填充}
|
|
11
|
+
* @editorparams {name:ac,parameterType:boolean,defaultvalue:false,description:是否启用ac自填模式}
|
|
11
12
|
* @editorparams {name:srfaiappendcurdata,parameterType:boolean,defaultvalue:false,description:在打开AI功能时,该参数用于判断是否传入对象参数,主要用于在请求历史记录时,附加当前参数}
|
|
12
13
|
* @editorparams {name:srfaiappendcurcontent,parameterType:string,description:在打开AI功能时,如果该参数存在值,会将其传入编辑内容作为用户消息,主要用于在请求历史记录后,附加当前编辑内容作为用户消息}
|
|
13
|
-
* @editorparams {"name":"
|
|
14
|
+
* @editorparams {"name":"triggermode","parameterType":"'blur' | 'input'","defaultvalue":"'blur'","description":"指定编辑器触发 `change` 值变更事件的模式,input: 输入框输入时触发事件,blur:输入框blur时触发事件"}
|
|
14
15
|
* @ignoreprops overflowMode
|
|
15
16
|
* @ignoreemits infoTextChange
|
|
16
17
|
*/
|