yuanjia-form-pro-standard 1.1.6-beta6.2 → 1.1.6-beta6.4
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/designer.es.js +41 -11
- package/designer.style.css +2 -2
- package/designer.umd.js +3 -3
- package/package.json +1 -1
package/designer.es.js
CHANGED
|
@@ -12734,10 +12734,14 @@ const _sfc_main$5a = {
|
|
|
12734
12734
|
handleSelectAll() {
|
|
12735
12735
|
this.$emit("select-all");
|
|
12736
12736
|
},
|
|
12737
|
-
async handleLabelClick() {
|
|
12737
|
+
async handleLabelClick(event) {
|
|
12738
12738
|
if (this.designState) {
|
|
12739
12739
|
return;
|
|
12740
12740
|
}
|
|
12741
|
+
if (event) {
|
|
12742
|
+
event.stopPropagation();
|
|
12743
|
+
event.preventDefault();
|
|
12744
|
+
}
|
|
12741
12745
|
if (this.historyPopoverVisible) {
|
|
12742
12746
|
this.historyPopoverVisible = false;
|
|
12743
12747
|
return;
|
|
@@ -12745,6 +12749,31 @@ const _sfc_main$5a = {
|
|
|
12745
12749
|
this.historyPopoverVisible = true;
|
|
12746
12750
|
await this.loadHistoryRecord();
|
|
12747
12751
|
},
|
|
12752
|
+
handleFormItemFocusIn(event) {
|
|
12753
|
+
if (this.historyPopoverVisible && event.relatedTarget) {
|
|
12754
|
+
const relatedElement = event.relatedTarget;
|
|
12755
|
+
if (relatedElement && (relatedElement.classList.contains("label-clickable") || relatedElement.closest(".label-clickable"))) {
|
|
12756
|
+
event.preventDefault();
|
|
12757
|
+
event.stopPropagation();
|
|
12758
|
+
if (event.target && event.target.blur) {
|
|
12759
|
+
event.target.blur();
|
|
12760
|
+
}
|
|
12761
|
+
this.$nextTick(() => {
|
|
12762
|
+
if (!this.historyPopoverVisible) {
|
|
12763
|
+
this.historyPopoverVisible = true;
|
|
12764
|
+
}
|
|
12765
|
+
});
|
|
12766
|
+
return;
|
|
12767
|
+
}
|
|
12768
|
+
}
|
|
12769
|
+
if (this.historyPopoverVisible) {
|
|
12770
|
+
this.$nextTick(() => {
|
|
12771
|
+
if (!this.historyPopoverVisible) {
|
|
12772
|
+
this.historyPopoverVisible = true;
|
|
12773
|
+
}
|
|
12774
|
+
});
|
|
12775
|
+
}
|
|
12776
|
+
},
|
|
12748
12777
|
async loadHistoryRecord() {
|
|
12749
12778
|
var _a2, _b2, _c2, _d2;
|
|
12750
12779
|
if (this.historyLoading) {
|
|
@@ -12852,16 +12881,17 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12852
12881
|
rules: $props.rules,
|
|
12853
12882
|
prop: $options.getPropName(),
|
|
12854
12883
|
class: normalizeClass$1([$options.selected ? "selected" : "", $options.labelHidden, $options.labelAlign, $options.customClass, $props.field.options.required ? "required" : "", !!$props.field.options.labelWrap ? "label-wrap" : ""]),
|
|
12855
|
-
onClick: _cache[4] || (_cache[4] = withModifiers(($event) => $options.selectField($props.field), ["stop"]))
|
|
12884
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(($event) => $options.selectField($props.field), ["stop"])),
|
|
12885
|
+
onFocusin: $options.handleFormItemFocusIn
|
|
12856
12886
|
}, {
|
|
12857
12887
|
label: withCtx(() => [
|
|
12858
12888
|
createElementVNode("div", _hoisted_1$1i, [
|
|
12859
12889
|
createElementVNode("div", _hoisted_2$E, [
|
|
12860
|
-
!$props.designState && $options.label && $options.enableHistoryView ? (openBlock(), createBlock(_component_el_popover, {
|
|
12890
|
+
!$props.designState && $options.label && $options.enableHistoryView && $props.field.options.biz_meta_id ? (openBlock(), createBlock(_component_el_popover, {
|
|
12861
12891
|
key: 0,
|
|
12862
12892
|
visible: $data.historyPopoverVisible,
|
|
12863
12893
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => $data.historyPopoverVisible = $event),
|
|
12864
|
-
placement: "
|
|
12894
|
+
placement: "left",
|
|
12865
12895
|
width: 400,
|
|
12866
12896
|
trigger: "manual",
|
|
12867
12897
|
"popper-class": "field-history-popover"
|
|
@@ -13048,7 +13078,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13048
13078
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
13049
13079
|
]),
|
|
13050
13080
|
_: 3
|
|
13051
|
-
}, 8, ["label", "label-width", "size", "rules", "prop", "class"])) : createCommentVNode("", true),
|
|
13081
|
+
}, 8, ["label", "label-width", "size", "rules", "prop", "class", "onFocusin"])) : createCommentVNode("", true),
|
|
13052
13082
|
!!this.designer ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13053
13083
|
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_17$2, [
|
|
13054
13084
|
createElementVNode("i", {
|
|
@@ -13098,7 +13128,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13098
13128
|
], 64)) : createCommentVNode("", true)
|
|
13099
13129
|
], 2);
|
|
13100
13130
|
}
|
|
13101
|
-
var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5a, [["render", _sfc_render$5a], ["__scopeId", "data-v-
|
|
13131
|
+
var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5a, [["render", _sfc_render$5a], ["__scopeId", "data-v-6c28e2c6"]]);
|
|
13102
13132
|
var __glob_0_10$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13103
13133
|
__proto__: null,
|
|
13104
13134
|
"default": FormItemWrapper
|
|
@@ -175112,7 +175142,7 @@ const _sfc_main$4l = {
|
|
|
175112
175142
|
},
|
|
175113
175143
|
enableHistoryView: {
|
|
175114
175144
|
type: Boolean,
|
|
175115
|
-
default:
|
|
175145
|
+
default: true
|
|
175116
175146
|
}
|
|
175117
175147
|
},
|
|
175118
175148
|
provide() {
|
|
@@ -176961,7 +176991,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
176961
176991
|
$data.currentPreviewHistoryBizMetaId = null;
|
|
176962
176992
|
}
|
|
176963
176993
|
}),
|
|
176964
|
-
placement: "
|
|
176994
|
+
placement: "left",
|
|
176965
176995
|
width: 400,
|
|
176966
176996
|
trigger: "manual",
|
|
176967
176997
|
"popper-class": "field-history-popover"
|
|
@@ -177056,7 +177086,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177056
177086
|
[_directive_loading, $data.formLoading]
|
|
177057
177087
|
]);
|
|
177058
177088
|
}
|
|
177059
|
-
var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-
|
|
177089
|
+
var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-1b548dd8"]]);
|
|
177060
177090
|
var ace$2 = { exports: {} };
|
|
177061
177091
|
(function(module, exports) {
|
|
177062
177092
|
(function() {
|
|
@@ -236421,13 +236451,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
236421
236451
|
if (typeof window !== "undefined") {
|
|
236422
236452
|
let loadSvg = function() {
|
|
236423
236453
|
var body = document.body;
|
|
236424
|
-
var svgDom = document.getElementById("
|
|
236454
|
+
var svgDom = document.getElementById("__svg__icons__dom__1767773421183__");
|
|
236425
236455
|
if (!svgDom) {
|
|
236426
236456
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
236427
236457
|
svgDom.style.position = "absolute";
|
|
236428
236458
|
svgDom.style.width = "0";
|
|
236429
236459
|
svgDom.style.height = "0";
|
|
236430
|
-
svgDom.id = "
|
|
236460
|
+
svgDom.id = "__svg__icons__dom__1767773421183__";
|
|
236431
236461
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
236432
236462
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
236433
236463
|
}
|