Skip to content

Commit 1d42d82

Browse files
committed
fix(vjsf): 移除package中的vue依赖
移除vue依赖,避免导致多个vue对象引发问题
1 parent 469091d commit 1d42d82

File tree

5 files changed

+26
-13
lines changed

5 files changed

+26
-13
lines changed

packages/lib/dist/vueJsonSchemaForm.esm.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10728,6 +10728,7 @@ var SelectLinkageField = {
1072810728
// 选择框 vnode
1072910729

1073010730
return this.$createElement(Widget, {
10731+
key: "fieldSelect_".concat(this.combiningType),
1073110732
class: _defineProperty({}, "fieldSelect_".concat(this.combiningType), true),
1073210733
props: _objectSpread2({
1073310734
isFormData: false,
@@ -10793,6 +10794,7 @@ var SelectLinkageField = {
1079310794
var origSchema = Object.assign({}, this.schema);
1079410795
delete origSchema[this.combiningType];
1079510796
originVnode = h(SchemaField, {
10797+
key: "origin_".concat(this.combiningType),
1079610798
class: (_class2 = {}, _defineProperty(_class2, "".concat(this.combiningType, "_originBox"), true), _defineProperty(_class2, "".concat(pathClassName, "-originBox"), true), _class2),
1079710799
props: _objectSpread2(_objectSpread2({}, this.$props), {}, {
1079810800
schema: origSchema // needValidFieldGroup: false // 单独校验,这里无需处理
@@ -10802,7 +10804,7 @@ var SelectLinkageField = {
1080210804
} // 选择附加的节点
1080310805

1080410806

10805-
var childrenVnode = [this.getSelectBoxVnode()]; // 当前选中的 oneOf 附加的节点
10807+
var childrenVnodeList = [this.getSelectBoxVnode()]; // 当前选中的 oneOf 附加的节点
1080610808

1080710809
var curSelectSchema = this.selectList[this.curSelectIndex];
1080810810

@@ -10825,7 +10827,8 @@ var SelectLinkageField = {
1082510827
}), function (key) {
1082610828
return key === _this2.combiningType ? undefined : "err:".concat(key);
1082710829
});
10828-
childrenVnode.push(h(SchemaField, {
10830+
childrenVnodeList.push(h(SchemaField, {
10831+
key: "appendSchema_".concat(this.combiningType),
1082910832
props: _objectSpread2(_objectSpread2({}, this.$props), {}, {
1083010833
schema: curSelectSchema,
1083110834
required: this.required,
@@ -10841,7 +10844,7 @@ var SelectLinkageField = {
1084110844
} // oneOf 校验 vnode
1084210845

1084310846

10844-
childrenVnode.push(h(Widget, {
10847+
childrenVnodeList.push(h(Widget, {
1084510848
class: _defineProperty({
1084610849
validateWidget: true
1084710850
}, "validateWidget-".concat(this.combiningType), true),
@@ -10854,10 +10857,11 @@ var SelectLinkageField = {
1085410857
}
1085510858
}));
1085610859
return h('div', [originVnode, h('div', {
10860+
key: "appendBox_".concat(this.combiningType),
1085710861
class: (_class4 = {
1085810862
appendCombining_box: true
1085910863
}, _defineProperty(_class4, "".concat(this.combiningType, "_appendBox"), true), _defineProperty(_class4, "".concat(pathClassName, "-appendBox"), true), _class4)
10860-
}, [childrenVnode])]);
10864+
}, childrenVnodeList)]);
1086110865
}
1086210866
};
1086310867

0 commit comments

Comments
 (0)