iov-pro-components 0.0.112 → 0.0.113
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 +120 -5
- package/package.json +1 -1
|
@@ -22722,14 +22722,15 @@ var script$8 = {
|
|
|
22722
22722
|
},
|
|
22723
22723
|
/**
|
|
22724
22724
|
* 当筛选字段发生变化
|
|
22725
|
-
* @param {Object} column 表格字段
|
|
22726
22725
|
* @param {String} value 当前选中的值
|
|
22727
22726
|
* @time 2025-02-18 13:49:55
|
|
22728
22727
|
*/
|
|
22729
|
-
onFilterChange: function onFilterChange(
|
|
22728
|
+
onFilterChange: function onFilterChange(value) {
|
|
22730
22729
|
var _this7 = this;
|
|
22731
22730
|
// 塞入值
|
|
22732
|
-
|
|
22731
|
+
Object.keys(value).forEach(function (key) {
|
|
22732
|
+
_this7.$set(_this7.tableAdvanceData, key, value[key]);
|
|
22733
|
+
});
|
|
22733
22734
|
// 开始塞入筛选数据
|
|
22734
22735
|
this.normalizedTableRequest.params = _objectSpread2(_objectSpread2({}, this.normalizedTableRequest.params), this.tableAdvanceData);
|
|
22735
22736
|
// 等数据塞入后开始重置页面查询
|
|
@@ -24971,8 +24972,122 @@ function optimizeApi(api) {
|
|
|
24971
24972
|
};
|
|
24972
24973
|
}
|
|
24973
24974
|
|
|
24975
|
+
function _toArray(r) {
|
|
24976
|
+
return _arrayWithHoles(r) || _iterableToArray$1(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
24977
|
+
}
|
|
24978
|
+
|
|
24979
|
+
function _classCallCheck(a, n) {
|
|
24980
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
24981
|
+
}
|
|
24982
|
+
|
|
24983
|
+
function _defineProperties(e, r) {
|
|
24984
|
+
for (var t = 0; t < r.length; t++) {
|
|
24985
|
+
var o = r[t];
|
|
24986
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
24987
|
+
}
|
|
24988
|
+
}
|
|
24989
|
+
function _createClass(e, r, t) {
|
|
24990
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
24991
|
+
writable: false
|
|
24992
|
+
}), e;
|
|
24993
|
+
}
|
|
24994
|
+
|
|
24995
|
+
/**
|
|
24996
|
+
* 快捷组件操作
|
|
24997
|
+
* 1. 可以快捷的获取组件作用域
|
|
24998
|
+
*/
|
|
24999
|
+
var QuickComponentsQuery = /*#__PURE__*/function () {
|
|
25000
|
+
function QuickComponentsQuery(context) {
|
|
25001
|
+
_classCallCheck(this, QuickComponentsQuery);
|
|
25002
|
+
this.context = Array.isArray(context) ? context : context ? [context] : [];
|
|
25003
|
+
}
|
|
25004
|
+
|
|
25005
|
+
/**
|
|
25006
|
+
* 查询符合条件的组件上下文
|
|
25007
|
+
* @param {String} name 作用域名称
|
|
25008
|
+
*/
|
|
25009
|
+
return _createClass(QuickComponentsQuery, [{
|
|
25010
|
+
key: "query",
|
|
25011
|
+
value: function query(name) {
|
|
25012
|
+
// 去除空格的名称
|
|
25013
|
+
var _name$replace$split = name.replace(/\s/g, '').split('>'),
|
|
25014
|
+
_name$replace$split2 = _toArray(_name$replace$split),
|
|
25015
|
+
normalizedQueryName = _name$replace$split2[0],
|
|
25016
|
+
nextQueryName = _name$replace$split2.slice(1);
|
|
25017
|
+
// 返回下一个
|
|
25018
|
+
var _getNextMatchedContext = function getNextMatchedContext(nextContexts) {
|
|
25019
|
+
// 匹配出符合条件的下一个作用域
|
|
25020
|
+
var nextMatchedContext = [];
|
|
25021
|
+
// 遍历下一个作用域
|
|
25022
|
+
nextContexts.forEach(function (s) {
|
|
25023
|
+
// 如果当前作用域的名称等于name
|
|
25024
|
+
if (s.$options.name === normalizedQueryName) {
|
|
25025
|
+
nextMatchedContext.push(s);
|
|
25026
|
+
}
|
|
25027
|
+
// 如果有孩子节点
|
|
25028
|
+
if (s.$children) {
|
|
25029
|
+
nextMatchedContext.push.apply(nextMatchedContext, _toConsumableArray$1(_getNextMatchedContext(s.$children)));
|
|
25030
|
+
}
|
|
25031
|
+
});
|
|
25032
|
+
return nextMatchedContext;
|
|
25033
|
+
};
|
|
25034
|
+
// 从当前作用域中查询出组件实例
|
|
25035
|
+
// 返回组件实例构成的新方法
|
|
25036
|
+
var nextQCQ = new QuickComponentsQuery(_getNextMatchedContext(this.context));
|
|
25037
|
+
// 如果有下一个作用域
|
|
25038
|
+
return nextQueryName.length > 0 ? nextQCQ.query(nextQueryName.join('>')) : nextQCQ;
|
|
25039
|
+
}
|
|
25040
|
+
|
|
25041
|
+
/**
|
|
25042
|
+
* 获取指定的组件的上下文
|
|
25043
|
+
* @param {Number|Function} index 当前组件的下标
|
|
25044
|
+
*/
|
|
25045
|
+
}, {
|
|
25046
|
+
key: "get",
|
|
25047
|
+
value: function get(index) {
|
|
25048
|
+
// 获取单个
|
|
25049
|
+
if (typeof index === 'number') {
|
|
25050
|
+
return new QuickComponentsQuery(this.context[index]);
|
|
25051
|
+
}
|
|
25052
|
+
if (index instanceof Function) {
|
|
25053
|
+
return new QuickComponentsQuery(Array.isArray(this.context) ? this.context.filter(index) : index(this.context));
|
|
25054
|
+
}
|
|
25055
|
+
return new QuickComponentsQuery();
|
|
25056
|
+
}
|
|
25057
|
+
|
|
25058
|
+
/**
|
|
25059
|
+
* 返回当前组件上下文
|
|
25060
|
+
* @time 2026-03-12 16:37:59
|
|
25061
|
+
*/
|
|
25062
|
+
}, {
|
|
25063
|
+
key: "values",
|
|
25064
|
+
value: function values() {
|
|
25065
|
+
return this.context;
|
|
25066
|
+
}
|
|
25067
|
+
|
|
25068
|
+
/**
|
|
25069
|
+
* 执行组件上下文中的方法
|
|
25070
|
+
* @param {String} name 方法名称
|
|
25071
|
+
* @param {Array} args 参数
|
|
25072
|
+
*/
|
|
25073
|
+
}, {
|
|
25074
|
+
key: "exec",
|
|
25075
|
+
value: function exec(name) {
|
|
25076
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
25077
|
+
args[_key - 1] = arguments[_key];
|
|
25078
|
+
}
|
|
25079
|
+
// 遍历当前所有的组件上下文
|
|
25080
|
+
this.context.forEach(function (ctx) {
|
|
25081
|
+
// 如果当前上下文的方法是函数,则执行后返回结果,否则直接返回
|
|
25082
|
+
return ctx[name] instanceof Function ? ctx[name].apply(ctx, args) : ctx[name];
|
|
25083
|
+
});
|
|
25084
|
+
}
|
|
25085
|
+
}]);
|
|
25086
|
+
}();
|
|
25087
|
+
|
|
24974
25088
|
var utils = {
|
|
24975
|
-
optimizeApi: optimizeApi
|
|
25089
|
+
optimizeApi: optimizeApi,
|
|
25090
|
+
QuickComponentsQuery: QuickComponentsQuery
|
|
24976
25091
|
};
|
|
24977
25092
|
|
|
24978
25093
|
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 +25099,7 @@ var install = function install(Vue, componentConfig) {
|
|
|
24984
25099
|
};
|
|
24985
25100
|
var index = {
|
|
24986
25101
|
install: install,
|
|
24987
|
-
version: '0.0.
|
|
25102
|
+
version: '0.0.113',
|
|
24988
25103
|
BackTop: __vue_component__$B,
|
|
24989
25104
|
ColumnTooltip: __vue_component__$A,
|
|
24990
25105
|
Currency: __vue_component__$z,
|