@tongfun/tf-widget 0.1.65 → 0.1.66

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.
@@ -77376,52 +77376,6 @@ if (module && module.exports) {
77376
77376
  module.exports = {};
77377
77377
 
77378
77378
 
77379
- /***/ }),
77380
-
77381
- /***/ "8a79":
77382
- /***/ (function(module, exports, __webpack_require__) {
77383
-
77384
- "use strict";
77385
-
77386
- var $ = __webpack_require__("23e7");
77387
- var uncurryThis = __webpack_require__("e330");
77388
- var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
77389
- var toLength = __webpack_require__("50c4");
77390
- var toString = __webpack_require__("577e");
77391
- var notARegExp = __webpack_require__("5a34");
77392
- var requireObjectCoercible = __webpack_require__("1d80");
77393
- var correctIsRegExpLogic = __webpack_require__("ab13");
77394
- var IS_PURE = __webpack_require__("c430");
77395
-
77396
- // eslint-disable-next-line es-x/no-string-prototype-endswith -- safe
77397
- var un$EndsWith = uncurryThis(''.endsWith);
77398
- var slice = uncurryThis(''.slice);
77399
- var min = Math.min;
77400
-
77401
- var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
77402
- // https://github.com/zloirock/core-js/pull/702
77403
- var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
77404
- var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
77405
- return descriptor && !descriptor.writable;
77406
- }();
77407
-
77408
- // `String.prototype.endsWith` method
77409
- // https://tc39.es/ecma262/#sec-string.prototype.endswith
77410
- $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
77411
- endsWith: function endsWith(searchString /* , endPosition = @length */) {
77412
- var that = toString(requireObjectCoercible(this));
77413
- notARegExp(searchString);
77414
- var endPosition = arguments.length > 1 ? arguments[1] : undefined;
77415
- var len = that.length;
77416
- var end = endPosition === undefined ? len : min(toLength(endPosition), len);
77417
- var search = toString(searchString);
77418
- return un$EndsWith
77419
- ? un$EndsWith(that, search, end)
77420
- : slice(that, end - search.length, end) === search;
77421
- }
77422
- });
77423
-
77424
-
77425
77379
  /***/ }),
77426
77380
 
77427
77381
  /***/ "8aa5":
@@ -125138,15 +125092,12 @@ tf_icon_picker.install = function (Vue) {
125138
125092
  };
125139
125093
 
125140
125094
  /* harmony default export */ var package_tf_icon_picker = (tf_icon_picker);
125141
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a74d51c2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./package/form-body/index.vue?vue&type=template&id=7ae40405&scoped=true&
125142
- var form_bodyvue_type_template_id_7ae40405_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-body"},[_c('div',{staticClass:"form-body-control"},[(!_vm.disableButtons.includes('add'))?_c('el-button',{attrs:{"size":"mini","type":"text"},on:{"click":_vm.addRow}},[_vm._v("新增行")]):_vm._e(),(!_vm.disableButtons.includes('del'))?_c('el-button',{attrs:{"size":"mini","type":"text"},on:{"click":_vm.delRow}},[_vm._v("删除行")]):_vm._e(),_vm._t("buttons",null,{"currentRow":_vm.currentRow})],2),_c('ux-grid',{ref:"tableRef",staticClass:"form-body-main",attrs:{"data":_vm.data,"height":_vm.tableHeight,"highlight-current-row":false,"edit-config":{ trigger: 'click', mode: 'cell', autoClear: false},"valid-config":{autoPos:true},"rules":_vm.rules,"show-summary":!_vm.disalbeSum,"summary-method":_vm.summary,"width-resize":true},on:{"row-click":_vm.handleRowClick,"selection-change":function($event){_vm.selectedRows = $event}}},[_c('ux-table-column',{attrs:{"visible":!_vm.disableChecked,"type":"checkbox","width":"50","fixed":"left"}}),_c('ux-table-column',{attrs:{"type":"index","width":"50","fixed":"left"}}),_vm._t("default")],2)],1)}
125143
- var form_bodyvue_type_template_id_7ae40405_scoped_true_staticRenderFns = []
125095
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a74d51c2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./package/form-body/index.vue?vue&type=template&id=34022029&scoped=true&
125096
+ var form_bodyvue_type_template_id_34022029_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-body"},[_c('div',{staticClass:"form-body-control"},[(!_vm.disableButtons.includes('add'))?_c('el-button',{attrs:{"size":"mini","type":"text"},on:{"click":_vm.addRow}},[_vm._v("新增行")]):_vm._e(),(!_vm.disableButtons.includes('del'))?_c('el-button',{attrs:{"size":"mini","type":"text"},on:{"click":_vm.delRow}},[_vm._v("删除行")]):_vm._e(),_vm._t("buttons",null,{"currentRow":_vm.currentRow})],2),_c('div',{staticClass:"form-body-main"},[_c('ux-grid',{ref:"tableRef",attrs:{"data":_vm.data,"highlight-current-row":false,"edit-config":{ trigger: 'click', mode: 'cell', autoClear: false},"valid-config":{autoPos:true},"rules":_vm.rules,"show-summary":!_vm.disalbeSum,"summary-method":_vm.summary,"width-resize":true},on:{"row-click":_vm.handleRowClick,"selection-change":function($event){_vm.selectedRows = $event}}},[_c('ux-table-column',{attrs:{"visible":!_vm.disableChecked,"type":"checkbox","width":"50","fixed":"left"}}),_c('ux-table-column',{attrs:{"type":"index","width":"50","fixed":"left"}}),_vm._t("default")],2)],1)])}
125097
+ var form_bodyvue_type_template_id_34022029_scoped_true_staticRenderFns = []
125144
125098
 
