@tongfun/tf-widget 0.1.153 → 0.1.154
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/tf-widget.common.js +63 -20
- package/lib/tf-widget.umd.js +63 -20
- package/lib/tf-widget.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/tf-widget.common.js
CHANGED
|
@@ -140080,8 +140080,8 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
140080
140080
|
/* harmony default export */ var tf_filter = (component.exports);
|
|
140081
140081
|
// EXTERNAL MODULE: ./src/utils/index.js
|
|
140082
140082
|
var utils = __webpack_require__(42325);
|
|
140083
|
-
// EXTERNAL MODULE: ./src/directives/index.js +
|
|
140084
|
-
var directives = __webpack_require__(
|
|
140083
|
+
// EXTERNAL MODULE: ./src/directives/index.js + 33 modules
|
|
140084
|
+
var directives = __webpack_require__(65146);
|
|
140085
140085
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-table/src/index.vue?vue&type=script&lang=js&
|
|
140086
140086
|
//
|
|
140087
140087
|
//
|
|
@@ -140831,7 +140831,7 @@ function getVoucherIds(data) {
|
|
|
140831
140831
|
|
|
140832
140832
|
/***/ }),
|
|
140833
140833
|
|
|
140834
|
-
/***/
|
|
140834
|
+
/***/ 65146:
|
|
140835
140835
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
140836
140836
|
|
|
140837
140837
|
"use strict";
|
|
@@ -141109,6 +141109,18 @@ async function initColumnDrag(el, binding, vNode) {
|
|
|
141109
141109
|
el.tfSettingInstance?.forceInit(el.umyTableSetting.tableConfigList);
|
|
141110
141110
|
};
|
|
141111
141111
|
}
|
|
141112
|
+
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/js/util.js
|
|
141113
|
+
function getFieldIndex(obj) {
|
|
141114
|
+
let fieldIndex,
|
|
141115
|
+
current = obj;
|
|
141116
|
+
|
|
141117
|
+
while (!fieldIndex && current) {
|
|
141118
|
+
fieldIndex = current.fieldIndex;
|
|
141119
|
+
current = obj.children ? obj.children[0] : null;
|
|
141120
|
+
}
|
|
141121
|
+
|
|
141122
|
+
return fieldIndex;
|
|
141123
|
+
}
|
|
141112
141124
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
141113
141125
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
141114
141126
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
@@ -141818,6 +141830,7 @@ var tf_setting_component = (0,componentNormalizer/* default */.Z)(
|
|
|
141818
141830
|
|
|
141819
141831
|
|
|
141820
141832
|
|
|
141833
|
+
|
|
141821
141834
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().component('DirectiveColumnHeader', column_header);
|
|
141822
141835
|
/** 初始化表格配置信息 */
|
|
141823
141836
|
|
|
@@ -142006,11 +142019,12 @@ const reloadColumns = async (el, binding, vNode) => {
|
|
|
142006
142019
|
const {
|
|
142007
142020
|
collectColumn
|
|
142008
142021
|
} = tableInstance.getTableColumn();
|
|
142009
|
-
collectColumn.sort((a, b) => a
|
|
142022
|
+
collectColumn.sort((a, b) => getFieldIndex(a) - getFieldIndex(b));
|
|
142010
142023
|
tableInstance.reloadColumn(collectColumn);
|
|
142011
142024
|
};
|
|
142012
142025
|
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/js/watch.js
|
|
142013
142026
|
|
|
142027
|
+
|
|
142014
142028
|
/** 表格列宽变化事件 */
|
|
142015
142029
|
|
|
142016
142030
|
function watch_watchTableHeaderNode(el, binding, vNode) {
|
|
@@ -142101,19 +142115,6 @@ const addSettingColumn = (el, binding, vNode) => {
|
|
|
142101
142115
|
const newColumns = settingColumn ? [...columns, { ...settingColumn,
|
|
142102
142116
|
...mixinObj
|
|
142103
142117
|
}] : [...columns, mixinObj];
|
|
142104
|
-
|
|
142105
|
-
const getFieldIndex = obj => {
|
|
142106
|
-
let fieldIndex,
|
|
142107
|
-
current = obj;
|
|
142108
|
-
|
|
142109
|
-
while (!fieldIndex && current) {
|
|
142110
|
-
fieldIndex = current.fieldIndex;
|
|
142111
|
-
current = obj.children ? obj.children[0] : null;
|
|
142112
|
-
}
|
|
142113
|
-
|
|
142114
|
-
return fieldIndex;
|
|
142115
|
-
};
|
|
142116
|
-
|
|
142117
142118
|
newColumns.sort((a, b) => getFieldIndex(a) - getFieldIndex(b));
|
|
142118
142119
|
tableInstance.loadColumn(newColumns);
|
|
142119
142120
|
};
|
|
@@ -142281,8 +142282,44 @@ const tableAutoHeight = {
|
|
|
142281
142282
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/init.js
|
|
142282
142283
|
/** 弹框初始化 */
|
|
142283
142284
|
function init(el, binding, vNode) {
|
|
142285
|
+
//初始化弹框属性
|
|
142286
|
+
initAttrs(el, binding, vNode); // 初始化弹框位置
|
|
142287
|
+
|
|
142288
|
+
initPostion(el, binding, vNode);
|
|
142289
|
+
}
|
|
142290
|
+
/** 初始化弹框属性 */
|
|
142291
|
+
|
|
142292
|
+
function initAttrs(el, binding, vNode) {
|
|
142293
|
+
const dialogInstance = vNode.componentInstance; // 禁止用户点击外侧关闭弹框
|
|
142294
|
+
// dialogInstance.closeOnClickModal = false
|
|
142295
|
+
}
|
|
142296
|
+
/** 第一次打开弹框时初始化弹框位置 */
|
|
142297
|
+
|
|
142298
|
+
function initPostion(el, binding, vNode) {
|
|
142299
|
+
let hasInit = false;
|
|
142300
|
+
|
|
142301
|
+
const initFn = el => {
|
|
142302
|
+
const dragDom = el.querySelector('.el-dialog');
|
|
142303
|
+
const offsetLeft = dragDom.offsetLeft;
|
|
142304
|
+
const dargDomWidth = dragDom.clientWidth;
|
|
142305
|
+
const dargDomHeight = dragDom.clientHeight;
|
|
142306
|
+
dragDom.style.width = dargDomWidth + 'px';
|
|
142307
|
+
dragDom.style.height = dargDomHeight + 'px';
|
|
142308
|
+
dragDom.style.marginLeft = offsetLeft + 'px';
|
|
142309
|
+
};
|
|
142310
|
+
|
|
142311
|
+
const vm = vNode.context;
|
|
142284
142312
|
const dialogInstance = vNode.componentInstance;
|
|
142285
|
-
|
|
142313
|
+
vm.$watch(() => {
|
|
142314
|
+
return dialogInstance.visible;
|
|
142315
|
+
}, newVal => {
|
|
142316
|
+
if (!hasInit && newVal) {
|
|
142317
|
+
initFn(el);
|
|
142318
|
+
hasInit = true;
|
|
142319
|
+
}
|
|
142320
|
+
}, {
|
|
142321
|
+
immediate: true
|
|
142322
|
+
});
|
|
142286
142323
|
}
|
|
142287
142324
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/drag.js
|
|
142288
142325
|
/** 弹框支持拖拽 */
|
|
@@ -142469,6 +142506,7 @@ function resize(el, binding, vNode) {
|
|
|
142469
142506
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/full.js
|
|
142470
142507
|
/** 弹框支持全屏 */
|
|
142471
142508
|
function fullScreen(el, binding, vNode) {
|
|
142509
|
+
const timeout = 0.3;
|
|
142472
142510
|
let nowWidth = 0;
|
|
142473
142511
|
let nowHight = 0;
|
|
142474
142512
|
let nowMarginTop = 0;
|
|
@@ -142499,6 +142537,11 @@ function fullScreen(el, binding, vNode) {
|
|
|
142499
142537
|
dragDom.style.marginLeft = nowMarginLeft;
|
|
142500
142538
|
dialogHeaderEl.style.cursor = 'move';
|
|
142501
142539
|
}
|
|
142540
|
+
|
|
142541
|
+
dragDom.style.transition = `all ${timeout}s linear`;
|
|
142542
|
+
setTimeout(() => {
|
|
142543
|
+
dragDom.style.transition = 'none';
|
|
142544
|
+
}, timeout * 1000);
|
|
142502
142545
|
};
|
|
142503
142546
|
}
|
|
142504
142547
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/index.js
|
|
@@ -244356,8 +244399,8 @@ var push_down_component = (0,componentNormalizer/* default */.Z)(
|
|
|
244356
244399
|
|
|
244357
244400
|
}
|
|
244358
244401
|
});
|
|
244359
|
-
// EXTERNAL MODULE: ./src/directives/index.js +
|
|
244360
|
-
var directives = __webpack_require__(
|
|
244402
|
+
// EXTERNAL MODULE: ./src/directives/index.js + 33 modules
|
|
244403
|
+
var directives = __webpack_require__(65146);
|
|
244361
244404
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/t-data-list/main.vue?vue&type=script&lang=js&
|
|
244362
244405
|
//
|
|
244363
244406
|
//
|
package/lib/tf-widget.umd.js
CHANGED
|
@@ -140090,8 +140090,8 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
140090
140090
|
/* harmony default export */ var tf_filter = (component.exports);
|
|
140091
140091
|
// EXTERNAL MODULE: ./src/utils/index.js
|
|
140092
140092
|
var utils = __webpack_require__(68023);
|
|
140093
|
-
// EXTERNAL MODULE: ./src/directives/index.js +
|
|
140094
|
-
var directives = __webpack_require__(
|
|
140093
|
+
// EXTERNAL MODULE: ./src/directives/index.js + 33 modules
|
|
140094
|
+
var directives = __webpack_require__(2445);
|
|
140095
140095
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-81.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-table/src/index.vue?vue&type=script&lang=js&
|
|
140096
140096
|
//
|
|
140097
140097
|
//
|
|
@@ -140841,7 +140841,7 @@ function getVoucherIds(data) {
|
|
|
140841
140841
|
|
|
140842
140842
|
/***/ }),
|
|
140843
140843
|
|
|
140844
|
-
/***/
|
|
140844
|
+
/***/ 2445:
|
|
140845
140845
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
140846
140846
|
|
|
140847
140847
|
"use strict";
|
|
@@ -141119,6 +141119,18 @@ async function initColumnDrag(el, binding, vNode) {
|
|
|
141119
141119
|
el.tfSettingInstance?.forceInit(el.umyTableSetting.tableConfigList);
|
|
141120
141120
|
};
|
|
141121
141121
|
}
|
|
141122
|
+
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/js/util.js
|
|
141123
|
+
function getFieldIndex(obj) {
|
|
141124
|
+
let fieldIndex,
|
|
141125
|
+
current = obj;
|
|
141126
|
+
|
|
141127
|
+
while (!fieldIndex && current) {
|
|
141128
|
+
fieldIndex = current.fieldIndex;
|
|
141129
|
+
current = obj.children ? obj.children[0] : null;
|
|
141130
|
+
}
|
|
141131
|
+
|
|
141132
|
+
return fieldIndex;
|
|
141133
|
+
}
|
|
141122
141134
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
141123
141135
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
141124
141136
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
@@ -141828,6 +141840,7 @@ var tf_setting_component = (0,componentNormalizer/* default */.Z)(
|
|
|
141828
141840
|
|
|
141829
141841
|
|
|
141830
141842
|
|
|
141843
|
+
|
|
141831
141844
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().component('DirectiveColumnHeader', column_header);
|
|
141832
141845
|
/** 初始化表格配置信息 */
|
|
141833
141846
|
|
|
@@ -142016,11 +142029,12 @@ const reloadColumns = async (el, binding, vNode) => {
|
|
|
142016
142029
|
const {
|
|
142017
142030
|
collectColumn
|
|
142018
142031
|
} = tableInstance.getTableColumn();
|
|
142019
|
-
collectColumn.sort((a, b) => a
|
|
142032
|
+
collectColumn.sort((a, b) => getFieldIndex(a) - getFieldIndex(b));
|
|
142020
142033
|
tableInstance.reloadColumn(collectColumn);
|
|
142021
142034
|
};
|
|
142022
142035
|
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/js/watch.js
|
|
142023
142036
|
|
|
142037
|
+
|
|
142024
142038
|
/** 表格列宽变化事件 */
|
|
142025
142039
|
|
|
142026
142040
|
function watch_watchTableHeaderNode(el, binding, vNode) {
|
|
@@ -142111,19 +142125,6 @@ const addSettingColumn = (el, binding, vNode) => {
|
|
|
142111
142125
|
const newColumns = settingColumn ? [...columns, { ...settingColumn,
|
|
142112
142126
|
...mixinObj
|
|
142113
142127
|
}] : [...columns, mixinObj];
|
|
142114
|
-
|
|
142115
|
-
const getFieldIndex = obj => {
|
|
142116
|
-
let fieldIndex,
|
|
142117
|
-
current = obj;
|
|
142118
|
-
|
|
142119
|
-
while (!fieldIndex && current) {
|
|
142120
|
-
fieldIndex = current.fieldIndex;
|
|
142121
|
-
current = obj.children ? obj.children[0] : null;
|
|
142122
|
-
}
|
|
142123
|
-
|
|
142124
|
-
return fieldIndex;
|
|
142125
|
-
};
|
|
142126
|
-
|
|
142127
142128
|
newColumns.sort((a, b) => getFieldIndex(a) - getFieldIndex(b));
|
|
142128
142129
|
tableInstance.loadColumn(newColumns);
|
|
142129
142130
|
};
|
|
@@ -142291,8 +142292,44 @@ const tableAutoHeight = {
|
|
|
142291
142292
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/init.js
|
|
142292
142293
|
/** 弹框初始化 */
|
|
142293
142294
|
function init(el, binding, vNode) {
|
|
142295
|
+
//初始化弹框属性
|
|
142296
|
+
initAttrs(el, binding, vNode); // 初始化弹框位置
|
|
142297
|
+
|
|
142298
|
+
initPostion(el, binding, vNode);
|
|
142299
|
+
}
|
|
142300
|
+
/** 初始化弹框属性 */
|
|
142301
|
+
|
|
142302
|
+
function initAttrs(el, binding, vNode) {
|
|
142303
|
+
const dialogInstance = vNode.componentInstance; // 禁止用户点击外侧关闭弹框
|
|
142304
|
+
// dialogInstance.closeOnClickModal = false
|
|
142305
|
+
}
|
|
142306
|
+
/** 第一次打开弹框时初始化弹框位置 */
|
|
142307
|
+
|
|
142308
|
+
function initPostion(el, binding, vNode) {
|
|
142309
|
+
let hasInit = false;
|
|
142310
|
+
|
|
142311
|
+
const initFn = el => {
|
|
142312
|
+
const dragDom = el.querySelector('.el-dialog');
|
|
142313
|
+
const offsetLeft = dragDom.offsetLeft;
|
|
142314
|
+
const dargDomWidth = dragDom.clientWidth;
|
|
142315
|
+
const dargDomHeight = dragDom.clientHeight;
|
|
142316
|
+
dragDom.style.width = dargDomWidth + 'px';
|
|
142317
|
+
dragDom.style.height = dargDomHeight + 'px';
|
|
142318
|
+
dragDom.style.marginLeft = offsetLeft + 'px';
|
|
142319
|
+
};
|
|
142320
|
+
|
|
142321
|
+
const vm = vNode.context;
|
|
142294
142322
|
const dialogInstance = vNode.componentInstance;
|
|
142295
|
-
|
|
142323
|
+
vm.$watch(() => {
|
|
142324
|
+
return dialogInstance.visible;
|
|
142325
|
+
}, newVal => {
|
|
142326
|
+
if (!hasInit && newVal) {
|
|
142327
|
+
initFn(el);
|
|
142328
|
+
hasInit = true;
|
|
142329
|
+
}
|
|
142330
|
+
}, {
|
|
142331
|
+
immediate: true
|
|
142332
|
+
});
|
|
142296
142333
|
}
|
|
142297
142334
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/drag.js
|
|
142298
142335
|
/** 弹框支持拖拽 */
|
|
@@ -142479,6 +142516,7 @@ function resize(el, binding, vNode) {
|
|
|
142479
142516
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/full.js
|
|
142480
142517
|
/** 弹框支持全屏 */
|
|
142481
142518
|
function fullScreen(el, binding, vNode) {
|
|
142519
|
+
const timeout = 0.3;
|
|
142482
142520
|
let nowWidth = 0;
|
|
142483
142521
|
let nowHight = 0;
|
|
142484
142522
|
let nowMarginTop = 0;
|
|
@@ -142509,6 +142547,11 @@ function fullScreen(el, binding, vNode) {
|
|
|
142509
142547
|
dragDom.style.marginLeft = nowMarginLeft;
|
|
142510
142548
|
dialogHeaderEl.style.cursor = 'move';
|
|
142511
142549
|
}
|
|
142550
|
+
|
|
142551
|
+
dragDom.style.transition = `all ${timeout}s linear`;
|
|
142552
|
+
setTimeout(() => {
|
|
142553
|
+
dragDom.style.transition = 'none';
|
|
142554
|
+
}, timeout * 1000);
|
|
142512
142555
|
};
|
|
142513
142556
|
}
|
|
142514
142557
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/index.js
|
|
@@ -244366,8 +244409,8 @@ var push_down_component = (0,componentNormalizer/* default */.Z)(
|
|
|
244366
244409
|
|
|
244367
244410
|
}
|
|
244368
244411
|
});
|
|
244369
|
-
// EXTERNAL MODULE: ./src/directives/index.js +
|
|
244370
|
-
var directives = __webpack_require__(
|
|
244412
|
+
// EXTERNAL MODULE: ./src/directives/index.js + 33 modules
|
|
244413
|
+
var directives = __webpack_require__(2445);
|
|
244371
244414
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-81.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/t-data-list/main.vue?vue&type=script&lang=js&
|
|
244372
244415
|
//
|
|
244373
244416
|
//
|