@ibiz-template/vue3-components 0.7.41-alpha.12 → 0.7.41-alpha.14
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/ibiz-markdown-editor-0VHzFa2l.js +1 -0
- package/dist/index-1fHusiqt.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-TYKjfyR5.js → wang-editor-z0RY8bO1.js} +1 -1
- package/dist/{xlsx-util-Q9msA8ef.js → xlsx-util-8Du1A340.js} +1 -1
- package/es/control/calendar/calendar.mjs +4 -1
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +76 -2
- package/es/control/data-view/data-view.d.ts +1 -1
- package/es/control/data-view/index.d.ts +1 -1
- package/es/control/drbar/drbar.controller.d.ts +6 -0
- package/es/control/drbar/drbar.controller.mjs +8 -0
- package/es/control/drbar/drbar.mjs +6 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +6 -0
- package/es/control/drtab/drtab.controller.mjs +9 -0
- package/es/control/drtab/drtab.mjs +13 -0
- package/es/control/form/form/index.mjs +2 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.css +1 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.d.ts +29 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.mjs +53 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.provider.d.ts +13 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.provider.mjs +21 -0
- package/es/control/form/form-detail/form-iframe/index.d.ts +25 -0
- package/es/control/form/form-detail/form-iframe/index.mjs +12 -0
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +6 -4
- package/es/control/form/form-detail/index.d.ts +1 -0
- package/es/control/form/form-detail/index.mjs +1 -0
- package/es/control/form/index.mjs +1 -0
- package/es/control/gantt/gantt.d.ts +1 -1
- package/es/control/gantt/gantt.mjs +4 -1
- package/es/control/gantt/index.d.ts +1 -1
- package/es/control/grid/grid/grid.d.ts +1 -1
- package/es/control/grid/grid/index.d.ts +1 -1
- package/es/control/grid/grid/index.mjs +2 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +5 -8
- package/es/control/grid/virtualized-table/index.d.ts +136 -0
- package/es/control/grid/virtualized-table/index.mjs +18 -0
- package/es/control/grid/virtualized-table/virtualized-table.css +1 -0
- package/es/control/grid/virtualized-table/virtualized-table.d.ts +200 -0
- package/es/control/grid/virtualized-table/virtualized-table.mjs +325 -0
- package/es/control/grid/virtualized-table/virtualized-table.provider.d.ts +10 -0
- package/es/control/grid/virtualized-table/virtualized-table.provider.mjs +14 -0
- package/es/control/grid/virtualized-table/virtualized-table.util.d.ts +95 -0
- package/es/control/grid/virtualized-table/virtualized-table.util.mjs +191 -0
- package/es/control/index.mjs +1 -0
- package/es/control/kanban/index.d.ts +44 -1
- package/es/control/kanban/kanban.d.ts +56 -1
- package/es/control/kanban/kanban.mjs +36 -2
- package/es/control/list/index.d.ts +1 -1
- package/es/control/list/list.d.ts +1 -1
- package/es/control/list/list.mjs +1 -1
- package/es/control/search-bar/search-bar.mjs +3 -0
- package/es/control/tab-exp-panel/index.d.ts +1 -0
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +2 -1
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +21 -2
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +1 -1
- package/es/control/tree/tree.mjs +4 -1
- package/es/control/tree-grid/index.d.ts +1 -1
- package/es/control/tree-grid/tree-grid.d.ts +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.css +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.mjs +4 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.d.ts +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +3 -2
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +5 -5
- package/es/editor/date-range-select/date-range-select.controller.mjs +9 -0
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -0
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.d.ts +4 -3
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +10 -7
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +5 -5
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +3 -3
- package/es/editor/span/span/span.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +3 -77
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +167 -108
- package/es/editor/text-box/input/input.d.ts +4 -4
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
- package/es/index.mjs +1 -0
- package/es/panel-component/panel-button/panel-button.controller.mjs +2 -1
- package/es/panel-component/panel-button/panel-button.mjs +1 -1
- package/es/util/app-util/app-util.d.ts +54 -2
- package/es/util/app-util/app-util.mjs +48 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/custom-view.engine.d.ts +1 -1
- package/es/view-engine/custom-view.engine.mjs +5 -5
- package/es/view-engine/de-index-view-engine.mjs +1 -1
- package/es/view-engine/edit-view.engine.mjs +1 -1
- package/es/view-engine/md-custom-view.engine.d.ts +1 -1
- package/es/view-engine/md-custom-view.engine.mjs +5 -5
- package/es/view-engine/opt-view.engine.mjs +1 -1
- package/lib/control/calendar/calendar.cjs +4 -1
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +76 -2
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/drbar/drbar.cjs +6 -0
- package/lib/control/drbar/drbar.controller.cjs +8 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +13 -0
- package/lib/control/drtab/drtab.controller.cjs +9 -0
- package/lib/control/form/form/index.cjs +2 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +58 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.css +1 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.provider.cjs +23 -0
- package/lib/control/form/form-detail/form-iframe/index.cjs +17 -0
- package/lib/control/form/form-detail/form-item/form-item.cjs +5 -3
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/form-detail/index.cjs +2 -0
- package/lib/control/form/index.cjs +6 -4
- package/lib/control/gantt/gantt.cjs +4 -1
- package/lib/control/grid/grid/index.cjs +2 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -6
- package/lib/control/grid/virtualized-table/index.cjs +23 -0
- package/lib/control/grid/virtualized-table/virtualized-table.cjs +327 -0
- package/lib/control/grid/virtualized-table/virtualized-table.css +1 -0
- package/lib/control/grid/virtualized-table/virtualized-table.provider.cjs +16 -0
- package/lib/control/grid/virtualized-table/virtualized-table.util.cjs +193 -0
- package/lib/control/index.cjs +82 -80
- package/lib/control/kanban/kanban.cjs +34 -0
- package/lib/control/list/list.cjs +1 -1
- package/lib/control/search-bar/search-bar.cjs +3 -0
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +20 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/tree/tree.cjs +4 -1
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +4 -1
- package/lib/editor/array/ibiz-array/ibiz-array.css +1 -1
- package/lib/editor/date-range-select/date-range-select.controller.cjs +9 -0
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +5 -5
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +166 -107
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +1 -1
- package/lib/index.cjs +112 -110
- package/lib/panel-component/panel-button/panel-button.cjs +1 -1
- package/lib/panel-component/panel-button/panel-button.controller.cjs +2 -1
- package/lib/util/app-util/app-util.cjs +47 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/custom-view.engine.cjs +5 -5
- package/lib/view-engine/de-index-view-engine.cjs +1 -1
- package/lib/view-engine/edit-view.engine.cjs +1 -1
- package/lib/view-engine/md-custom-view.engine.cjs +5 -5
- package/lib/view-engine/opt-view.engine.cjs +1 -1
- package/package.json +5 -5
- package/dist/ibiz-markdown-editor-KyK5mBTS.js +0 -1
- package/dist/index-pyv7Wdpx.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.12_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.14_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.12_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.14_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
|
@@ -14,71 +14,139 @@ const IBizInputIP = /* @__PURE__ */ vue.defineComponent({
|
|
|
14
14
|
}) {
|
|
15
15
|
const ns = vue3Util.useNamespace("input-ip");
|
|
16
16
|
const c = props.controller;
|
|
17
|
-
const editorRef = vue.ref();
|
|
18
17
|
const showFormDefaultContent = vue.computed(() => {
|
|
19
18
|
if (props.controlParams && props.controlParams.editmode === "hover" && !props.readonly) {
|
|
20
19
|
return true;
|
|
21
20
|
}
|
|
22
21
|
return false;
|
|
23
22
|
});
|
|
24
|
-
const currentVal = vue.ref([]);
|
|
25
23
|
const activeElement = vue.ref(false);
|
|
26
24
|
const isAllBlur = vue.ref(false);
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
25
|
+
const splitIp = (ip) => {
|
|
26
|
+
const parts = ip.split(".");
|
|
27
|
+
return [parts[0] || "", parts[1] || "", parts[2] || "", parts[3] || ""];
|
|
28
|
+
};
|
|
29
|
+
const joinIp = (parts) => {
|
|
30
|
+
return parts.join(".");
|
|
31
|
+
};
|
|
32
|
+
const isValidIp = (parts) => {
|
|
33
|
+
return parts.every((part) => {
|
|
34
|
+
if (!part) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return /^(0|[1-9]\d?|1\d\d|2[0-4]\d|25[0-5])$/.test(part);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const ipSegments = vue.ref(splitIp(props.value || ""));
|
|
41
|
+
const ipInputs = vue.ref([]);
|
|
42
|
+
const handleInput = (value, index) => {
|
|
43
|
+
var _a;
|
|
44
|
+
value = value.replace(/[^0-9]/g, "").slice(0, 3);
|
|
45
|
+
if (value) {
|
|
46
|
+
const num = parseInt(value, 10);
|
|
47
|
+
if (num > 255) {
|
|
48
|
+
value = "255";
|
|
49
|
+
} else {
|
|
50
|
+
value = "".concat(num);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
ipSegments.value[index] = value;
|
|
54
|
+
const target = ipInputs.value[index];
|
|
55
|
+
const input = target == null ? void 0 : target.input;
|
|
56
|
+
if (ipSegments.value[index].length === 3 && index < 3 && input && input.selectionStart === ipSegments.value[index].length && input.selectionEnd === ipSegments.value[index].length) {
|
|
57
|
+
const ipInput = ipInputs.value[index + 1];
|
|
58
|
+
if (ipInput) {
|
|
59
|
+
ipInput.focus();
|
|
60
|
+
(_a = ipInput.input) == null ? void 0 : _a.setSelectionRange(0, ipSegments.value[index + 1].length);
|
|
61
|
+
}
|
|
51
62
|
}
|
|
52
|
-
if (
|
|
53
|
-
emit("change",
|
|
63
|
+
if (isValidIp(ipSegments.value)) {
|
|
64
|
+
emit("change", joinIp(ipSegments.value));
|
|
54
65
|
}
|
|
55
66
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
-
vue.watch(thirdIp, (newVal, oldVal) => {
|
|
63
|
-
checkIpVal(newVal, oldVal, thirdIp, 2);
|
|
64
|
-
});
|
|
65
|
-
vue.watch(forIp, (newVal, oldVal) => {
|
|
66
|
-
checkIpVal(newVal, oldVal, forIp, 3);
|
|
67
|
-
});
|
|
68
|
-
vue.watch(editorRef, (newVal) => {
|
|
69
|
-
if (props.autoFocus && newVal) {
|
|
70
|
-
const input = newVal.$el.getElementsByTagName("input")[0];
|
|
71
|
-
input.focus();
|
|
67
|
+
const handleKeydown = (event, index) => {
|
|
68
|
+
var _a, _b, _c, _d, _e;
|
|
69
|
+
if (event.key === "Enter") {
|
|
70
|
+
emit("enter", event);
|
|
71
|
+
return;
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
if (/^[0-9]$/.test(event.key)) {
|
|
74
|
+
const input = event.target;
|
|
75
|
+
if (input && ipSegments.value[index].length === 3 && input.selectionStart === input.selectionEnd) {
|
|
76
|
+
event.preventDefault();
|
|
77
|
+
if (index < 3 && input.selectionEnd === ipSegments.value[index].length) {
|
|
78
|
+
const nextIndex = index + 1;
|
|
79
|
+
const nextInput = ipInputs.value[nextIndex];
|
|
80
|
+
if (nextInput) {
|
|
81
|
+
nextInput.focus();
|
|
82
|
+
(_a = nextInput.input) == null ? void 0 : _a.setSelectionRange(0, ipSegments.value[nextIndex].length);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (event.key === ".") {
|
|
89
|
+
event.preventDefault();
|
|
90
|
+
const input = event.target;
|
|
91
|
+
if (input && index < 3 && input.selectionStart === input.selectionEnd && input.selectionEnd !== 0 && ipSegments.value[index].length) {
|
|
92
|
+
const nextIndex = index + 1;
|
|
93
|
+
const nextInput = ipInputs.value[nextIndex];
|
|
94
|
+
if (nextInput) {
|
|
95
|
+
nextInput.focus();
|
|
96
|
+
(_b = nextInput.input) == null ? void 0 : _b.setSelectionRange(0, ipSegments.value[nextIndex].length);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
if (event.key === "Backspace") {
|
|
102
|
+
const input = event.target;
|
|
103
|
+
if (input && index > 0 && input.selectionStart === 0 && input.selectionEnd === 0) {
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
const prevIndex = index - 1;
|
|
106
|
+
const prevValue = ipSegments.value[prevIndex];
|
|
107
|
+
const prevInput = ipInputs.value[prevIndex];
|
|
108
|
+
if (prevValue.length > 0) {
|
|
109
|
+
ipSegments.value[prevIndex] = prevValue.slice(0, -1);
|
|
110
|
+
}
|
|
111
|
+
if (prevInput) {
|
|
112
|
+
prevInput.focus();
|
|
113
|
+
(_c = prevInput.input) == null ? void 0 : _c.setSelectionRange(ipSegments.value[prevIndex].length, ipSegments.value[prevIndex].length);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
if (event.key === "ArrowLeft") {
|
|
118
|
+
const input = event.target;
|
|
119
|
+
if (input && index > 0 && input.selectionStart === 0 && input.selectionEnd === 0) {
|
|
120
|
+
event.preventDefault();
|
|
121
|
+
const prevIndex = index - 1;
|
|
122
|
+
const prevInput = ipInputs.value[prevIndex];
|
|
123
|
+
if (prevInput) {
|
|
124
|
+
prevInput.focus();
|
|
125
|
+
(_d = prevInput.input) == null ? void 0 : _d.setSelectionRange(ipSegments.value[prevIndex].length, ipSegments.value[prevIndex].length);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (event.key === "ArrowRight") {
|
|
130
|
+
const input = event.target;
|
|
131
|
+
if (input && index < 3 && input.selectionStart === ipSegments.value[index].length && input.selectionEnd === ipSegments.value[index].length) {
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
const nextIndex = index + 1;
|
|
134
|
+
const nextInput = ipInputs.value[nextIndex];
|
|
135
|
+
if (nextInput) {
|
|
136
|
+
nextInput.focus();
|
|
137
|
+
(_e = nextInput.input) == null ? void 0 : _e.setSelectionRange(0, 0);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
const handleFocus = () => {
|
|
75
143
|
activeElement.value = true;
|
|
76
144
|
if (isAllBlur.value) {
|
|
77
145
|
isAllBlur.value = false;
|
|
78
146
|
emit("focus");
|
|
79
147
|
}
|
|
80
148
|
};
|
|
81
|
-
const
|
|
149
|
+
const handleBlur = () => {
|
|
82
150
|
activeElement.value = false;
|
|
83
151
|
setTimeout(() => {
|
|
84
152
|
if (!activeElement.value) {
|
|
@@ -87,75 +155,66 @@ const IBizInputIP = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
155
|
}
|
|
88
156
|
}, 0);
|
|
89
157
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
158
|
+
vue.watch(() => props.value, (newVal) => {
|
|
159
|
+
ipSegments.value = splitIp(newVal || "");
|
|
160
|
+
});
|
|
161
|
+
vue.watch(() => ipInputs.value[0], (input) => {
|
|
162
|
+
if (props.autoFocus && input) {
|
|
163
|
+
input.focus();
|
|
93
164
|
}
|
|
94
|
-
};
|
|
165
|
+
});
|
|
95
166
|
return {
|
|
96
167
|
ns,
|
|
97
168
|
c,
|
|
98
|
-
editorRef,
|
|
99
|
-
currentVal,
|
|
100
|
-
getFocus,
|
|
101
|
-
blur,
|
|
102
|
-
firstIp,
|
|
103
|
-
secIp,
|
|
104
|
-
thirdIp,
|
|
105
|
-
forIp,
|
|
106
169
|
showFormDefaultContent,
|
|
107
|
-
|
|
170
|
+
activeElement,
|
|
171
|
+
ipSegments,
|
|
172
|
+
ipInputs,
|
|
173
|
+
joinIp,
|
|
174
|
+
handleInput,
|
|
175
|
+
handleKeydown,
|
|
176
|
+
handleFocus,
|
|
177
|
+
handleBlur
|
|
108
178
|
};
|
|
109
179
|
},
|
|
110
180
|
render() {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"maxlength": 3,
|
|
145
|
-
"modelValue": this.thirdIp,
|
|
146
|
-
"onUpdate:modelValue": ($event) => this.thirdIp = $event
|
|
147
|
-
}, null), vue.createTextVNode("."), vue.createVNode(vue.resolveComponent("el-input"), {
|
|
148
|
-
"type": "text",
|
|
149
|
-
"size": "small",
|
|
150
|
-
"disabled": this.disabled,
|
|
151
|
-
"readonly": this.readonly,
|
|
152
|
-
"onFocus": this.getFocus,
|
|
153
|
-
"onBlur": this.blur,
|
|
154
|
-
"onKeyup": this.handleKeyUp,
|
|
155
|
-
"maxlength": 3,
|
|
156
|
-
"modelValue": this.forIp,
|
|
157
|
-
"onUpdate:modelValue": ($event) => this.forIp = $event
|
|
181
|
+
let content = null;
|
|
182
|
+
if (this.readonly) {
|
|
183
|
+
content = this.value;
|
|
184
|
+
} else {
|
|
185
|
+
content = vue.createVNode("div", {
|
|
186
|
+
"class": this.ns.b("content")
|
|
187
|
+
}, [this.ipSegments.map((segment, index) => {
|
|
188
|
+
return [vue.createVNode(vue.resolveComponent("el-input"), {
|
|
189
|
+
"model-value": segment,
|
|
190
|
+
"maxlength": 4,
|
|
191
|
+
"disabled": this.disabled,
|
|
192
|
+
"readonly": this.readonly,
|
|
193
|
+
"ref": (el) => {
|
|
194
|
+
if (el) {
|
|
195
|
+
this.ipInputs[index] = el;
|
|
196
|
+
} else {
|
|
197
|
+
this.ipInputs[index] = void 0;
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"onInput": (value) => this.handleInput(value, index),
|
|
201
|
+
"onKeydown": (e) => this.handleKeydown(e, index),
|
|
202
|
+
"onFocus": this.handleFocus,
|
|
203
|
+
"onBlur": this.handleBlur
|
|
204
|
+
}, null), index < 3 && vue.createVNode("span", {
|
|
205
|
+
"class": this.ns.b("dot")
|
|
206
|
+
}, [vue.createTextVNode(".")])];
|
|
207
|
+
})]);
|
|
208
|
+
}
|
|
209
|
+
const formDefaultContent = vue.createVNode("div", {
|
|
210
|
+
"class": this.ns.b("form-default-content")
|
|
211
|
+
}, [this.ipSegments.some((segment) => segment) ? this.joinIp(this.ipSegments) : vue.createVNode(vue.resolveComponent("iBizEditorEmptyText"), {
|
|
212
|
+
"showPlaceholder": this.c.emptyShowPlaceholder,
|
|
213
|
+
"placeHolder": this.c.placeHolder
|
|
158
214
|
}, null)]);
|
|
215
|
+
return vue.createVNode("div", {
|
|
216
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent), this.ns.is("focus", this.activeElement && !this.disabled && !this.readonly)]
|
|
217
|
+
}, [this.showFormDefaultContent && formDefaultContent, content]);
|
|
159
218
|
}
|
|
160
219
|
});
|
|
161
220
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-input-ip{display:flex;flex-wrap:nowrap;height:100%;line-height:var(--ibiz-form-item-line-height)}.ibiz-form-item .ibiz-input-ip.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
1
|
+
.ibiz-input-ip{display:flex;flex-wrap:nowrap;height:100%;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-form-item-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-input-ip .el-input .el-input__wrapper{background-color:transparent;box-shadow:none}.ibiz-input-ip .el-input.is-disabled .el-input__wrapper{background-color:transparent}.ibiz-input-ip:hover:not(.ibiz-input-ip--disabled) .ibiz-input-ip-content{box-shadow:0 0 0 1px var(--ibiz-editor-hover-border-color) inset}.ibiz-input-ip--disabled .ibiz-input-ip-content{color:var(--el-disabled-text-color);cursor:not-allowed;background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.ibiz-input-ip--readonly{color:var(--ibiz-form-item-readonly-color)}.ibiz-input-ip.is-focus .ibiz-input-ip-content{box-shadow:0 0 0 1px var(--ibiz-color-primary) inset}.ibiz-input-ip-content{display:flex;flex-wrap:nowrap;align-items:center;width:100%;height:100%;color:var(--ibiz-editor-default-text-color);border-radius:var(--ibiz-border-radius-small);box-shadow:0 0 0 1px var(--ibiz-editor-default-border-color) inset}.ibiz-form-item .ibiz-input-ip.is-show-default .ibiz-input-ip-form-default-content{display:block;padding:var(--ibiz-form-item-hover-edit-padding)}.ibiz-form-item .ibiz-input-ip.is-show-default .ibiz-input-ip-content{display:none}.ibiz-form-item .ibiz-input-ip.is-show-default:hover .ibiz-input-ip-form-default-content{display:none}.ibiz-form-item .ibiz-input-ip.is-show-default:hover .ibiz-input-ip-content{display:flex}.ibiz-form-item .ibiz-input-ip.is-show-default.is-focus .ibiz-input-ip-form-default-content{display:none}.ibiz-form-item .ibiz-input-ip.is-show-default.is-focus .ibiz-input-ip-content{display:flex}
|
|
@@ -80,7 +80,7 @@ const IBizFileUpload = /* @__PURE__ */ vue.defineComponent({
|
|
|
80
80
|
"file-list": this.files,
|
|
81
81
|
"action": this.uploadUrl,
|
|
82
82
|
"headers": this.headers,
|
|
83
|
-
"disabled": this.disabled,
|
|
83
|
+
"disabled": this.disabled || this.readonly,
|
|
84
84
|
"multiple": this.c.multiple,
|
|
85
85
|
"limit": this.limit,
|
|
86
86
|
"drag": !!this.c.isDrag,
|