125145
125099
 
125146
- // CONCATENATED MODULE: ./package/form-body/index.vue?vue&type=template&id=7ae40405&scoped=true&
125147
-
125148
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
125149
- var es_string_ends_with = __webpack_require__("8a79");
125100
+ // CONCATENATED MODULE: ./package/form-body/index.vue?vue&type=template&id=34022029&scoped=true&
125150
125101
 
125151
125102
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
125152
125103
  var es_string_match = __webpack_require__("466d");
@@ -184639,7 +184590,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184639
184590
 
184640
184591
 
184641
184592
 
184642
-
184643
184593
  //
184644
184594
  //
184645
184595
  //
@@ -184686,10 +184636,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184686
184636
  return [];
184687
184637
  }
184688
184638
  },
184689
- height: {
184690
- type: String,
184691
- default: '500'
184692
- },
184693
184639
  disableChecked: {
184694
184640
  type: Boolean,
184695
184641
  default: false
@@ -184777,10 +184723,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184777
184723
  // 参与合计的列的字段
184778
184724
  summaryFields: [],
184779
184725
  // 当前选择的行
184780
- currentRow: null,
184781
- // 当设置为vh表格高度的时候,通过计算得到一个接近vh的值(百分比)
184782
- bodyHeight: 0,
184783
- tableHeightObserver: null
184726
+ currentRow: null
184784
184727
  };
184785
184728
  },
184786
184729
  computed: {
@@ -184831,13 +184774,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184831
184774
  var calculateFields = getFieldsFromExpression(allCalculationFieldsStr);
184832
184775
  var resultKeys = Object.keys(this.calculations);
184833
184776
  return resultKeys.concat(calculateFields);
184834
- },
184835
- tableHeight: function tableHeight() {
184836
- if (this.height.endsWith('vh')) {
184837
- return this.bodyHeight * (this.height.replace('vh', '') / 100);
184838
- }
184839
-
184840
- return this.height;
184841
184777
  }
184842
184778
  },
184843
184779
  provide: function provide() {
@@ -184853,18 +184789,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184853
184789
 
184854
184790
  this.$nextTick(function () {
184855
184791
  _this2.validateFieldExist();
184856
- }); // 给的属性是vh的情况下,监听整个页面的高度(边界),并在 变化后!! 进行表格高度计算
184857
- // 可能是响应式的原因,重绘很频繁,这个导致这个api触发的次数比预期多
184858
- // todo: 当页面被销毁后,这个监听是否仍然存在于系统中,百度,如果存在,则在destroy周期中进行销毁
184859
-
184860
- if (!this.height.endsWith('vh')) {
184861
- return;
184862
- }
184863
-
184864
- this.tableHeightObserver = new ResizeObserver(function (entryList) {
184865
- _this2.bodyHeight = entryList[0].contentRect.height;
184866
184792
  });
184867
- this.tableHeightObserver.observe(document.body);
184868
184793
  },
184869
184794
  methods: {
184870
184795
  /**
@@ -185095,11 +185020,11 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
185095
185020
 
185096
185021
  var form_body_component = Object(componentNormalizer["a" /* default */])(
185097
185022
  package_form_bodyvue_type_script_lang_js_,
185098
- form_bodyvue_type_template_id_7ae40405_scoped_true_render,
185099
- form_bodyvue_type_template_id_7ae40405_scoped_true_staticRenderFns,
185023
+ form_bodyvue_type_template_id_34022029_scoped_true_render,
185024
+ form_bodyvue_type_template_id_34022029_scoped_true_staticRenderFns,
185100
185025
  false,
185101
185026
  null,
185102
- "7ae40405",
185027
+ "34022029",
185103
185028
  null
185104
185029
 
185105
185030
  )
