htui-yllkbz 1.2.12 → 1.2.16

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.
@@ -2133,6 +2133,51 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
2133
2133
  };
2134
2134
 
2135
2135
 
2136
+ /***/ }),
2137
+
2138
+ /***/ "5899":
2139
+ /***/ (function(module, exports) {
2140
+
2141
+ // a string of all valid unicode whitespaces
2142
+ // eslint-disable-next-line max-len
2143
+ module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2144
+
2145
+
2146
+ /***/ }),
2147
+
2148
+ /***/ "58a8":
2149
+ /***/ (function(module, exports, __webpack_require__) {
2150
+
2151
+ var requireObjectCoercible = __webpack_require__("1d80");
2152
+ var whitespaces = __webpack_require__("5899");
2153
+
2154
+ var whitespace = '[' + whitespaces + ']';
2155
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
2156
+ var rtrim = RegExp(whitespace + whitespace + '*$');
2157
+
2158
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
2159
+ var createMethod = function (TYPE) {
2160
+ return function ($this) {
2161
+ var string = String(requireObjectCoercible($this));
2162
+ if (TYPE & 1) string = string.replace(ltrim, '');
2163
+ if (TYPE & 2) string = string.replace(rtrim, '');
2164
+ return string;
2165
+ };
2166
+ };
2167
+
2168
+ module.exports = {
2169
+ // `String.prototype.{ trimLeft, trimStart }` methods
2170
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
2171
+ start: createMethod(1),
2172
+ // `String.prototype.{ trimRight, trimEnd }` methods
2173
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trimend
2174
+ end: createMethod(2),
2175
+ // `String.prototype.trim` method
2176
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trim
2177
+ trim: createMethod(3)
2178
+ };
2179
+
2180
+
2136
2181
  /***/ }),
2137
2182
 
2138
2183
  /***/ "5a34":
@@ -2419,6 +2464,30 @@ var TEMPLATE = String(String).split('String');
2419
2464
  });
2420
2465
 
2421
2466
 
2467
+ /***/ }),
2468
+
2469
+ /***/ "7156":
2470
+ /***/ (function(module, exports, __webpack_require__) {
2471
+
2472
+ var isObject = __webpack_require__("861d");
2473
+ var setPrototypeOf = __webpack_require__("d2bb");
2474
+
2475
+ // makes subclassing work correct for wrapped built-ins
2476
+ module.exports = function ($this, dummy, Wrapper) {
2477
+ var NewTarget, NewTargetPrototype;
2478
+ if (
2479
+ // it can work only with native `setPrototypeOf`
2480
+ setPrototypeOf &&
2481
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
2482
+ typeof (NewTarget = dummy.constructor) == 'function' &&
2483
+ NewTarget !== Wrapper &&
2484
+ isObject(NewTargetPrototype = NewTarget.prototype) &&
2485
+ NewTargetPrototype !== Wrapper.prototype
2486
+ ) setPrototypeOf($this, NewTargetPrototype);
2487
+ return $this;
2488
+ };
2489
+
2490
+
2422
2491
  /***/ }),
2423
2492
 
2424
2493
  /***/ "7418":
