@tongfun/tf-widget 0.1.64 → 0.1.67

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=8820266a&scoped=true&
125142
- var form_bodyvue_type_template_id_8820266a_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",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_8820266a_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=12665e29&scoped=true&
125096
+ var form_bodyvue_type_template_id_12665e29_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_12665e29_scoped_true_staticRenderFns = []
125144
125098
 
125145
125099
 
125146
- // CONCATENATED MODULE: ./package/form-body/index.vue?vue&type=template&id=8820266a&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=12665e29&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,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184639
184590
 
184640
184591
 
184641
184592
 
184642
-
184593
+ //
184643
184594
  //
184644
184595
  //
184645
184596
  //
@@ -184685,10 +184636,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184685
184636
  return [];
184686
184637
  }
184687
184638
  },
184688
- height: {
184689
- type: String,
184690
- default: '500'
184691
- },
184692
184639
  disableChecked: {
184693
184640
  type: Boolean,
184694
184641
  default: false
@@ -184768,7 +184715,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184768
184715
  data: function data() {
184769
184716
  return {
184770
184717
  // 删除行的操作删除的数据中,包含的已经保存到后端数据库中的数据的ID
184771
- delectIds: [],
184718
+ deleteIds: [],
184772
184719
  // 勾选中的行数据对象
184773
184720
  selectedRows: [],
184774
184721
  // 数据模型
@@ -184776,10 +184723,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184776
184723
  // 参与合计的列的字段
184777
184724
  summaryFields: [],
184778
184725
  // 当前选择的行
184779
- currentRow: null,
184780
- // 当设置为vh表格高度的时候,通过计算得到一个接近vh的值(百分比)
184781
- bodyHeight: 0,
184782
- tableHeightObserver: null
184726
+ currentRow: null
184783
184727
  };
184784
184728
  },
184785
184729
  computed: {
@@ -184830,13 +184774,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184830
184774
  var calculateFields = getFieldsFromExpression(allCalculationFieldsStr);
184831
184775
  var resultKeys = Object.keys(this.calculations);
184832
184776
  return resultKeys.concat(calculateFields);
184833
- },
184834
- tableHeight: function tableHeight() {
184835
- if (this.height.endsWith('vh')) {
184836
- return this.bodyHeight * (this.height.replace('vh', '') / 100);
184837
- }
184838
-
184839
- return this.height;
184840
184777
  }
184841
184778
  },
184842
184779
  provide: function provide() {
@@ -184852,18 +184789,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184852
184789
 
184853
184790
  this.$nextTick(function () {
184854
184791
  _this2.validateFieldExist();
184855
- }); // 给的属性是vh的情况下,监听整个页面的高度(边界),并在 变化后!! 进行表格高度计算
184856
- // 可能是响应式的原因,重绘很频繁,这个导致这个api触发的次数比预期多
184857
- // todo: 当页面被销毁后,这个监听是否仍然存在于系统中,百度,如果存在,则在destroy周期中进行销毁
184858
-
184859
- if (!this.height.endsWith('vh')) {
184860
- return;
184861
- }
184862
-
184863
- this.tableHeightObserver = new ResizeObserver(function (entryList) {
184864
- _this2.bodyHeight = entryList[0].contentRect.height;
184865
184792
  });
184866
- this.tableHeightObserver.observe(document.body);
184867
184793
  },
184868
184794
  methods: {
184869
184795
  /**
@@ -185094,11 +185020,11 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
185094
185020
 
185095
185021
  var form_body_component = Object(componentNormalizer["a" /* default */])(
185096
185022
  package_form_bodyvue_type_script_lang_js_,
185097
- form_bodyvue_type_template_id_8820266a_scoped_true_render,
185098
- form_bodyvue_type_template_id_8820266a_scoped_true_staticRenderFns,
185023
+ form_bodyvue_type_template_id_12665e29_scoped_true_render,
185024
+ form_bodyvue_type_template_id_12665e29_scoped_true_staticRenderFns,
185099
185025
  false,
185100
185026
  null,
185101
- "8820266a",
185027
+ "12665e29",
185102
185028
  null
185103
185029
 
185104
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=8820266a&scoped=true&
125151
- var form_bodyvue_type_template_id_8820266a_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",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_8820266a_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=12665e29&scoped=true&
125105
+ var form_bodyvue_type_template_id_12665e29_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_12665e29_scoped_true_staticRenderFns = []
125153
125107
 
125154
125108
 
125155
- // CONCATENATED MODULE: ./package/form-body/index.vue?vue&type=template&id=8820266a&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=12665e29&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,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184648
184599
 
184649
184600
 
184650
184601
 
184651
-
184602
+ //
184652
184603
  //
184653
184604
  //
184654
184605
  //
@@ -184694,10 +184645,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184694
184645
  return [];
184695
184646
  }
