iv-cims-npm
Version:
公共通用包
1,338 lines (1,169 loc) • 4.61 MB
JavaScript
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
/* unplugin-vue-components disabled */
var _hoisted_1$1f = {
id: "IVModal"
};
/**
* show:Boolean 是否显示弹窗 v-model:show="Visible"
*
* remove-padding:Boolean 是否需要弹窗内边距(defult:true)
* 内边距 padding: 100px 0 100px 100px;
*
* @cancelHandle:Function 关闭时触发事件
*
* v-slot:title 弹窗头部
*
* v-slot:body 弹窗主体
*
* */
var script$16 = /*#__PURE__*/vue.defineComponent({
__name: 'IVModal',
props: {
show: {
type: Boolean,
"default": false
},
removePadding: {
type: Boolean,
"default": true
}
},
emits: ["update:show", "cancelHandle"],
setup: function setup(__props, _ref) {
var emit = _ref.emit;
var props = __props;
var inputV = vue.computed({
get: function get() {
return props.show;
},
set: function set(value) {
emit("update:show", value);
emit("cancelHandle", value);
}
});
return function (_ctx, _cache) {
var _component_close_circle_outlined = vue.resolveComponent("close-circle-outlined");
var _component_a_modal = vue.resolveComponent("a-modal");
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1f, [vue.createVNode(_component_a_modal, {
wrapClassName: [__props.removePadding ? '' : 'not-padding', 'module-class modal-components'],
visible: vue.unref(inputV),
"onUpdate:visible": _cache[0] || (_cache[0] = function ($event) {
return vue.isRef(inputV) ? inputV.value = $event : null;
}),
destroyOnClose: "",
footer: null
}, {
title: vue.withCtx(function () {
return [vue.renderSlot(_ctx.$slots, "title")];
}),
closeIcon: vue.withCtx(function () {
return [vue.createVNode(_component_close_circle_outlined, {
"class": "clickTC text-[30px]"
})];
}),
"default": vue.withCtx(function () {
return [vue.renderSlot(_ctx.$slots, "body")];
}),
_: 3
/* FORWARDED */
}, 8
/* PROPS */
, ["wrapClassName", "visible"])]);
};
}
});
/* unplugin-vue-components disabled */
script$16.__file = "src/function-ui/component/IVModal.vue";
function ownKeys$2(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2$2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
_defineProperty$W(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
return target;
}
function _regeneratorRuntime() {
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
_regeneratorRuntime = function () {
return exports;
};
var exports = {},
Op = Object.prototype,
hasOwn = Op.hasOwnProperty,
$Symbol = "function" == typeof Symbol ? Symbol : {},
iteratorSymbol = $Symbol.iterator || "@@iterator",
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
function define(obj, key, value) {
return Object.defineProperty(obj, key, {
value: value,
enumerable: !0,
configurable: !0,
writable: !0
}), obj[key];
}
try {
define({}, "");
} catch (err) {
define = function (obj, key, value) {
return obj[key] = value;
};
}
function wrap(innerFn, outerFn, self, tryLocsList) {
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
generator = Object.create(protoGenerator.prototype),
context = new Context(tryLocsList || []);
return generator._invoke = function (innerFn, self, context) {
var state = "suspendedStart";
return function (method, arg) {
if ("executing" === state) throw new Error("Generator is already running");
if ("completed" === state) {
if ("throw" === method) throw arg;
return doneResult();
}
for (context.method = method, context.arg = arg;;) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {
if (delegateResult === ContinueSentinel) continue;
return delegateResult;
}
}
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
if ("suspendedStart" === state) throw state = "completed", context.arg;
context.dispatchException(context.arg);
} else "return" === context.method && context.abrupt("return", context.arg);
state = "executing";
var record = tryCatch(innerFn, self, context);
if ("normal" === record.type) {
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
return {
value: record.arg,
done: context.done
};
}
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
}
};
}(innerFn, self, context), generator;
}
function tryCatch(fn, obj, arg) {
try {
return {
type: "normal",
arg: fn.call(obj, arg)
};
} catch (err) {
return {
type: "throw",
arg: err
};
}
}
exports.wrap = wrap;
var ContinueSentinel = {};
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
var IteratorPrototype = {};
define(IteratorPrototype, iteratorSymbol, function () {
return this;
});
var getProto = Object.getPrototypeOf,
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function (method) {
define(prototype, method, function (arg) {
return this._invoke(method, arg);
});
});
}
function AsyncIterator(generator, PromiseImpl) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if ("throw" !== record.type) {
var result = record.arg,
value = result.value;
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
invoke("next", value, resolve, reject);
}, function (err) {
invoke("throw", err, resolve, reject);
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
result.value = unwrapped, resolve(result);
}, function (error) {
return invoke("throw", error, resolve, reject);
});
}
reject(record.arg);
}
var previousPromise;
this._invoke = function (method, arg) {
function callInvokeWithMethodAndArg() {
return new PromiseImpl(function (resolve, reject) {
invoke(method, arg, resolve, reject);
});
}
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
};
}
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (undefined === method) {
if (context.delegate = null, "throw" === context.method) {
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
var info = record.arg;
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
}
function pushTryEntry(locs) {
var entry = {
tryLoc: locs[0]
};
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal", delete record.arg, entry.completion = record;
}
function Context(tryLocsList) {
this.tryEntries = [{
tryLoc: "root"
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
}
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) return iteratorMethod.call(iterable);
if ("function" == typeof iterable.next) return iterable;
if (!isNaN(iterable.length)) {
var i = -1,
next = function next() {
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
return next.value = undefined, next.done = !0, next;
};
return next.next = next;
}
}
return {
next: doneResult
};
}
function doneResult() {
return {
value: undefined,
done: !0
};
}
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
var ctor = "function" == typeof genFun && genFun.constructor;
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
}, exports.mark = function (genFun) {
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
}, exports.awrap = function (arg) {
return {
__await: arg
};
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
return this;
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
void 0 === PromiseImpl && (PromiseImpl = Promise);
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
return result.done ? result.value : iter.next();
});
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
return this;
}), define(Gp, "toString", function () {
return "[object Generator]";
}), exports.keys = function (object) {
var keys = [];
for (var key in object) keys.push(key);
return keys.reverse(), function next() {
for (; keys.length;) {
var key = keys.pop();
if (key in object) return next.value = key, next.done = !1, next;
}
return next.done = !0, next;
};
}, exports.values = values, Context.prototype = {
constructor: Context,
reset: function (skipTempReset) {
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
},
stop: function () {
this.done = !0;
var rootRecord = this.tryEntries[0].completion;
if ("throw" === rootRecord.type) throw rootRecord.arg;
return this.rval;
},
dispatchException: function (exception) {
if (this.done) throw exception;
var context = this;
function handle(loc, caught) {
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i],
record = entry.completion;
if ("root" === entry.tryLoc) return handle("end");
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc"),
hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
} else if (hasCatch) {
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
} else {
if (!hasFinally) throw new Error("try statement without catch or finally");
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
}
}
}
},
abrupt: function (type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
var finallyEntry = entry;
break;
}
}
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
var record = finallyEntry ? finallyEntry.completion : {};
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
},
complete: function (record, afterLoc) {
if ("throw" === record.type) throw record.arg;
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
},
finish: function (finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
}
},
catch: function (tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if ("throw" === record.type) {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
throw new Error("illegal catch attempt");
},
delegateYield: function (iterable, resultName, nextLoc) {
return this.delegate = {
iterator: values(iterable),
resultName: resultName,
nextLoc: nextLoc
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
}
}, exports;
}
function _typeof$3(obj) {
"@babel/helpers - typeof";
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
}, _typeof$3(obj);
}
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
function _classCallCheck$1(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties$1(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass$1(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
if (staticProps) _defineProperties$1(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
}
function _defineProperty$W(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf$1(subClass, superClass);
}
function _getPrototypeOf$1(o) {
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf$1(o);
}
function _setPrototypeOf$1(o, p) {
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf$1(o, p);
}
function _isNativeReflectConstruct$1() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
return true;
} catch (e) {
return false;
}
}
function _construct$1(Parent, args, Class) {
if (_isNativeReflectConstruct$1()) {
_construct$1 = Reflect.construct.bind();
} else {
_construct$1 = function _construct(Parent, args, Class) {
var a = [null];
a.push.apply(a, args);
var Constructor = Function.bind.apply(Parent, a);
var instance = new Constructor();
if (Class) _setPrototypeOf$1(instance, Class.prototype);
return instance;
};
}
return _construct$1.apply(null, arguments);
}
function _isNativeFunction$1(fn) {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
function _wrapNativeSuper$1(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrapNativeSuper$1 = function _wrapNativeSuper(Class) {
if (Class === null || !_isNativeFunction$1(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return _construct$1(Class, arguments, _getPrototypeOf$1(this).constructor);
}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
});
return _setPrototypeOf$1(Wrapper, Class);
};
return _wrapNativeSuper$1(Class);
}
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
function _possibleConstructorReturn(self, call) {
if (call && (typeof call === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return _assertThisInitialized(self);
}
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
return function _createSuperInternal() {
var Super = _getPrototypeOf$1(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf$1(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
function _slicedToArray$3(arr, i) {
return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$3();
}
function _toConsumableArray$1(arr) {
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$1();
}
function _arrayWithoutHoles$1(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray$3(arr);
}
function _arrayWithHoles$3(arr) {
if (Array.isArray(arr)) return arr;
}
function _iterableToArray$1(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _iterableToArrayLimit$3(arr, i) {
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
if (_i == null) return;
var _arr = [];
var _n = true;
var _d = false;
var _s, _e;
try {
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"] != null) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
function _unsupportedIterableToArray$3(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
}
function _arrayLikeToArray$3(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread$1() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _nonIterableRest$3() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _createForOfIteratorHelper$1(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
var F = function () {};
return {
s: F,
n: function () {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
},
e: function (e) {
throw e;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var normalCompletion = true,
didErr = false,
err;
return {
s: function () {
it = it.call(o);
},
n: function () {
var step = it.next();
normalCompletion = step.done;
return step;
},
e: function (e) {
didErr = true;
err = e;
},
f: function () {
try {
if (!normalCompletion && it.return != null) it.return();
} finally {
if (didErr) throw err;
}
}
};
}
/**
* @description 格式化数字,增加千分位标记和保留小数
* @param {Number} num
* @param {Number} suffix 默认保留两位小数
* @return {String}
*/
var numFormat$1 = function numFormat(num) {
var suffix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
var value = Number(num);
if (Number.isNaN(value)) return "0.00";
return value.toLocaleString("en-US", {
minimumFractionDigits: suffix,
maximumFractionDigits: suffix
});
};
var _hoisted_1$1e = {
key: 0,
id: "top"
};
var _hoisted_2$_ = {
"class": "flex items-center justify-center"
};
var _hoisted_3$R = {
key: 0,
"class": "markTC"
};
var _hoisted_4$H = {
key: 0
};
var _hoisted_5$y = /*#__PURE__*/vue.createElementVNode("div", {
"class": "h-2 flex items-center"
}, [/*#__PURE__*/vue.createElementVNode("span", {
"class": "bg-[#d9d9d9] h-[1px] w-full"
})], -1
/* HOISTED */
);
var _hoisted_6$w = {
"class": "flex items-center justify-between h-1/2"
};
var _hoisted_7$u = {
key: 0,
"class": "markTC"
};
var _hoisted_8$s = {
"class": "relative w-full mb-[24px]",
style: {
"table-layout": "fixed"
}
};
var _hoisted_9$q = {
"class": "flex items-center justify-center"
};
var _hoisted_10$q = {
key: 0,
"class": "markTC"
};
var _hoisted_11$q = {
key: 1
};
var _hoisted_12$q = /*#__PURE__*/vue.createElementVNode("div", {
"class": "h-2 flex items-center"
}, [/*#__PURE__*/vue.createElementVNode("span", {
"class": "bg-[#d9d9d9] h-[1px] w-full"
})], -1
/* HOISTED */
);
var _hoisted_13$p = {
"class": "flex items-center justify-between h-1/2"
};
var _hoisted_14$p = {
key: 0,
"class": "markTC"
};
var _hoisted_15$o = ["onClick"];
var _hoisted_16$o = {
key: 0
};
var _hoisted_17$l = {
key: 2
};
var _hoisted_18$l = {
key: 3,
"class": "flex justify-center items-center relative"
};
var _hoisted_19$k = {
key: 1,
"class": "table-footer"
};
var _hoisted_20$j = /*#__PURE__*/vue.createStaticVNode("<div class=\"centent\"><svg class=\"ant-empty-img-simple\" width=\"64\" height=\"41\" viewBox=\"0 0 64 41\"><g transform=\"translate(0 1)\" fill=\"none\" fill-rule=\"evenodd\"><ellipse class=\"ant-empty-img-simple-ellipse\" fill=\"#F5F5F5\" cx=\"32\" cy=\"33\" rx=\"32\" ry=\"7\"></ellipse><g class=\"ant-empty-img-simple-g\" fill-rule=\"nonzero\" stroke=\"#D9D9D9\"><path d=\"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z\"></path><path d=\"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z\" fill=\"#FAFAFA\" class=\"ant-empty-img-simple-path\"></path></g></g></svg> 没有数据 </div>", 1);
var _hoisted_21$d = [_hoisted_20$j];
var script$15 = /*#__PURE__*/vue.defineComponent({
__name: 'IVTable',
props: {
dataTh: {
type: null,
required: true
},
contractExecDocList: {
type: Array,
required: true
},
currentPages: {
type: Number,
required: true
},
totalPages: {
type: Number,
required: true
},
pageSize: {
type: Number,
required: true,
"default": 10
},
pageSizeOptions: {
type: null,
required: true,
"default": ["10", "20", "30", "50"]
},
col: {
type: Boolean,
required: false
},
setHeight: {
type: Number,
required: false,
"default": 40
},
isTableControl: {
type: Boolean,
required: false,
"default": true
},
tableId: {
type: String,
required: false,
"default": "tableId"
},
clickId: {
type: String,
required: false
},
isClickItem: {
type: Boolean,
required: false,
"default": false
},
isFold: {
type: Boolean,
required: false,
"default": false
},
isTopTitle: {
type: Boolean,
required: false,
"default": true
}
},
emits: ["onPageChange", "onShowSizeChange", "upth", "clickItem", "update:clickId"],
setup: function setup(__props, _ref) {
var emit = _ref.emit;
var Props = __props;
localStorage.setItem("iVTh", Props.dataTh.map(function (item) {
return item.title;
}).join(",")); // onPageChange
var onPageChange = function onPageChange(current, pageSize) {
// console.log(current, pageSize, "-------------onPageChange");
emit("onPageChange", current, pageSize);
}; // onShowSizeChange
var onShowSizeChange = function onShowSizeChange(current, pageSize) {
// console.log(current, pageSize, '-------------onShowSizeChange')
emit("onShowSizeChange", current, pageSize);
};
var offsetWidth = vue.ref(0);
var mrpTableOffsetWidth = vue.ref(0);
var ji = false; // 实时滚动条高度
var scrollTop = function scrollTop(e) {
if (ji) return;
ji = true;
var scrollY = e.target.scrollTop; // // 获取元素
var div = document.querySelector("#" + Props.tableId);
setTimeout(function () {
ji = false;
}, 15); // // 获取距离页面顶部的偏移值
var div_scrolltop = (div === null || div === void 0 ? void 0 : div.offsetTop) - 48;
if (scrollY > div_scrolltop && (e === null || e === void 0 ? void 0 : e.target) != document.querySelector(".rc-virtual-list-holder")) {
offsetWidth.value = div.offsetWidth;
} else {
offsetWidth.value = 0;
}
};
var tableH = vue.ref(0);
var clickDensity = vue.ref(false); // 密度事件
var density = function density(key) {
clickDensity.value = true;
key == 0 ? tableH.value = 20 : key == 1 ? tableH.value = 40 : tableH.value = 60;
}; // 列设置更新th
var tableControlChange = function tableControlChange(val) {
var updata = Props.dataTh.map(function (item) {
return _objectSpread2$2(_objectSpread2$2({}, item), {}, {
show: val.includes(item.title)
});
});
emit("upth", updata);
}; // 表格点击功能
var clickItemId = vue.computed({
get: function get() {
return Props.clickId;
},
set: function set(value) {
emit("update:clickId", value);
}
});
var onClickItem = function onClickItem(e, item) {
if (Props.isClickItem) {
clickItemId.value = (item === null || item === void 0 ? void 0 : item.id) === clickItemId ? undefined : item === null || item === void 0 ? void 0 : item.id;
emit("clickItem", item);
}
};
vue.onMounted(function () {
var div = document.querySelector("#" + Props.tableId);
mrpTableOffsetWidth.value = div === null || div === void 0 ? void 0 : div.offsetWidth; // 监听滚动条位置
window.addEventListener("scroll", scrollTop, true);
});
vue.onBeforeUnmount(function () {
window.removeEventListener("scroll", scrollTop, true); // 离开当前组件别忘记移除事件监听
});
return function (_ctx, _cache) {
var _a;
var _component_a_image = vue.resolveComponent("a-image");
var _component_a_pagination = vue.resolveComponent("a-pagination");
return vue.openBlock(), vue.createElementBlock("div", {
"class": vue.normalizeClass(__props.tableId)
}, [vue.createCommentVNode(" 主体 "), offsetWidth.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1e, [vue.createElementVNode("table", {
"class": "relative w-full mb-[24px]",
style: vue.normalizeStyle([{
"table-layout": "fixed"
}, {
width: offsetWidth.value ? offsetWidth.value + 'px' : ''
}])
}, [vue.createElementVNode("tr", null, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dataTh, function (item, index) {
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [item.show ? (vue.openBlock(), vue.createElementBlock("th", {
key: index,
"class": "table-cell tableHeaderBGC defaultTC defaultTS tableBC",
style: vue.normalizeStyle({
height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : '',
width: item.w ? item.w : ''
})
}, [vue.createElementVNode("div", _hoisted_2$_, [item.customHeader ? vue.renderSlot(_ctx.$slots, 'th-' + item.key, {
key: 0,
index: index,
item: item
}) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
key: 1
}, [vue.createTextVNode(vue.toDisplayString(item.title == "操作" ? "" : item.title) + " ", 1
/* TEXT */
), item.unit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$R, vue.toDisplayString(item.unit), 1
/* TEXT */
)) : vue.createCommentVNode("v-if", true)], 64
/* STABLE_FRAGMENT */
))]), item.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$H, [_hoisted_5$y, vue.createElementVNode("div", _hoisted_6$w, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.header, function (e, i) {
return vue.openBlock(), vue.createElementBlock("div", {
key: i,
style: vue.normalizeStyle({
width: e.w ? e.w : ''
})
}, [vue.createTextVNode(vue.toDisplayString(e.title == "操作" ? "" : e.title) + " ", 1
/* TEXT */
), e.unit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$u, vue.toDisplayString(e.unit), 1
/* TEXT */
)) : vue.createCommentVNode("v-if", true)], 4
/* STYLE */
);
}), 128
/* KEYED_FRAGMENT */
))])])) : vue.createCommentVNode("v-if", true)], 4
/* STYLE */
)) : vue.createCommentVNode("v-if", true)], 64
/* STABLE_FRAGMENT */
);
}), 256
/* UNKEYED_FRAGMENT */
))])], 4
/* STYLE */
), __props.isTableControl ? (vue.openBlock(), vue.createBlock(vue.unref(script$14), {
key: 0,
setHeight: __props.setHeight,
onDensity: density,
onChangeS: tableControlChange
}, null, 8
/* PROPS */
, ["setHeight"])) : vue.createCommentVNode("v-if", true)])) : vue.createCommentVNode("v-if", true), vue.createElementVNode("div", {
"class": vue.normalizeClass(__props.isTopTitle ? 'mrpTable' : ''),
id: "IVTable"
}, [vue.createElementVNode("table", _hoisted_8$s, [vue.createElementVNode("tr", null, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dataTh, function (item, index) {
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
key: index
}, [item.show ? (vue.openBlock(), vue.createElementBlock("th", {
key: 0,
"class": "table-cell tableHeaderBGC defaultTC defaultTS tableBC",
style: vue.normalizeStyle({
height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : '',
width: item.w ? item.w : ''
})
}, [item.key == 'select' ? vue.renderSlot(_ctx.$slots, "selectAll", {
key: 0
}) : vue.createCommentVNode("v-if", true), vue.createElementVNode("div", _hoisted_9$q, [item.customHeader ? vue.renderSlot(_ctx.$slots, 'th-' + item.key, {
key: 0,
index: index,
item: item
}) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
key: 1
}, [vue.createTextVNode(vue.toDisplayString(item.key == "select" ? "" : item.title == "操作" ? "" : item.title) + " ", 1
/* TEXT */
), item.unit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10$q, vue.toDisplayString(item.unit), 1
/* TEXT */
)) : vue.createCommentVNode("v-if", true)], 64
/* STABLE_FRAGMENT */
))]), item.header ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$q, [_hoisted_12$q, vue.createElementVNode("div", _hoisted_13$p, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.header, function (e, i) {
return vue.openBlock(), vue.createElementBlock("div", {
key: i,
style: vue.normalizeStyle({
width: e.w ? e.w : ''
})
}, [vue.createTextVNode(vue.toDisplayString(e.title == "操作" ? "" : e.title) + " ", 1
/* TEXT */
), e.unit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$p, vue.toDisplayString(e.unit), 1
/* TEXT */
)) : vue.createCommentVNode("v-if", true)], 4
/* STYLE */
);
}), 128
/* KEYED_FRAGMENT */
))])])) : vue.createCommentVNode("v-if", true)], 4
/* STYLE */
)) : vue.createCommentVNode("v-if", true)], 64
/* STABLE_FRAGMENT */
);
}), 128
/* KEYED_FRAGMENT */
))]), ((_a = Props.contractExecDocList) === null || _a === void 0 ? void 0 : _a.length) !== 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
key: 0
}, vue.renderList(Props.contractExecDocList, function (e, i) {
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
key: e === null || e === void 0 ? void 0 : e.id
}, [!__props.isFold || (e === null || e === void 0 ? void 0 : e.fold) ? (vue.openBlock(), vue.createElementBlock("tr", {
key: e === null || e === void 0 ? void 0 : e.id,
onClick: function onClick($event) {
return onClickItem($event, e);
},
"class": vue.normalizeClass([(e === null || e === void 0 ? void 0 : e.id) === vue.unref(clickItemId) ? 'active_click_td' : ''])
}, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dataTh, function (item, index) {
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
key: index
}, [item.show ? (vue.openBlock(), vue.createElementBlock("td", {
key: 0,
"class": "table-cell defaultTC defaultTS tableBC",
style: vue.normalizeStyle({
height: __props.setHeight && !clickDensity.value ? __props.setHeight + 'px' : tableH.value ? tableH.value + 'px' : ''
})
}, [vue.createCommentVNode(" 序号 "), item.key == 'index' ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16$o, vue.toDisplayString(Props.currentPages - 1 == 0 ? i + 1 : (Props.currentPages - 1) * Props.pageSize + i + 1), 1
/* TEXT */
)) : !item.precision && item.precision !== null && !item.custom ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
key: 1
}, [vue.createCommentVNode(" 常规 "), vue.createCommentVNode(" <div\n v-if=\"\n item.key != 'index' &&\n item.key != 'pictures' &&\n item.key != 'pictureUrls' &&\n item.key != 'buttonSlot' &&\n item.key != 'select' &&\n !item.custom\n \"\n >\n {{ e[item.key] }}\n </div> "), vue.createElementVNode("div", null, vue.toDisplayString(e[item.key]), 1
/* TEXT */
)], 2112
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
)) : (item.precision || item.precision == null) && !item.custom ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$l, vue.toDisplayString(vue.unref(numFormat$1)(e[item.key], item.precision)), 1
/* TEXT */
)) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(" 图片数据特殊处理 "), item.key == 'pictures' || item.key == 'pictureUrls' ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$l, [vue.createCommentVNode(" <img\n v-for=\"(e1, i1) in e.pictures\"\n :key=\"i1\"\n :src=\"e1\"\n width=\"30\"\n height=\"32\"\n class=\"mx-4\"\n /> "), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(e[item.key], function (e1, i1) {
return vue.openBlock(), vue.createBlock(_component_a_image, {
key: i1,
src: e1,
width: 30,
height: 32,
fallback: "data:image/png;base64,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",
style: {
"position": "absolute",
"top": "50%",
"left": "50%",
"transform": "translate(-50%, -50%)"
}
}, null, 8
/* PROPS */
, ["src"]);
}), 128
/* KEYED_FRAGMENT */
))])) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(" 可点击的td slot"), item.key == 'clickSlot' ? vue.renderSlot(_ctx.$slots, "clickSlot", {
key: 4,
id: e.id,
item: e
}) : vue.createCommentVNode("v-if", true), item.key == 'select' ? vue.renderSlot(_ctx.$slots, "select", {
key: 5,
index: i,
item: e
}) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(" 按钮使用slot"), item.key == 'buttonSlot' ? vue.renderSlot(_ctx.$slots, "buttonSlot", {
key: 6,
id: e.id,
item: e
}) : vue.createCommentVNode("v-if", true), vue.createCommentVNode(" 按钮使用slot"), item.custom ? vue.renderSlot(_ctx.$slots, item.key, {
key: 7,
id: e.id,
item: e
}) : vue.createCommentVNode("v-if", true)], 4
/* STYLE */
)) : vue.createCommentVNode("v-if", true)], 64
/* STABLE_FRAGMENT */
);
}), 128
/* KEYED_FRAGMENT */
))], 10
/* CLASS, PROPS */
, _hoisted_15$o)) : vue.createCommentVNode("v-if", true)], 64
/* STABLE_FRAGMENT */
);
}), 128
/* KEYED_FRAGMENT */
)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_19$k, _hoisted_21$d))]), __props.isTableControl ? (vue.openBlock(), vue.createBlock(vue.unref(script$14), {
key: 0,
setHeight: __props.setHeight,
onDensity: density,
onChangeS: tableControlChange
}, null, 8
/* PROPS */
, ["setHeight"])) : vue.createCommentVNode("v-if", true)], 2
/* CLASS */
), vue.createCommentVNode(" 分页 "), __props.totalPages ? (vue.openBlock(), vue.createElementBlock("div", {
key: 1,
"class": "flex justify-center h-full mt-4 mb-20 pagination",
style: vue.normalizeStyle({
width: mrpTableOffsetWidth.value ? mrpTableOffsetWidth.value + 'px' : ''
})
}, [vue.createVNode(_component_a_pagination, {
current: Props.currentPages,
"onUpdate:current": _cache[0] || (_cache[0] = function ($event) {
return Props.currentPages = $event;
}),
pageSize: Props.pageSize,
"show-quick-jumper": "",
"show-size-changer": "",
pageSizeOptions: Props.pageSizeOptions,
total: Props.totalPages,
onChange: onPageChange,
onShowSizeChange: onShowSizeChange
}, null, 8
/* PROPS */
, ["current", "pageSize", "pageSizeOptions", "total"])], 4
/* STYLE */
)) : vue.createCommentVNode("v-if", true)], 2
/* CLASS */
);
};
}
});
/* unplugin-vue-components disabled */
script$15.__file = "src/function-ui/component/IVTable.vue";
/* unplugin-vue-components disabled */
var _withScopeId$a = function _withScopeId(n) {
return vue.pushScopeId("data-v-c0e90666"), n = n(), vue.popScopeId(), n;
};
var _hoisted_1$1d = {
"class": "tableControl clickTC"
};
var _hoisted_2$Z = /*#__PURE__*/_withScopeId$a(function () {
return /*#__PURE__*/vue.createElementVNode("div", null, "密度", -1
/* HOISTED */
);
});
var _hoisted_3$Q = /*#__PURE__*/vue.createTextVNode(" 紧凑 ");
var _hoisted_4$G = /*#__PURE__*/vue.createTextVNode(" 默认 ");
var _hoisted_5$x = /*#__PURE__*/vue.createTextVNode(" 宽大 ");
var _hoisted_6$v = /*#__PURE__*/_withScopeId$a(function () {
return /*#__PURE__*/vue.createElementVNode("div", null, "列设置", -1
/* HOISTED */
);
});
var _hoisted_7$t = /*#__PURE__*/vue.createTextVNode(" 全选 ");
var script$14 = /*#__PURE__*/vue.defineComponent({
__name: 'IVTableControl',
props: {
setHeight: {
type: Number,
required: false