@@ -3840,6 +3909,94 @@ if (!IS_PURE && typeof NativePromise == 'function' && !NativePromise.prototype['
3840
3909
  }
3841
3910
 
3842
3911
 
3912
+ /***/ }),
3913
+
3914
+ /***/ "a9e3":
3915
+ /***/ (function(module, exports, __webpack_require__) {
3916
+
3917
+ "use strict";
3918
+
3919
+ var DESCRIPTORS = __webpack_require__("83ab");
3920
+ var global = __webpack_require__("da84");
3921
+ var isForced = __webpack_require__("94ca");
3922
+ var redefine = __webpack_require__("6eeb");
3923
+ var has = __webpack_require__("5135");
3924
+ var classof = __webpack_require__("c6b6");
3925
+ var inheritIfRequired = __webpack_require__("7156");
3926
+ var toPrimitive = __webpack_require__("c04e");
3927
+ var fails = __webpack_require__("d039");
3928
+ var create = __webpack_require__("7c73");
3929
+ var getOwnPropertyNames = __webpack_require__("241c").f;
3930
+ var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
3931
+ var defineProperty = __webpack_require__("9bf2").f;
3932
+ var trim = __webpack_require__("58a8").trim;
3933
+
3934
+ var NUMBER = 'Number';
3935
+ var NativeNumber = global[NUMBER];
3936
+ var NumberPrototype = NativeNumber.prototype;
3937
+
3938
+ // Opera ~12 has broken Object#toString
3939
+ var BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;
3940
+
3941
+ // `ToNumber` abstract operation
3942
+ // https://tc39.github.io/ecma262/#sec-tonumber
3943
+ var toNumber = function (argument) {
3944
+ var it = toPrimitive(argument, false);
3945
+ var first, third, radix, maxCode, digits, length, index, code;
3946
+ if (typeof it == 'string' && it.length > 2) {
3947
+ it = trim(it);
3948
+ first = it.charCodeAt(0);
3949
+ if (first === 43 || first === 45) {
3950
+ third = it.charCodeAt(2);
3951
+ if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
3952
+ } else if (first === 48) {
3953
+ switch (it.charCodeAt(1)) {
3954
+ case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
3955
+ case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
3956
+ default: return +it;
3957
+ }
3958
+ digits = it.slice(2);
3959
+ length = digits.length;
3960
+ for (index = 0; index < length; index++) {
3961
+ code = digits.charCodeAt(index);
3962
+ // parseInt parses a string to a first unavailable symbol
3963
+ // but ToNumber should return NaN if a string contains unavailable symbols
3964
+ if (code < 48 || code > maxCode) return NaN;
3965
+ } return parseInt(digits, radix);
3966
+ }
3967
+ } return +it;
3968
+ };
3969
+
3970
+ // `Number` constructor
3971
+ // https://tc39.github.io/ecma262/#sec-number-constructor
3972
+ if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
3973
+ var NumberWrapper = function Number(value) {
3974
+ var it = arguments.length < 1 ? 0 : value;
3975
+ var dummy = this;
3976
+ return dummy instanceof NumberWrapper
3977
+ // check on 1..constructor(foo) case
3978
+ && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)
3979
+ ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
3980
+ };
3981
+ for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
3982
+ // ES3:
3983
+ 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
3984
+ // ES2015 (in case, if modules with ES2015 Number statics required before):
3985
+ 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
3986
+ 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +
3987
+ // ESNext
3988
+ 'fromString,range'
3989
+ ).split(','), j = 0, key; keys.length > j; j++) {
3990
+ if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {
3991
+ defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
3992
+ }
3993
+ }
3994
+ NumberWrapper.prototype = NumberPrototype;
3995
+ NumberPrototype.constructor = NumberWrapper;
3996
+ redefine(global, NUMBER, NumberWrapper);
3997
+ }
3998
+
3999
+
3843
4000
  /***/ }),
3844
4001
 
3845
4002
  /***/ "ab13":
@@ -6779,12 +6936,12 @@ var es_array_map = __webpack_require__("d81d");
6779
6936
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
6780
6937
  var es_function_name = __webpack_require__("b0c0");
6781
6938
 
