@ibiz-template/vue3-components 0.5.0 → 0.5.1-dev.0
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/{chart-pboinFqM.js → chart-fWcrZRts.js} +1 -1
- package/dist/ibiz-markdown-editor-aOoL8-48.js +1 -0
- package/dist/index-zxfAewGR.js +2 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-cmVrWpPw.js +1 -0
- package/dist/wang-editor-jrOHJc0e.js +1 -0
- package/dist/{xlsx-util-k4bPYvah.js → xlsx-util-khxliVd3.js} +2 -3
- package/es/common/action-toolbar/action-toolbar.mjs +1 -1
- package/es/common/data-import/data-import.mjs +2 -2
- package/es/common/data-import2/data-import2.mjs +7 -7
- package/es/common/data-import2-table/data-import2-table.mjs +2 -2
- package/es/common/extend-action-timeline/extend-action-timeline.mjs +1 -1
- package/es/common/map-chart/map-chart.mjs +2 -2
- package/es/common/map-chart/map-json.mjs +1 -1
- package/es/common/map-chart/map-manager.mjs +2 -2
- package/es/common/rawitem/rawitem.mjs +1 -1
- package/es/common/split/split.mjs +9 -9
- package/es/common/split-trigger/split-trigger.mjs +1 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +49 -38
- package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +1 -1
- package/es/control/app-menu-icon-view/index.mjs +1 -1
- package/es/control/calendar/calendar.mjs +2 -2
- package/es/control/caption-bar/caption-bar.mjs +1 -1
- package/es/control/chart/chart.mjs +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +5 -5
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -2
- package/es/control/dashboard/dashboard.mjs +1 -1
- package/es/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/container-portlet/container-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/html-portlet/html-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/menu-portlet/menu-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.mjs +1 -1
- package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +1 -1
- package/es/control/data-view/data-view.mjs +3 -3
- package/es/control/drbar/drbar.mjs +2 -2
- package/es/control/drtab/drtab.mjs +1 -1
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.mjs +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.mjs +1 -1
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.mjs +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.mjs +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.mjs +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.mjs +1 -1
- package/es/control/form/edit-form/edit-form.mjs +1 -1
- package/es/control/form/form/form.mjs +2 -2
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +2 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.provider.mjs +1 -1
- package/es/control/form/search-form/search-form.mjs +1 -1
- package/es/control/gantt/gantt.mjs +18 -18
- package/es/control/grid/grid/grid-control.util.mjs +1 -1
- package/es/control/grid/grid/grid.mjs +3 -3
- package/es/control/grid/grid-column/grid-field-edit-column/cell-edit.mjs +2 -2
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +2 -2
- package/es/control/grid/row-edit-popover/use-row-edit-popover.mjs +3 -3
- package/es/control/kanban/kanban.mjs +11 -11
- package/es/control/list/list.mjs +4 -4
- package/es/control/map/map.mjs +1 -1
- package/es/control/medit-view-panel/medit-view-panel.mjs +1 -1
- package/es/control/pickup-view-panel/pickup-view-panel.mjs +1 -1
- package/es/control/report-panel/report-detail/user-report-panel/user-report-panel.mjs +1 -1
- package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.mjs +1 -1
- package/es/control/report-panel/report-panel.mjs +1 -1
- package/es/control/search-bar/search-bar.mjs +2 -2
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +1 -1
- package/es/control/toolbar/toolbar.mjs +1 -1
- package/es/control/tree/el-tree-util.d.ts +1 -1
- package/es/control/tree/el-tree-util.mjs +5 -5
- package/es/control/tree/tree.mjs +30 -30
- package/es/control/tree-grid/tree-grid.mjs +2 -2
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +9 -10
- package/es/control/wizard-panel/wizard-panel.mjs +3 -3
- package/es/devtool/devtool-action.mjs +4 -4
- package/es/editor/autocomplete/autocomplete-editor.controller.mjs +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +5 -5
- package/es/editor/code/monaco-editor/monaco-editor.mjs +2 -2
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +2 -2
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +6 -6
- package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +5 -5
- package/es/editor/html/html-editor.controller.mjs +6 -6
- package/es/editor/html/wang-editor/wang-editor.mjs +7 -7
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +5 -5
- package/es/editor/markdown/markdown-editor.controller.mjs +5 -5
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +1 -1
- package/es/editor/span/span/span.mjs +5 -5
- package/es/editor/span/span-link/span-link.mjs +1 -1
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +2 -2
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +2 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +18 -2
- package/es/editor/text-box/input/input.mjs +3 -3
- package/es/editor/text-box/text-box-editor.controller.mjs +1 -1
- package/es/editor/upload/upload-editor.controller.mjs +4 -4
- package/es/editor/upload/use/use-iview-upload.mjs +1 -1
- package/es/index.mjs +3 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +2 -2
- package/es/panel-component/nav-tabs/nav-tabs.mjs +1 -1
- package/es/panel-component/split-container/split-container.controller.mjs +1 -1
- package/es/panel-component/user-message/async-action-preview/async-action-preview.mjs +3 -3
- package/es/panel-component/user-message/user-message.mjs +1 -1
- package/es/util/app-float-window/app-float-window-component.mjs +4 -4
- package/es/util/app-modal/app-modal-component.mjs +2 -2
- package/es/util/app-popover/app-popover-component.mjs +4 -4
- package/es/util/confirm-util/confirm-util.mjs +12 -12
- package/es/util/xlsx-util/xlsx-util.mjs +1 -1
- package/es/view/index.d.ts +1 -0
- package/es/view/index.mjs +1 -0
- package/es/view/sub-app-ref-view/index.d.ts +41 -0
- package/es/view/sub-app-ref-view/index.mjs +15 -0
- package/es/view/sub-app-ref-view/sub-app-ref-view.css +1 -0
- package/es/view/sub-app-ref-view/sub-app-ref-view.d.ts +44 -0
- package/es/view/sub-app-ref-view/sub-app-ref-view.mjs +73 -0
- package/es/view/sub-app-ref-view/sub-app-ref-view.provider.d.ts +13 -0
- package/es/view/sub-app-ref-view/sub-app-ref-view.provider.mjs +14 -0
- package/es/view-engine/edit-view.engine.mjs +1 -1
- package/es/view-engine/index-view.engine.mjs +1 -1
- package/es/view-engine/index.mjs +7 -2
- package/es/view-engine/login-view.engine.mjs +1 -1
- package/es/view-engine/pickup-tree-view.engine.mjs +1 -1
- package/es/view-engine/sub-app-ref-view.engine.d.ts +11 -0
- package/es/view-engine/sub-app-ref-view.engine.mjs +7 -0
- package/es/view-engine/tab-exp-view.engine.mjs +2 -2
- package/es/view-engine/wf-dyna-action-view.engine.mjs +1 -1
- package/es/view-engine/wf-dyna-edit-view.engine.mjs +3 -3
- package/es/view-engine/wf-dyna-start-view.engine.mjs +1 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +1 -1
- package/lib/common/data-import/data-import.cjs +2 -2
- package/lib/common/data-import2/data-import2.cjs +7 -7
- package/lib/common/data-import2-table/data-import2-table.cjs +2 -2
- package/lib/common/extend-action-timeline/extend-action-timeline.cjs +1 -1
- package/lib/common/map-chart/map-chart.cjs +2 -2
- package/lib/common/map-chart/map-json.cjs +1 -1
- package/lib/common/map-chart/map-manager.cjs +2 -2
- package/lib/common/rawitem/rawitem.cjs +1 -1
- package/lib/common/split/split.cjs +9 -9
- package/lib/common/split-trigger/split-trigger.cjs +1 -1
- package/lib/control/app-menu/app-menu.cjs +49 -38
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +1 -1
- package/lib/control/app-menu-icon-view/index.cjs +1 -1
- package/lib/control/calendar/calendar.cjs +2 -2
- package/lib/control/caption-bar/caption-bar.cjs +1 -1
- package/lib/control/chart/chart.cjs +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +5 -5
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -2
- package/lib/control/dashboard/dashboard.cjs +1 -1
- package/lib/control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/container-portlet/container-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/html-portlet/html-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/menu-portlet/menu-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/rawitem-portlet/rawitem-portlet.cjs +1 -1
- package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +1 -1
- package/lib/control/data-view/data-view.cjs +3 -3
- package/lib/control/drbar/drbar.cjs +2 -2
- package/lib/control/drtab/drtab.cjs +1 -1
- package/lib/control/exp-bar/calendar-exp-bar/calendar-exp-bar.cjs +1 -1
- package/lib/control/exp-bar/chart-exp-bar/chart-exp-bar.cjs +1 -1
- package/lib/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.cjs +1 -1
- package/lib/control/exp-bar/grid-exp-bar/grid-exp-bar.cjs +1 -1
- package/lib/control/exp-bar/list-exp-bar/list-exp-bar.cjs +1 -1
- package/lib/control/exp-bar/tree-exp-bar/tree-exp-bar.cjs +1 -1
- package/lib/control/form/edit-form/edit-form.cjs +1 -1
- package/lib/control/form/form/form.cjs +2 -2
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +2 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.provider.cjs +1 -1
- package/lib/control/form/search-form/search-form.cjs +1 -1
- package/lib/control/gantt/gantt.cjs +18 -18
- package/lib/control/grid/grid/grid-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +3 -3
- package/lib/control/grid/grid-column/grid-field-edit-column/cell-edit.cjs +2 -2
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +2 -2
- package/lib/control/grid/row-edit-popover/use-row-edit-popover.cjs +3 -3
- package/lib/control/kanban/kanban.cjs +11 -11
- package/lib/control/list/list.cjs +4 -4
- package/lib/control/map/map.cjs +1 -1
- package/lib/control/medit-view-panel/medit-view-panel.cjs +1 -1
- package/lib/control/pickup-view-panel/pickup-view-panel.cjs +1 -1
- package/lib/control/report-panel/report-detail/user-report-panel/user-report-panel.cjs +1 -1
- package/lib/control/report-panel/report-detail/user2-report-panel/user2-report-panel.cjs +1 -1
- package/lib/control/report-panel/report-panel.cjs +1 -1
- package/lib/control/search-bar/search-bar.cjs +2 -2
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +1 -1
- package/lib/control/toolbar/toolbar.cjs +1 -1
- package/lib/control/tree/el-tree-util.cjs +5 -5
- package/lib/control/tree/tree.cjs +30 -30
- package/lib/control/tree-grid/tree-grid.cjs +2 -2
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +9 -10
- package/lib/control/wizard-panel/wizard-panel.cjs +3 -3
- package/lib/devtool/devtool-action.cjs +4 -4
- package/lib/editor/autocomplete/autocomplete-editor.controller.cjs +1 -1
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +1 -1
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +5 -5
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +2 -2
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +1 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +6 -6
- package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +5 -5
- package/lib/editor/html/html-editor.controller.cjs +6 -6
- package/lib/editor/html/wang-editor/wang-editor.cjs +7 -7
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +5 -5
- package/lib/editor/markdown/markdown-editor.controller.cjs +5 -5
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +1 -1
- package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +1 -1
- package/lib/editor/span/span/span.cjs +5 -5
- package/lib/editor/span/span-link/span-link.cjs +1 -1
- package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +2 -2
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +18 -2
- package/lib/editor/text-box/input/input.cjs +3 -3
- package/lib/editor/text-box/text-box-editor.controller.cjs +1 -1
- package/lib/editor/upload/upload-editor.controller.cjs +4 -4
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -1
- package/lib/index.cjs +6 -3
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +1 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +2 -2
- package/lib/panel-component/nav-tabs/nav-tabs.cjs +1 -1
- package/lib/panel-component/split-container/split-container.controller.cjs +1 -1
- package/lib/panel-component/user-message/async-action-preview/async-action-preview.cjs +3 -3
- package/lib/panel-component/user-message/user-message.cjs +1 -1
- package/lib/util/app-float-window/app-float-window-component.cjs +4 -4
- package/lib/util/app-modal/app-modal-component.cjs +2 -2
- package/lib/util/app-popover/app-popover-component.cjs +4 -4
- package/lib/util/confirm-util/confirm-util.cjs +12 -12
- package/lib/util/xlsx-util/xlsx-util.cjs +1 -1
- package/lib/view/index.cjs +2 -0
- package/lib/view/sub-app-ref-view/index.cjs +17 -0
- package/lib/view/sub-app-ref-view/sub-app-ref-view.cjs +75 -0
- package/lib/view/sub-app-ref-view/sub-app-ref-view.css +1 -0
- package/lib/view/sub-app-ref-view/sub-app-ref-view.provider.cjs +16 -0
- package/lib/view-engine/edit-view.engine.cjs +1 -1
- package/lib/view-engine/index-view.engine.cjs +1 -1
- package/lib/view-engine/index.cjs +7 -2
- package/lib/view-engine/login-view.engine.cjs +1 -1
- package/lib/view-engine/pickup-tree-view.engine.cjs +1 -1
- package/lib/view-engine/sub-app-ref-view.engine.cjs +9 -0
- package/lib/view-engine/tab-exp-view.engine.cjs +2 -2
- package/lib/view-engine/wf-dyna-action-view.engine.cjs +1 -1
- package/lib/view-engine/wf-dyna-edit-view.engine.cjs +3 -3
- package/lib/view-engine/wf-dyna-start-view.engine.cjs +1 -1
- package/package.json +12 -12
- package/dist/ibiz-markdown-editor-_12065dS.js +0 -1
- package/dist/index-AehwWfnP.js +0 -2
- package/dist/map-chart-NxSN1lcE.js +0 -1
- package/dist/wang-editor-jTRcSpFt.js +0 -1
|
@@ -25,7 +25,7 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
const editorRef = shallowRef();
|
|
26
26
|
const valueHtml = ref("");
|
|
27
27
|
const headers = ref({
|
|
28
|
-
Authorization:
|
|
28
|
+
Authorization: "Bearer ".concat(getCookie(CoreConst.TOKEN))
|
|
29
29
|
});
|
|
30
30
|
const uploadUrl = ref("");
|
|
31
31
|
const downloadUrl = ref("");
|
|
@@ -98,15 +98,15 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
|
|
|
98
98
|
},
|
|
99
99
|
// 单个文件上传成功之后
|
|
100
100
|
onSuccess(file, res) {
|
|
101
|
-
console.log(
|
|
101
|
+
console.log("".concat(file.name, " \u4E0A\u4F20\u6210\u529F"), res);
|
|
102
102
|
},
|
|
103
103
|
// 单个文件上传失败
|
|
104
104
|
onFailed(file, res) {
|
|
105
|
-
console.log(
|
|
105
|
+
console.log("".concat(file.name, " \u4E0A\u4F20\u5931\u8D25"), res);
|
|
106
106
|
},
|
|
107
107
|
// 上传错误,或者触发 timeout 超时
|
|
108
108
|
onError(file, err, res) {
|
|
109
|
-
console.log(
|
|
109
|
+
console.log("".concat(file.name, " \u4E0A\u4F20\u51FA\u9519"), err, res);
|
|
110
110
|
},
|
|
111
111
|
// 自定义插入图片
|
|
112
112
|
async customInsert(res, insertFn) {
|
|
@@ -147,7 +147,7 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
|
|
|
147
147
|
if (emitValue === props.value || emitValue === "" && isNil(props.value)) {
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
150
|
-
if (!hasEnableEdit.value) {
|
|
150
|
+
if (!hasEnableEdit.value && editor.isFocused()) {
|
|
151
151
|
emit("change", emitValue);
|
|
152
152
|
}
|
|
153
153
|
};
|
|
@@ -160,7 +160,7 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
|
|
|
160
160
|
emit("blur");
|
|
161
161
|
};
|
|
162
162
|
const customAlert = (info, type) => {
|
|
163
|
-
alert(
|
|
163
|
+
alert("\u3010\u81EA\u5B9A\u4E49\u63D0\u793A\u3011".concat(type, " - ").concat(info));
|
|
164
164
|
};
|
|
165
165
|
const customPaste = (editor, event, callback) => {
|
|
166
166
|
callback(true);
|
|
@@ -220,7 +220,7 @@ const IBizHtml = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
const height = entries[0].contentRect.height;
|
|
221
221
|
if (height !== lastToolbarHeight) {
|
|
222
222
|
const tempCssVars = {
|
|
223
|
-
height:
|
|
223
|
+
height: "".concat(htmlContentHeight - entries[0].contentRect.height, "px")
|
|
224
224
|
};
|
|
225
225
|
cssVars.value = ns.cssVarBlock(tempCssVars);
|
|
226
226
|
lastToolbarHeight = height;
|
|
@@ -19,7 +19,7 @@ const IBizMarkDown = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
const editor = ref(null);
|
|
20
20
|
const id = createUUID();
|
|
21
21
|
const headers = ref({
|
|
22
|
-
Authorization:
|
|
22
|
+
Authorization: "Bearer ".concat(getCookie(CoreConst.TOKEN))
|
|
23
23
|
});
|
|
24
24
|
const uploadUrl = ref("");
|
|
25
25
|
const downloadUrl = ref("");
|
|
@@ -152,11 +152,11 @@ const IBizMarkDown = /* @__PURE__ */ defineComponent({
|
|
|
152
152
|
const calcMarkDownStyle = () => {
|
|
153
153
|
if (window.ResizeObserver && markDownBox.value) {
|
|
154
154
|
const tempCssVars = {
|
|
155
|
-
width:
|
|
155
|
+
width: "".concat(markDownBox.value.offsetWidth, "px")
|
|
156
156
|
};
|
|
157
157
|
if (c && typeof c.parent.model.height === "number") {
|
|
158
158
|
Object.assign(tempCssVars, {
|
|
159
|
-
height:
|
|
159
|
+
height: "".concat(c.parent.model.height, "px")
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
cssVars.value = ns.cssVarBlock(tempCssVars);
|
|
@@ -164,11 +164,11 @@ const IBizMarkDown = /* @__PURE__ */ defineComponent({
|
|
|
164
164
|
const width = entries[0].contentRect.width;
|
|
165
165
|
if (width !== lastMarkDownWidth) {
|
|
166
166
|
const tempCssVars2 = {
|
|
167
|
-
width:
|
|
167
|
+
width: "".concat(entries[0].contentRect.width, "px")
|
|
168
168
|
};
|
|
169
169
|
if (c && typeof c.parent.model.height === "number") {
|
|
170
170
|
Object.assign(tempCssVars2, {
|
|
171
|
-
height:
|
|
171
|
+
height: "".concat(c.parent.model.height, "px")
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
cssVars.value = ns.cssVarBlock(tempCssVars2);
|
|
@@ -90,7 +90,7 @@ class MarkDownEditorController extends EditorController {
|
|
|
90
90
|
} catch (error) {
|
|
91
91
|
throw new RuntimeModelError(
|
|
92
92
|
uploadparams,
|
|
93
|
-
|
|
93
|
+
"\u914D\u7F6Euploadparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F"
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -100,7 +100,7 @@ class MarkDownEditorController extends EditorController {
|
|
|
100
100
|
} catch (error) {
|
|
101
101
|
throw new RuntimeModelError(
|
|
102
102
|
exportparams,
|
|
103
|
-
|
|
103
|
+
"\u914D\u7F6Eexportparams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F"
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -116,7 +116,7 @@ class MarkDownEditorController extends EditorController {
|
|
|
116
116
|
if (this.deACMode.actype === "AUTOCOMPLETE") {
|
|
117
117
|
const { minorSortAppDEFieldId, minorSortDir } = this.deACMode;
|
|
118
118
|
if (minorSortAppDEFieldId && minorSortDir) {
|
|
119
|
-
this.sort =
|
|
119
|
+
this.sort = "".concat(minorSortAppDEFieldId.toLowerCase(), ",").concat(minorSortDir.toLowerCase());
|
|
120
120
|
}
|
|
121
121
|
if (this.deACMode.textAppDEFieldId) {
|
|
122
122
|
this.textName = this.deACMode.textAppDEFieldId;
|
|
@@ -153,8 +153,8 @@ class MarkDownEditorController extends EditorController {
|
|
|
153
153
|
* @returns {*} {{ uploadUrl: string; downloadUrl: string }}
|
|
154
154
|
*/
|
|
155
155
|
calcBaseUrl(data) {
|
|
156
|
-
let uploadUrl =
|
|
157
|
-
let downloadUrl =
|
|
156
|
+
let uploadUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.uploadFileUrl);
|
|
157
|
+
let downloadUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/%fileId%");
|
|
158
158
|
let uploadParams = {};
|
|
159
159
|
let exportParams = {};
|
|
160
160
|
if (this.uploadParams) {
|
|
@@ -104,7 +104,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
};
|
|
105
105
|
const valueText = computed(() => {
|
|
106
106
|
if (typeof minValue.value === "number" && typeof maxValue.value === "number") {
|
|
107
|
-
return
|
|
107
|
+
return "".concat(minValue.value).concat(rangeSeparator).concat(maxValue.value);
|
|
108
108
|
}
|
|
109
109
|
return null;
|
|
110
110
|
});
|
|
@@ -71,7 +71,7 @@ const IBizSlider = /* @__PURE__ */ defineComponent({
|
|
|
71
71
|
const textVal = computed(() => {
|
|
72
72
|
const tempCurVal = Number(currentVal.value);
|
|
73
73
|
const value = Number(tempCurVal / max);
|
|
74
|
-
const formatValue = ibiz.util.text.format(
|
|
74
|
+
const formatValue = ibiz.util.text.format("".concat(value), format);
|
|
75
75
|
return formatValue;
|
|
76
76
|
});
|
|
77
77
|
const handleChange = (currentValue) => {
|
|
@@ -56,7 +56,7 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
});
|
|
57
57
|
text.value = tempValue.join(textSeparator);
|
|
58
58
|
} catch (error) {
|
|
59
|
-
ibiz.log.error(
|
|
59
|
+
ibiz.log.error("\u6807\u7B7E\u5730\u5740\u9009\u62E9\u5668\u7684\u503C\u4E0D\u7B26\u5408JSON\u683C\u5F0F".concat(newVal));
|
|
60
60
|
}
|
|
61
61
|
} else if (valueFormat) {
|
|
62
62
|
try {
|
|
@@ -67,15 +67,15 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
if (isValidDateFormat(tempVal, valueFormat)) {
|
|
68
68
|
text.value = tempVal;
|
|
69
69
|
} else {
|
|
70
|
-
text.value = ibiz.util.text.format(
|
|
70
|
+
text.value = ibiz.util.text.format("".concat(newVal), valueFormat);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
} catch (error) {
|
|
74
|
-
text.value =
|
|
75
|
-
ibiz.log.error(
|
|
74
|
+
text.value = "".concat(newVal);
|
|
75
|
+
ibiz.log.error("".concat(newVal, " \u503C\u683C\u5F0F\u5316\u9519\u8BEF"));
|
|
76
76
|
}
|
|
77
77
|
} else {
|
|
78
|
-
text.value =
|
|
78
|
+
text.value = "".concat(newVal);
|
|
79
79
|
}
|
|
80
80
|
if (unitName) {
|
|
81
81
|
text.value += unitName;
|
|
@@ -15,7 +15,7 @@ const IBizSpanLink = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
const curValue = ref("");
|
|
16
16
|
watch(() => props.value, (newVal, oldVal) => {
|
|
17
17
|
if (newVal && newVal !== oldVal) {
|
|
18
|
-
curValue.value =
|
|
18
|
+
curValue.value = "".concat(newVal);
|
|
19
19
|
}
|
|
20
20
|
}, {
|
|
21
21
|
immediate: true
|
|
@@ -67,7 +67,7 @@ const IBizStepper = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
render() {
|
|
68
68
|
let content = null;
|
|
69
69
|
if (this.readonly) {
|
|
70
|
-
content =
|
|
70
|
+
content = "".concat(this.currentVal);
|
|
71
71
|
} else {
|
|
72
72
|
content = [createVNode(resolveComponent("el-input-number"), {
|
|
73
73
|
"ref": "inputRef",
|
|
@@ -34,12 +34,12 @@ const IBizInputIP = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
if (reg.test(newVal)) {
|
|
35
35
|
currentVal.value[index] = newVal;
|
|
36
36
|
} else if (ip) {
|
|
37
|
-
ibiz.message.warning(
|
|
37
|
+
ibiz.message.warning("ip\u683C\u5F0F\u9A8C\u8BC1\u672A\u901A\u8FC7\uFF0C\u7B2C".concat(index + 1, "\u6BB5ip\u91CD\u7F6E\u56DE\u65E7\u503C"));
|
|
38
38
|
ip.value = oldVal;
|
|
39
39
|
currentVal.value[index] = oldVal;
|
|
40
40
|
}
|
|
41
41
|
if (firstIp.value && secIp.value && thirdIp.value && forIp.value) {
|
|
42
|
-
emit("change",
|
|
42
|
+
emit("change", "".concat(firstIp.value, ".").concat(secIp.value, ".").concat(thirdIp.value, ".").concat(forIp.value));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
watch(firstIp, (newVal, oldVal) => {
|
|
@@ -34,6 +34,8 @@ export declare const IBizInputNumber: import("vue").DefineComponent<{
|
|
|
34
34
|
isEditable: import("vue").Ref<boolean>;
|
|
35
35
|
setEditable: (flag: boolean) => void;
|
|
36
36
|
showFormDefaultContent: import("vue").ComputedRef<boolean>;
|
|
37
|
+
max: number;
|
|
38
|
+
min: number;
|
|
37
39
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
40
|
change: (_value: unknown, _name?: string | undefined) => boolean;
|
|
39
41
|
blur: (_event?: IData | undefined) => boolean;
|
|
@@ -2,6 +2,7 @@ import { ref, computed, watch, resolveComponent, createVNode, defineComponent }
|
|
|
2
2
|
import { getInputNumberProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-input-number.css';
|
|
4
4
|
import { isNilOrEmpty } from 'qx-util';
|
|
5
|
+
import { toNumber } from 'lodash-es';
|
|
5
6
|
|
|
6
7
|
"use strict";
|
|
7
8
|
const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
@@ -13,7 +14,18 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
13
14
|
}) {
|
|
14
15
|
const ns = useNamespace("input-number");
|
|
15
16
|
const c = props.controller;
|
|
17
|
+
const editorModel = c.model;
|
|
16
18
|
const currentVal = ref(null);
|
|
19
|
+
let max = Infinity;
|
|
20
|
+
let min = -Infinity;
|
|
21
|
+
if (editorModel.editorParams) {
|
|
22
|
+
if (editorModel.editorParams.maxvalue) {
|
|
23
|
+
max = toNumber(editorModel.editorParams.maxvalue);
|
|
24
|
+
}
|
|
25
|
+
if (editorModel.editorParams.minvalue) {
|
|
26
|
+
min = toNumber(editorModel.editorParams.minvalue);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
17
29
|
const isEditable = ref(false);
|
|
18
30
|
const editorRef = ref();
|
|
19
31
|
const showFormDefaultContent = computed(() => {
|
|
@@ -74,7 +86,9 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
74
86
|
handleKeyUp,
|
|
75
87
|
isEditable,
|
|
76
88
|
setEditable,
|
|
77
|
-
showFormDefaultContent
|
|
89
|
+
showFormDefaultContent,
|
|
90
|
+
max,
|
|
91
|
+
min
|
|
78
92
|
};
|
|
79
93
|
},
|
|
80
94
|
render() {
|
|
@@ -83,7 +97,7 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
83
97
|
} = this.c.parent;
|
|
84
98
|
let content = null;
|
|
85
99
|
if (this.readonly) {
|
|
86
|
-
content = isNilOrEmpty(this.currentVal) ? "" :
|
|
100
|
+
content = isNilOrEmpty(this.currentVal) ? "" : "".concat(this.currentVal);
|
|
87
101
|
if (content && unitName) {
|
|
88
102
|
content += unitName;
|
|
89
103
|
}
|
|
@@ -94,6 +108,8 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
94
108
|
"modelValue": this.currentVal,
|
|
95
109
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
96
110
|
"placeholder": this.c.placeHolder,
|
|
111
|
+
"min": this.min,
|
|
112
|
+
"max": this.max,
|
|
97
113
|
"precision": this.c.precision,
|
|
98
114
|
"disabled": this.disabled,
|
|
99
115
|
"onChange": this.handleChange,
|
|
@@ -198,7 +198,7 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
198
198
|
const {
|
|
199
199
|
unitName
|
|
200
200
|
} = props.controller.parent;
|
|
201
|
-
let text =
|
|
201
|
+
let text = "".concat(currentVal.value);
|
|
202
202
|
if (text && unitName) {
|
|
203
203
|
text += unitName;
|
|
204
204
|
}
|
|
@@ -283,8 +283,8 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
283
283
|
return createVNode("div", {
|
|
284
284
|
"class": [this.ns.b(), this.ns.is("textarea", Object.is(this.type, "textarea")), 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)],
|
|
285
285
|
"style": {
|
|
286
|
-
width: editorWidth ?
|
|
287
|
-
height: editorHeight ?
|
|
286
|
+
width: editorWidth ? "".concat(editorWidth, "px") : "",
|
|
287
|
+
height: editorHeight ? "".concat(editorHeight, "px") : ""
|
|
288
288
|
}
|
|
289
289
|
}, [this.showFormDefaultContent && formDefaultContent, content, this.c.chatCompletion ? createVNode("div", {
|
|
290
290
|
"class": this.ns.e("ai-chat"),
|
|
@@ -90,7 +90,7 @@ class TextBoxEditorController extends EditorController {
|
|
|
90
90
|
if (this.deACMode.actype === "AUTOCOMPLETE") {
|
|
91
91
|
const { minorSortAppDEFieldId, minorSortDir } = this.deACMode;
|
|
92
92
|
if (minorSortAppDEFieldId && minorSortDir) {
|
|
93
|
-
this.sort =
|
|
93
|
+
this.sort = "".concat(minorSortAppDEFieldId.toLowerCase(), ",").concat(minorSortDir.toLowerCase());
|
|
94
94
|
}
|
|
95
95
|
if (this.deACMode.textAppDEFieldId) {
|
|
96
96
|
this.textName = this.deACMode.textAppDEFieldId;
|
|
@@ -61,7 +61,7 @@ class UploadEditorController extends EditorController {
|
|
|
61
61
|
} catch (error) {
|
|
62
62
|
throw new RuntimeModelError(
|
|
63
63
|
uploadParams,
|
|
64
|
-
|
|
64
|
+
"\u914D\u7F6EuploadParams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F"
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -71,7 +71,7 @@ class UploadEditorController extends EditorController {
|
|
|
71
71
|
} catch (error) {
|
|
72
72
|
throw new RuntimeModelError(
|
|
73
73
|
exportParams,
|
|
74
|
-
|
|
74
|
+
"\u914D\u7F6EexportParams\u6CA1\u6709\u6309\u6807\u51C6JSON\u683C\u5F0F"
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -88,8 +88,8 @@ class UploadEditorController extends EditorController {
|
|
|
88
88
|
* @returns {*} {{ uploadUrl: string; downloadUrl: string }}
|
|
89
89
|
*/
|
|
90
90
|
calcBaseUrl(data) {
|
|
91
|
-
let uploadUrl =
|
|
92
|
-
let downloadUrl =
|
|
91
|
+
let uploadUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.uploadFileUrl);
|
|
92
|
+
let downloadUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/%fileId%");
|
|
93
93
|
let uploadParams = {};
|
|
94
94
|
let exportParams = {};
|
|
95
95
|
if (this.uploadParams) {
|
|
@@ -6,7 +6,7 @@ import { ref, watch, computed } from 'vue';
|
|
|
6
6
|
function useIViewUpload(props, valueChange, c) {
|
|
7
7
|
const files = ref([]);
|
|
8
8
|
const headers = ref({
|
|
9
|
-
Authorization:
|
|
9
|
+
Authorization: "Bearer ".concat(getCookie(CoreConst.TOKEN))
|
|
10
10
|
});
|
|
11
11
|
const uploadUrl = ref("");
|
|
12
12
|
const downloadUrl = ref("");
|
package/es/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { IBizViewEngine } from './view-engine/index.mjs';
|
|
|
10
10
|
import './util/index.mjs';
|
|
11
11
|
export { devtool } from './devtool/index.mjs';
|
|
12
12
|
import { IBizWFStepTraceView } from './view/wf-step-trace-view/index.mjs';
|
|
13
|
+
import { IBizSubAppRefView } from './view/sub-app-ref-view/index.mjs';
|
|
13
14
|
import { IBizDataViewControl } from './control/data-view/index.mjs';
|
|
14
15
|
import { IBizTreeControl } from './control/tree/index.mjs';
|
|
15
16
|
import { IBizAppMenuControl } from './control/app-menu/index.mjs';
|
|
@@ -128,6 +129,7 @@ var index = {
|
|
|
128
129
|
v.use(IBizPortalView);
|
|
129
130
|
v.use(IBizWFStepTraceView);
|
|
130
131
|
v.use(IBizDeRedirectView);
|
|
132
|
+
v.use(IBizSubAppRefView);
|
|
131
133
|
v.use(IBizDataViewControl);
|
|
132
134
|
v.use(IBizTreeControl);
|
|
133
135
|
v.use(IBizAppMenuControl);
|
|
@@ -167,4 +169,4 @@ var index = {
|
|
|
167
169
|
}
|
|
168
170
|
};
|
|
169
171
|
|
|
170
|
-
export { IBizAppMenuControl, IBizAppMenuIconViewControl, IBizCalendarControl, IBizCalendarExpBarControl, IBizCaptionBarControl, IBizChartControl, IBizChartExpBarControl, IBizCommonComponents, IBizDRBarControl, IBizDRTabControl, IBizDashboardControl, IBizDataViewControl, IBizDataViewExpBarControl, IBizEditFormControl, IBizEditor, IBizFormControl, IBizGanttControl, IBizGridControl, IBizGridExpBarControl, IBizKanbanControl, IBizListControl, IBizListExpBarControl, IBizMEditViewPanelControl, IBizMapControl, IBizPanelComponents, IBizPickupViewPanelControl, IBizReportPanelControl, IBizSearchBarControl, IBizSearchFormControl, IBizTabExpPanelControl, IBizToolbarControl, IBizTreeControl, IBizTreeExpBarControl, IBizTreeGridControl, IBizTreeGridExControl, IBizViewEngine, IBizWFStepTraceView, IBizWizardPanelControl, index as default };
|
|
172
|
+
export { IBizAppMenuControl, IBizAppMenuIconViewControl, IBizCalendarControl, IBizCalendarExpBarControl, IBizCaptionBarControl, IBizChartControl, IBizChartExpBarControl, IBizCommonComponents, IBizDRBarControl, IBizDRTabControl, IBizDashboardControl, IBizDataViewControl, IBizDataViewExpBarControl, IBizEditFormControl, IBizEditor, IBizFormControl, IBizGanttControl, IBizGridControl, IBizGridExpBarControl, IBizKanbanControl, IBizListControl, IBizListExpBarControl, IBizMEditViewPanelControl, IBizMapControl, IBizPanelComponents, IBizPickupViewPanelControl, IBizReportPanelControl, IBizSearchBarControl, IBizSearchFormControl, IBizSubAppRefView, IBizTabExpPanelControl, IBizToolbarControl, IBizTreeControl, IBizTreeExpBarControl, IBizTreeGridControl, IBizTreeGridExControl, IBizViewEngine, IBizWFStepTraceView, IBizWizardPanelControl, index as default };
|
|
@@ -36,7 +36,7 @@ const AuthUserinfo = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
const onClick = async () => {
|
|
37
37
|
const bol = await ibiz.hub.controller.logout();
|
|
38
38
|
if (bol) {
|
|
39
|
-
await router.push(
|
|
39
|
+
await router.push("/login?ru=".concat(encodeURIComponent(window.location.hash.replace("#/", "/"))));
|
|
40
40
|
ibiz.util.showAppLoading();
|
|
41
41
|
window.location.reload();
|
|
42
42
|
}
|
|
@@ -240,9 +240,9 @@ class NavPosIndexController extends PanelItemController {
|
|
|
240
240
|
} else {
|
|
241
241
|
const route = this.router.currentRoute.value;
|
|
242
242
|
const { appContext } = route.params;
|
|
243
|
-
let indexPath =
|
|
243
|
+
let indexPath = "/".concat(appContext);
|
|
244
244
|
for (let index = 1; index <= this.routeDepth; index++) {
|
|
245
|
-
indexPath +=
|
|
245
|
+
indexPath += "/".concat(route.params["view".concat(index)], "/").concat(ibiz.env.routePlaceholder);
|
|
246
246
|
}
|
|
247
247
|
this.router.push(indexPath);
|
|
248
248
|
}
|
|
@@ -82,7 +82,7 @@ const NavTabs = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
}, _isSlot(_slot = state.tabItems.map((msg) => {
|
|
83
83
|
let label = msg.caption;
|
|
84
84
|
if (msg.dataInfo) {
|
|
85
|
-
label +=
|
|
85
|
+
label += " - ".concat(msg.dataInfo);
|
|
86
86
|
}
|
|
87
87
|
return createVNode(resolveComponent("el-tab-pane"), {
|
|
88
88
|
"name": msg.key,
|
|
@@ -45,7 +45,7 @@ class SplitContainerController extends PanelItemController {
|
|
|
45
45
|
*/
|
|
46
46
|
initSplitValue(value, mode) {
|
|
47
47
|
if (mode === "PX") {
|
|
48
|
-
this.splitValue =
|
|
48
|
+
this.splitValue = "".concat(value, "px");
|
|
49
49
|
}
|
|
50
50
|
if (mode === "PERCENTAGE") {
|
|
51
51
|
this.splitValue = value / 100;
|
|
@@ -16,7 +16,7 @@ function fileDownload(file) {
|
|
|
16
16
|
delimiter: ";"
|
|
17
17
|
}).filename;
|
|
18
18
|
if (filename) {
|
|
19
|
-
file.name +=
|
|
19
|
+
file.name += ".".concat(filename.split(".")[1]);
|
|
20
20
|
}
|
|
21
21
|
if (response.status !== 200) {
|
|
22
22
|
throw new RuntimeError("\u4E0B\u8F7D\u6587\u4EF6\u5931\u8D25");
|
|
@@ -59,7 +59,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
}],
|
|
60
60
|
errorFileUrl: ""
|
|
61
61
|
});
|
|
62
|
-
info.title =
|
|
62
|
+
info.title = "\u5BFC\u5165\u6570\u636E\u8BE6\u60C5-".concat(props.asyncAction.asyncacitonname);
|
|
63
63
|
info.beginTime = props.asyncAction.begintime;
|
|
64
64
|
info.endTime = props.asyncAction.endtime;
|
|
65
65
|
if (props.asyncAction.actionresult) {
|
|
@@ -83,7 +83,7 @@ const AsyncActionPreview = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
info.errorDetails = [];
|
|
84
84
|
}
|
|
85
85
|
if (actionResult.errorfile) {
|
|
86
|
-
info.errorFileUrl =
|
|
86
|
+
info.errorFileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(actionResult.errorfile.folder, "/").concat(actionResult.errorfile.fileid);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
const onDownLoad = () => {
|
|
@@ -60,7 +60,7 @@ const UserMessage = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
},
|
|
61
61
|
render() {
|
|
62
62
|
const restLength = this.appStore.allAsyncActions.length - this.actualMsgs.length;
|
|
63
|
-
const loadMoreText = this.actualMsgs.length === 0 ?
|
|
63
|
+
const loadMoreText = this.actualMsgs.length === 0 ? "\u67E5\u770B\u5386\u53F2\uFF08".concat(restLength, "\uFF09") : "\u52A0\u8F7D\u66F4\u591A\uFF08".concat(restLength, "\uFF09");
|
|
64
64
|
return createVNode("div", {
|
|
65
65
|
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
|
|
66
66
|
}, [createVNode(resolveComponent("el-popover"), {
|
|
@@ -40,10 +40,10 @@ const AppFloatWindowComponent = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
});
|
|
41
41
|
const calcStyle = () => {
|
|
42
42
|
return {
|
|
43
|
-
left:
|
|
44
|
-
top:
|
|
45
|
-
height:
|
|
46
|
-
width:
|
|
43
|
+
left: "".concat(state.x, "px"),
|
|
44
|
+
top: "".concat(state.y, "px"),
|
|
45
|
+
height: "".concat(state.height, "px"),
|
|
46
|
+
width: "".concat(state.width, "px"),
|
|
47
47
|
zIndex: modalZIndex
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -26,10 +26,10 @@ const AppModalComponent = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
height
|
|
27
27
|
} = props.opts;
|
|
28
28
|
if (width) {
|
|
29
|
-
customStyle.width = isNumber(width) ?
|
|
29
|
+
customStyle.width = isNumber(width) ? "".concat(width, "px") : width;
|
|
30
30
|
}
|
|
31
31
|
if (height) {
|
|
32
|
-
customStyle.height = isNumber(height) ?
|
|
32
|
+
customStyle.height = isNumber(height) ? "".concat(height, "px") : height;
|
|
33
33
|
}
|
|
34
34
|
const options = ref({
|
|
35
35
|
footerHide: true,
|
|
@@ -27,8 +27,8 @@ async function computePos(element, el, arrEl, opts) {
|
|
|
27
27
|
const {
|
|
28
28
|
style
|
|
29
29
|
} = el;
|
|
30
|
-
style.left =
|
|
31
|
-
style.top =
|
|
30
|
+
style.left = "".concat(x, "px");
|
|
31
|
+
style.top = "".concat(y, "px");
|
|
32
32
|
if (!opts.noArrow) {
|
|
33
33
|
const {
|
|
34
34
|
x: arrowX,
|
|
@@ -41,8 +41,8 @@ async function computePos(element, el, arrEl, opts) {
|
|
|
41
41
|
left: "right"
|
|
42
42
|
}[placement.split("-")[0]];
|
|
43
43
|
Object.assign(arrEl.style, {
|
|
44
|
-
left: arrowX != null ?
|
|
45
|
-
top: arrowY != null ?
|
|
44
|
+
left: arrowX != null ? "".concat(arrowX, "px") : "",
|
|
45
|
+
top: arrowY != null ? "".concat(arrowY, "px") : "",
|
|
46
46
|
right: "",
|
|
47
47
|
bottom: "",
|
|
48
48
|
[staticSide]: "-4px"
|
|
@@ -15,10 +15,10 @@ class ConfirmUtil {
|
|
|
15
15
|
async info(params) {
|
|
16
16
|
return new Promise((resolve) => {
|
|
17
17
|
ElMessageBox.confirm(params.desc, params.title, {
|
|
18
|
-
customClass:
|
|
18
|
+
customClass: "".concat(this.ns.b(), " ").concat(this.ns.e("info")),
|
|
19
19
|
type: "info",
|
|
20
|
-
cancelButtonClass:
|
|
21
|
-
confirmButtonClass:
|
|
20
|
+
cancelButtonClass: "".concat(this.ns.b("cancel"), " el-button--info"),
|
|
21
|
+
confirmButtonClass: "".concat(this.ns.b("ok")),
|
|
22
22
|
...params.options
|
|
23
23
|
}).then(() => resolve(true)).catch(() => resolve(false));
|
|
24
24
|
});
|
|
@@ -26,9 +26,9 @@ class ConfirmUtil {
|
|
|
26
26
|
async success(params) {
|
|
27
27
|
return new Promise((resolve) => {
|
|
28
28
|
ElMessageBox.confirm(params.desc, params.title, {
|
|
29
|
-
customClass:
|
|
30
|
-
cancelButtonClass:
|
|
31
|
-
confirmButtonClass:
|
|
29
|
+
customClass: "".concat(this.ns.b(), " ").concat(this.ns.e("success")),
|
|
30
|
+
cancelButtonClass: "".concat(this.ns.b("cancel"), " el-button--info"),
|
|
31
|
+
confirmButtonClass: "".concat(this.ns.b("ok")),
|
|
32
32
|
type: "success",
|
|
33
33
|
...params.options
|
|
34
34
|
}).then(() => resolve(true)).catch(() => resolve(false));
|
|
@@ -37,9 +37,9 @@ class ConfirmUtil {
|
|
|
37
37
|
async warning(params) {
|
|
38
38
|
return new Promise((resolve) => {
|
|
39
39
|
ElMessageBox.confirm(params.desc, params.title, {
|
|
40
|
-
customClass:
|
|
41
|
-
cancelButtonClass:
|
|
42
|
-
confirmButtonClass:
|
|
40
|
+
customClass: "".concat(this.ns.b(), " ").concat(this.ns.e("warning")),
|
|
41
|
+
cancelButtonClass: "".concat(this.ns.b("cancel"), " el-button--info"),
|
|
42
|
+
confirmButtonClass: "".concat(this.ns.b("ok")),
|
|
43
43
|
type: "warning",
|
|
44
44
|
...params.options
|
|
45
45
|
}).then(() => resolve(true)).catch(() => resolve(false));
|
|
@@ -48,9 +48,9 @@ class ConfirmUtil {
|
|
|
48
48
|
async error(params) {
|
|
49
49
|
return new Promise((resolve) => {
|
|
50
50
|
ElMessageBox.confirm(params.desc, params.title, {
|
|
51
|
-
customClass:
|
|
52
|
-
cancelButtonClass:
|
|
53
|
-
confirmButtonClass:
|
|
51
|
+
customClass: "".concat(this.ns.b(), " ").concat(this.ns.e("error")),
|
|
52
|
+
cancelButtonClass: "".concat(this.ns.b("cancel"), " el-button--info"),
|
|
53
|
+
confirmButtonClass: "".concat(this.ns.b("ok")),
|
|
54
54
|
type: "error",
|
|
55
55
|
...params.options
|
|
56
56
|
}).then(() => resolve(true)).catch(() => resolve(false));
|
package/es/view/index.d.ts
CHANGED
package/es/view/index.mjs
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const IBizSubAppRefView: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
context: import("vue").PropType<IContext>;
|
|
3
|
+
params: {
|
|
4
|
+
type: import("vue").PropType<IParams>;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
modelData: {
|
|
8
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppView>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
modal: {
|
|
12
|
+
type: import("vue").PropType<import("@ibiz-template/runtime").IModal>;
|
|
13
|
+
};
|
|
14
|
+
state: {
|
|
15
|
+
type: import("vue").PropType<IData>;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
19
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
20
|
+
viewClassNames: (string | undefined)[];
|
|
21
|
+
htmlUrl: import("vue").ComputedRef<any>;
|
|
22
|
+
handleClick: () => void;
|
|
23
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
context: import("vue").PropType<IContext>;
|
|
25
|
+
params: {
|
|
26
|
+
type: import("vue").PropType<IParams>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
modelData: {
|
|
30
|
+
type: import("vue").PropType<import("@ibiz/model-core").IAppView>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
modal: {
|
|
34
|
+
type: import("vue").PropType<import("@ibiz-template/runtime").IModal>;
|
|
35
|
+
};
|
|
36
|
+
state: {
|
|
37
|
+
type: import("vue").PropType<IData>;
|
|
38
|
+
};
|
|
39
|
+
}>>, {
|
|
40
|
+
params: IParams;
|
|
41
|
+
}, {}>>;
|