184696
184647
  },
184697
- height: {
184698
- type: String,
184699
- default: '500'
184700
- },
184701
184648
  disableChecked: {
184702
184649
  type: Boolean,
184703
184650
  default: false
@@ -184777,7 +184724,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184777
184724
  data: function data() {
184778
184725
  return {
184779
184726
  // 删除行的操作删除的数据中,包含的已经保存到后端数据库中的数据的ID
184780
- delectIds: [],
184727
+ deleteIds: [],
184781
184728
  // 勾选中的行数据对象
184782
184729
  selectedRows: [],
184783
184730
  // 数据模型
@@ -184785,10 +184732,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184785
184732
  // 参与合计的列的字段
184786
184733
  summaryFields: [],
184787
184734
  // 当前选择的行
184788
- currentRow: null,
184789
- // 当设置为vh表格高度的时候,通过计算得到一个接近vh的值(百分比)
184790
- bodyHeight: 0,
184791
- tableHeightObserver: null
184735
+ currentRow: null
184792
184736
  };
184793
184737
  },
184794
184738
  computed: {
@@ -184839,13 +184783,6 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184839
184783
  var calculateFields = getFieldsFromExpression(allCalculationFieldsStr);
184840
184784
  var resultKeys = Object.keys(this.calculations);
184841
184785
  return resultKeys.concat(calculateFields);
184842
- },
184843
- tableHeight: function tableHeight() {
184844
- if (this.height.endsWith('vh')) {
184845
- return this.bodyHeight * (this.height.replace('vh', '') / 100);
184846
- }
184847
-
184848
- return this.height;
184849
184786
  }
184850
184787
  },
184851
184788
  provide: function provide() {
@@ -184861,18 +184798,7 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
184861
184798
 
184862
184799
  this.$nextTick(function () {
184863
184800
  _this2.validateFieldExist();
184864
- }); // 给的属性是vh的情况下,监听整个页面的高度(边界),并在 变化后!! 进行表格高度计算
184865
- // 可能是响应式的原因,重绘很频繁,这个导致这个api触发的次数比预期多
184866
- // todo: 当页面被销毁后,这个监听是否仍然存在于系统中,百度,如果存在,则在destroy周期中进行销毁
184867
-
184868
- if (!this.height.endsWith('vh')) {
184869
- return;
184870
- }
184871
-
184872
- this.tableHeightObserver = new ResizeObserver(function (entryList) {
184873
- _this2.bodyHeight = entryList[0].contentRect.height;
184874
184801
  });
184875
- this.tableHeightObserver.observe(document.body);
184876
184802
  },
184877
184803
  methods: {
184878
184804
  /**
@@ -185103,11 +185029,11 @@ impureFunctionsAny_generated_Chain.createProxy(impureFunctionsAny_generated_math
185103
185029
 
185104
185030
  var form_body_component = Object(componentNormalizer["a" /* default */])(
185105
185031
  package_form_bodyvue_type_script_lang_js_,
185106
- form_bodyvue_type_template_id_8820266a_scoped_true_render,
185107
- form_bodyvue_type_template_id_8820266a_scoped_true_staticRenderFns,
185032
+ form_bodyvue_type_template_id_12665e29_scoped_true_render,
185033
+ form_bodyvue_type_template_id_12665e29_scoped_true_staticRenderFns,
185108
185034
  false,
185109
185035
  null,
185110
- "8820266a",
185036
+ "12665e29",
185111
185037
  null
185112
185038
 
185113
185039
  )