6782
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=226f155d&
6783
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{ref:"elPopver",staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":_vm.width||600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide}},[_c('div',{staticClass:"ht-contnet",style:(("width:" + _vm.inputWidth + "px")),attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = true:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{staticStyle:{},style:(("width:" + _vm.inputWidth + "px")),attrs:{"readonly":"","placeholder":_vm.placeholder,"disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"searchPlaceholder":_vm.searchPlaceholder,"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
6939
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/index.vue?vue&type=template&id=525648ed&
6940
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{ref:"elPopver",staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":_vm.width||600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide}},[_c('div',{staticClass:"ht-contnet",style:(("width:" + _vm.inputWidth + "px")),attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = true:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{style:(("width:" + _vm.inputWidth + "px")),attrs:{"readonly":"","placeholder":_vm.placeholder,"disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"searchPlaceholder":_vm.searchPlaceholder,"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
6784
6941
  var staticRenderFns = []
6785
6942
 
6786
6943
 
6787
- // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=226f155d&
6944
+ // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=525648ed&
6788
6945
 
6789
6946
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
6790
6947
  function _classCallCheck(instance, Constructor) {
@@ -7771,14 +7928,14 @@ function isPromise(obj) {
7771
7928
  return obj instanceof Promise || (obj && typeof obj.then === 'function');
7772
7929
  }
7773
7930
 
7774
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=0b6f7347&scoped=true&
7775
- var CommonTablevue_type_template_id_0b6f7347_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}]},[_c('header',[_c('el-input',{staticClass:"htui-search",attrs:{"placeholder":_vm.searchPlaceholder||'请输入关键字查询'},model:{value:(_vm.state.filterData.Filter),callback:function ($$v) {_vm.$set(_vm.state.filterData, "Filter", $$v)},expression:"state.filterData.Filter"}})],1),_c('article',[_c('el-table',{ref:"comTable",staticStyle:{"width":"100%"},attrs:{"height":_vm.confige.table&&_vm.confige.table.height?_vm.confige.table.height:250,"row-key":_vm.confige.table&&_vm.confige.table.rowkey?_vm.confige.table.rowkey:'id',"data":_vm.dataSource,"tooltip-effect":"dark"},on:{"row-click":_vm.rowClick}},[_c('el-table-column',{attrs:{"width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
7931
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=5a58ed06&scoped=true&
7932
+ var CommonTablevue_type_template_id_5a58ed06_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}]},[_c('header',[_c('el-input',{staticClass:"htui-search",attrs:{"placeholder":_vm.searchPlaceholder||'请输入关键字查询'},model:{value:(_vm.state.filterData.Filter),callback:function ($$v) {_vm.$set(_vm.state.filterData, "Filter", $$v)},expression:"state.filterData.Filter"}})],1),_c('article',[_c('el-table',{ref:"comTable",staticStyle:{"width":"100%"},attrs:{"height":_vm.confige.table&&_vm.confige.table.height?_vm.confige.table.height:250,"row-key":_vm.confige.table&&_vm.confige.table.rowkey?_vm.confige.table.rowkey:'id',"data":_vm.dataSource,"tooltip-effect":"dark"},on:{"row-click":_vm.rowClick}},[_c('el-table-column',{attrs:{"width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
7776
7933
  var row = ref.row;
7777
- return [_c('el-checkbox',{attrs:{"value":_vm.state.checkObj&&_vm.state.checkObj.id===row.id},nativeOn:{"click":function($event){$event.preventDefault();}}})]}}])}),_c('el-table-column',{attrs:{"label":"序号","width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(" "+_vm._s((_vm.state.filterData.currentPage-1)*_vm.state.filterData.MaxResultCount+(scope.$index+1))+" ")]}}])}),_vm._l((_vm.columns),function(item){return _c('el-table-column',{key:item.key,attrs:{"label":item.title,"show-overflow-tooltip":true,"prop":item.key,"width":item.width||120}})})],2)],1),_c('footer',[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('p',{staticStyle:{"width":"90px","float":"left"}},[_vm._v("共"+_vm._s(_vm.dataSource.length)+"条")]),(false)?undefined:_vm._e()],1)],1)],1)])}
7778
- var CommonTablevue_type_template_id_0b6f7347_scoped_true_staticRenderFns = []
7934
+ return [_c('el-checkbox',{attrs:{"value":_vm.state.checkObj&&_vm.state.checkObj.id===row.id},nativeOn:{"click":function($event){$event.preventDefault();}}})]}}])}),_c('el-table-column',{attrs:{"label":"序号","width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(" "+_vm._s((_vm.state.filterData.currentPage-1)*_vm.state.filterData.MaxResultCount+(scope.$index+1))+" ")]}}])}),_vm._l((_vm.columns),function(item){return _c('el-table-column',{key:item.key,attrs:{"label":item.title,"show-overflow-tooltip":true,"prop":item.key,"width":item.width||120}},[_vm._t(item.key,[_vm._v(_vm._s(item.key))])],2)})],2)],1),_c('footer',[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('p',{staticStyle:{"width":"90px","float":"left"}},[_vm._v("共"+_vm._s(_vm.dataSource.length)+"条")]),(false)?undefined:_vm._e()],1)],1)],1)])}
7935
+ var CommonTablevue_type_template_id_5a58ed06_scoped_true_staticRenderFns = []
7779
7936
 
7780
7937
 
7781
- // CONCATENATED MODULE: ./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=0b6f7347&scoped=true&
7938
+ // CONCATENATED MODULE: ./src/packages/SelectTable/CommonTable.vue?vue&type=template&id=5a58ed06&scoped=true&
7782
7939
 
7783
7940
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
7784
7941
  var es_array_filter = __webpack_require__("4de4");
@@ -8513,11 +8670,11 @@ CommonTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm],
8513
8670
 
8514
8671
  var CommonTable_component = normalizeComponent(
8515
8672
  SelectTable_CommonTablevue_type_script_lang_ts_,
8516
- CommonTablevue_type_template_id_0b6f7347_scoped_true_render,
8517
- CommonTablevue_type_template_id_0b6f7347_scoped_true_staticRenderFns,
8673
+ CommonTablevue_type_template_id_5a58ed06_scoped_true_render,
8674
+ CommonTablevue_type_template_id_5a58ed06_scoped_true_staticRenderFns,
8518
8675
  false,
8519
8676
  null,
8520
- "0b6f7347",
8677
+ "5a58ed06",
8521
8678
  null
8522
8679
 
8523
8680
  )
@@ -8733,6 +8890,328 @@ SelectTable.install = function (Vue) {
8733
8890
  };
8734
8891
 
8735
8892
  /* harmony default export */ var packages_SelectTable = (SelectTable);
8893
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/PageInfo/index.vue?vue&type=template&id=08687955&
8894
+ var PageInfovue_type_template_id_08687955_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-pagination',{attrs:{"background":_vm.background,"hide-on-single-page":_vm.hideOnSinglePage,"disabled":!!_vm.disabled,"small":!!_vm.small,"current-page":_vm.state.pageInfo.currentPage,"page-size":_vm.state.pageInfo.maxResultCount,"page-sizes":_vm.pageSizes||[10, 20, 30, 40, 50, 100],"layout":_vm.layout||'total, sizes, prev, pager, next, jumper',"total":_vm.state.pageInfo.totalCount},on:{"current-change":_vm.handleCurrentChange,"size-change":_vm.handelSizeChange}})}
8895
+ var PageInfovue_type_template_id_08687955_staticRenderFns = []
8896
+
8897
+
8898
+ // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=08687955&
8899
+
8900
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
8901
+ var es_number_constructor = __webpack_require__("a9e3");
8902
+
8903
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/PageInfo/index.vue?vue&type=script&lang=ts&
8904
+
8905
+
8906
+
8907
+
8908
+
8909
+
8910
+
8911
+
8912
+ var PageInfovue_type_script_lang_ts_HtPagination = /*#__PURE__*/function (_Vue) {
8913
+ _inherits(HtPagination, _Vue);
8914
+
8915
+ var _super = _createSuper(HtPagination);
8916
+
8917
+ function HtPagination() {
8918
+ var _this;
8919
+
8920
+ _classCallCheck(this, HtPagination);
8921
+
8922
+ _this = _super.apply(this, arguments);
8923
+ /** 数据 */
8924
+
8925
+ _this.state = {
8926
+ loading: false,
8927
+ pageInfo: {
8928
+ currentPage: 1,
8929
+ maxResultCount: 10,
8930
+ skipCount: 0,
8931
+ totalCount: 0
8932
+ }
8933
+ };
8934
+ /** 计算属性 */
8935
+
8936
+ return _this;
8937
+ }
8938
+ /** 生命周期 */
8939
+
8940
+
8941
+ _createClass(HtPagination, [{
8942
+ key: "created",
8943
+ value: function created() {
8944
+ if (this.pageInfo) {
8945
+ this.setpageInfo(this.pageInfo);
8946
+ }
8947
+ }
8948
+ /** 方法 */
8949
+
8950
+ /** 翻页 */
8951
+
8952
+ }, {
8953
+ key: "handleCurrentChange",
8954
+ value: function handleCurrentChange(val) {
8955
+ this.state.pageInfo.currentPage = val || 1;
8956
+ var _this$state$pageInfo = this.state.pageInfo,
8957
+ _this$state$pageInfo$ = _this$state$pageInfo.maxResultCount,
8958
+ maxResultCount = _this$state$pageInfo$ === void 0 ? 0 : _this$state$pageInfo$,
8959
+ currentPage = _this$state$pageInfo.currentPage;
8960
+ this.state.pageInfo.skipCount = (currentPage - 1) * maxResultCount;
8961
+ this.$emit("onchange", this.state.pageInfo);
8962
+ }
8963
+ /** 更新每页条数 */
8964
+
8965
+ }, {
8966
+ key: "handelSizeChange",
8967
+ value: function handelSizeChange(val) {
8968
+ this.state.pageInfo.currentPage = 1;
8969
+ this.state.pageInfo.maxResultCount = val;
8970
+ this.handleCurrentChange(1);
8971
+ }
8972
+ /** 监听 */
8973
+
8974
+ }, {
8975
+ key: "setpageInfo",
8976
+ value: function setpageInfo(val) {
8977
+ var pageInfo = val;
8978
+ this.state.pageInfo = {
8979
+ currentPage: Number(pageInfo.currentPage),
8980
+ maxResultCount: Number(pageInfo.pageSize),
8981
+ skipCount: Number(pageInfo.skipCount),
8982
+ totalCount: Number(pageInfo.totalCount)
8983
+ };
8984
+ }
8985
+ }]);
8986
+
8987
+ return HtPagination;
8988
+ }(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
8989
+
8990
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "comStyle", void 0);
8991
+
8992
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "small", void 0);
8993
+
8994
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "pageInfo", void 0);
8995
+
8996
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "pageSize", void 0);
8997
+
8998
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "skipCount", void 0);
8999
+
9000
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "disabled", void 0);
9001
+
9002
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "background", void 0);
9003
+
9004
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "hideOnSinglePage", void 0);
9005
+
9006
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "pageSizes", void 0);
9007
+
9008
+ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "layout", void 0);
9009
+
9010
+ __decorate([Watch("pageInfo")], PageInfovue_type_script_lang_ts_HtPagination.prototype, "setpageInfo", null);
9011
+
9012
+ PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm], PageInfovue_type_script_lang_ts_HtPagination);
9013
+ /* harmony default export */ var PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_HtPagination);
9014
+ // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=script&lang=ts&
9015
+ /* harmony default export */ var packages_PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_);
9016
+ // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue
9017
+
9018
+
9019
+
9020
+
9021
+
9022
+ /* normalize component */
9023
+
9024
+ var PageInfo_component = normalizeComponent(
9025
+ packages_PageInfovue_type_script_lang_ts_,
9026
+ PageInfovue_type_template_id_08687955_render,
9027
+ PageInfovue_type_template_id_08687955_staticRenderFns,
9028
+ false,
9029
+ null,
9030
+ null,
9031
+ null
9032
+
9033
+ )
9034
+
9035
+ /* harmony default export */ var PageInfo = (PageInfo_component.exports);
9036
+ // CONCATENATED MODULE: ./src/packages/PageInfo/index.ts
9037
+ /*
9038
+ * @Descripttion:
9039
+ * @version:
9040
+ * @Author: hutao
9041
+ * @Date: 2021-11-15 15:00:57
9042
+ * @LastEditors: hutao
9043
+ * @LastEditTime: 2021-12-08 11:39:52
9044
+ */
9045
+
9046
+
9047
+ PageInfo.install = function (Vue) {
9048
+ Vue.component("HtPagination", PageInfo);
9049
+ };
9050
+
9051
+ /* harmony default export */ var packages_PageInfo = (PageInfo);
9052
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=template&id=cf5f313e&scoped=true&
9053
+ var HtTablevue_type_template_id_cf5f313e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}]},[_c('article',[_c('el-table',{ref:"comTable",attrs:{"height":_vm.height,"max-height":_vm.maxHeight,"border":_vm.border,"stripe":_vm.stripe,"size":_vm.size,"fit":_vm.fit,"show-header":_vm.showHeader,"empty-text":_vm.emptyText||'暂无数据',"row-style":_vm.rowStyle,"row-class-name":_vm.rowClassName,"current-row-key":_vm.currentRowKey,"highlight-current-row":_vm.highlightCurrentRow,"row-key":_vm.rowKey||'id',"data":_vm.data,"tooltip-effect":"dark"},on:{"row-click":function (row, column, event){ return _vm.$emit('row-click',row, column, event); },"row-contextmenu":function (row, column, event){ return _vm.$emit('row-contextmenu',row, column, event); },"row-dblclick":function (row, column, event){ return _vm.$emit('row-dblclick',row, column, event); },"header-click":function ( column, event){ return _vm.$emit('header-click', column, event); },"header-contextmenu":function ( column, event){ return _vm.$emit('header-contextmenu', column, event); },"sort-change":function (ref){
9054
+ var column = ref.column;
9055
+ var prop = ref.prop;
9056
+ var order = ref.order;
9057
+
9058
+ return _vm.$emit('sort-change', { column: column, prop: prop, order: order});
9059
+ },"filter-change":function (filter){ return _vm.$emit('filter-change', filter); },"current-change":function (currentRow, oldCurrentRow){ return _vm.$emit('current-change', currentRow, oldCurrentRow); },"select":function (selection, row){ return _vm.$emit('select',selection, row); },"select-all":function (selection){ return _vm.$emit('select-all',selection); },"selection-change":function (selection){ return _vm.$emit('selection-change',selection); },"cell-mouse-enter":function (row, column, cell, event){ return _vm.$emit('cell-mouse-enter',row, column, cell, event); },"cell-mouse-leave":function (row, column, cell, event){ return _vm.$emit('cell-mouse-leave',row, column, cell, event); },"cell-click":function (row, column, cell, event){ return _vm.$emit('cell-click',row, column, cell, event); },"cell-dblclick":function (row, column, cell, event){ return _vm.$emit('cell-dblclick',row, column, cell, event); }}},[_c('el-table-column',{attrs:{"width":"55","type":"selection"}}),(!_vm.hideOrder)?_c('el-table-column',{attrs:{"label":"序号","width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(" "+_vm._s((_vm.state.pageInfo.currentPage-1)*_vm.state.pageInfo.pageSize+(scope.$index+1))+" ")]}}],null,false,2272936552)},[_c('template',{slot:"header"},[_vm._t('header_order')],2)],2):_vm._e(),_vm._l((_vm.columns),function(item){return _c('el-table-column',{key:item.key,attrs:{"label":item.title,"show-overflow-tooltip":true,"prop":item.key,"width":item.width||120},scopedSlots:_vm._u([{key:"default",fn:function(ref){
9060
+ var row = ref.row;
9061
+ var column = ref.column;
9062
+ var rowIndex = ref.rowIndex;
9063
+ return [_vm._t(item.key,[_vm._v(_vm._s(row[item.key]))],{"row":row,"column":column,"rowIndex":rowIndex}),_vm._v(" "+_vm._s(item.headerSlot)+" ")]}},{key:"header",fn:function(ref){
9064
+ var column = ref.column;
9065
+ var $index = ref.$index;
9066
+ return [_vm._t('header_'+item.key,[_vm._v(_vm._s(item.title))],{"column":column,"$index":$index})]}}],null,true)})})],2)],1),(!_vm.hidePage)?_c('footer',[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('PageInfo',{attrs:{"hide-on-single-page":_vm.pagination&&_vm.pagination.hideOnSinglePage,"small":_vm.pagination&&_vm.pagination.small,"page-sizes":_vm.pagination&&_vm.pagination.pageSizes,"page-info":_vm.state.pageInfo},on:{"onchange":function (e){ return _vm.$emit('onchange',e); }}})],1)],1)],1):_vm._e()])}
9067
+ var HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns = []
9068
+
9069
+
9070
+ // CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=cf5f313e&scoped=true&
9071
+
9072
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
9073
+
9074
+
9075
+
9076
+
9077
+
9078
+
9079
+
9080
+
9081
+
9082
+ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
9083
+ _inherits(HtTable, _Vue);
9084
+
9085
+ var _super = _createSuper(HtTable);
9086
+
9087
+ function HtTable() {
9088
+ var _this;
9089
+
9090
+ _classCallCheck(this, HtTable);
9091
+
9092
+ _this = _super.apply(this, arguments);
9093
+ _this.state = {
9094
+ loading: false,
9095
+ pageInfo: {
9096
+ currentPage: 1,
9097
+ pageSize: 10,
9098
+ skipCount: 0,
9099
+ totalCount: 0
9100
+ }
9101
+ };
9102
+ return _this;
9103
+ }
9104
+
9105
+ _createClass(HtTable, [{
9106
+ key: "created",
9107
+ value: function created() {
9108
+ // console.log("this", this.$props);
9109
+ this.setPageInfo(this.pageInfo);
9110
+ }
9111
+ /** 监听 */
9112
+
9113
+ }, {
9114
+ key: "setPageInfo",
9115
+ value: function setPageInfo(val) {
9116
+ if (val) {
9117
+ var pageInfo = val;
9118
+ this.state.pageInfo = {
9119
+ currentPage: Number(pageInfo.currentPage),
9120
+ pageSize: Number(pageInfo.pageSize),
9121
+ skipCount: Number(pageInfo.skipCount),
9122
+ totalCount: Number(pageInfo.totalCount)
9123
+ };
9124
+ }
9125
+ }
9126
+ }]);
9127
+
9128
+ return HtTable;
9129
+ }(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
9130
+
9131
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "columns", void 0);
9132
+
9133
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
9134
+
9135
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
9136
+
9137
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
9138
+
9139
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
9140
+
9141
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowKey", void 0);
9142
+
9143
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "stripe", void 0);
9144
+
9145
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "border", void 0);
9146
+
9147
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "size", void 0);
9148
+
9149
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "fit", void 0);
9150
+
9151
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHeader", void 0);
9152
+
9153
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
9154
+
9155
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
9156
+
9157
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "highlightCurrentRow", void 0);
9158
+
9159
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowStyle", void 0);
9160
+
9161
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hideOrder", void 0);
9162
+
9163
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pageInfo", void 0);
9164
+
9165
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "emptyText", void 0);
9166
+
9167
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pagination", void 0);
9168
+
9169
+ __decorate([Watch("pageInfo")], HtTablevue_type_script_lang_ts_HtTable.prototype, "setPageInfo", null);
9170
+
9171
+ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
9172
+ components: {
9173
+ PageInfo: PageInfo
9174
+ }
9175
+ })], HtTablevue_type_script_lang_ts_HtTable);
9176
+ /* harmony default export */ var HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_HtTable);
9177
+ // CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
9178
+ /* harmony default export */ var packages_HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_);
9179
+ // CONCATENATED MODULE: ./src/packages/HtTable/index.vue
9180
+
9181
+
9182
+
9183
+
9184
+
9185
+ /* normalize component */
9186
+
9187
+ var HtTable_component = normalizeComponent(
9188
+ packages_HtTablevue_type_script_lang_ts_,
9189
+ HtTablevue_type_template_id_cf5f313e_scoped_true_render,
9190
+ HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns,
9191
+ false,
9192
+ null,
9193
+ "cf5f313e",
9194
+ null
9195
+
9196
+ )
9197
+
9198
+ /* harmony default export */ var packages_HtTable = (HtTable_component.exports);
9199
+ // CONCATENATED MODULE: ./src/packages/HtTable/index.ts
9200
+ /*
9201
+ * @Descripttion:
9202
+ * @version:
9203
+ * @Author: hutao
9204
+ * @Date: 2021-11-15 15:00:57
9205
+ * @LastEditors: hutao
9206
+ * @LastEditTime: 2021-12-09 14:21:20
9207
+ */
9208
+
9209
+
9210
+ packages_HtTable.install = function (Vue) {
9211
+ Vue.component("HtTable", packages_HtTable);
9212
+ };
9213
+
9214
+ /* harmony default export */ var src_packages_HtTable = (packages_HtTable);
8736
9215
  // CONCATENATED MODULE: ./src/packages/index.ts
