@tongfun/tf-widget 0.1.151 → 0.1.153
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 +103 -79
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +103 -79
- 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 + 32 modules
|
|
140084
|
+
var directives = __webpack_require__(27499);
|
|
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,21 +140831,20 @@ function getVoucherIds(data) {
|
|
|
140831
140831
|
|
|
140832
140832
|
/***/ }),
|
|
140833
140833
|
|
|
140834
|
-
/***/
|
|
140834
|
+
/***/ 27499:
|
|
140835
140835
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
140836
140836
|
|
|
140837
140837
|
"use strict";
|
|
140838
140838
|
|
|
140839
140839
|
// EXPORTS
|
|
140840
140840
|
__webpack_require__.d(__webpack_exports__, {
|
|
140841
|
+
"Lh": function() { return /* reexport */ ElDialogDrag; },
|
|
140841
140842
|
"Ds": function() { return /* reexport */ debounce; },
|
|
140842
140843
|
"Cq": function() { return /* reexport */ tableAutoHeight; },
|
|
140843
140844
|
"AB": function() { return /* reexport */ umyColumnWidth; },
|
|
140844
140845
|
"b$": function() { return /* reexport */ umyTableSetting; }
|
|
140845
140846
|
});
|
|
140846
140847
|
|
|
140847
|
-
// UNUSED EXPORTS: ElDialogDrag
|
|
140848
|
-
|
|
140849
140848
|
;// CONCATENATED MODULE: ./src/directives/modules/debounce.js
|
|
140850
140849
|
const debounce = {
|
|
140851
140850
|
bind: function (el, {
|
|
@@ -141115,8 +141114,8 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
|
141115
141114
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
141116
141115
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
|
|
141117
141116
|
var element_ui_common = __webpack_require__(64720);
|
|
141118
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=template&id=
|
|
141119
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"column-header-directive",on:{"click":_vm.sortColumn}},[_c('span',[_vm._v(_vm._s(_vm.column.title))]),(_vm.column.orderBy)?_c('span',[_c('i',{class:[_vm.column.orderBy === 'asc' ? 'el-icon-top' : 'el-icon-bottom']})]):_vm._e(),_c('div',{class:{ 'filter-main': _vm.isClick || _vm.isFilter }},[_c('el-popover',{attrs:{"width":"200","trigger":"manual","placement":"bottom"},model:{value:(_vm.isClick),callback:function ($$v) {_vm.isClick=$$v},expression:"isClick"}},[_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClickOut),expression:"handleClickOut"}],staticClass:"filter-main-context"},[_c('TfInput',{attrs:{"not-form":"","full-border":"","placeholder":"输入需要过滤的值"},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleSubmit.apply(null, arguments)}},model:{value:(_vm.column.filterValue),callback:function ($$v) {_vm.$set(_vm.column, "filterValue", $$v)},expression:"column.filterValue"}}),_c('div',{staticClass:"option-buttons"},[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleCancel}},[_vm._v("重置")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleSubmit}},[_vm._v("确定")])],1)],1),_c('SvgIcon',{staticClass:"filter-icon",attrs:{"slot":"reference","icon-class":"filter"},on:{"click":function($event){$event.stopPropagation();return _vm.handleFilterClick.apply(null, arguments)}},slot:"reference"})],1)],1)])}
|
|
141117
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=template&id=157e0ef0&scoped=true&
|
|
141118
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"column-header-directive",on:{"click":_vm.sortColumn}},[_c('span',[_vm._v(_vm._s(_vm.column.title))]),(_vm.column.orderBy)?_c('span',[_c('i',{class:[_vm.column.orderBy === 'asc' ? 'el-icon-top' : 'el-icon-bottom']})]):_vm._e(),_c('div',{class:{ 'filter-main': _vm.isClick || _vm.isFilter }},[_c('el-popover',{attrs:{"width":"200","trigger":"manual","placement":"bottom"},model:{value:(_vm.isClick),callback:function ($$v) {_vm.isClick=$$v},expression:"isClick"}},[(_vm.isClick)?_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClickOut),expression:"handleClickOut"}],staticClass:"filter-main-context"},[_c('TfInput',{attrs:{"not-form":"","full-border":"","placeholder":"输入需要过滤的值"},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleSubmit.apply(null, arguments)}},model:{value:(_vm.column.filterValue),callback:function ($$v) {_vm.$set(_vm.column, "filterValue", $$v)},expression:"column.filterValue"}}),_c('div',{staticClass:"option-buttons"},[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleCancel}},[_vm._v("重置")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleSubmit}},[_vm._v("确定")])],1)],1):_vm._e(),_c('SvgIcon',{staticClass:"filter-icon",attrs:{"slot":"reference","icon-class":"filter"},on:{"click":function($event){$event.stopPropagation();return _vm.handleFilterClick.apply(null, arguments)}},slot:"reference"})],1)],1)])}
|
|
141120
141119
|
var staticRenderFns = []
|
|
141121
141120
|
|
|
141122
141121
|
|
|
@@ -141324,15 +141323,15 @@ var clickoutside = __webpack_require__(96410);
|
|
|
141324
141323
|
});
|
|
141325
141324
|
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=script&lang=js&
|
|
141326
141325
|
/* harmony default export */ var components_column_headervue_type_script_lang_js_ = (column_headervue_type_script_lang_js_);
|
|
141327
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=style&index=0&id=
|
|
141326
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=style&index=0&id=157e0ef0&prod&lang=less&scoped=true&
|
|
141328
141327
|
// extracted by mini-css-extract-plugin
|
|
141329
141328
|
|
|
141330
|
-
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=style&index=0&id=
|
|
141329
|
+
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=style&index=0&id=157e0ef0&prod&lang=less&scoped=true&
|
|
141331
141330
|
|
|
141332
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=style&index=1&id=
|
|
141331
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=style&index=1&id=157e0ef0&prod&lang=less&
|
|
141333
141332
|
// extracted by mini-css-extract-plugin
|
|
141334
141333
|
|
|
141335
|
-
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=style&index=1&id=
|
|
141334
|
+
;// CONCATENATED MODULE: ./src/directives/modules/umy-table-setting/components/column-header/index.vue?vue&type=style&index=1&id=157e0ef0&prod&lang=less&
|
|
141336
141335
|
|
|
141337
141336
|
// EXTERNAL MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
141338
141337
|
var componentNormalizer = __webpack_require__(43736);
|
|
@@ -141352,7 +141351,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
141352
141351
|
staticRenderFns,
|
|
141353
141352
|
false,
|
|
141354
141353
|
null,
|
|
141355
|
-
"
|
|
141354
|
+
"157e0ef0",
|
|
141356
141355
|
null
|
|
141357
141356
|
|
|
141358
141357
|
)
|
|
@@ -142279,14 +142278,19 @@ const tableAutoHeight = {
|
|
|
142279
142278
|
}
|
|
142280
142279
|
|
|
142281
142280
|
};
|
|
142281
|
+
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/init.js
|
|
142282
|
+
/** 弹框初始化 */
|
|
142283
|
+
function init(el, binding, vNode) {
|
|
142284
|
+
const dialogInstance = vNode.componentInstance;
|
|
142285
|
+
dialogInstance.closeOnClickModal = false;
|
|
142286
|
+
}
|
|
142282
142287
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/drag.js
|
|
142283
142288
|
/** 弹框支持拖拽 */
|
|
142284
|
-
function drag(el, binding,
|
|
142289
|
+
function drag(el, binding, vNode) {
|
|
142285
142290
|
const dragDom = el.querySelector('.el-dialog');
|
|
142286
142291
|
const dialogHeaderEl = el.querySelector('.el-dialog__header');
|
|
142287
142292
|
dragDom.style.overflow = 'auto';
|
|
142288
|
-
dialogHeaderEl.style.cursor = 'move';
|
|
142289
|
-
|
|
142293
|
+
dialogHeaderEl.style.cursor = 'move';
|
|
142290
142294
|
/**
|
|
142291
142295
|
* 获取原有属性
|
|
142292
142296
|
* IE dom元素.currentStyle
|
|
@@ -142310,12 +142314,12 @@ function drag(el, binding, vnode) {
|
|
|
142310
142314
|
|
|
142311
142315
|
let styL, styT; // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
|
|
142312
142316
|
|
|
142313
|
-
if (!sty.
|
|
142314
|
-
styL = +sty.
|
|
142315
|
-
styT = +sty.
|
|
142317
|
+
if (!sty.marginLeft.includes('%')) {
|
|
142318
|
+
styL = +sty.marginLeft.replace(/\px/g, '');
|
|
142319
|
+
styT = +sty.marginTop.replace(/\px/g, '');
|
|
142316
142320
|
} else {
|
|
142317
|
-
styL = +document.body.clientWidth * (+sty.
|
|
142318
|
-
styT = +document.body.clientHeight * (+sty.
|
|
142321
|
+
styL = +document.body.clientWidth * (+sty.marginLeft.replace(/\%/g, '') / 100);
|
|
142322
|
+
styT = +document.body.clientHeight * (+sty.marginTop.replace(/\%/g, '') / 100);
|
|
142319
142323
|
}
|
|
142320
142324
|
|
|
142321
142325
|
document.onmousemove = function (e) {
|
|
@@ -142334,15 +142338,16 @@ function drag(el, binding, vnode) {
|
|
|
142334
142338
|
} else if (top > maxDragDomTop) {
|
|
142335
142339
|
top = maxDragDomTop;
|
|
142336
142340
|
} // 移动当前元素
|
|
142337
|
-
// dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;`
|
|
142338
142341
|
|
|
142339
142342
|
|
|
142340
|
-
dragDom.style.
|
|
142341
|
-
dragDom.style.
|
|
142342
|
-
|
|
142343
|
+
dragDom.style.marginTop = `${top + styT}px`;
|
|
142344
|
+
dragDom.style.marginLeft = `${left + styL}px`;
|
|
142345
|
+
dragDom.style.userSelect = 'none';
|
|
142346
|
+
vNode.child.$emit('dragDialog');
|
|
142343
142347
|
};
|
|
142344
142348
|
|
|
142345
142349
|
document.onmouseup = function () {
|
|
142350
|
+
dragDom.style.userSelect = 'auto';
|
|
142346
142351
|
document.onmousemove = null;
|
|
142347
142352
|
document.onmouseup = null;
|
|
142348
142353
|
};
|
|
@@ -142352,21 +142357,39 @@ function drag(el, binding, vnode) {
|
|
|
142352
142357
|
}
|
|
142353
142358
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/resize.js
|
|
142354
142359
|
/** 弹框拖拽改变大小 */
|
|
142355
|
-
function resize(el, binding,
|
|
142360
|
+
function resize(el, binding, vNode) {
|
|
142356
142361
|
const minWidth = 400;
|
|
142357
|
-
const minHeight =
|
|
142362
|
+
const minHeight = 250;
|
|
142358
142363
|
const dragDom = el.querySelector('.el-dialog');
|
|
142364
|
+
const dialogHeaderEl = el.querySelector('.el-dialog__header');
|
|
142365
|
+
|
|
142366
|
+
const setDragDomWidth = (marginLeft, newWidth) => {
|
|
142367
|
+
if (marginLeft > 0 && newWidth > minWidth && marginLeft + newWidth <= document.body.clientWidth) {
|
|
142368
|
+
dragDom.style.marginLeft = marginLeft + 'px';
|
|
142369
|
+
dragDom.style.width = newWidth + 'px';
|
|
142370
|
+
}
|
|
142371
|
+
};
|
|
142372
|
+
|
|
142373
|
+
const setDragDomHeight = newHeight => {
|
|
142374
|
+
if (newHeight + dragDom.offsetTop <= document.body.clientHeight && newHeight >= minHeight) {
|
|
142375
|
+
dragDom.style.height = newHeight + 'px';
|
|
142376
|
+
}
|
|
142377
|
+
};
|
|
142359
142378
|
|
|
142360
142379
|
dragDom.onmousemove = function (e) {
|
|
142361
142380
|
// 图标变换
|
|
142362
|
-
|
|
142363
|
-
|
|
142364
|
-
|
|
142365
|
-
|
|
142366
|
-
|
|
142381
|
+
const isLeft = dragDom.offsetLeft + 10 > e.clientX;
|
|
142382
|
+
const isRight = e.clientX > dragDom.offsetLeft + dragDom.clientWidth - 10;
|
|
142383
|
+
const isBottom = el.scrollTop + e.clientY > dragDom.offsetTop + dragDom.clientHeight - 10;
|
|
142384
|
+
|
|
142385
|
+
if (isLeft) {
|
|
142386
|
+
dragDom.style.cursor = isBottom ? 'nesw-resize' : 'w-resize';
|
|
142387
|
+
} else if (isRight) {
|
|
142388
|
+
dragDom.style.cursor = isBottom ? 'nwse-resize' : 'e-resize';
|
|
142389
|
+
} else if (isBottom) {
|
|
142367
142390
|
dragDom.style.cursor = 's-resize';
|
|
142368
142391
|
} else {
|
|
142369
|
-
dragDom.style.cursor = '
|
|
142392
|
+
dragDom.style.cursor = 'auto';
|
|
142370
142393
|
dragDom.onmousedown = null;
|
|
142371
142394
|
} // 改变大小
|
|
142372
142395
|
|
|
@@ -142374,72 +142397,68 @@ function resize(el, binding, value) {
|
|
|
142374
142397
|
dragDom.onmousedown = e => {
|
|
142375
142398
|
const clientX = e.clientX;
|
|
142376
142399
|
const clientY = e.clientY;
|
|
142377
|
-
|
|
142378
|
-
|
|
142379
|
-
|
|
142380
|
-
|
|
142381
|
-
dragDom.
|
|
142382
|
-
let ELscrollTop = el.scrollTop; // 判断点击的位置是不是为头部
|
|
142400
|
+
const elW = dragDom.clientWidth;
|
|
142401
|
+
const elH = dragDom.clientHeight;
|
|
142402
|
+
const ELscrollTop = el.scrollTop;
|
|
142403
|
+
const EloffsetTop = dragDom.offsetTop;
|
|
142404
|
+
const EloffsetLeft = dragDom.offsetLeft; // 判断点击的位置是不是为头部
|
|
142383
142405
|
|
|
142384
|
-
if (clientX > EloffsetLeft && clientX < EloffsetLeft + elW && clientY > EloffsetTop && clientY < EloffsetTop +
|
|
142406
|
+
if (clientX > EloffsetLeft && clientX < EloffsetLeft + elW && clientY > EloffsetTop && clientY < EloffsetTop + dialogHeaderEl.clientHeight) {// 如果是头部在此就不做任何动作,以上有绑定dialogHeaderEl.onmousedown = moveDown;
|
|
142385
142407
|
} else {
|
|
142386
142408
|
document.onmousemove = function (e) {
|
|
142387
|
-
e.preventDefault()
|
|
142409
|
+
// e.preventDefault()
|
|
142388
142410
|
// 左侧鼠标拖拽位置
|
|
142389
|
-
|
|
142390
142411
|
if (clientX > EloffsetLeft && clientX < EloffsetLeft + 10) {
|
|
142391
|
-
// 往左拖拽
|
|
142412
|
+
dragDom.style.userSelect = 'none'; // 往左拖拽
|
|
142413
|
+
|
|
142392
142414
|
if (clientX > e.clientX) {
|
|
142393
|
-
|
|
142415
|
+
const moveLen = clientX - e.clientX;
|
|
142416
|
+
setDragDomWidth(EloffsetLeft - moveLen, elW + moveLen);
|
|
142394
142417
|
} // 往右拖拽
|
|
142395
142418
|
|
|
142396
142419
|
|
|
142397
142420
|
if (clientX < e.clientX) {
|
|
142398
|
-
|
|
142399
|
-
|
|
142400
|
-
} else {
|
|
142401
|
-
dragDom.style.width = elW - (e.clientX - clientX) * 2 + 'px';
|
|
142402
|
-
}
|
|
142421
|
+
const moveLen = e.clientX - clientX;
|
|
142422
|
+
setDragDomWidth(EloffsetLeft + moveLen, elW - moveLen);
|
|
142403
142423
|
}
|
|
142404
142424
|
} // 右侧鼠标拖拽位置
|
|
142405
142425
|
|
|
142406
142426
|
|
|
142407
142427
|
if (clientX > EloffsetLeft + elW - 10 && clientX < EloffsetLeft + elW) {
|
|
142408
|
-
// 往左拖拽
|
|
142428
|
+
dragDom.style.userSelect = 'none'; // 往左拖拽
|
|
142429
|
+
|
|
142409
142430
|
if (clientX > e.clientX) {
|
|
142410
|
-
|
|
142411
|
-
|
|
142412
|
-
} else {
|
|
142413
|
-
dragDom.style.width = elW - (clientX - e.clientX) * 2 + 'px';
|
|
142414
|
-
}
|
|
142431
|
+
const moveLen = clientX - e.clientX;
|
|
142432
|
+
setDragDomWidth(EloffsetLeft, elW - moveLen);
|
|
142415
142433
|
} // 往右拖拽
|
|
142416
142434
|
|
|
142417
142435
|
|
|
142418
142436
|
if (clientX < e.clientX) {
|
|
142419
|
-
|
|
142437
|
+
const moveLen = e.clientX - clientX;
|
|
142438
|
+
setDragDomWidth(EloffsetLeft, elW + moveLen);
|
|
142420
142439
|
}
|
|
142421
142440
|
} // 底部鼠标拖拽位置
|
|
142422
142441
|
|
|
142423
142442
|
|
|
142424
142443
|
if (ELscrollTop + clientY > EloffsetTop + elH - 20 && ELscrollTop + clientY < EloffsetTop + elH) {
|
|
142425
|
-
// 往上拖拽
|
|
142444
|
+
dragDom.style.userSelect = 'none'; // 往上拖拽
|
|
142445
|
+
|
|
142426
142446
|
if (clientY > e.clientY) {
|
|
142427
|
-
|
|
142428
|
-
|
|
142429
|
-
} else {
|
|
142430
|
-
dragDom.style.height = elH - (clientY - e.clientY) * 2 + 'px';
|
|
142431
|
-
}
|
|
142447
|
+
const moveLen = clientY - e.clientY;
|
|
142448
|
+
setDragDomHeight(elH - moveLen);
|
|
142432
142449
|
} // 往下拖拽
|
|
142433
142450
|
|
|
142434
142451
|
|
|
142435
142452
|
if (clientY < e.clientY) {
|
|
142436
|
-
|
|
142453
|
+
const moveLen = e.clientY - clientY;
|
|
142454
|
+
setDragDomHeight(elH + moveLen);
|
|
142437
142455
|
}
|
|
142438
142456
|
}
|
|
142439
142457
|
}; // 拉伸结束
|
|
142440
142458
|
|
|
142441
142459
|
|
|
142442
142460
|
document.onmouseup = function (e) {
|
|
142461
|
+
dragDom.style.userSelect = 'auto';
|
|
142443
142462
|
document.onmousemove = null;
|
|
142444
142463
|
document.onmouseup = null;
|
|
142445
142464
|
};
|
|
@@ -142449,15 +142468,14 @@ function resize(el, binding, value) {
|
|
|
142449
142468
|
}
|
|
142450
142469
|
;// CONCATENATED MODULE: ./src/directives/modules/el-dialog-drag/js/full.js
|
|
142451
142470
|
/** 弹框支持全屏 */
|
|
142452
|
-
function fullScreen(el, binding,
|
|
142453
|
-
//当前宽高
|
|
142471
|
+
function fullScreen(el, binding, vNode) {
|
|
142454
142472
|
let nowWidth = 0;
|
|
142455
|
-
let nowHight = 0;
|
|
142456
|
-
|
|
142473
|
+
let nowHight = 0;
|
|
142457
142474
|
let nowMarginTop = 0;
|
|
142475
|
+
let nowMarginLeft = 0;
|
|
142458
142476
|
let isFullScreen = false;
|
|
142459
|
-
const dialogHeaderEl = el.querySelector('.el-dialog__header');
|
|
142460
142477
|
const dragDom = el.querySelector('.el-dialog');
|
|
142478
|
+
const dialogHeaderEl = el.querySelector('.el-dialog__header');
|
|
142461
142479
|
|
|
142462
142480
|
dialogHeaderEl.ondblclick = e => {
|
|
142463
142481
|
if (isFullScreen == false) {
|
|
@@ -142465,18 +142483,21 @@ function fullScreen(el, binding, vnode) {
|
|
|
142465
142483
|
nowHight = dragDom.clientHeight;
|
|
142466
142484
|
nowWidth = dragDom.clientWidth;
|
|
142467
142485
|
nowMarginTop = dragDom.style.marginTop;
|
|
142486
|
+
nowMarginLeft = dragDom.style.marginLeft;
|
|
142468
142487
|
dragDom.style.left = 0;
|
|
142469
142488
|
dragDom.style.top = 0;
|
|
142470
142489
|
dragDom.style.height = '100vh';
|
|
142471
142490
|
dragDom.style.width = '100vw';
|
|
142472
142491
|
dragDom.style.marginTop = 0;
|
|
142473
|
-
|
|
142492
|
+
dragDom.style.marginLeft = 0;
|
|
142493
|
+
dialogHeaderEl.style.cursor = 'initial';
|
|
142474
142494
|
} else {
|
|
142475
142495
|
isFullScreen = false;
|
|
142476
|
-
dragDom.style.height = 'auto';
|
|
142477
142496
|
dragDom.style.width = nowWidth + 'px';
|
|
142497
|
+
dragDom.style.height = nowHight + 'px';
|
|
142478
142498
|
dragDom.style.marginTop = nowMarginTop;
|
|
142479
|
-
|
|
142499
|
+
dragDom.style.marginLeft = nowMarginLeft;
|
|
142500
|
+
dialogHeaderEl.style.cursor = 'move';
|
|
142480
142501
|
}
|
|
142481
142502
|
};
|
|
142482
142503
|
}
|
|
@@ -142488,14 +142509,17 @@ function fullScreen(el, binding, vnode) {
|
|
|
142488
142509
|
|
|
142489
142510
|
|
|
142490
142511
|
|
|
142512
|
+
|
|
142491
142513
|
const ElDialogDrag = {
|
|
142492
|
-
bind(el, binding,
|
|
142493
|
-
//
|
|
142494
|
-
|
|
142514
|
+
bind(el, binding, vNode) {
|
|
142515
|
+
// 弹框初始化
|
|
142516
|
+
init(el, binding, vNode); // 弹框可拖拽
|
|
142495
142517
|
|
|
142496
|
-
|
|
142518
|
+
drag(el, binding, vNode); // 弹框可拖拽大小
|
|
142497
142519
|
|
|
142498
|
-
|
|
142520
|
+
resize(el, binding, vNode); // 弹框可全屏
|
|
142521
|
+
|
|
142522
|
+
fullScreen(el, binding, vNode);
|
|
142499
142523
|
}
|
|
142500
142524
|
|
|
142501
142525
|
};
|
|
@@ -244332,8 +244356,8 @@ var push_down_component = (0,componentNormalizer/* default */.Z)(
|
|
|
244332
244356
|
|
|
244333
244357
|
}
|
|
244334
244358
|
});
|
|
244335
|
-
// EXTERNAL MODULE: ./src/directives/index.js +
|
|
244336
|
-
var directives = __webpack_require__(
|
|
244359
|
+
// EXTERNAL MODULE: ./src/directives/index.js + 32 modules
|
|
244360
|
+
var directives = __webpack_require__(27499);
|
|
244337
244361
|
;// 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&
|
|
244338
244362
|
//
|
|
244339
244363
|
//
|
|
@@ -249372,8 +249396,8 @@ const components = [package_t_input, svg_icon, package_tf_widget, package_tf_lay
|
|
|
249372
249396
|
const install = function (Vue) {
|
|
249373
249397
|
components.forEach(component => {
|
|
249374
249398
|
Vue.component(component.name, component);
|
|
249375
|
-
});
|
|
249376
|
-
|
|
249399
|
+
});
|
|
249400
|
+
Vue.directive('elDialogDrag', directives/* ElDialogDrag */.Lh);
|
|
249377
249401
|
Vue.directive('umyColumnWidth', directives/* umyColumnWidth */.AB);
|
|
249378
249402
|
Vue.directive('umyTableSetting', directives/* umyTableSetting */.b$);
|
|
249379
249403
|
Vue.directive('tableAutoHeight', directives/* tableAutoHeight */.Cq);
|