@@ -77385,52 +77385,6 @@ if (module && module.exports) {
77385
77385
  module.exports = {};
77386
77386
 
77387
77387
 
77388
- /***/ }),
77389
-
77390
- /***/ "8a79":
77391
- /***/ (function(module, exports, __webpack_require__) {
77392
-
77393
- "use strict";
77394
-
77395
- var $ = __webpack_require__("23e7");
77396
- var uncurryThis = __webpack_require__("e330");
77397
- var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
77398
- var toLength = __webpack_require__("50c4");
77399
- var toString = __webpack_require__("577e");
77400
- var notARegExp = __webpack_require__("5a34");
77401
- var requireObjectCoercible = __webpack_require__("1d80");
77402
- var correctIsRegExpLogic = __webpack_require__("ab13");
77403
- var IS_PURE = __webpack_require__("c430");
77404
-
77405
- // eslint-disable-next-line es-x/no-string-prototype-endswith -- safe
77406
- var un$EndsWith = uncurryThis(''.endsWith);
77407
- var slice = uncurryThis(''.slice);
77408
- var min = Math.min;
77409
-
77410
- var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
77411
- // https://github.com/zloirock/core-js/pull/702
77412
- var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
77413
- var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
77414
- return descriptor && !descriptor.writable;
77415
- }();
77416
-
77417
- // `String.prototype.endsWith` method
77418
- // https://tc39.es/ecma262/#sec-string.prototype.endswith
77419
- $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
77420
- endsWith: function endsWith(searchString /* , endPosition = @length */) {
77421
- var that = toString(requireObjectCoercible(this));
77422
- notARegExp(searchString);
77423
- var endPosition = arguments.length > 1 ? arguments[1] : undefined;
77424
- var len = that.length;
77425
- var end = endPosition === undefined ? len : min(toLength(endPosition), len);
77426
- var search = toString(searchString);
77427
- return un$EndsWith
77428
- ? un$EndsWith(that, search, end)
77429
- : slice(that, end - search.length, end) === search;
77430
- }
77431
- });
77432
-
77433
-
77434
77388
  /***/ }),
77435
77389
 
77436
77390
  /***/ "8aa5":
@@ -125147,15 +125101,12 @@ tf_icon_picker.install = function (Vue) {
125147
125101
  };
125148
125102
 
125149
125103
  /* harmony default export */ var package_tf_icon_picker = (tf_icon_picker);
125150
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a74d51c2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./package/form-body/index.vue?vue&type=template&id=7ae40405&scoped=true&
125151
- var form_bodyvue_type_template_id_7ae40405_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-body"},[_c('div',{staticClass:"form-body-control"},[(!_vm.disableButtons.includes('add'))?_c('el-button',{attrs:{"size":"mini","type":"text"},on:{"click":_vm.addRow}},[_vm._v("新增行")]):_vm._e(),(!_vm.disableButtons.includes('del'))?_c('el-button',{attrs:{"size":"mini","type":"text"},on:{"click":_vm.delRow}},[_vm._v("删除行")]):_vm._e(),_vm._t("buttons",null,{"currentRow":_vm.currentRow})],2),_c('ux-grid',{ref:"tableRef",staticClass:"form-body-main",attrs:{"data":_vm.data,"height":_vm.tableHeight,"highlight-current-row":false,"edit-config":{ trigger: 'click', mode: 'cell', autoClear: false},"valid-config":{autoPos:true},"rules":_vm.rules,"show-summary":!_vm.disalbeSum,"summary-method":_vm.summary,"width-resize":true},on:{"row-click":_vm.handleRowClick,"selection-change":function($event){_vm.selectedRows = $event}}},[_c('ux-table-column',{attrs:{"visible":!_vm.disableChecked,"type":"checkbox","width":"50","fixed":"left"}}),_c('ux-table-column',{attrs:{"type":"index","width":"50","fixed":"left"}}),_vm._t("default")],2)],1)}
125152
- var form_bodyvue_type_template_id_7ae40405_scoped_true_staticRenderFns = []
125104
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a74d51c2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./package/form-body/index.vue?vue&type=template&id=34022029&scoped=true&
125105
+ var form_bodyvue_type_template_id_34022029_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-body"},[_c('div',{staticClass:"form-body-control"},[(!_vm.disableButtons.includes('add'))?_c('el-button',{attrs:{"size":"mini","type":"text"},on:{"click":_vm.addRow}},[_vm._v("新增行")]):_vm._e(),(!_vm.disableButtons.includes('del'))?_c('el-button',{attrs:{"size":"mini","type":"text"},on:{"click":_vm.delRow}},[_vm._v("删除行")]):_vm._e(),_vm._t("buttons",null,{"currentRow":_vm.currentRow})],2),_c('div',{staticClass:"form-body-main"},[_c('ux-grid',{ref:"tableRef",attrs:{"data":_vm.data,"highlight-current-row":false,"edit-config":{ trigger: 'click', mode: 'cell', autoClear: false},"valid-config":{autoPos:true},"rules":_vm.rules,"show-summary":!_vm.disalbeSum,"summary-method":_vm.summary,"width-resize":true},on:{"row-click":_vm.handleRowClick,"selection-change":function($event){_vm.selectedRows = $event}}},[_c('ux-table-column',{attrs:{"visible":!_vm.disableChecked,"type":"checkbox","width":"50","fixed":"left"}}),_c('ux-table-column',{attrs:{"type":"index","width":"50","fixed":"left"}}),_vm._t("default")],2)],1)])}
125106
+ var form_bodyvue_type_template_id_34022029_scoped_true_staticRenderFns = []
125153
125107
 