8737
9216
 
8738
9217
 
@@ -8743,11 +9222,17 @@ SelectTable.install = function (Vue) {
8743
9222
  * @Author: hutao
8744
9223
  * @Date: 2021-10-21 10:08:41
8745
9224
  * @LastEditors: hutao
8746
- * @LastEditTime: 2021-12-01 11:22:56
9225
+ * @LastEditTime: 2021-12-09 17:27:01
8747
9226
  */
9227
+
9228
+ /** 下拉table选择控件 */
9229
+
9230
+ /** 分页组装配件 */
9231
+
9232
+
8748
9233
  // 存储组件列表
8749
9234
 
8750
- var components = [packages_SelectTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
9235
+ var components = [packages_SelectTable, packages_PageInfo, src_packages_HtTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
8751
9236
 
8752
9237
  var install = function install(Vue) {
8753
9238
  // 判断是否安装
@@ -8767,7 +9252,9 @@ if (typeof window !== 'undefined' && window.Vue) {
8767
9252
  // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
8768
9253
  install: install,
8769
9254
  // 以下是具体的组件列表
8770
- HtSelectTable: packages_SelectTable
9255
+ HtSelectTable: packages_SelectTable,
9256
+ HtPagination: packages_PageInfo,
9257
+ HtTable: src_packages_HtTable
8771
9258
  });
8772
9259
  // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
8773
9260
 
Binary file