htui-yllkbz 1.2.17 → 1.2.21
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.
- package/lib/htui.common.js +205 -19
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.umd.js +205 -19
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +3 -3
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/packages/HtTable/index.vue +61 -10
- package/src/packages/SelectTable/index.vue +2 -2
- package/src/views/About.vue +1 -1
package/lib/htui.common.js
CHANGED
|
@@ -2240,6 +2240,149 @@ module.exports = function dispatchRequest(config) {
|
|
|
2240
2240
|
};
|
|
2241
2241
|
|
|
2242
2242
|
|
|
2243
|
+
/***/ }),
|
|
2244
|
+
|
|
2245
|
+
/***/ "5319":
|
|
2246
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2247
|
+
|
|
2248
|
+
"use strict";
|
|
2249
|
+
|
|
2250
|
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
|
2251
|
+
var anObject = __webpack_require__("825a");
|
|
2252
|
+
var toObject = __webpack_require__("7b0b");
|
|
2253
|
+
var toLength = __webpack_require__("50c4");
|
|
2254
|
+
var toInteger = __webpack_require__("a691");
|
|
2255
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
2256
|
+
var advanceStringIndex = __webpack_require__("8aa5");
|
|
2257
|
+
var regExpExec = __webpack_require__("14c3");
|
|
2258
|
+
|
|
2259
|
+
var max = Math.max;
|
|
2260
|
+
var min = Math.min;
|
|
2261
|
+
var floor = Math.floor;
|
|
2262
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
|
|
2263
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
|
|
2264
|
+
|
|
2265
|
+
var maybeToString = function (it) {
|
|
2266
|
+
return it === undefined ? it : String(it);
|
|
2267
|
+
};
|
|
2268
|
+
|
|
2269
|
+
// @@replace logic
|
|
2270
|
+
fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
|
2271
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
|
2272
|
+
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
|
2273
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
2274
|
+
|
|
2275
|
+
return [
|
|
2276
|
+
// `String.prototype.replace` method
|
|
2277
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
2278
|
+
function replace(searchValue, replaceValue) {
|
|
2279
|
+
var O = requireObjectCoercible(this);
|
|
2280
|
+
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
|
2281
|
+
return replacer !== undefined
|
|
2282
|
+
? replacer.call(searchValue, O, replaceValue)
|
|
2283
|
+
: nativeReplace.call(String(O), searchValue, replaceValue);
|
|
2284
|
+
},
|
|
2285
|
+
// `RegExp.prototype[@@replace]` method
|
|
2286
|
+
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
2287
|
+
function (regexp, replaceValue) {
|
|
2288
|
+
if (
|
|
2289
|
+
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
|
2290
|
+
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
|
2291
|
+
) {
|
|
2292
|
+
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
|
2293
|
+
if (res.done) return res.value;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
var rx = anObject(regexp);
|
|
2297
|
+
var S = String(this);
|
|
2298
|
+
|
|
2299
|
+
var functionalReplace = typeof replaceValue === 'function';
|
|
2300
|
+
if (!functionalReplace) replaceValue = String(replaceValue);
|
|
2301
|
+
|
|
2302
|
+
var global = rx.global;
|
|
2303
|
+
if (global) {
|
|
2304
|
+
var fullUnicode = rx.unicode;
|
|
2305
|
+
rx.lastIndex = 0;
|
|
2306
|
+
}
|
|
2307
|
+
var results = [];
|
|
2308
|
+
while (true) {
|
|
2309
|
+
var result = regExpExec(rx, S);
|
|
2310
|
+
if (result === null) break;
|
|
2311
|
+
|
|
2312
|
+
results.push(result);
|
|
2313
|
+
if (!global) break;
|
|
2314
|
+
|
|
2315
|
+
var matchStr = String(result[0]);
|
|
2316
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
var accumulatedResult = '';
|
|
2320
|
+
var nextSourcePosition = 0;
|
|
2321
|
+
for (var i = 0; i < results.length; i++) {
|
|
2322
|
+
result = results[i];
|
|
2323
|
+
|
|
2324
|
+
var matched = String(result[0]);
|
|
2325
|
+
var position = max(min(toInteger(result.index), S.length), 0);
|
|
2326
|
+
var captures = [];
|
|
2327
|
+
// NOTE: This is equivalent to
|
|
2328
|
+
// captures = result.slice(1).map(maybeToString)
|
|
2329
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2330
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2331
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2332
|
+
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
|
2333
|
+
var namedCaptures = result.groups;
|
|
2334
|
+
if (functionalReplace) {
|
|
2335
|
+
var replacerArgs = [matched].concat(captures, position, S);
|
|
2336
|
+
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
2337
|
+
var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
|
2338
|
+
} else {
|
|
2339
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2340
|
+
}
|
|
2341
|
+
if (position >= nextSourcePosition) {
|
|
2342
|
+
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
|
2343
|
+
nextSourcePosition = position + matched.length;
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
return accumulatedResult + S.slice(nextSourcePosition);
|
|
2347
|
+
}
|
|
2348
|
+
];
|
|
2349
|
+
|
|
2350
|
+
// https://tc39.github.io/ecma262/#sec-getsubstitution
|
|
2351
|
+
function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
|
|
2352
|
+
var tailPos = position + matched.length;
|
|
2353
|
+
var m = captures.length;
|
|
2354
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2355
|
+
if (namedCaptures !== undefined) {
|
|
2356
|
+
namedCaptures = toObject(namedCaptures);
|
|
2357
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
2358
|
+
}
|
|
2359
|
+
return nativeReplace.call(replacement, symbols, function (match, ch) {
|
|
2360
|
+
var capture;
|
|
2361
|
+
switch (ch.charAt(0)) {
|
|
2362
|
+
case '$': return '$';
|
|
2363
|
+
case '&': return matched;
|
|
2364
|
+
case '`': return str.slice(0, position);
|
|
2365
|
+
case "'": return str.slice(tailPos);
|
|
2366
|
+
case '<':
|
|
2367
|
+
capture = namedCaptures[ch.slice(1, -1)];
|
|
2368
|
+
break;
|
|
2369
|
+
default: // \d\d?
|
|
2370
|
+
var n = +ch;
|
|
2371
|
+
if (n === 0) return match;
|
|
2372
|
+
if (n > m) {
|
|
2373
|
+
var f = floor(n / 10);
|
|
2374
|
+
if (f === 0) return match;
|
|
2375
|
+
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
|
2376
|
+
return match;
|
|
2377
|
+
}
|
|
2378
|
+
capture = captures[n - 1];
|
|
2379
|
+
}
|
|
2380
|
+
return capture === undefined ? '' : capture;
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
});
|
|
2384
|
+
|
|
2385
|
+
|
|
2243
2386
|
/***/ }),
|
|
2244
2387
|
|
|
2245
2388
|
/***/ "5692":
|
|
@@ -7078,12 +7221,12 @@ var es_array_map = __webpack_require__("d81d");
|
|
|
7078
7221
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
7079
7222
|
var es_function_name = __webpack_require__("b0c0");
|
|
7080
7223
|
|
|
7081
|
-
// 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=
|
|
7224
|
+
// 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=0af39fce&
|
|
7082
7225
|
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)}
|
|
7083
7226
|
var staticRenderFns = []
|
|
7084
7227
|
|
|
7085
7228
|
|
|
7086
|
-
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=
|
|
7229
|
+
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=0af39fce&
|
|
7087
7230
|
|
|
7088
7231
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
7089
7232
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -8954,7 +9097,6 @@ var SelectTablevue_type_script_lang_ts_HtSelectTable = /*#__PURE__*/function (_V
|
|
|
8954
9097
|
//
|
|
8955
9098
|
if (!this.state.config.disabled) {
|
|
8956
9099
|
var ref = this.$refs[this.state.config.key || "ht-table"];
|
|
8957
|
-
console.log("333");
|
|
8958
9100
|
this.state.visible = false;
|
|
8959
9101
|
ref.clearCheck();
|
|
8960
9102
|
}
|
|
@@ -9193,25 +9335,28 @@ PageInfo.install = function (Vue) {
|
|
|
9193
9335
|
};
|
|
9194
9336
|
|
|
9195
9337
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
9196
|
-
// 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=
|
|
9197
|
-
var
|
|
9338
|
+
// 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=1ec53a1e&scoped=true&
|
|
9339
|
+
var HtTablevue_type_template_id_1ec53a1e_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){
|
|
9198
9340
|
var column = ref.column;
|
|
9199
9341
|
var prop = ref.prop;
|
|
9200
9342
|
var order = ref.order;
|
|
9201
9343
|
|
|
9202
9344
|
return _vm.$emit('sort-change', { column: column, prop: prop, order: order});
|
|
9203
|
-
},"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
|
|
9345
|
+
},"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); }}},[(_vm.checked)?_c('el-table-column',{attrs:{"width":"55","reserve-selection":_vm.reserveSelection,"selectable":_vm.selectable,"type":"selection"}}):_vm._e(),(!_vm.hideOrder)?_c('el-table-column',{attrs:{"label":"序号","align":'center',"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,"fixed":item.fixed,"align":item.align,"header-align":item.headerAlign,"column-key":item.columnKey,"class-name":item.className,"show-overflow-tooltip":true,"prop":item.key,"sortable":item.sortable,"sort-method":item.sortMethod,"sort-orders":item.sortOrders,"formatter":item.formatter,"sort-by":item.sortBy,"min-width":item.minWidth,"width":item.width},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
9204
9346
|
var row = ref.row;
|
|
9205
9347
|
var column = ref.column;
|
|
9206
9348
|
var rowIndex = ref.rowIndex;
|
|
9207
|
-
return [_vm._t(item.key,[_vm._v(_vm._s(_vm.
|
|
9349
|
+
return [_vm._t(item.key,[_vm._v(_vm._s(_vm.getPropByPath(row,item.key)))],{"row":row,"column":column,"rowIndex":rowIndex})]}},{key:"header",fn:function(ref){
|
|
9208
9350
|
var column = ref.column;
|
|
9209
9351
|
var $index = ref.$index;
|
|
9210
9352
|
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()])}
|
|
9211
|
-
var
|
|
9353
|
+
var HtTablevue_type_template_id_1ec53a1e_scoped_true_staticRenderFns = []
|
|
9212
9354
|
|
|
9213
9355
|
|
|
9214
|
-
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
9356
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=1ec53a1e&scoped=true&
|
|
9357
|
+
|
|
9358
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9359
|
+
var es_string_replace = __webpack_require__("5319");
|
|
9215
9360
|
|
|
9216
9361
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
9217
9362
|
var es_string_split = __webpack_require__("1276");
|
|
@@ -9231,7 +9376,6 @@ var es_string_split = __webpack_require__("1276");
|
|
|
9231
9376
|
|
|
9232
9377
|
|
|
9233
9378
|
|
|
9234
|
-
|
|
9235
9379
|
var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
9236
9380
|
_inherits(HtTable, _Vue);
|
|
9237
9381
|
|
|
@@ -9261,6 +9405,37 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
9261
9405
|
// console.log("this", this.$props);
|
|
9262
9406
|
this.setPageInfo(this.pageInfo);
|
|
9263
9407
|
}
|
|
9408
|
+
}, {
|
|
9409
|
+
key: "getPropByPath",
|
|
9410
|
+
value: function getPropByPath(obj, path, strict) {
|
|
9411
|
+
var tempObj = obj;
|
|
9412
|
+
path = path.replace(/\[(\w+)\]/g, ".$1");
|
|
9413
|
+
path = path.replace(/^\./, "");
|
|
9414
|
+
var keyArr = path.split(".");
|
|
9415
|
+
var i = 0;
|
|
9416
|
+
|
|
9417
|
+
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
9418
|
+
if (!tempObj && !strict) break;
|
|
9419
|
+
var key = keyArr[i];
|
|
9420
|
+
|
|
9421
|
+
if (key in tempObj) {
|
|
9422
|
+
tempObj = tempObj[key];
|
|
9423
|
+
} else {
|
|
9424
|
+
if (strict) {
|
|
9425
|
+
throw new Error("please transfer a valid prop path to form item!");
|
|
9426
|
+
}
|
|
9427
|
+
|
|
9428
|
+
break;
|
|
9429
|
+
}
|
|
9430
|
+
} // return {
|
|
9431
|
+
// o: tempObj,
|
|
9432
|
+
// k: keyArr[i],
|
|
9433
|
+
// v: tempObj ? tempObj[keyArr[i]] : null,
|
|
9434
|
+
// };
|
|
9435
|
+
|
|
9436
|
+
|
|
9437
|
+
return tempObj ? tempObj[keyArr[i]] : null;
|
|
9438
|
+
}
|
|
9264
9439
|
/** 遍历循环展示row数据 */
|
|
9265
9440
|
|
|
9266
9441
|
}, {
|
|
@@ -9269,12 +9444,17 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
9269
9444
|
if (key) {
|
|
9270
9445
|
if (key.includes(".")) {
|
|
9271
9446
|
//存在多级的情况
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9447
|
+
//console.log("eval", key, eval(row[key]));
|
|
9448
|
+
// const arrKey = key.split(".");
|
|
9449
|
+
// let data = row;
|
|
9450
|
+
// arrKey.forEach((item) => {
|
|
9451
|
+
// if (data[item]) {
|
|
9452
|
+
// data = data[item];
|
|
9453
|
+
// } else {
|
|
9454
|
+
// data = "";
|
|
9455
|
+
// }
|
|
9456
|
+
// });
|
|
9457
|
+
return "";
|
|
9278
9458
|
} else {
|
|
9279
9459
|
//如果不存在多级数据
|
|
9280
9460
|
return row[key];
|
|
@@ -9309,6 +9489,10 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", v
|
|
|
9309
9489
|
|
|
9310
9490
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
|
|
9311
9491
|
|
|
9492
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "checked", void 0);
|
|
9493
|
+
|
|
9494
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "reserveSelection", void 0);
|
|
9495
|
+
|
|
9312
9496
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
|
|
9313
9497
|
|
|
9314
9498
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
|
|
@@ -9327,6 +9511,8 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHead
|
|
|
9327
9511
|
|
|
9328
9512
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
|
|
9329
9513
|
|
|
9514
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "selectable", void 0);
|
|
9515
|
+
|
|
9330
9516
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
|
|
9331
9517
|
|
|
9332
9518
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "highlightCurrentRow", void 0);
|
|
@@ -9362,11 +9548,11 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
|
9362
9548
|
|
|
9363
9549
|
var HtTable_component = normalizeComponent(
|
|
9364
9550
|
packages_HtTablevue_type_script_lang_ts_,
|
|
9365
|
-
|
|
9366
|
-
|
|
9551
|
+
HtTablevue_type_template_id_1ec53a1e_scoped_true_render,
|
|
9552
|
+
HtTablevue_type_template_id_1ec53a1e_scoped_true_staticRenderFns,
|
|
9367
9553
|
false,
|
|
9368
9554
|
null,
|
|
9369
|
-
"
|
|
9555
|
+
"1ec53a1e",
|
|
9370
9556
|
null
|
|
9371
9557
|
|
|
9372
9558
|
)
|
package/lib/htui.common.js.gz
CHANGED
|
Binary file
|
package/lib/htui.umd.js
CHANGED
|
@@ -2249,6 +2249,149 @@ module.exports = function dispatchRequest(config) {
|
|
|
2249
2249
|
};
|
|
2250
2250
|
|
|
2251
2251
|
|
|
2252
|
+
/***/ }),
|
|
2253
|
+
|
|
2254
|
+
/***/ "5319":
|
|
2255
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2256
|
+
|
|
2257
|
+
"use strict";
|
|
2258
|
+
|
|
2259
|
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
|
2260
|
+
var anObject = __webpack_require__("825a");
|
|
2261
|
+
var toObject = __webpack_require__("7b0b");
|
|
2262
|
+
var toLength = __webpack_require__("50c4");
|
|
2263
|
+
var toInteger = __webpack_require__("a691");
|
|
2264
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
2265
|
+
var advanceStringIndex = __webpack_require__("8aa5");
|
|
2266
|
+
var regExpExec = __webpack_require__("14c3");
|
|
2267
|
+
|
|
2268
|
+
var max = Math.max;
|
|
2269
|
+
var min = Math.min;
|
|
2270
|
+
var floor = Math.floor;
|
|
2271
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
|
|
2272
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
|
|
2273
|
+
|
|
2274
|
+
var maybeToString = function (it) {
|
|
2275
|
+
return it === undefined ? it : String(it);
|
|
2276
|
+
};
|
|
2277
|
+
|
|
2278
|
+
// @@replace logic
|
|
2279
|
+
fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
|
2280
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
|
2281
|
+
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
|
2282
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
2283
|
+
|
|
2284
|
+
return [
|
|
2285
|
+
// `String.prototype.replace` method
|
|
2286
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
2287
|
+
function replace(searchValue, replaceValue) {
|
|
2288
|
+
var O = requireObjectCoercible(this);
|
|
2289
|
+
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
|
2290
|
+
return replacer !== undefined
|
|
2291
|
+
? replacer.call(searchValue, O, replaceValue)
|
|
2292
|
+
: nativeReplace.call(String(O), searchValue, replaceValue);
|
|
2293
|
+
},
|
|
2294
|
+
// `RegExp.prototype[@@replace]` method
|
|
2295
|
+
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
2296
|
+
function (regexp, replaceValue) {
|
|
2297
|
+
if (
|
|
2298
|
+
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
|
2299
|
+
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
|
2300
|
+
) {
|
|
2301
|
+
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
|
2302
|
+
if (res.done) return res.value;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
var rx = anObject(regexp);
|
|
2306
|
+
var S = String(this);
|
|
2307
|
+
|
|
2308
|
+
var functionalReplace = typeof replaceValue === 'function';
|
|
2309
|
+
if (!functionalReplace) replaceValue = String(replaceValue);
|
|
2310
|
+
|
|
2311
|
+
var global = rx.global;
|
|
2312
|
+
if (global) {
|
|
2313
|
+
var fullUnicode = rx.unicode;
|
|
2314
|
+
rx.lastIndex = 0;
|
|
2315
|
+
}
|
|
2316
|
+
var results = [];
|
|
2317
|
+
while (true) {
|
|
2318
|
+
var result = regExpExec(rx, S);
|
|
2319
|
+
if (result === null) break;
|
|
2320
|
+
|
|
2321
|
+
results.push(result);
|
|
2322
|
+
if (!global) break;
|
|
2323
|
+
|
|
2324
|
+
var matchStr = String(result[0]);
|
|
2325
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
var accumulatedResult = '';
|
|
2329
|
+
var nextSourcePosition = 0;
|
|
2330
|
+
for (var i = 0; i < results.length; i++) {
|
|
2331
|
+
result = results[i];
|
|
2332
|
+
|
|
2333
|
+
var matched = String(result[0]);
|
|
2334
|
+
var position = max(min(toInteger(result.index), S.length), 0);
|
|
2335
|
+
var captures = [];
|
|
2336
|
+
// NOTE: This is equivalent to
|
|
2337
|
+
// captures = result.slice(1).map(maybeToString)
|
|
2338
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2339
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2340
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2341
|
+
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
|
2342
|
+
var namedCaptures = result.groups;
|
|
2343
|
+
if (functionalReplace) {
|
|
2344
|
+
var replacerArgs = [matched].concat(captures, position, S);
|
|
2345
|
+
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
2346
|
+
var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
|
2347
|
+
} else {
|
|
2348
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2349
|
+
}
|
|
2350
|
+
if (position >= nextSourcePosition) {
|
|
2351
|
+
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
|
2352
|
+
nextSourcePosition = position + matched.length;
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
return accumulatedResult + S.slice(nextSourcePosition);
|
|
2356
|
+
}
|
|
2357
|
+
];
|
|
2358
|
+
|
|
2359
|
+
// https://tc39.github.io/ecma262/#sec-getsubstitution
|
|
2360
|
+
function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
|
|
2361
|
+
var tailPos = position + matched.length;
|
|
2362
|
+
var m = captures.length;
|
|
2363
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2364
|
+
if (namedCaptures !== undefined) {
|
|
2365
|
+
namedCaptures = toObject(namedCaptures);
|
|
2366
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
2367
|
+
}
|
|
2368
|
+
return nativeReplace.call(replacement, symbols, function (match, ch) {
|
|
2369
|
+
var capture;
|
|
2370
|
+
switch (ch.charAt(0)) {
|
|
2371
|
+
case '$': return '$';
|
|
2372
|
+
case '&': return matched;
|
|
2373
|
+
case '`': return str.slice(0, position);
|
|
2374
|
+
case "'": return str.slice(tailPos);
|
|
2375
|
+
case '<':
|
|
2376
|
+
capture = namedCaptures[ch.slice(1, -1)];
|
|
2377
|
+
break;
|
|
2378
|
+
default: // \d\d?
|
|
2379
|
+
var n = +ch;
|
|
2380
|
+
if (n === 0) return match;
|
|
2381
|
+
if (n > m) {
|
|
2382
|
+
var f = floor(n / 10);
|
|
2383
|
+
if (f === 0) return match;
|
|
2384
|
+
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
|
2385
|
+
return match;
|
|
2386
|
+
}
|
|
2387
|
+
capture = captures[n - 1];
|
|
2388
|
+
}
|
|
2389
|
+
return capture === undefined ? '' : capture;
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
});
|
|
2393
|
+
|
|
2394
|
+
|
|
2252
2395
|
/***/ }),
|
|
2253
2396
|
|
|
2254
2397
|
/***/ "5692":
|
|
@@ -7087,12 +7230,12 @@ var es_array_map = __webpack_require__("d81d");
|
|
|
7087
7230
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
7088
7231
|
var es_function_name = __webpack_require__("b0c0");
|
|
7089
7232
|
|
|
7090
|
-
// 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=
|
|
7233
|
+
// 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=0af39fce&
|
|
7091
7234
|
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)}
|
|
7092
7235
|
var staticRenderFns = []
|
|
7093
7236
|
|
|
7094
7237
|
|
|
7095
|
-
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=
|
|
7238
|
+
// CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=0af39fce&
|
|
7096
7239
|
|
|
7097
7240
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
7098
7241
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -8963,7 +9106,6 @@ var SelectTablevue_type_script_lang_ts_HtSelectTable = /*#__PURE__*/function (_V
|
|
|
8963
9106
|
//
|
|
8964
9107
|
if (!this.state.config.disabled) {
|
|
8965
9108
|
var ref = this.$refs[this.state.config.key || "ht-table"];
|
|
8966
|
-
console.log("333");
|
|
8967
9109
|
this.state.visible = false;
|
|
8968
9110
|
ref.clearCheck();
|
|
8969
9111
|
}
|
|
@@ -9202,25 +9344,28 @@ PageInfo.install = function (Vue) {
|
|
|
9202
9344
|
};
|
|
9203
9345
|
|
|
9204
9346
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
9205
|
-
// 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=
|
|
9206
|
-
var
|
|
9347
|
+
// 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=1ec53a1e&scoped=true&
|
|
9348
|
+
var HtTablevue_type_template_id_1ec53a1e_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){
|
|
9207
9349
|
var column = ref.column;
|
|
9208
9350
|
var prop = ref.prop;
|
|
9209
9351
|
var order = ref.order;
|
|
9210
9352
|
|
|
9211
9353
|
return _vm.$emit('sort-change', { column: column, prop: prop, order: order});
|
|
9212
|
-
},"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
|
|
9354
|
+
},"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); }}},[(_vm.checked)?_c('el-table-column',{attrs:{"width":"55","reserve-selection":_vm.reserveSelection,"selectable":_vm.selectable,"type":"selection"}}):_vm._e(),(!_vm.hideOrder)?_c('el-table-column',{attrs:{"label":"序号","align":'center',"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,"fixed":item.fixed,"align":item.align,"header-align":item.headerAlign,"column-key":item.columnKey,"class-name":item.className,"show-overflow-tooltip":true,"prop":item.key,"sortable":item.sortable,"sort-method":item.sortMethod,"sort-orders":item.sortOrders,"formatter":item.formatter,"sort-by":item.sortBy,"min-width":item.minWidth,"width":item.width},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
9213
9355
|
var row = ref.row;
|
|
9214
9356
|
var column = ref.column;
|
|
9215
9357
|
var rowIndex = ref.rowIndex;
|
|
9216
|
-
return [_vm._t(item.key,[_vm._v(_vm._s(_vm.
|
|
9358
|
+
return [_vm._t(item.key,[_vm._v(_vm._s(_vm.getPropByPath(row,item.key)))],{"row":row,"column":column,"rowIndex":rowIndex})]}},{key:"header",fn:function(ref){
|
|
9217
9359
|
var column = ref.column;
|
|
9218
9360
|
var $index = ref.$index;
|
|
9219
9361
|
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()])}
|
|
9220
|
-
var
|
|
9362
|
+
var HtTablevue_type_template_id_1ec53a1e_scoped_true_staticRenderFns = []
|
|
9221
9363
|
|
|
9222
9364
|
|
|
9223
|
-
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
9365
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=1ec53a1e&scoped=true&
|
|
9366
|
+
|
|
9367
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9368
|
+
var es_string_replace = __webpack_require__("5319");
|
|
9224
9369
|
|
|
9225
9370
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
9226
9371
|
var es_string_split = __webpack_require__("1276");
|
|
@@ -9240,7 +9385,6 @@ var es_string_split = __webpack_require__("1276");
|
|
|
9240
9385
|
|
|
9241
9386
|
|
|
9242
9387
|
|
|
9243
|
-
|
|
9244
9388
|
var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
9245
9389
|
_inherits(HtTable, _Vue);
|
|
9246
9390
|
|
|
@@ -9270,6 +9414,37 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
9270
9414
|
// console.log("this", this.$props);
|
|
9271
9415
|
this.setPageInfo(this.pageInfo);
|
|
9272
9416
|
}
|
|
9417
|
+
}, {
|
|
9418
|
+
key: "getPropByPath",
|
|
9419
|
+
value: function getPropByPath(obj, path, strict) {
|
|
9420
|
+
var tempObj = obj;
|
|
9421
|
+
path = path.replace(/\[(\w+)\]/g, ".$1");
|
|
9422
|
+
path = path.replace(/^\./, "");
|
|
9423
|
+
var keyArr = path.split(".");
|
|
9424
|
+
var i = 0;
|
|
9425
|
+
|
|
9426
|
+
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
9427
|
+
if (!tempObj && !strict) break;
|
|
9428
|
+
var key = keyArr[i];
|
|
9429
|
+
|
|
9430
|
+
if (key in tempObj) {
|
|
9431
|
+
tempObj = tempObj[key];
|
|
9432
|
+
} else {
|
|
9433
|
+
if (strict) {
|
|
9434
|
+
throw new Error("please transfer a valid prop path to form item!");
|
|
9435
|
+
}
|
|
9436
|
+
|
|
9437
|
+
break;
|
|
9438
|
+
}
|
|
9439
|
+
} // return {
|
|
9440
|
+
// o: tempObj,
|
|
9441
|
+
// k: keyArr[i],
|
|
9442
|
+
// v: tempObj ? tempObj[keyArr[i]] : null,
|
|
9443
|
+
// };
|
|
9444
|
+
|
|
9445
|
+
|
|
9446
|
+
return tempObj ? tempObj[keyArr[i]] : null;
|
|
9447
|
+
}
|
|
9273
9448
|
/** 遍历循环展示row数据 */
|
|
9274
9449
|
|
|
9275
9450
|
}, {
|
|
@@ -9278,12 +9453,17 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
|
9278
9453
|
if (key) {
|
|
9279
9454
|
if (key.includes(".")) {
|
|
9280
9455
|
//存在多级的情况
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9456
|
+
//console.log("eval", key, eval(row[key]));
|
|
9457
|
+
// const arrKey = key.split(".");
|
|
9458
|
+
// let data = row;
|
|
9459
|
+
// arrKey.forEach((item) => {
|
|
9460
|
+
// if (data[item]) {
|
|
9461
|
+
// data = data[item];
|
|
9462
|
+
// } else {
|
|
9463
|
+
// data = "";
|
|
9464
|
+
// }
|
|
9465
|
+
// });
|
|
9466
|
+
return "";
|
|
9287
9467
|
} else {
|
|
9288
9468
|
//如果不存在多级数据
|
|
9289
9469
|
return row[key];
|
|
@@ -9318,6 +9498,10 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", v
|
|
|
9318
9498
|
|
|
9319
9499
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
|
|
9320
9500
|
|
|
9501
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "checked", void 0);
|
|
9502
|
+
|
|
9503
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "reserveSelection", void 0);
|
|
9504
|
+
|
|
9321
9505
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
|
|
9322
9506
|
|
|
9323
9507
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
|
|
@@ -9336,6 +9520,8 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHead
|
|
|
9336
9520
|
|
|
9337
9521
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
|
|
9338
9522
|
|
|
9523
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "selectable", void 0);
|
|
9524
|
+
|
|
9339
9525
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
|
|
9340
9526
|
|
|
9341
9527
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "highlightCurrentRow", void 0);
|
|
@@ -9371,11 +9557,11 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
|
9371
9557
|
|
|
9372
9558
|
var HtTable_component = normalizeComponent(
|
|
9373
9559
|
packages_HtTablevue_type_script_lang_ts_,
|
|
9374
|
-
|
|
9375
|
-
|
|
9560
|
+
HtTablevue_type_template_id_1ec53a1e_scoped_true_render,
|
|
9561
|
+
HtTablevue_type_template_id_1ec53a1e_scoped_true_staticRenderFns,
|
|
9376
9562
|
false,
|
|
9377
9563
|
null,
|
|
9378
|
-
"
|
|
9564
|
+
"1ec53a1e",
|
|
9379
9565
|
null
|
|
9380
9566
|
|
|
9381
9567
|
)
|
package/lib/htui.umd.js.gz
CHANGED
|
Binary file
|