125154
125108
 
125155
- // CONCATENATED MODULE: ./package/form-body/index.vue?vue&type=template&id=7ae40405&scoped=true&
125156
-
125157
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
125158
- var es_string_ends_with = __webpack_require__("8a79");
125109
+ // CONCATENATED MODULE: ./package/form-body/index.vue?vue&type=template&id=34022029&scoped=true&
125159
125110
 
125160
125111
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
125161
125112
  var es_string_match = __webpack_require__("466d");
@@ -184648,7 +184599,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184648
184599
 
184649
184600
 
184650
184601
 
184651
-
184652
184602
  //
184653
184603
  //
184654
184604
  //
@@ -184695,10 +184645,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184695
184645
  return [];
184696
184646
  }
184697
184647
  },
184698
- height: {
184699
- type: String,
184700
- default: '500'
184701
- },
184702
184648
  disableChecked: {
184703
184649
  type: Boolean,
184704
184650
  default: false
@@ -184786,10 +184732,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184786
184732
  // 参与合计的列的字段
184787
184733
  summaryFields: [],
184788
184734
  // 当前选择的行
184789
- currentRow: null,
184790
- // 当设置为vh表格高度的时候,通过计算得到一个接近vh的值(百分比)
184791
- bodyHeight: 0,
184792
- tableHeightObserver: null
184735
+ currentRow: null
184793
184736
  };
184794
184737
  },
184795
184738
  computed: {
@@ -184840,13 +184783,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184840
184783
  var calculateFields = getFieldsFromExpression(allCalculationFieldsStr);
184841
184784
  var resultKeys = Object.keys(this.calculations);
184842
184785
  return resultKeys.concat(calculateFields);
184843
- },
184844
- tableHeight: function tableHeight() {
184845
- if (this.height.endsWith('vh')) {
184846
- return this.bodyHeight * (this.height.replace('vh', '') / 100);
184847
- }
184848
-
184849
- return this.height;
184850
184786
  }
184851
184787
  },
184852
184788
  provide: function provide() {
@@ -184862,18 +184798,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184862
184798
 
184863
184799
  this.$nextTick(function () {
184864
184800
  _this2.validateFieldExist();
184865
- }); // 给的属性是vh的情况下,监听整个页面的高度(边界),并在 变化后!! 进行表格高度计算
184866
- // 可能是响应式的原因,重绘很频繁,这个导致这个api触发的次数比预期多
184867
- // todo: 当页面被销毁后,这个监听是否仍然存在于系统中,百度,如果存在,则在destroy周期中进行销毁
184868
-
184869
- if (!this.height.endsWith('vh')) {
184870
- return;
184871
- }
184872
-
184873
- this.tableHeightObserver = new ResizeObserver(function (entryList) {
184874
- _this2.bodyHeight = entryList[0].contentRect.height;
184875
184801
  });
184876
- this.tableHeightObserver.observe(document.body);
184877
184802
  },
184878
184803
  methods: {
184879
184804
  /**
@@ -185104,11 +185029,11 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
185104
185029
 
185105
185030
  var form_body_component = Object(componentNormalizer["a" /* default */])(
185106
185031
  package_form_bodyvue_type_script_lang_js_,
185107
- form_bodyvue_type_template_id_7ae40405_scoped_true_render,
185108
- form_bodyvue_type_template_id_7ae40405_scoped_true_staticRenderFns,
185032
+ form_bodyvue_type_template_id_34022029_scoped_true_render,
185033
+ form_bodyvue_type_template_id_34022029_scoped_true_staticRenderFns,
185109
185034
  false,
185110
185035
  null,
185111
- "7ae40405",
185036
+ "34022029",
185112
185037
  null
185113
185038
 
185114
185039
  )