iov-pro-components 0.0.112 → 0.0.114
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/iov-pro-components.min.js +144 -14
- package/package.json +1 -1
|
@@ -11403,11 +11403,9 @@ var __vue_render__$b = function __vue_render__() {
|
|
|
11403
11403
|
}
|
|
11404
11404
|
}, [_vm.title ? _c("div", {
|
|
11405
11405
|
staticClass: "iov-pro-guide__title"
|
|
11406
|
-
}, [_vm._v(_vm._s(_vm.title))]) : _vm._e(), _vm._v(" "), _vm._t("message",
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
}, [_vm._v(_vm._s(_vm.message))]) : _vm._e()];
|
|
11410
|
-
}), _vm._v(" "), _vm.showConfirmButton ? _c("div", {
|
|
11406
|
+
}, [_vm._v(_vm._s(_vm.title))]) : _vm._e(), _vm._v(" "), _vm._t("message", [_vm.message ? _c("div", {
|
|
11407
|
+
staticClass: "iov-pro-guide__message"
|
|
11408
|
+
}, [_vm._v(_vm._s(_vm.message))]) : _vm._e()]), _vm._v(" "), _vm.showConfirmButton ? _c("div", {
|
|
11411
11409
|
staticClass: "iov-pro-guide__operation"
|
|
11412
11410
|
}, [_c("el-button", {
|
|
11413
11411
|
attrs: {
|
|
@@ -11418,7 +11416,7 @@ var __vue_render__$b = function __vue_render__() {
|
|
|
11418
11416
|
on: {
|
|
11419
11417
|
click: function click($event) {
|
|
11420
11418
|
$event.stopPropagation();
|
|
11421
|
-
return _vm.onHideGuide
|
|
11419
|
+
return _vm.onHideGuide($event);
|
|
11422
11420
|
}
|
|
11423
11421
|
}
|
|
11424
11422
|
}, [_vm._v(_vm._s(_vm.confirmButtonText))])], 1) : _vm._e(), _vm._v(" "), _c("div", {
|
|
@@ -12736,7 +12734,7 @@ var __vue_render__$7 = function () {
|
|
|
12736
12734
|
if ($event.target !== $event.currentTarget) {
|
|
12737
12735
|
return null
|
|
12738
12736
|
}
|
|
12739
|
-
return _vm.handleMaskClick
|
|
12737
|
+
return _vm.handleMaskClick($event)
|
|
12740
12738
|
},
|
|
12741
12739
|
},
|
|
12742
12740
|
}),
|
|
@@ -22722,14 +22720,15 @@ var script$8 = {
|
|
|
22722
22720
|
},
|
|
22723
22721
|
/**
|
|
22724
22722
|
* 当筛选字段发生变化
|
|
22725
|
-
* @param {Object} column 表格字段
|
|
22726
22723
|
* @param {String} value 当前选中的值
|
|
22727
22724
|
* @time 2025-02-18 13:49:55
|
|
22728
22725
|
*/
|
|
22729
|
-
onFilterChange: function onFilterChange(
|
|
22726
|
+
onFilterChange: function onFilterChange(value) {
|
|
22730
22727
|
var _this7 = this;
|
|
22731
22728
|
// 塞入值
|
|
22732
|
-
|
|
22729
|
+
Object.keys(value).forEach(function (key) {
|
|
22730
|
+
_this7.$set(_this7.tableAdvanceData, key, value[key]);
|
|
22731
|
+
});
|
|
22733
22732
|
// 开始塞入筛选数据
|
|
22734
22733
|
this.normalizedTableRequest.params = _objectSpread2(_objectSpread2({}, this.normalizedTableRequest.params), this.tableAdvanceData);
|
|
22735
22734
|
// 等数据塞入后开始重置页面查询
|
|
@@ -24390,7 +24389,8 @@ var script = {
|
|
|
24390
24389
|
data: function data() {
|
|
24391
24390
|
return {
|
|
24392
24391
|
modelValue: [],
|
|
24393
|
-
uploading: false
|
|
24392
|
+
uploading: false,
|
|
24393
|
+
uploadFileList: []
|
|
24394
24394
|
};
|
|
24395
24395
|
},
|
|
24396
24396
|
computed: {
|
|
@@ -24474,6 +24474,18 @@ var script = {
|
|
|
24474
24474
|
}
|
|
24475
24475
|
// 返回格式化规则
|
|
24476
24476
|
return this.modelFormater;
|
|
24477
|
+
},
|
|
24478
|
+
/**
|
|
24479
|
+
* ElUpload需要的文件列表
|
|
24480
|
+
*/
|
|
24481
|
+
fileList: function fileList() {
|
|
24482
|
+
var _this$uploadFileList;
|
|
24483
|
+
// 如果有上传文件
|
|
24484
|
+
if (((_this$uploadFileList = this.uploadFileList) === null || _this$uploadFileList === void 0 ? void 0 : _this$uploadFileList.length) > 0) {
|
|
24485
|
+
return this.uploadFileList;
|
|
24486
|
+
}
|
|
24487
|
+
// 返回当前双向绑定的数据
|
|
24488
|
+
return this.modelValue;
|
|
24477
24489
|
}
|
|
24478
24490
|
},
|
|
24479
24491
|
watch: {
|
|
@@ -24666,6 +24678,10 @@ var script = {
|
|
|
24666
24678
|
this.onChangeModelValue(fileList);
|
|
24667
24679
|
}
|
|
24668
24680
|
}
|
|
24681
|
+
// 如果有正在上传的文件,则记录当前fileList
|
|
24682
|
+
this.uploadFileList = fileList.every(function (f) {
|
|
24683
|
+
return f.status === 'success';
|
|
24684
|
+
}) ? [] : fileList;
|
|
24669
24685
|
// 等待数据双向绑定成功后触发表单事件
|
|
24670
24686
|
this.$nextTick(function () {
|
|
24671
24687
|
var _this$$parent, _this$$parent2;
|
|
@@ -24815,7 +24831,7 @@ var __vue_render__ = function __vue_render__() {
|
|
|
24815
24831
|
ref: "uploader",
|
|
24816
24832
|
staticClass: "iov-pro-uploader",
|
|
24817
24833
|
attrs: {
|
|
24818
|
-
"file-list": _vm.
|
|
24834
|
+
"file-list": _vm.fileList,
|
|
24819
24835
|
action: _vm.action,
|
|
24820
24836
|
data: _vm.data,
|
|
24821
24837
|
drag: _vm.drag,
|
|
@@ -24971,8 +24987,122 @@ function optimizeApi(api) {
|
|
|
24971
24987
|
};
|
|
24972
24988
|
}
|
|
24973
24989
|
|
|
24990
|
+
function _toArray(r) {
|
|
24991
|
+
return _arrayWithHoles(r) || _iterableToArray$1(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
24992
|
+
}
|
|
24993
|
+
|
|
24994
|
+
function _classCallCheck(a, n) {
|
|
24995
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
24996
|
+
}
|
|
24997
|
+
|
|
24998
|
+
function _defineProperties(e, r) {
|
|
24999
|
+
for (var t = 0; t < r.length; t++) {
|
|
25000
|
+
var o = r[t];
|
|
25001
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
25002
|
+
}
|
|
25003
|
+
}
|
|
25004
|
+
function _createClass(e, r, t) {
|
|
25005
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
25006
|
+
writable: false
|
|
25007
|
+
}), e;
|
|
25008
|
+
}
|
|
25009
|
+
|
|
25010
|
+
/**
|
|
25011
|
+
* 快捷组件操作
|
|
25012
|
+
* 1. 可以快捷的获取组件作用域
|
|
25013
|
+
*/
|
|
25014
|
+
var QuickComponentsQuery = /*#__PURE__*/function () {
|
|
25015
|
+
function QuickComponentsQuery(context) {
|
|
25016
|
+
_classCallCheck(this, QuickComponentsQuery);
|
|
25017
|
+
this.context = Array.isArray(context) ? context : context ? [context] : [];
|
|
25018
|
+
}
|
|
25019
|
+
|
|
25020
|
+
/**
|
|
25021
|
+
* 查询符合条件的组件上下文
|
|
25022
|
+
* @param {String} name 作用域名称
|
|
25023
|
+
*/
|
|
25024
|
+
return _createClass(QuickComponentsQuery, [{
|
|
25025
|
+
key: "query",
|
|
25026
|
+
value: function query(name) {
|
|
25027
|
+
// 去除空格的名称
|
|
25028
|
+
var _name$replace$split = name.replace(/\s/g, '').split('>'),
|
|
25029
|
+
_name$replace$split2 = _toArray(_name$replace$split),
|
|
25030
|
+
normalizedQueryName = _name$replace$split2[0],
|
|
25031
|
+
nextQueryName = _name$replace$split2.slice(1);
|
|
25032
|
+
// 返回下一个
|
|
25033
|
+
var _getNextMatchedContext = function getNextMatchedContext(nextContexts) {
|
|
25034
|
+
// 匹配出符合条件的下一个作用域
|
|
25035
|
+
var nextMatchedContext = [];
|
|
25036
|
+
// 遍历下一个作用域
|
|
25037
|
+
nextContexts.forEach(function (s) {
|
|
25038
|
+
// 如果当前作用域的名称等于name
|
|
25039
|
+
if (s.$options.name === normalizedQueryName) {
|
|
25040
|
+
nextMatchedContext.push(s);
|
|
25041
|
+
}
|
|
25042
|
+
// 如果有孩子节点
|
|
25043
|
+
if (s.$children) {
|
|
25044
|
+
nextMatchedContext.push.apply(nextMatchedContext, _toConsumableArray$1(_getNextMatchedContext(s.$children)));
|
|
25045
|
+
}
|
|
25046
|
+
});
|
|
25047
|
+
return nextMatchedContext;
|
|
25048
|
+
};
|
|
25049
|
+
// 从当前作用域中查询出组件实例
|
|
25050
|
+
// 返回组件实例构成的新方法
|
|
25051
|
+
var nextQCQ = new QuickComponentsQuery(_getNextMatchedContext(this.context));
|
|
25052
|
+
// 如果有下一个作用域
|
|
25053
|
+
return nextQueryName.length > 0 ? nextQCQ.query(nextQueryName.join('>')) : nextQCQ;
|
|
25054
|
+
}
|
|
25055
|
+
|
|
25056
|
+
/**
|
|
25057
|
+
* 获取指定的组件的上下文
|
|
25058
|
+
* @param {Number|Function} index 当前组件的下标
|
|
25059
|
+
*/
|
|
25060
|
+
}, {
|
|
25061
|
+
key: "get",
|
|
25062
|
+
value: function get(index) {
|
|
25063
|
+
// 获取单个
|
|
25064
|
+
if (typeof index === 'number') {
|
|
25065
|
+
return new QuickComponentsQuery(this.context[index]);
|
|
25066
|
+
}
|
|
25067
|
+
if (index instanceof Function) {
|
|
25068
|
+
return new QuickComponentsQuery(Array.isArray(this.context) ? this.context.filter(index) : index(this.context));
|
|
25069
|
+
}
|
|
25070
|
+
return new QuickComponentsQuery();
|
|
25071
|
+
}
|
|
25072
|
+
|
|
25073
|
+
/**
|
|
25074
|
+
* 返回当前组件上下文
|
|
25075
|
+
* @time 2026-03-12 16:37:59
|
|
25076
|
+
*/
|
|
25077
|
+
}, {
|
|
25078
|
+
key: "values",
|
|
25079
|
+
value: function values() {
|
|
25080
|
+
return this.context;
|
|
25081
|
+
}
|
|
25082
|
+
|
|
25083
|
+
/**
|
|
25084
|
+
* 执行组件上下文中的方法
|
|
25085
|
+
* @param {String} name 方法名称
|
|
25086
|
+
* @param {Array} args 参数
|
|
25087
|
+
*/
|
|
25088
|
+
}, {
|
|
25089
|
+
key: "exec",
|
|
25090
|
+
value: function exec(name) {
|
|
25091
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
25092
|
+
args[_key - 1] = arguments[_key];
|
|
25093
|
+
}
|
|
25094
|
+
// 遍历当前所有的组件上下文
|
|
25095
|
+
this.context.forEach(function (ctx) {
|
|
25096
|
+
// 如果当前上下文的方法是函数,则执行后返回结果,否则直接返回
|
|
25097
|
+
return ctx[name] instanceof Function ? ctx[name].apply(ctx, args) : ctx[name];
|
|
25098
|
+
});
|
|
25099
|
+
}
|
|
25100
|
+
}]);
|
|
25101
|
+
}();
|
|
25102
|
+
|
|
24974
25103
|
var utils = {
|
|
24975
|
-
optimizeApi: optimizeApi
|
|
25104
|
+
optimizeApi: optimizeApi,
|
|
25105
|
+
QuickComponentsQuery: QuickComponentsQuery
|
|
24976
25106
|
};
|
|
24977
25107
|
|
|
24978
25108
|
var components = [__vue_component__$B, __vue_component__$A, __vue_component__$z, __vue_component__$w, __vue_component__$v, __vue_component__$u, __vue_component__$t, __vue_component__$s, __vue_component__$r, __vue_component__$q, __vue_component__$o, __vue_component__$n, __vue_component__$m, __vue_component__$l, __vue_component__$k, __vue_component__$j, __vue_component__$i, __vue_component__$g, __vue_component__$f, __vue_component__$p, __vue_component__$e, __vue_component__$8, __vue_component__$7, __vue_component__$6, __vue_component__$y, __vue_component__$5, __vue_component__$4, __vue_component__$3, __vue_component__$d, __vue_component__$2, __vue_component__$x, __vue_component__$9, __vue_component__$1, __vue_component__];
|
|
@@ -24984,7 +25114,7 @@ var install = function install(Vue, componentConfig) {
|
|
|
24984
25114
|
};
|
|
24985
25115
|
var index = {
|
|
24986
25116
|
install: install,
|
|
24987
|
-
version: '0.0.
|
|
25117
|
+
version: '0.0.114',
|
|
24988
25118
|
BackTop: __vue_component__$B,
|
|
24989
25119
|
ColumnTooltip: __vue_component__$A,
|
|
24990
25120
|
Currency: __vue_component__$z,
|