hoeditor-web 3.0.86 → 3.0.87

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.
@@ -13500,7 +13500,7 @@ var component = (0,componentNormalizer/* default */.Z)(
13500
13500
 
13501
13501
  /***/ }),
13502
13502
 
13503
- /***/ 82243:
13503
+ /***/ 8632:
13504
13504
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
13505
13505
 
13506
13506
  "use strict";
@@ -13512,14 +13512,17 @@ __webpack_require__.d(__webpack_exports__, {
13512
13512
  "default": function() { return /* binding */ RadioCheckbox; }
13513
13513
  });
13514
13514
 
13515
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=3f147ff5&
13515
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
13516
+ var es_function_name = __webpack_require__(68309);
13517
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=0d790650&
13518
+
13516
13519
  var render = function render() {
13517
13520
  var _vm = this,
13518
13521
  _c = _vm._self._c;
13519
13522
  return _c('div', {
13520
13523
  class: 'control-modal-contents radio-checkbox-modal ' + _vm.animationClassName,
13521
13524
  style: {
13522
- width: _vm.boxGroup === 1 ? '1060px' : '500px'
13525
+ width: _vm.boxGroup === 1 ? '1160px' : '500px'
13523
13526
  }
13524
13527
  }, [_c('header', {
13525
13528
  staticClass: "modal-title"
@@ -13661,7 +13664,7 @@ var render = function render() {
13661
13664
  key: "tipText",
13662
13665
  attrs: {
13663
13666
  "title": "提示文本",
13664
- "width": 100
13667
+ "width": 80
13665
13668
  },
13666
13669
  scopedSlots: _vm._u([{
13667
13670
  key: "default",
@@ -13709,7 +13712,7 @@ var render = function render() {
13709
13712
  key: "innerIdentifier",
13710
13713
  attrs: {
13711
13714
  "title": "内部标识符",
13712
- "width": 120
13715
+ "width": 80
13713
13716
  },
13714
13717
  scopedSlots: _vm._u([{
13715
13718
  key: "default",
@@ -13733,7 +13736,7 @@ var render = function render() {
13733
13736
  key: "dataMetaIdentifier",
13734
13737
  attrs: {
13735
13738
  "title": "数据元标识符",
13736
- "width": 120
13739
+ "width": 80
13737
13740
  },
13738
13741
  scopedSlots: _vm._u([{
13739
13742
  key: "default",
@@ -13757,7 +13760,7 @@ var render = function render() {
13757
13760
  key: "identifierFormat",
13758
13761
  attrs: {
13759
13762
  "title": "表示格式",
13760
- "width": 100
13763
+ "width": 80
13761
13764
  },
13762
13765
  scopedSlots: _vm._u([{
13763
13766
  key: "default",
@@ -13903,6 +13906,48 @@ var render = function render() {
13903
13906
  })];
13904
13907
  }
13905
13908
  }], null, false, 3493846107)
13909
+ }), _c('a-table-column', {
13910
+ key: "associatedElement",
13911
+ attrs: {
13912
+ "title": "关联后元素必填",
13913
+ "width": 260
13914
+ },
13915
+ scopedSlots: _vm._u([{
13916
+ key: "default",
13917
+ fn: function fn(text, record) {
13918
+ return [_c('a-select', {
13919
+ staticStyle: {
13920
+ "text-align": "left",
13921
+ "width": "100%"
13922
+ },
13923
+ attrs: {
13924
+ "showSearch": "",
13925
+ "allowClear": "",
13926
+ "placeholder": "请选择需要关联的元素"
13927
+ },
13928
+ model: {
13929
+ value: record.associatedElement,
13930
+ callback: function callback($$v) {
13931
+ _vm.$set(record, "associatedElement", $$v);
13932
+ },
13933
+ expression: "record.associatedElement"
13934
+ }
13935
+ }, _vm._l(_vm.nodeList, function (node, index) {
13936
+ return _c('a-select-option', {
13937
+ key: node.name + '___' + node.dataId + '___' + index,
13938
+ attrs: {
13939
+ "value": node.dataId
13940
+ }
13941
+ }, [_c('div', {
13942
+ staticStyle: {
13943
+ "display": "flex",
13944
+ "justify-content": "space-between",
13945
+ "font-size": "12px"
13946
+ }
13947
+ }, [_c('span', [_vm._v(_vm._s(node.name))]), _c('span', [_vm._v(_vm._s(node.dataId))])])]);
13948
+ }), 1)];
13949
+ }
13950
+ }], null, false, 2145354177)
13906
13951
  }), _c('a-table-column', {
13907
13952
  key: "opt",
13908
13953
  attrs: {
@@ -14113,7 +14158,42 @@ var render = function render() {
14113
14158
  },
14114
14159
  expression: "radioCheckBox.additionalData"
14115
14160
  }
14116
- })], 1)] : _vm._e()], 2)]), _c('footer', {
14161
+ })], 1), _c('li', {
14162
+ staticClass: "control-item"
14163
+ }, [_c('span', {
14164
+ staticClass: "label"
14165
+ }, [_vm._v("关联后元素必填")]), _c('a-select', {
14166
+ staticStyle: {
14167
+ "text-align": "left"
14168
+ },
14169
+ attrs: {
14170
+ "getPopupContainer": function getPopupContainer(triggerNode) {
14171
+ return triggerNode.parentNode;
14172
+ },
14173
+ "showSearch": "",
14174
+ "allowClear": "",
14175
+ "placeholder": "关联后元素必填"
14176
+ },
14177
+ model: {
14178
+ value: _vm.radioCheckBox.associatedElement,
14179
+ callback: function callback($$v) {
14180
+ _vm.$set(_vm.radioCheckBox, "associatedElement", $$v);
14181
+ },
14182
+ expression: "radioCheckBox.associatedElement"
14183
+ }
14184
+ }, _vm._l(_vm.nodeList, function (node, index) {
14185
+ return _c('a-select-option', {
14186
+ key: node.name + '___' + node.dataId + '___' + index,
14187
+ attrs: {
14188
+ "value": node.dataId
14189
+ }
14190
+ }, [_c('div', {
14191
+ staticStyle: {
14192
+ "display": "flex",
14193
+ "justify-content": "space-between"
14194
+ }
14195
+ }, [_c('span', [_vm._v(_vm._s(node.name))]), _c('span', [_vm._v(_vm._s(node.dataId))])])]);
14196
+ }), 1)], 1)] : _vm._e()], 2)]), _c('footer', {
14117
14197
  staticClass: "ho-modal-footer"
14118
14198
  }, [_vm.boxGroup === 1 ? _c('a-button', {
14119
14199
  staticStyle: {
@@ -14143,6 +14223,8 @@ var render = function render() {
14143
14223
  };
14144
14224
  var staticRenderFns = [];
14145
14225
 
14226
+ ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=0d790650&
14227
+
14146
14228
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
14147
14229
  var objectSpread2 = __webpack_require__(63442);
14148
14230
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
@@ -14165,6 +14247,10 @@ var es_array_splice = __webpack_require__(40561);
14165
14247
  var RadioAndCheckBoxNode = __webpack_require__(99152);
14166
14248
  // EXTERNAL MODULE: ./src/HOEditorFactorys.ts
14167
14249
  var HOEditorFactorys = __webpack_require__(74089);
14250
+ // EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
14251
+ var TextInputFieldNode = __webpack_require__(90161);
14252
+ // EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseCombineNode.ts
14253
+ var BaseCombineNode = __webpack_require__(4938);
14168
14254
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
14169
14255
 
14170
14256
 
@@ -14177,9 +14263,12 @@ var HOEditorFactorys = __webpack_require__(74089);
14177
14263
 
14178
14264
 
14179
14265
 
14266
+
14267
+
14268
+
14180
14269
  var defaultBox = {
14181
14270
  id: '',
14182
- dataId: "",
14271
+ dataId: '',
14183
14272
  title: '',
14184
14273
  groupName: '',
14185
14274
  controlStyle: '',
@@ -14204,7 +14293,8 @@ var defaultBox = {
14204
14293
  readType: false,
14205
14294
  isTransToText: false,
14206
14295
  isEditText: false,
14207
- groupHasOptions: false
14296
+ groupHasOptions: false,
14297
+ associatedElement: ''
14208
14298
  };
14209
14299
  /* harmony default export */ var RadioCheckboxvue_type_script_lang_js_ = ({
14210
14300
  name: 'RadioCheckBox',
@@ -14220,7 +14310,8 @@ var defaultBox = {
14220
14310
  dynamicTags: [],
14221
14311
  inputVisible: false,
14222
14312
  inputValue: '',
14223
- saveTagInput: null
14313
+ saveTagInput: null,
14314
+ nodeList: []
14224
14315
  };
14225
14316
  },
14226
14317
  inject: {
@@ -14252,9 +14343,11 @@ var defaultBox = {
14252
14343
  },
14253
14344
  created: function created() {
14254
14345
  var _this = this;
14346
+ this.nodeList = this.getTextFieldNode();
14255
14347
  if (this.controlStatus === 'update') {
14348
+ var _updateNode$value;
14256
14349
  var updateNode = this.getRadioCheckNode();
14257
- if (updateNode.value.groupName) {
14350
+ if ((_updateNode$value = updateNode.value) !== null && _updateNode$value !== void 0 && _updateNode$value.groupName) {
14258
14351
  updateNode.valueList.forEach(function (v) {
14259
14352
  var value = {
14260
14353
  id: v.id,
@@ -14296,6 +14389,29 @@ var defaultBox = {
14296
14389
  }
14297
14390
  },
14298
14391
  methods: {
14392
+ getTextFieldNode: function getTextFieldNode() {
14393
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
14394
+ var ret = [];
14395
+ var getAllNodes = function getAllNodes(nodes) {
14396
+ for (var i = 0; i < nodes.length; i++) {
14397
+ var node = nodes[i];
14398
+ if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
14399
+ if (node.name == '单次用量') {}
14400
+ ret.push({
14401
+ dataId: node.dataId,
14402
+ name: node.name,
14403
+ text: node.text
14404
+ });
14405
+ }
14406
+ if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
14407
+ getAllNodes(node.childNodes);
14408
+ }
14409
+ }
14410
+ };
14411
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
14412
+ getAllNodes(mainNodes);
14413
+ return ret;
14414
+ },
14299
14415
  defaultSelectChange: function defaultSelectChange(index) {
14300
14416
  if (this.controlType === 'RadioBox') {
14301
14417
  this.radioCheckBoxGroup.map(function (v, key) {
@@ -14309,8 +14425,8 @@ var defaultBox = {
14309
14425
  }
14310
14426
  },
14311
14427
  getRadioCheckNode: function getRadioCheckNode() {
14312
- var _hoEditorFactory$vueC;
14313
- var value = null;
14428
+ var _hoEditorFactory$vueC, _value;
14429
+ var value = {};
14314
14430
  var valueList = [];
14315
14431
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
14316
14432
  var path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
@@ -14319,7 +14435,7 @@ var defaultBox = {
14319
14435
  if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) {
14320
14436
  value = node;
14321
14437
  }
14322
- if (value.groupName) {
14438
+ if ((_value = value) !== null && _value !== void 0 && _value.groupName) {
14323
14439
  radioAndCheckBoxs.forEach(function (v) {
14324
14440
  if (v.groupName === value.groupName && v.controlStyle === value.controlStyle) {
14325
14441
  valueList.push(v);
@@ -14409,10 +14525,10 @@ var defaultBox = {
14409
14525
  });
14410
14526
  ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
14411
14527
  /* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
14412
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=3f147ff5&prod&lang=scss&
14528
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=0d790650&prod&lang=scss&
14413
14529
  // extracted by mini-css-extract-plugin
14414
14530
 
14415
- ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=3f147ff5&prod&lang=scss&
14531
+ ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=0d790650&prod&lang=scss&
14416
14532
 
14417
14533
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
14418
14534
  var componentNormalizer = __webpack_require__(70713);
@@ -16597,7 +16713,7 @@ var component = (0,componentNormalizer/* default */.Z)(
16597
16713
 
16598
16714
  /***/ }),
16599
16715
 
16600
- /***/ 47158:
16716
+ /***/ 63718:
16601
16717
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
16602
16718
 
16603
16719
  "use strict";
@@ -16613,7 +16729,7 @@ __webpack_require__.d(__webpack_exports__, {
16613
16729
  var es_array_includes = __webpack_require__(26699);
16614
16730
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
16615
16731
  var es_string_includes = __webpack_require__(32023);
16616
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=59ad6eba&
16732
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=c8ad1234&
16617
16733
 
16618
16734
 
16619
16735
  var render = function render() {
@@ -17447,7 +17563,7 @@ var render = function render() {
17447
17563
  };
17448
17564
  var staticRenderFns = [];
17449
17565
 
17450
- ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=59ad6eba&
17566
+ ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=c8ad1234&
17451
17567
 
17452
17568
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
17453
17569
  var slicedToArray = __webpack_require__(27222);
@@ -17845,10 +17961,10 @@ var columns = [{
17845
17961
  });
17846
17962
  ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=script&lang=js&
17847
17963
  /* harmony default export */ var table_TableCellPropertyvue_type_script_lang_js_ = (TableCellPropertyvue_type_script_lang_js_);
17848
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=59ad6eba&prod&lang=scss&
17964
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=c8ad1234&prod&lang=scss&
17849
17965
  // extracted by mini-css-extract-plugin
17850
17966
 
17851
- ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=59ad6eba&prod&lang=scss&
17967
+ ;// CONCATENATED MODULE: ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=c8ad1234&prod&lang=scss&
17852
17968
 
17853
17969
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
17854
17970
  var componentNormalizer = __webpack_require__(70713);
@@ -47167,7 +47283,7 @@ var PageProperty = /*#__PURE__*/function () {
47167
47283
  /*
47168
47284
  * @Author: your name
47169
47285
  * @Date: 2020-12-24 16:01:16
47170
- * @LastEditTime: 2023-07-14 10:34:05
47286
+ * @LastEditTime: 2023-07-19 09:53:35
47171
47287
  * @LastEditors: liyanan 2441631434@qq.com
47172
47288
  * @Description: In User Settings Edit
47173
47289
  * @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
@@ -47759,7 +47875,7 @@ var EditorProperty;
47759
47875
  EditorProperty[EditorProperty["Textarea"] = 5] = "Textarea";
47760
47876
  })(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值,签名,输入域}
47761
47877
  var ColProperty = /*#__PURE__*/function () {
47762
- //编号
47878
+ //private _id!: string;//编号
47763
47879
  //编辑器属性
47764
47880
  //垂直对齐方式,
47765
47881
  //宽度
@@ -47770,7 +47886,6 @@ var ColProperty = /*#__PURE__*/function () {
47770
47886
  function ColProperty(objectValues //, table: TableNode
47771
47887
  ) {
47772
47888
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, ColProperty);
47773
- (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_id", void 0);
47774
47889
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_editorProperty", EditorProperty.None);
47775
47890
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_align", VAlign.vatop);
47776
47891
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(this, "_width", 0);
@@ -47812,15 +47927,13 @@ var ColProperty = /*#__PURE__*/function () {
47812
47927
  }
47813
47928
  }
47814
47929
  }
47930
+ // get id(): string {
47931
+ // return this._id;
47932
+ // }
47933
+ // set id(value: string) {
47934
+ // this._id = value;
47935
+ // }
47815
47936
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(ColProperty, [{
47816
- key: "id",
47817
- get: function get() {
47818
- return this._id;
47819
- },
47820
- set: function set(value) {
47821
- this._id = value;
47822
- }
47823
- }, {
47824
47937
  key: "editorProperty",
47825
47938
  get: function get() {
47826
47939
  return this._editorProperty;
@@ -59049,6 +59162,7 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59049
59162
  //追加文本
59050
59163
  //内容是否转成文本节点
59051
59164
  //同组保存时必须有选项不能全部为空
59165
+ //关联元素id
59052
59166
  function RadioAndCheckBoxInstance() {
59053
59167
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, RadioAndCheckBoxInstance);
59054
59168
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(this, "id", void 0);
@@ -59070,6 +59184,7 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59070
59184
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(this, "appendText", "");
59071
59185
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(this, "isTransToText", false);
59072
59186
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(this, "groupHasOptions", false);
59187
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(this, "associatedElement", "");
59073
59188
  RadioAndCheckBoxInstance.makeDefaultValue(this);
59074
59189
  }
59075
59190
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z)(RadioAndCheckBoxInstance, [{
@@ -59268,6 +59383,16 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59268
59383
  this.groupHasOptions = value;
59269
59384
  }
59270
59385
  }
59386
+ }, {
59387
+ key: "AssociatedElement",
59388
+ get: function get() {
59389
+ return this.associatedElement;
59390
+ },
59391
+ set: function set(value) {
59392
+ if (this.associatedElement !== value) {
59393
+ this.associatedElement = value;
59394
+ }
59395
+ }
59271
59396
  // get BandDataSource(): BandDataSource {
59272
59397
  // return this.bandDataSource;
59273
59398
  // }
@@ -59310,6 +59435,7 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
59310
59435
  ret.appendText = "";
59311
59436
  ret.isTransToText = false;
59312
59437
  ret.groupHasOptions = false;
59438
+ ret.associatedElement = "";
59313
59439
  return ret;
59314
59440
  }
59315
59441
  }]);
@@ -59329,6 +59455,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
59329
59455
  //追加文本
59330
59456
  //内容是否转成文本
59331
59457
  //同组保存时必须有选项不能全部为空
59458
+ //关联元素id
59332
59459
  function RadioAndCheckBoxNode(hoEditorFactoryID, rootNodes, pNode, nodeType, valuesObject, styleIndex //, backColor: string
59333
59460
  ) {
59334
59461
  var _this;
@@ -59344,6 +59471,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
59344
59471
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_appendText", "");
59345
59472
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_isTransToText", false);
59346
59473
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_groupHasOptions", false);
59474
+ (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_associatedElement", "");
59347
59475
  _this._styleIndex = styleIndex;
59348
59476
  //const valuesObj = eval("(" + valuesObject + ")");
59349
59477
  _this.setValuesObject(valuesObject);
@@ -59539,6 +59667,16 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
59539
59667
  this._groupHasOptions = value;
59540
59668
  }
59541
59669
  }
59670
+ }, {
59671
+ key: "associatedElement",
59672
+ get: function get() {
59673
+ return this._associatedElement;
59674
+ },
59675
+ set: function set(value) {
59676
+ if (this._associatedElement !== value) {
59677
+ this._associatedElement = value;
59678
+ }
59679
+ }
59542
59680
  // get bandDataSource(): BandDataSource {
59543
59681
  // return this._bandDataSource;
59544
59682
  // }
@@ -59604,6 +59742,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
59604
59742
  ret.AppendText = this.appendText !== undefined ? this.appendText : ret.AppendText;
59605
59743
  ret.IsTransToText = this.isTransToText != undefined ? this.isTransToText : ret.IsTransToText;
59606
59744
  ret.GroupHasOptions = this.groupHasOptions != undefined ? this.groupHasOptions : ret.GroupHasOptions;
59745
+ ret.AssociatedElement = this.associatedElement != undefined ? this.associatedElement : ret.AssociatedElement;
59607
59746
  return ret;
59608
59747
  }
59609
59748
  /**
@@ -59727,6 +59866,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
59727
59866
  appendText: this.appendText,
59728
59867
  readType: this.readType,
59729
59868
  //bandDataSource: this.bandDataSource,
59869
+ associatedElement: this.associatedElement,
59730
59870
  remark: this.remark
59731
59871
  };
59732
59872
  }
@@ -59759,6 +59899,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
59759
59899
  isEditText: this.isEditText,
59760
59900
  appendText: this.appendText,
59761
59901
  readType: this.readType,
59902
+ associatedElement: this.associatedElement,
59762
59903
  //bandDataSource: this.bandDataSource,
59763
59904
  remark: this.remark
59764
59905
  };
@@ -84837,9 +84978,21 @@ var DrawTree = /*#__PURE__*/function () {
84837
84978
  hoEditorFactory.docController.insertRadioAndCheckBox("update", newDomRangeCur, nodeObjectStr, aNode.styleIndex
84838
84979
  //aNode.backColor
84839
84980
  );
84981
+
84982
+ if (e.node.associatedElement) {
84983
+ var node = hoEditorFactory.vueController.getNodeByDataID("main", e.node.associatedElement);
84984
+ if (node && node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
84985
+ if (e.node.isSelected) {
84986
+ node.customProperty.must = true;
84987
+ node.update(0);
84988
+ } else {
84989
+ node.customProperty.must = false;
84990
+ node.update(0);
84991
+ }
84992
+ }
84993
+ }
84840
84994
  }
84841
84995
  }
84842
-
84843
84996
  return true;
84844
84997
  }
84845
84998
  /**
@@ -99767,7 +99920,7 @@ var f2,getHorizontalCoordinateString,getVerticalCoordinateString,getHorizontalCo
99767
99920
  * A pattern object to use to fill the drawing (not supported by context2d)
99768
99921
  */Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle;},set:function set(value){var rgba;rgba=getRGBA(value);this.ctx.fillStyle=rgba.style;this.ctx.isFillTransparent=rgba.a===0;//自定义修改 当透明度小于1时改成0 ,以适配不支持透明度的打印机
99769
99922
  if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}// 自定义修改 处理彩色字体打印问题
99770
- var alpha=this.ctx.fillOpacity;if(window.printBlack&&!['#000','#0000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(this.ctx.fillStyle)){if(Array.isArray(this.ctx.path)&&this.ctx.path.length>4){this.ctx.fillStyle="#000000";}this.pdf.setFillColor(255,255,255,{a:alpha});this.pdf.setTextColor(0,0,0,{a:alpha});}else{this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:alpha});}}});/**
99923
+ var alpha=this.ctx.fillOpacity;if(window.printBlack&&!['#000','#000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(this.ctx.fillStyle)){console.log(window.printBlack,this.ctx.fillStyle,"?????????????");if(Array.isArray(this.ctx.path)&&this.ctx.path.length>4){this.ctx.fillStyle="#000000";}this.pdf.setFillColor(255,255,255,{a:alpha});this.pdf.setTextColor(0,0,0,{a:alpha});}else{console.log(rgba.r,rgba.g,rgba.b,alpha,rgba.style,'----------',this.ctx);this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:alpha});}}});/**
99771
99924
  * Sets or returns the color, gradient, or pattern used for strokes
99772
99925
  *
99773
99926
  * @name strokeStyle
@@ -99776,7 +99929,7 @@ var alpha=this.ctx.fillOpacity;if(window.printBlack&&!['#000','#0000000','#fff',
99776
99929
  * @property {gradient} gradient A gradient object (linear or radial) used to create a gradient stroke (not supported by context2d)
99777
99930
  * @property {pattern} pattern A pattern object used to create a pattern stroke (not supported by context2d)
99778
99931
  */Object.defineProperty(this,"strokeStyle",{get:function get(){return this.ctx.strokeStyle;},set:function set(value){var rgba=getRGBA(value);this.ctx.strokeStyle=rgba.style;this.ctx.isStrokeTransparent=rgba.a===0;//自定义修改 当透明度小于1时改成0 ,以适配不支持透明度的打印机
99779
- if(rgba.a<1){this.ctx.strokeOpacity=0;}else{this.ctx.strokeOpacity=rgba.a;}if(rgba.a===0){this.pdf.setDrawColor(255,255,255);}else if(rgba.a===1){this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b);}else{this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b);}if(window.printBlack&&!['#000','#0000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(this.ctx.strokeStyle)){if(Array.isArray(this.ctx.path)&&this.ctx.path.length>4){this.ctx.strokeStyle="#000000";this.pdf.setDrawColor(0,0,0);}}}});/**
99932
+ if(rgba.a<1){this.ctx.strokeOpacity=0;}else{this.ctx.strokeOpacity=rgba.a;}if(rgba.a===0){this.pdf.setDrawColor(255,255,255);}else if(rgba.a===1){this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b);}else{this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b);}if(window.printBlack&&!['#000','#000000','#fff','#ffffff','#FFF','#FFFFFF'].includes(this.ctx.strokeStyle)){if(Array.isArray(this.ctx.path)&&this.ctx.path.length>4){this.ctx.strokeStyle="#000000";this.pdf.setDrawColor(0,0,0);}}}});/**
99780
99933
  * Sets or returns the style of the end caps for a line
99781
99934
  *
99782
99935
  * @name lineCap
@@ -199597,11 +199750,11 @@ var map = {
199597
199750
  "./popers/Title.vue": 89987,
199598
199751
  "./printstyle/PrintLineStyle.vue": 51484,
199599
199752
  "./qrCode/QrCode.vue": 10978,
199600
- "./radioCheckBox/RadioCheckbox.vue": 82243,
199753
+ "./radioCheckBox/RadioCheckbox.vue": 8632,
199601
199754
  "./selectDialog/SelectDialog.vue": 59075,
199602
199755
  "./sign/Sign.vue": 28715,
199603
199756
  "./table/TableCellPoper.vue": 61917,
199604
- "./table/TableCellProperty.vue": 47158,
199757
+ "./table/TableCellProperty.vue": 63718,
199605
199758
  "./table/TableColProperty.vue": 2116,
199606
199759
  "./table/TableForm.vue": 19064,
199607
199760
  "./table/TableFormTree.vue": 39703,
@@ -238963,7 +239116,7 @@ var ParagraphNode = __webpack_require__(67945);
238963
239116
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
238964
239117
  var MarkNode = __webpack_require__(57727);
238965
239118
  ;// CONCATENATED MODULE: ./src/components/version.ts
238966
- /* harmony default export */ var version = ('3.0.86');
239119
+ /* harmony default export */ var version = ('3.0.87');
238967
239120
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
238968
239121
  var PoperTipText = __webpack_require__(36081);
238969
239122
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -253958,6 +254111,13 @@ var VueController = /*#__PURE__*/function () {
253958
254111
  }
253959
254112
  if (table) {
253960
254113
  var rowCellNum = table.rows[0].length;
254114
+ for (var _k4 = rowCellNum; _k4 < table.childNodes.length; _k4++) {
254115
+ var cell = table.childNodes[_k4];
254116
+ if (cell.childNodes.length > 1) {
254117
+ cell.childNodes.splice(1, cell.childNodes.length);
254118
+ cell.drawCell.needUpdate = true;
254119
+ }
254120
+ }
253961
254121
  if (table.childNodes.length - rowCellNum < data.length) {
253962
254122
  var needCellNum = data.length - (table.childNodes.length - rowCellNum);
253963
254123
  var needRows = Number((needCellNum / rowCellNum).toFixed());
@@ -253968,13 +254128,15 @@ var VueController = /*#__PURE__*/function () {
253968
254128
  table.insertRows(table.rowCount, needRows, table.rowCount - 1);
253969
254129
  }
253970
254130
  for (var m = 0; m < data.length; m++) {
253971
- var cell = table.childNodes[m + rowCellNum];
253972
- if (cell) {
253973
- var text = data[m] || ' ';
253974
- cell.childNodes.splice(1, cell.childNodes.length);
253975
- var textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, cell, BaseNode/* NodeType.ntText */.Jq.ntText, text, cell.childNodes[0].styleIndex);
253976
- cell.drawCell.needUpdate = true;
253977
- cell.childNodes.push(textNode);
254131
+ var _cell = table.childNodes[m + rowCellNum];
254132
+ if (_cell) {
254133
+ var text = data[m];
254134
+ if (text) {
254135
+ _cell.childNodes.splice(1, _cell.childNodes.length);
254136
+ var textNode = new TextNode/* TextNode */.R(this._hoEditorFactoryID, table.rootNodes, _cell, BaseNode/* NodeType.ntText */.Jq.ntText, text, _cell.childNodes[0].styleIndex);
254137
+ _cell.drawCell.needUpdate = true;
254138
+ _cell.childNodes.push(textNode);
254139
+ }
253978
254140
  }
253979
254141
  }
253980
254142
  table.update();