@ibiz-template/vue3-components 0.6.9 → 0.6.11
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-oPRPtU0q.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Zc_Y0dGt.js +1 -0
- package/dist/{xlsx-util-vDgpWrEL.js → xlsx-util-5X-82uzW.js} +1 -1
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/drbar/drbar.controller.d.ts +15 -1
- package/es/control/drbar/drbar.controller.mjs +53 -4
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drbar/drbar.d.ts +0 -1
- package/es/control/drbar/drbar.mjs +8 -13
- package/es/control/drbar/index.d.ts +0 -1
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/calendar-exp-bar/calendar-exp-bar.mjs +3 -3
- package/es/control/exp-bar/calendar-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/chart-exp-bar/chart-exp-bar.mjs +3 -3
- package/es/control/exp-bar/chart-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.mjs +3 -3
- package/es/control/exp-bar/data-view-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/grid-exp-bar/grid-exp-bar.mjs +3 -3
- package/es/control/exp-bar/grid-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/list-exp-bar/list-exp-bar.mjs +3 -3
- package/es/control/exp-bar/render-util.d.ts +2 -2
- package/es/control/exp-bar/render-util.mjs +16 -3
- package/es/control/exp-bar/tree-exp-bar/index.d.ts +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.d.ts +1 -1
- package/es/control/exp-bar/tree-exp-bar/tree-exp-bar.mjs +3 -3
- package/es/control/form/form/form.mjs +16 -2
- package/es/control/form/form-detail/form-item/form-item.mjs +2 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +3 -0
- package/es/control/grid/grid/grid.mjs +18 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.mjs +2 -1
- package/es/control/toolbar/toolbar.mjs +12 -2
- package/es/control/tree-grid/tree-grid.mjs +14 -2
- package/es/editor/array/ibiz-array/ibiz-array.mjs +5 -5
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +3 -3
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +3 -3
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +3 -3
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.mjs +3 -3
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +3 -3
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.mjs +3 -3
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +3 -3
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +5 -5
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +3 -3
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.css +1 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.mjs +4 -4
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +5 -5
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +4 -4
- package/es/editor/html/wang-editor/wang-editor.mjs +4 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +5 -5
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +5 -5
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +3 -3
- package/es/editor/rate/ibiz-rate/ibiz-rate.mjs +3 -3
- package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +3 -3
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.mjs +3 -3
- package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +3 -3
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +3 -3
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/text-box/input/input.mjs +3 -3
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +3 -3
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.mjs +3 -3
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +5 -5
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +3 -3
- package/es/util/message-util/message-util.d.ts +13 -1
- package/es/util/message-util/message-util.mjs +50 -0
- package/es/view-engine/edit-view.engine.mjs +7 -7
- package/es/view-engine/exp-view.engine.d.ts +2 -1
- package/es/view-engine/exp-view.engine.mjs +10 -0
- package/es/view-engine/index.mjs +5 -0
- package/es/view-engine/tab-search-view.engine.d.ts +61 -0
- package/es/view-engine/tab-search-view.engine.mjs +105 -0
- package/es/web-app/App.css +1 -1
- package/es/web-app/guard/auth-guard/auth-guard.mjs +8 -4
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/drbar/drbar.cjs +7 -12
- package/lib/control/drbar/drbar.controller.cjs +53 -4
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/exp-bar/calendar-exp-bar/calendar-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/chart-exp-bar/chart-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/data-view-exp-bar/data-view-view-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/grid-exp-bar/grid-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/list-exp-bar/list-exp-bar.cjs +3 -3
- package/lib/control/exp-bar/render-util.cjs +15 -2
- package/lib/control/exp-bar/tree-exp-bar/tree-exp-bar.cjs +3 -3
- package/lib/control/form/form/form.cjs +15 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +2 -1
- package/lib/control/grid/grid/grid.cjs +17 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.cjs +2 -1
- package/lib/control/toolbar/toolbar.cjs +12 -2
- package/lib/control/tree-grid/tree-grid.cjs +14 -2
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +4 -4
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -2
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +2 -2
- package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +2 -2
- package/lib/editor/check-box/ibiz-checkbox/ibiz-checkbox.cjs +2 -2
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +2 -2
- package/lib/editor/color-picker/ibiz-color-picker/ibiz-color-picker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -2
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +4 -4
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -2
- package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.css +1 -1
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.cjs +3 -3
- package/lib/editor/date-picker/ibiz-date-picker/ibiz-date-picker.css +1 -1
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +4 -4
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +3 -3
- package/lib/editor/html/wang-editor/wang-editor.cjs +4 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +4 -4
- package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +4 -4
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +2 -2
- package/lib/editor/rate/ibiz-rate/ibiz-rate.cjs +2 -2
- package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +2 -2
- package/lib/editor/stepper/ibiz-stepper/ibiz-stepper.cjs +2 -2
- package/lib/editor/switch/ibiz-switch/ibiz-switch.cjs +2 -2
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +2 -2
- package/lib/editor/text-box/input/input.cjs +2 -2
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +2 -2
- package/lib/editor/upload/ibiz-image-preview/ibiz-image-preview.cjs +2 -2
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +4 -4
- package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +2 -2
- package/lib/util/message-util/message-util.cjs +50 -0
- package/lib/view-engine/edit-view.engine.cjs +6 -6
- package/lib/view-engine/exp-view.engine.cjs +10 -0
- package/lib/view-engine/index.cjs +5 -0
- package/lib/view-engine/tab-search-view.engine.cjs +107 -0
- package/lib/web-app/App.css +1 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +8 -4
- package/package.json +9 -9
- package/dist/index-kZU4Zro0.js +0 -4
- package/dist/wang-editor-SyWEeij2.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getNumberRangeProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-number-range-picker.css';
|
|
4
4
|
import { toNumber } from 'lodash-es';
|
|
@@ -136,7 +136,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
render() {
|
|
137
137
|
const editContent = createVNode("div", {
|
|
138
138
|
"class": this.ns.b("input")
|
|
139
|
-
}, [createVNode(resolveComponent("el-input-number"), {
|
|
139
|
+
}, [createVNode(resolveComponent("el-input-number"), mergeProps({
|
|
140
140
|
"min": this.min,
|
|
141
141
|
"modelValue": this.minValue,
|
|
142
142
|
"disabled": this.disabled,
|
|
@@ -148,9 +148,9 @@ const IBizNumberRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
148
148
|
"onKeyup": this.handleKeyUp,
|
|
149
149
|
"onFocus": this.onFocus,
|
|
150
150
|
"onBlur": this.onBlur
|
|
151
|
-
}, null), createVNode("div", {
|
|
151
|
+
}, this.$attrs), null), createVNode("div", {
|
|
152
152
|
"class": this.ns.b("separator")
|
|
153
|
-
}, [this.rangeSeparator]), createVNode(resolveComponent("el-input-number"), {
|
|
153
|
+
}, [this.rangeSeparator]), createVNode(resolveComponent("el-input-number"), mergeProps({
|
|
154
154
|
"min": typeof this.minValue === "number" ? this.minValue + 1 : -Infinity,
|
|
155
155
|
"max": this.max,
|
|
156
156
|
"modelValue": this.maxValue,
|
|
@@ -163,7 +163,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ defineComponent({
|
|
|
163
163
|
"onKeyup": this.handleKeyUp,
|
|
164
164
|
"onFocus": this.onFocus,
|
|
165
165
|
"onBlur": this.onBlur
|
|
166
|
-
}, null)]);
|
|
166
|
+
}, this.$attrs), null)]);
|
|
167
167
|
const readonlyContent = createVNode("div", {
|
|
168
168
|
"class": (this.ns.b(), this.ns.m("readonly"))
|
|
169
169
|
}, [this.valueText]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, ref, watch, computed, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { isVNode, ref, watch, computed, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getRadioProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-radio.css';
|
|
4
4
|
import { notNilEmpty } from 'qx-util';
|
|
@@ -76,11 +76,11 @@ const IBizRadio = /* @__PURE__ */ defineComponent({
|
|
|
76
76
|
return createVNode("div", {
|
|
77
77
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
78
78
|
"ref": "editorRef"
|
|
79
|
-
}, [this.readonly ? this.valueText : createVNode(resolveComponent("el-radio-group"), {
|
|
79
|
+
}, [this.readonly ? this.valueText : createVNode(resolveComponent("el-radio-group"), mergeProps({
|
|
80
80
|
"class": this.ns.e("group"),
|
|
81
81
|
"model-value": notNilEmpty(this.value) ? String(this.value) : "",
|
|
82
82
|
"onChange": this.onSelectValueChange
|
|
83
|
-
}, _isSlot(_slot = this.items.map((_item, index) => this.renderMode === "radio" ? createVNode(resolveComponent("el-radio"), {
|
|
83
|
+
}, this.$attrs), _isSlot(_slot = this.items.map((_item, index) => this.renderMode === "radio" ? createVNode(resolveComponent("el-radio"), {
|
|
84
84
|
"key": index,
|
|
85
85
|
"label": notNilEmpty(_item.value) ? String(_item.value) : "",
|
|
86
86
|
"disabled": this.disabled || _item.disableSelect === true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getRateProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { toNumber } from 'lodash-es';
|
|
4
4
|
import './ibiz-rate.css';
|
|
@@ -72,7 +72,7 @@ const IBizRate = /* @__PURE__ */ defineComponent({
|
|
|
72
72
|
return createVNode("div", {
|
|
73
73
|
"class": [this.ns.b(), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
74
74
|
"ref": "editorRef"
|
|
75
|
-
}, [createVNode(resolveComponent("el-rate"), {
|
|
75
|
+
}, [createVNode(resolveComponent("el-rate"), mergeProps({
|
|
76
76
|
"modelValue": this.currentVal,
|
|
77
77
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
78
78
|
"disabled": this.disabled || this.readonly,
|
|
@@ -81,7 +81,7 @@ const IBizRate = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
"showText": this.showText,
|
|
82
82
|
"texts": this.texts,
|
|
83
83
|
"onChange": this.handleChange
|
|
84
|
-
}, null)]);
|
|
84
|
+
}, this.$attrs), null)]);
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, ref, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { computed, ref, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getSliderProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { toNumber } from 'lodash-es';
|
|
4
4
|
import './ibiz-slider.css';
|
|
@@ -110,7 +110,7 @@ const IBizSlider = /* @__PURE__ */ defineComponent({
|
|
|
110
110
|
return createVNode("div", {
|
|
111
111
|
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.showText ? this.ns.e("text") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
112
112
|
"ref": "editorRef"
|
|
113
|
-
}, [createVNode(resolveComponent("el-slider"), {
|
|
113
|
+
}, [createVNode(resolveComponent("el-slider"), mergeProps({
|
|
114
114
|
"modelValue": this.currentVal,
|
|
115
115
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
116
116
|
"disabled": this.disabled || this.readonly,
|
|
@@ -121,7 +121,7 @@ const IBizSlider = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
"range": this.range,
|
|
122
122
|
"showInput": this.showInput,
|
|
123
123
|
"onChange": this.handleChange
|
|
124
|
-
}, null), this.showText ? createVNode("span", {
|
|
124
|
+
}, this.$attrs), null), this.showText ? createVNode("span", {
|
|
125
125
|
"class": [this.ns.em("text", "val")]
|
|
126
126
|
}, [this.textVal]) : null]);
|
|
127
127
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getStepperProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { toNumber } from 'lodash-es';
|
|
4
4
|
import './ibiz-stepper.css';
|
|
@@ -77,7 +77,7 @@ const IBizStepper = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
if (this.readonly) {
|
|
78
78
|
content = "".concat(this.currentVal);
|
|
79
79
|
} else {
|
|
80
|
-
content = [createVNode(resolveComponent("el-input-number"), {
|
|
80
|
+
content = [createVNode(resolveComponent("el-input-number"), mergeProps({
|
|
81
81
|
"ref": "inputRef",
|
|
82
82
|
"modelValue": this.currentVal,
|
|
83
83
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
@@ -90,7 +90,7 @@ const IBizStepper = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
"onChange": this.handleChange,
|
|
91
91
|
"onFocus": this.onFocus,
|
|
92
92
|
"onBlur": this.onBlur
|
|
93
|
-
}, null)];
|
|
93
|
+
}, this.$attrs), null)];
|
|
94
94
|
}
|
|
95
95
|
return createVNode("div", {
|
|
96
96
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getSwitchProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-switch.css';
|
|
4
4
|
|
|
@@ -81,14 +81,14 @@ const IBizSwitch = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
return createVNode("div", {
|
|
82
82
|
"class": [this.ns.b(), this.ns.is("show-default", this.showFormDefaultContent)],
|
|
83
83
|
"ref": "editorRef"
|
|
84
|
-
}, [createVNode(resolveComponent("el-switch"), {
|
|
84
|
+
}, [createVNode(resolveComponent("el-switch"), mergeProps({
|
|
85
85
|
"modelValue": this.currentVal,
|
|
86
86
|
"onUpdate:modelValue": ($event) => this.currentVal = $event,
|
|
87
87
|
"disabled": this.disabled || this.readonly,
|
|
88
88
|
"activeText": this.activeText,
|
|
89
89
|
"inactiveText": this.inactiveText,
|
|
90
90
|
"onChange": this.handleChange
|
|
91
|
-
}, null)]);
|
|
91
|
+
}, this.$attrs), null)]);
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
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';
|
|
@@ -102,7 +102,7 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
102
102
|
content += unitName;
|
|
103
103
|
}
|
|
104
104
|
} else {
|
|
105
|
-
content = [createVNode(resolveComponent("el-input-number"), {
|
|
105
|
+
content = [createVNode(resolveComponent("el-input-number"), mergeProps({
|
|
106
106
|
"ref": "editorRef",
|
|
107
107
|
"class": [this.ns.b("input")],
|
|
108
108
|
"model-value": this.currentVal,
|
|
@@ -116,7 +116,7 @@ const IBizInputNumber = /* @__PURE__ */ defineComponent({
|
|
|
116
116
|
"onFocus": this.onFocus,
|
|
117
117
|
"onBlur": this.onBlur,
|
|
118
118
|
"onKeyup": this.handleKeyUp
|
|
119
|
-
}, null), unitName && createVNode("i", {
|
|
119
|
+
}, this.$attrs), null), unitName && createVNode("i", {
|
|
120
120
|
"class": this.ns.e("unit")
|
|
121
121
|
}, [unitName])];
|
|
122
122
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-input{width:100%;height:100%;font-size:var(--ibiz-form-item-font-size);font-weight:var(--ibiz-form-item-regular);--ibiz-input-min-height:var(--ibiz-editor-default-line-height)}.ibiz-input__ai-chat{position:absolute;right:10px;bottom:10px;width:36px;height:36px;padding:8px;font-size:18px;color:var(--ibiz-color-primary-text);cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:15px}.ibiz-input__ai-chat:hover{color:var(--ibiz-color-primary-hover-text);background-color:var(--ibiz-color-primary-hover)}.ibiz-input .el-input .el-input__inner{height:100%}.ibiz-input .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-textarea .el-textarea__inner{height:100%}.ibiz-input .el-textarea .el-textarea__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-textarea .el-textarea__inner::placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .ibiz-input-input{height:100%}.ibiz-input .ibiz-input-input .el-input__wrapper{width:100%;min-height:var(--ibiz-input-min-height)}.ibiz-input--readonly{height:auto;line-height:var(--ibiz-input-min-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-input .el-input__suffix .ibiz-input__unit{font-style:normal}.ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-textarea{padding:var(--ibiz-form-item-hover-edit-padding)}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-form-default-content{display:block}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-input{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-input{display:inline-flex}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color);word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input{display:none;font-family:Arial,sans-serif}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input.el-textarea .el-textarea__inner{word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-input{display:inline-flex}
|
|
1
|
+
.ibiz-input{width:100%;height:100%;font-size:var(--ibiz-form-item-font-size);font-weight:var(--ibiz-form-item-regular);--ibiz-input-min-height:var(--ibiz-editor-default-line-height)}.ibiz-input__ai-chat{position:absolute;right:10px;bottom:10px;width:36px;height:36px;padding:8px;font-size:18px;color:var(--ibiz-color-primary-text);cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:15px}.ibiz-input__ai-chat:hover{color:var(--ibiz-color-primary-hover-text);background-color:var(--ibiz-color-primary-hover)}.ibiz-input .el-input .el-input__inner{height:100%}.ibiz-input .el-input .el-input__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-input .el-input__inner::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-input .el-textarea .el-textarea__inner{height:100%}.ibiz-input .el-textarea .el-textarea__inner::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .el-textarea .el-textarea__inner::placeholder{color:var(--ibiz-form-item-placeholder-color);word-break:break-word;white-space:pre-wrap}.ibiz-input .ibiz-input-input{height:100%}.ibiz-input .ibiz-input-input .el-input__wrapper{width:100%;min-height:var(--ibiz-input-min-height)}.ibiz-input--readonly{height:auto;line-height:var(--ibiz-input-min-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-input .el-input__suffix .ibiz-input__unit{font-style:normal}.ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-textarea{padding:var(--ibiz-form-item-hover-edit-padding);overflow:hidden}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-form-default-content{display:block}.ibiz-form-item .ibiz-input.is-show-default.is-textarea .ibiz-input-input{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default:hover .ibiz-input-input{display:inline-flex}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-form-default-content{display:flex;align-items:center;width:100%;padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color);word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input{display:none;font-family:Arial,sans-serif}.ibiz-form-item .ibiz-input.is-show-default .ibiz-input-input.el-textarea .el-textarea__inner{word-wrap:break-word;white-space:pre-wrap}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-form-default-content{display:none}.ibiz-form-item .ibiz-input.is-show-default.is-editable .ibiz-input-input{display:inline-flex}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, ref, computed, watch, onUnmounted, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
1
|
+
import { isVNode, ref, computed, watch, onUnmounted, createVNode, resolveComponent, mergeProps, defineComponent } from 'vue';
|
|
2
2
|
import { debounce } from 'lodash-es';
|
|
3
3
|
import { getInputProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
4
4
|
import { createUUID } from 'qx-util';
|
|
@@ -268,7 +268,7 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
268
268
|
"name": "unlock-alt"
|
|
269
269
|
}, null);
|
|
270
270
|
}
|
|
271
|
-
content = createVNode(resolveComponent("el-input"), {
|
|
271
|
+
content = createVNode(resolveComponent("el-input"), mergeProps({
|
|
272
272
|
"ref": "editorRef",
|
|
273
273
|
"clearable": true,
|
|
274
274
|
"modelValue": this.currentVal,
|
|
@@ -289,7 +289,7 @@ const IBizInput = /* @__PURE__ */ defineComponent({
|
|
|
289
289
|
"disabled": this.disabled,
|
|
290
290
|
"show-password": this.type === "password",
|
|
291
291
|
"autocomplete": this.shouldAutoComplete
|
|
292
|
-
}, _isSlot(slots) ? slots : {
|
|
292
|
+
}, this.$attrs), _isSlot(slots) ? slots : {
|
|
293
293
|
default: () => [slots]
|
|
294
294
|
});
|
|
295
295
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, resolveComponent, createTextVNode, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { computed, resolveComponent, mergeProps, createTextVNode, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getUploadProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-file-upload.css';
|
|
4
4
|
import { useIViewUpload } from '../use/use-iview-upload.mjs';
|
|
@@ -64,7 +64,7 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
return createVNode("div", {
|
|
65
65
|
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
66
66
|
"ref": "componentRef"
|
|
67
|
-
}, [createVNode(resolveComponent("el-upload"), {
|
|
67
|
+
}, [createVNode(resolveComponent("el-upload"), mergeProps({
|
|
68
68
|
"class": [this.ns.b("icon"), this.ns.is("not-show", this.noUploadIcon)],
|
|
69
69
|
"file-list": this.files,
|
|
70
70
|
"action": this.uploadUrl,
|
|
@@ -79,7 +79,7 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
"onError": this.onError,
|
|
80
80
|
"onRemove": this.onRemove,
|
|
81
81
|
"onPreview": this.onDownload
|
|
82
|
-
}, {
|
|
82
|
+
}, this.$attrs), {
|
|
83
83
|
default: () => [this.noUploadIcon ? null : createVNode(resolveComponent("el-button"), {
|
|
84
84
|
"class": [this.ns.b("button")],
|
|
85
85
|
"size": this.isGridEditor ? "small" : "default"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { computed, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { getUploadProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-image-preview.css';
|
|
4
4
|
|
|
@@ -28,11 +28,11 @@ const IBizImagePreview = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
"onClick": (e) => {
|
|
29
29
|
e.stopPropagation();
|
|
30
30
|
}
|
|
31
|
-
}, [createVNode(resolveComponent("el-image"), {
|
|
31
|
+
}, [createVNode(resolveComponent("el-image"), mergeProps({
|
|
32
32
|
"fit": "contain",
|
|
33
33
|
"src": this.value,
|
|
34
34
|
"preview-src-list": [this.value]
|
|
35
|
-
}, null)]);
|
|
35
|
+
}, this.$attrs), null)]);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
1
|
+
import { ref, computed, createVNode, resolveComponent, mergeProps, defineComponent } from 'vue';
|
|
2
2
|
import { getUploadProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-image-upload.css';
|
|
4
4
|
import { useIViewUpload } from '../use/use-iview-upload.mjs';
|
|
@@ -93,7 +93,7 @@ const IBizImageUpload = /* @__PURE__ */ defineComponent({
|
|
|
93
93
|
"class": this.ns.e("remove-icon"),
|
|
94
94
|
"onClick": () => this.onRemove(item),
|
|
95
95
|
"name": "remove"
|
|
96
|
-
}, null)])]))]), createVNode(resolveComponent("el-upload"), {
|
|
96
|
+
}, null)])]))]), createVNode(resolveComponent("el-upload"), mergeProps({
|
|
97
97
|
"ref": "imageUpload",
|
|
98
98
|
"class": [this.ns.b("icon"), this.ns.is("not-show", this.noUploadIcon)],
|
|
99
99
|
"file-list": this.files,
|
|
@@ -110,19 +110,19 @@ const IBizImageUpload = /* @__PURE__ */ defineComponent({
|
|
|
110
110
|
"onError": this.onError,
|
|
111
111
|
"onRemove": this.onRemove,
|
|
112
112
|
"onPreview": this.onDownload
|
|
113
|
-
}, {
|
|
113
|
+
}, this.$attrs), {
|
|
114
114
|
default: () => [createVNode("ion-icon", {
|
|
115
115
|
"name": "add-outline",
|
|
116
116
|
"class": this.ns.e("image-upload-add")
|
|
117
117
|
}, null)]
|
|
118
|
-
}), this.dialogVisible ? createVNode(resolveComponent("el-image-viewer"), {
|
|
118
|
+
}), this.dialogVisible ? createVNode(resolveComponent("el-image-viewer"), mergeProps({
|
|
119
119
|
"onClose": () => this.onDialogVisibleChange(false),
|
|
120
120
|
"url-list": [this.dialogImageUrl],
|
|
121
121
|
"hide-on-click-modal": true,
|
|
122
122
|
"close-on-press-escape": true,
|
|
123
123
|
"teleported": true,
|
|
124
124
|
"z-index": 9999
|
|
125
|
-
}, null) : null]);
|
|
125
|
+
}, this.$attrs), null) : null]);
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, computed, watch, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { ref, computed, watch, resolveComponent, createVNode, mergeProps, defineComponent } from 'vue';
|
|
2
2
|
import { getInputProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './ibiz-searchcond-edit.css';
|
|
4
4
|
import { isNilOrEmpty } from 'qx-util';
|
|
@@ -152,7 +152,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ defineComponent({
|
|
|
152
152
|
if (this.readonly) {
|
|
153
153
|
content = isNilOrEmpty(this.currentVal) ? "" : "".concat(this.currentVal);
|
|
154
154
|
} else {
|
|
155
|
-
content = [createVNode(resolveComponent("el-input"), {
|
|
155
|
+
content = [createVNode(resolveComponent("el-input"), mergeProps({
|
|
156
156
|
"ref": "editorRef",
|
|
157
157
|
"class": [this.ns.b("input")],
|
|
158
158
|
"model-value": this.currentVal,
|
|
@@ -164,7 +164,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ defineComponent({
|
|
|
164
164
|
"onFocus": this.onFocus,
|
|
165
165
|
"onBlur": this.onBlur,
|
|
166
166
|
"onKeyup": this.handleKeyUp
|
|
167
|
-
}, null), createVNode(resolveComponent("el-button"), {
|
|
167
|
+
}, this.$attrs), null), createVNode(resolveComponent("el-button"), {
|
|
168
168
|
"ref": "filterButtonRef",
|
|
169
169
|
"type": "primary",
|
|
170
170
|
"title": "\u7F16\u8F91",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMessageUtil } from '@ibiz-template/runtime';
|
|
1
|
+
import { IMessageUtil, IMessageParams } from '@ibiz-template/runtime';
|
|
2
|
+
import { MessageOptions } from 'element-plus';
|
|
2
3
|
/**
|
|
3
4
|
* 消息通知
|
|
4
5
|
*
|
|
@@ -9,8 +10,19 @@ import { IMessageUtil } from '@ibiz-template/runtime';
|
|
|
9
10
|
* @implements {IMessageUtil}
|
|
10
11
|
*/
|
|
11
12
|
export declare class MessageUtil implements IMessageUtil {
|
|
13
|
+
protected ns: import("@ibiz-template/core").Namespace;
|
|
12
14
|
info(msg: string, duration?: number | undefined, closable?: boolean | undefined): void;
|
|
13
15
|
success(msg: string, duration?: number | undefined, closable?: boolean | undefined): void;
|
|
14
16
|
warning(msg: string, duration?: number | undefined, closable?: boolean | undefined): void;
|
|
15
17
|
error(msg: string, duration?: number | undefined, closable?: boolean | undefined): void;
|
|
18
|
+
/**
|
|
19
|
+
* 格式化参数
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2024-03-21 02:22:27
|
|
22
|
+
* @protected
|
|
23
|
+
* @param {IMessageParams} params
|
|
24
|
+
* @return {*} {MessageOptions}
|
|
25
|
+
*/
|
|
26
|
+
protected formatParams(params: IMessageParams): MessageOptions;
|
|
27
|
+
notice(params: IMessageParams): void;
|
|
16
28
|
}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
1
2
|
import { ElMessage } from 'element-plus';
|
|
3
|
+
import { mergeRight, isNil } from 'ramda';
|
|
2
4
|
|
|
3
5
|
"use strict";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => {
|
|
9
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
|
+
return value;
|
|
11
|
+
};
|
|
4
12
|
class MessageUtil {
|
|
13
|
+
constructor() {
|
|
14
|
+
__publicField(this, "ns", useNamespace("message"));
|
|
15
|
+
}
|
|
5
16
|
info(msg, duration, closable) {
|
|
6
17
|
ElMessage.info({
|
|
7
18
|
message: msg,
|
|
@@ -30,6 +41,45 @@ class MessageUtil {
|
|
|
30
41
|
showClose: closable
|
|
31
42
|
});
|
|
32
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* 格式化参数
|
|
46
|
+
* @author lxm
|
|
47
|
+
* @date 2024-03-21 02:22:27
|
|
48
|
+
* @protected
|
|
49
|
+
* @param {IMessageParams} params
|
|
50
|
+
* @return {*} {MessageOptions}
|
|
51
|
+
*/
|
|
52
|
+
formatParams(params) {
|
|
53
|
+
const paramsWithDefault = mergeRight(
|
|
54
|
+
{
|
|
55
|
+
type: "info"
|
|
56
|
+
},
|
|
57
|
+
params
|
|
58
|
+
);
|
|
59
|
+
const messageOpts = {};
|
|
60
|
+
Object.keys(paramsWithDefault).forEach((key) => {
|
|
61
|
+
const value = paramsWithDefault[key];
|
|
62
|
+
switch (key) {
|
|
63
|
+
case "duration":
|
|
64
|
+
if (!isNil(value)) {
|
|
65
|
+
messageOpts.duration = value * 1e3;
|
|
66
|
+
}
|
|
67
|
+
break;
|
|
68
|
+
case "styleType":
|
|
69
|
+
if (!isNil(value)) {
|
|
70
|
+
messageOpts.customClass = this.ns.m(value);
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
messageOpts[key] = value;
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return messageOpts;
|
|
79
|
+
}
|
|
80
|
+
notice(params) {
|
|
81
|
+
ElMessage(this.formatParams(params));
|
|
82
|
+
}
|
|
33
83
|
}
|
|
34
84
|
|
|
35
85
|
export { MessageUtil };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RuntimeError } from '@ibiz-template/core';
|
|
2
|
-
import { ViewEngineBase, getControl, getControlsByView, calcDeCodeNameById, SysUIActionTag, ViewCallTag, ControlVO, getAppViewRef, OpenAppViewCommand } from '@ibiz-template/runtime';
|
|
3
|
-
import { isNil } from 'ramda';
|
|
2
|
+
import { ViewEngineBase, getControl, getControlsByView, calcDeCodeNameById, SysUIActionTag, ViewCallTag, ControlVO, getAppViewRef, OpenAppViewCommand, ViewMode } from '@ibiz-template/runtime';
|
|
4
3
|
|
|
5
4
|
"use strict";
|
|
6
5
|
var __defProp = Object.defineProperty;
|
|
@@ -271,7 +270,7 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
271
270
|
* @return {*} {void}
|
|
272
271
|
*/
|
|
273
272
|
initMarkOpenData() {
|
|
274
|
-
if (
|
|
273
|
+
if (![ViewMode.ROUTE, ViewMode.ROUTE_MODAL].includes(this.view.modal.mode) || !this.view.model.markOpenDataMode) {
|
|
275
274
|
return;
|
|
276
275
|
}
|
|
277
276
|
const modes = this.view.model.markOpenDataMode.split(";");
|
|
@@ -295,10 +294,11 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
295
294
|
default:
|
|
296
295
|
break;
|
|
297
296
|
}
|
|
298
|
-
ibiz.
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
297
|
+
ibiz.message.notice({
|
|
298
|
+
message: "".concat(modes.includes("DISPLAYOPPERSON") ? data.username : "\u6709\u4EBA", " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo),
|
|
299
|
+
showClose: true,
|
|
300
|
+
duration: 3,
|
|
301
|
+
styleType: "alert"
|
|
302
302
|
});
|
|
303
303
|
if (hasOpenConfirm === false && data.action === "UPDATE" && modes.includes("NOTICERELOAD")) {
|
|
304
304
|
hasOpenConfirm = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewController, IExpBarControlController, IExpViewState, IExpViewEvent, MDViewEngine, IMDControlController, EventBase, MDCtrlLoadParams } from '@ibiz-template/runtime';
|
|
1
|
+
import { ViewController, IExpBarControlController, IExpViewState, IExpViewEvent, MDViewEngine, IMDControlController, EventBase, MDCtrlLoadParams, IViewController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEExplorerView, IAppDEMultiDataView } from '@ibiz/model-core';
|
|
3
3
|
type IAppDEMultiDataExpView = IAppDEExplorerView & IAppDEMultiDataView;
|
|
4
4
|
/**
|
|
@@ -39,6 +39,7 @@ export declare class ExpViewEngine extends MDViewEngine {
|
|
|
39
39
|
* @type {IMDControlController}
|
|
40
40
|
*/
|
|
41
41
|
protected get xdataControl(): IMDControlController;
|
|
42
|
+
constructor(view: IViewController);
|
|
42
43
|
/**
|
|
43
44
|
* 组件创建
|
|
44
45
|
*
|
|
@@ -36,6 +36,16 @@ class ExpViewEngine extends MDViewEngine {
|
|
|
36
36
|
get xdataControl() {
|
|
37
37
|
return this.expBar.xDataController;
|
|
38
38
|
}
|
|
39
|
+
constructor(view) {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
const modelData = (_b = (_a = view.model.viewLayoutPanel) == null ? void 0 : _a.controls) == null ? void 0 : _b.find(
|
|
42
|
+
(item) => item.id === "searchbar"
|
|
43
|
+
);
|
|
44
|
+
if (modelData && !modelData.name) {
|
|
45
|
+
modelData.name = "searchbar";
|
|
46
|
+
}
|
|
47
|
+
super(view);
|
|
48
|
+
}
|
|
39
49
|
/**
|
|
40
50
|
* 组件创建
|
|
41
51
|
*
|
package/es/view-engine/index.mjs
CHANGED
|
@@ -42,6 +42,7 @@ import { ReportViewEngine } from './report-view.engine.mjs';
|
|
|
42
42
|
import { GanttViewEngine } from './gantt-view.engine.mjs';
|
|
43
43
|
import { DEIndexViewEngine } from './de-index-view-engine.mjs';
|
|
44
44
|
import { SubAppRefViewEngine } from './sub-app-ref-view.engine.mjs';
|
|
45
|
+
import { TabSearchViewEngine } from './tab-search-view.engine.mjs';
|
|
45
46
|
|
|
46
47
|
"use strict";
|
|
47
48
|
const IBizViewEngine = {
|
|
@@ -274,6 +275,10 @@ const IBizViewEngine = {
|
|
|
274
275
|
"VIEW_DEINDEXVIEW",
|
|
275
276
|
(c) => new DEIndexViewEngine(c)
|
|
276
277
|
);
|
|
278
|
+
ibiz.engine.register(
|
|
279
|
+
"VIEW_DETABSEARCHVIEW",
|
|
280
|
+
(c) => new TabSearchViewEngine(c)
|
|
281
|
+
);
|
|
277
282
|
}
|
|
278
283
|
};
|
|
279
284
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ISearchBarController, ISearchFormController, ITabExpPanelController, ITabSearchViewEvent, ITabSearchViewState, ViewController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IAppDEEditView } from '@ibiz/model-core';
|
|
3
|
+
import { TabExpViewEngine } from './tab-exp-view.engine';
|
|
4
|
+
/**
|
|
5
|
+
* 编辑视图3(分页关系)
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @class TabSearchViewEngine
|
|
9
|
+
* @extends {EditViewEngine}
|
|
10
|
+
*/
|
|
11
|
+
export declare class TabSearchViewEngine extends TabExpViewEngine {
|
|
12
|
+
/**
|
|
13
|
+
* 视图控制器
|
|
14
|
+
*
|
|
15
|
+
* @protected
|
|
16
|
+
* @type {ViewController<
|
|
17
|
+
* IAppDEEditView,
|
|
18
|
+
* ITabSearchViewState,
|
|
19
|
+
* ITabSearchViewEvent
|
|
20
|
+
* >}
|
|
21
|
+
* @memberof TabSearchViewEngine
|
|
22
|
+
*/
|
|
23
|
+
protected view: ViewController<IAppDEEditView, ITabSearchViewState, ITabSearchViewEvent>;
|
|
24
|
+
/**
|
|
25
|
+
* 搜索表单控制器
|
|
26
|
+
* @author lxm
|
|
27
|
+
* @date 2023-05-22 01:56:25
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
protected get searchForm(): ISearchFormController;
|
|
31
|
+
/**
|
|
32
|
+
* 搜索栏控制器
|
|
33
|
+
* @author lxm
|
|
34
|
+
* @date 2023-05-22 01:56:25
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
protected get searchBar(): ISearchBarController;
|
|
38
|
+
/**
|
|
39
|
+
* 分页导航面板控制器
|
|
40
|
+
* @author lxm
|
|
41
|
+
* @date 2023-05-22 01:56:25
|
|
42
|
+
* @readonly
|
|
43
|
+
*/
|
|
44
|
+
get tabExpPanel(): ITabExpPanelController;
|
|
45
|
+
onCreated(): Promise<void>;
|
|
46
|
+
onMounted(): Promise<void>;
|
|
47
|
+
call(key: string, args: any): Promise<IData | null | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* 获取搜索相关的查询参数
|
|
50
|
+
* @author lxm
|
|
51
|
+
* @date 2023-05-22 03:26:04
|
|
52
|
+
* @return {*} {IParams}
|
|
53
|
+
*/
|
|
54
|
+
protected getSearchParams(): IParams;
|
|
55
|
+
/**
|
|
56
|
+
* 重新计算视图参数
|
|
57
|
+
* @author lxm
|
|
58
|
+
* @date 2024-03-18 05:00:02
|
|
59
|
+
*/
|
|
60
|
+
calcViewParams(): void;
|
|
61
|
+
}
|