vue2-components-plus 1.0.19 → 1.0.20
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/dist/vue2-components-plus.es5.js +143 -161
- package/package.json +2 -16
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NsDialog = NsDialog;
|
|
7
|
-
exports.NsTableContainer = exports.NsTable = exports.NsSearch = exports.NsFormTitle = exports.NsForm = void 0;
|
|
8
|
-
exports.closeAllNsDialog = closeAllNsDialog;
|
|
9
|
-
exports.createPagination = createPagination;
|
|
10
|
-
exports.createPaginationWithCustomKeys = createPaginationWithCustomKeys;
|
|
11
|
-
exports["default"] = void 0;
|
|
12
|
-
exports.getAllFormKvData = getAllFormKvData;
|
|
13
|
-
exports.getAllFormNodeByKey = getAllFormNodeByKey;
|
|
14
|
-
exports.getAllFormNodeRefByKey = getAllFormNodeRefByKey;
|
|
15
|
-
exports.install = install2;
|
|
16
|
-
exports.resetPagination = resetPagination;
|
|
17
|
-
exports.setExternalApp = setExternalApp;
|
|
18
|
-
exports.useFileUpload = useFileUpload;
|
|
19
|
-
var _vue = _interopRequireWildcard(require("vue"));
|
|
20
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
1
|
function _defineAccessor(e, r, n, t) { var c = { configurable: !0, enumerable: !0 }; return c[e] = t, Object.defineProperty(r, n, c); }
|
|
22
2
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
23
3
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
@@ -27,7 +7,7 @@ function _toArray(r) { return _arrayWithHoles(r) || _iterableToArray(r) || _unsu
|
|
|
27
7
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
28
8
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
29
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
30
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t
|
|
10
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
31
11
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
32
12
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
33
13
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -35,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
35
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36
16
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
37
17
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
38
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t
|
|
18
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
39
19
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
40
20
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
41
21
|
var __defProp = Object.defineProperty;
|
|
@@ -92,6 +72,7 @@ var __objRest = function __objRest(source, exclude) {
|
|
|
92
72
|
}
|
|
93
73
|
return target;
|
|
94
74
|
};
|
|
75
|
+
import Vue, { getCurrentInstance, nextTick } from "vue";
|
|
95
76
|
var main = "";
|
|
96
77
|
function parseBindingValue(binding) {
|
|
97
78
|
var defaultConfig = {
|
|
@@ -99,7 +80,7 @@ function parseBindingValue(binding) {
|
|
|
99
80
|
pattern: null,
|
|
100
81
|
min: null,
|
|
101
82
|
max: null,
|
|
102
|
-
|
|
83
|
+
int: false
|
|
103
84
|
};
|
|
104
85
|
var value = binding.value;
|
|
105
86
|
if (typeof value === "number") {
|
|
@@ -113,7 +94,7 @@ function parseBindingValue(binding) {
|
|
|
113
94
|
pattern: value.pattern || null,
|
|
114
95
|
min: typeof value.min === "number" ? value.min : null,
|
|
115
96
|
max: typeof value.max === "number" ? value.max : null,
|
|
116
|
-
|
|
97
|
+
int: !!value.int
|
|
117
98
|
};
|
|
118
99
|
}
|
|
119
100
|
return defaultConfig;
|
|
@@ -123,27 +104,27 @@ function formatNumberInput(value, maxLength) {
|
|
|
123
104
|
var result = "";
|
|
124
105
|
var hasMinus = false;
|
|
125
106
|
var hasDot = false;
|
|
126
|
-
String(value || "").split("").forEach(function (
|
|
127
|
-
if (
|
|
107
|
+
String(value || "").split("").forEach(function (char, index2) {
|
|
108
|
+
if (char === "-") {
|
|
128
109
|
if (allowNegative && index2 === 0 && !hasMinus) {
|
|
129
|
-
result +=
|
|
110
|
+
result += char;
|
|
130
111
|
hasMinus = true;
|
|
131
112
|
}
|
|
132
113
|
return;
|
|
133
114
|
}
|
|
134
|
-
if (
|
|
115
|
+
if (char === ".") {
|
|
135
116
|
if (index2 !== 0 && !hasDot && result[result.length - 1] !== "-") {
|
|
136
|
-
result +=
|
|
117
|
+
result += char;
|
|
137
118
|
hasDot = true;
|
|
138
119
|
}
|
|
139
120
|
return;
|
|
140
121
|
}
|
|
141
|
-
if (/^\d$/.test(
|
|
122
|
+
if (/^\d$/.test(char)) {
|
|
142
123
|
var current = hasMinus ? result.slice(1) : result;
|
|
143
|
-
if (current === "0" &&
|
|
124
|
+
if (current === "0" && char !== "0" && !hasDot) {
|
|
144
125
|
result = hasMinus ? "-" : "";
|
|
145
126
|
}
|
|
146
|
-
result +=
|
|
127
|
+
result += char;
|
|
147
128
|
}
|
|
148
129
|
});
|
|
149
130
|
return result.slice(0, maxLength);
|
|
@@ -152,26 +133,26 @@ function formatIntegerInput(value, maxLength, config) {
|
|
|
152
133
|
var result = "";
|
|
153
134
|
var hasMinus = false;
|
|
154
135
|
var allowNegative = config.min !== null && config.min < 0;
|
|
155
|
-
String(value || "").split("").forEach(function (
|
|
156
|
-
if (
|
|
136
|
+
String(value || "").split("").forEach(function (char, index2) {
|
|
137
|
+
if (char === "-") {
|
|
157
138
|
if (allowNegative && index2 === 0 && !hasMinus) {
|
|
158
|
-
result +=
|
|
139
|
+
result += char;
|
|
159
140
|
hasMinus = true;
|
|
160
141
|
}
|
|
161
142
|
return;
|
|
162
143
|
}
|
|
163
|
-
if (/^\d$/.test(
|
|
144
|
+
if (/^\d$/.test(char)) {
|
|
164
145
|
var current = hasMinus ? result.slice(1) : result;
|
|
165
|
-
if (current === "0" &&
|
|
146
|
+
if (current === "0" && char !== "0") {
|
|
166
147
|
result = hasMinus ? "-" : "";
|
|
167
148
|
}
|
|
168
|
-
result +=
|
|
149
|
+
result += char;
|
|
169
150
|
}
|
|
170
151
|
});
|
|
171
152
|
return result.slice(0, maxLength);
|
|
172
153
|
}
|
|
173
154
|
function formatRangeInput(value, config) {
|
|
174
|
-
if (config
|
|
155
|
+
if (config.int) {
|
|
175
156
|
var result2 = formatIntegerInput(value, config.maxLength || 50, config);
|
|
176
157
|
if (result2 === "" || result2 === "-") return result2;
|
|
177
158
|
var numberValue2 = parseInt(result2, 10);
|
|
@@ -191,9 +172,9 @@ function formatRangeInput(value, config) {
|
|
|
191
172
|
}
|
|
192
173
|
function formatRegexInput(value, maxLength, pattern) {
|
|
193
174
|
var result = "";
|
|
194
|
-
String(value || "").split("").forEach(function (
|
|
175
|
+
String(value || "").split("").forEach(function (char) {
|
|
195
176
|
if (result.length >= maxLength) return;
|
|
196
|
-
var nextValue = result +
|
|
177
|
+
var nextValue = result + char;
|
|
197
178
|
if (pattern.test(nextValue)) {
|
|
198
179
|
result = nextValue;
|
|
199
180
|
}
|
|
@@ -283,7 +264,7 @@ function registerDirective(Vue2) {
|
|
|
283
264
|
if (!Array.isArray(permissionList)) {
|
|
284
265
|
permissionList = [];
|
|
285
266
|
}
|
|
286
|
-
var selector = binding.modifiers
|
|
267
|
+
var selector = binding.modifiers.class ? "class" : "id";
|
|
287
268
|
var isDisplayNone = !!binding.modifiers.display;
|
|
288
269
|
var matched = selector === "class" ? permissionList.some(function (item) {
|
|
289
270
|
return el.classList.contains(item);
|
|
@@ -396,7 +377,7 @@ var FormFieldRenderer = {
|
|
|
396
377
|
required: true
|
|
397
378
|
},
|
|
398
379
|
value: {
|
|
399
|
-
|
|
380
|
+
default: void 0
|
|
400
381
|
}
|
|
401
382
|
},
|
|
402
383
|
mounted: function mounted() {
|
|
@@ -661,57 +642,57 @@ var _sfc_main$5 = {
|
|
|
661
642
|
props: {
|
|
662
643
|
model: {
|
|
663
644
|
type: String,
|
|
664
|
-
|
|
645
|
+
default: ""
|
|
665
646
|
},
|
|
666
647
|
readOnly: {
|
|
667
648
|
type: Boolean,
|
|
668
|
-
|
|
649
|
+
default: false
|
|
669
650
|
},
|
|
670
651
|
labelWidth: {
|
|
671
652
|
type: String,
|
|
672
|
-
|
|
653
|
+
default: "80px"
|
|
673
654
|
},
|
|
674
655
|
superLabelWidth: {
|
|
675
656
|
type: String,
|
|
676
|
-
|
|
657
|
+
default: "30px"
|
|
677
658
|
},
|
|
678
659
|
labelColor: {
|
|
679
660
|
type: String,
|
|
680
|
-
|
|
661
|
+
default: "#0A7BFF"
|
|
681
662
|
},
|
|
682
663
|
gapH: {
|
|
683
664
|
type: String,
|
|
684
|
-
|
|
665
|
+
default: "10px"
|
|
685
666
|
},
|
|
686
667
|
gapV: {
|
|
687
668
|
type: String,
|
|
688
|
-
|
|
669
|
+
default: "10px"
|
|
689
670
|
},
|
|
690
671
|
height: {
|
|
691
672
|
type: String,
|
|
692
|
-
|
|
673
|
+
default: "32px"
|
|
693
674
|
},
|
|
694
675
|
rows: {
|
|
695
676
|
type: Array,
|
|
696
|
-
|
|
677
|
+
default: function _default() {
|
|
697
678
|
return [];
|
|
698
679
|
}
|
|
699
680
|
},
|
|
700
681
|
backgroundColor: {
|
|
701
682
|
type: String,
|
|
702
|
-
|
|
683
|
+
default: ""
|
|
703
684
|
},
|
|
704
685
|
valueEmptyTag: {
|
|
705
686
|
type: String,
|
|
706
|
-
|
|
687
|
+
default: "--"
|
|
707
688
|
},
|
|
708
689
|
formPropKey: {
|
|
709
690
|
type: String,
|
|
710
|
-
|
|
691
|
+
default: "rows"
|
|
711
692
|
},
|
|
712
693
|
hasPoint: {
|
|
713
694
|
type: Boolean,
|
|
714
|
-
|
|
695
|
+
default: false
|
|
715
696
|
}
|
|
716
697
|
},
|
|
717
698
|
data: function data() {
|
|
@@ -1051,7 +1032,7 @@ var _sfc_render$5 = function render() {
|
|
|
1051
1032
|
_c = _vm._self._c;
|
|
1052
1033
|
return _vm.rows && _vm.rows.length ? _c("div", {
|
|
1053
1034
|
staticClass: "ns-dynamic-form",
|
|
1054
|
-
|
|
1035
|
+
class: _vm.formClassList,
|
|
1055
1036
|
style: _vm.wrapperStyle
|
|
1056
1037
|
}, _vm._l(_vm.rows, function (row, rowIndex) {
|
|
1057
1038
|
return _c("div", {
|
|
@@ -1062,7 +1043,7 @@ var _sfc_render$5 = function render() {
|
|
|
1062
1043
|
return _c("div", {
|
|
1063
1044
|
key: item.key || "".concat(rowIndex, "-").concat(itemIndex),
|
|
1064
1045
|
staticClass: "ns-dynamic-form__item",
|
|
1065
|
-
|
|
1046
|
+
class: {
|
|
1066
1047
|
"has-children": _vm.hasChildren(item)
|
|
1067
1048
|
},
|
|
1068
1049
|
style: _vm.getItemStyle(item, row)
|
|
@@ -1077,7 +1058,7 @@ var _sfc_render$5 = function render() {
|
|
|
1077
1058
|
staticClass: "ns-dynamic-form__child"
|
|
1078
1059
|
}, [!child.hideLabel && child.label ? _c("div", {
|
|
1079
1060
|
staticClass: "ns-dynamic-form__label",
|
|
1080
|
-
|
|
1061
|
+
class: {
|
|
1081
1062
|
"has-point": _vm.hasPoint || _vm.isRequiredField(child)
|
|
1082
1063
|
},
|
|
1083
1064
|
style: _vm.labelStyle
|
|
@@ -1118,7 +1099,7 @@ var _sfc_render$5 = function render() {
|
|
|
1118
1099
|
}, [_vm._v(_vm._s(_vm.normalizeDisplayValue(child.value, child)))])]], 2)]);
|
|
1119
1100
|
}), 0)] : [!item.hideLabel && item.label ? _c("div", {
|
|
1120
1101
|
staticClass: "ns-dynamic-form__label",
|
|
1121
|
-
|
|
1102
|
+
class: {
|
|
1122
1103
|
"has-point": _vm.hasPoint || _vm.isRequiredField(item)
|
|
1123
1104
|
},
|
|
1124
1105
|
style: _vm.labelStyle
|
|
@@ -1162,7 +1143,7 @@ var _sfc_render$5 = function render() {
|
|
|
1162
1143
|
};
|
|
1163
1144
|
var _sfc_staticRenderFns$5 = [];
|
|
1164
1145
|
var __component__$5 = /* @__PURE__ */normalizeComponent(_sfc_main$5, _sfc_render$5, _sfc_staticRenderFns$5, false, null, "4efb4504", null, null);
|
|
1165
|
-
var NsForm =
|
|
1146
|
+
var NsForm = __component__$5.exports;
|
|
1166
1147
|
var ThemeVar2 = /*#__PURE__*/_createClass(function ThemeVar2() {
|
|
1167
1148
|
_classCallCheck(this, ThemeVar2);
|
|
1168
1149
|
});
|
|
@@ -1202,7 +1183,7 @@ var _sfc_main$4 = {
|
|
|
1202
1183
|
props: {
|
|
1203
1184
|
title: {
|
|
1204
1185
|
type: String,
|
|
1205
|
-
|
|
1186
|
+
default: ""
|
|
1206
1187
|
}
|
|
1207
1188
|
},
|
|
1208
1189
|
mounted: function mounted() {
|
|
@@ -1228,7 +1209,7 @@ var _sfc_render$4 = function render2() {
|
|
|
1228
1209
|
};
|
|
1229
1210
|
var _sfc_staticRenderFns$4 = [];
|
|
1230
1211
|
var __component__$4 = /* @__PURE__ */normalizeComponent(_sfc_main$4, _sfc_render$4, _sfc_staticRenderFns$4, false, null, "29c80ec1", null, null);
|
|
1231
|
-
var NsFormTitle =
|
|
1212
|
+
var NsFormTitle = __component__$4.exports;
|
|
1232
1213
|
function getImageBaseUrl(instance) {
|
|
1233
1214
|
var _a;
|
|
1234
1215
|
return ((_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$ImageBaseUrl) || "";
|
|
@@ -1255,7 +1236,7 @@ function getFieldPathByKey(rows, key) {
|
|
|
1255
1236
|
return null;
|
|
1256
1237
|
}
|
|
1257
1238
|
function useFileUpload(state) {
|
|
1258
|
-
var instance =
|
|
1239
|
+
var instance = getCurrentInstance();
|
|
1259
1240
|
function handleFormatFileList(field, fileList) {
|
|
1260
1241
|
var baseUrl = getImageBaseUrl(instance);
|
|
1261
1242
|
var nextList = Array.isArray(fileList) ? fileList : [];
|
|
@@ -1326,7 +1307,7 @@ function useFileUpload(state) {
|
|
|
1326
1307
|
field.value = [];
|
|
1327
1308
|
}
|
|
1328
1309
|
var fieldPath = getFieldPathByKey(rows, key, formPropKey);
|
|
1329
|
-
|
|
1310
|
+
nextTick(function () {
|
|
1330
1311
|
var formInstance = formRef && (formRef.value || formRef);
|
|
1331
1312
|
if (fieldPath && formInstance && typeof formInstance.validateField === "function") {
|
|
1332
1313
|
formInstance.validateField(fieldPath);
|
|
@@ -1401,11 +1382,11 @@ var SlotRenderer = {
|
|
|
1401
1382
|
props: {
|
|
1402
1383
|
renderer: {
|
|
1403
1384
|
type: Function,
|
|
1404
|
-
|
|
1385
|
+
default: null
|
|
1405
1386
|
},
|
|
1406
1387
|
scope: {
|
|
1407
1388
|
type: Object,
|
|
1408
|
-
|
|
1389
|
+
default: function _default() {
|
|
1409
1390
|
return {};
|
|
1410
1391
|
}
|
|
1411
1392
|
}
|
|
@@ -1430,31 +1411,31 @@ var _sfc_main$3 = {
|
|
|
1430
1411
|
props: {
|
|
1431
1412
|
items: {
|
|
1432
1413
|
type: Array,
|
|
1433
|
-
|
|
1414
|
+
default: function _default() {
|
|
1434
1415
|
return [];
|
|
1435
1416
|
}
|
|
1436
1417
|
},
|
|
1437
1418
|
externalParams: {
|
|
1438
1419
|
type: Object,
|
|
1439
|
-
|
|
1420
|
+
default: function _default() {
|
|
1440
1421
|
return {};
|
|
1441
1422
|
}
|
|
1442
1423
|
},
|
|
1443
1424
|
defaultSpan: {
|
|
1444
1425
|
type: Number,
|
|
1445
|
-
|
|
1426
|
+
default: 6
|
|
1446
1427
|
},
|
|
1447
1428
|
showCollapse: {
|
|
1448
1429
|
type: Boolean,
|
|
1449
|
-
|
|
1430
|
+
default: true
|
|
1450
1431
|
},
|
|
1451
1432
|
collapseLimit: {
|
|
1452
1433
|
type: Number,
|
|
1453
|
-
|
|
1434
|
+
default: 3
|
|
1454
1435
|
},
|
|
1455
1436
|
slotRenderers: {
|
|
1456
1437
|
type: Object,
|
|
1457
|
-
|
|
1438
|
+
default: function _default() {
|
|
1458
1439
|
return {};
|
|
1459
1440
|
}
|
|
1460
1441
|
}
|
|
@@ -1634,7 +1615,7 @@ var _sfc_render$3 = function render3() {
|
|
|
1634
1615
|
};
|
|
1635
1616
|
var _sfc_staticRenderFns$3 = [];
|
|
1636
1617
|
var __component__$3 = /* @__PURE__ */normalizeComponent(_sfc_main$3, _sfc_render$3, _sfc_staticRenderFns$3, false, null, "9eea70d9", null, null);
|
|
1637
|
-
var NsSearch =
|
|
1618
|
+
var NsSearch = __component__$3.exports;
|
|
1638
1619
|
var RESERVED_KEYS = ["children", "slot", "headerSlot", "buttons", "enum", "type", "imageWidth", "imageHeight", "linkText"];
|
|
1639
1620
|
var TableColumn = {
|
|
1640
1621
|
name: "NsTableColumn",
|
|
@@ -1645,7 +1626,7 @@ var TableColumn = {
|
|
|
1645
1626
|
},
|
|
1646
1627
|
slotRenderers: {
|
|
1647
1628
|
type: Object,
|
|
1648
|
-
|
|
1629
|
+
default: function _default() {
|
|
1649
1630
|
return {};
|
|
1650
1631
|
}
|
|
1651
1632
|
}
|
|
@@ -1757,7 +1738,7 @@ var TableColumn = {
|
|
|
1757
1738
|
}, [column.linkText || cellValue || "-"]);
|
|
1758
1739
|
},
|
|
1759
1740
|
resolveEnumText: function resolveEnumText(column, value) {
|
|
1760
|
-
var enumList = column
|
|
1741
|
+
var enumList = column.enum || column.options || [];
|
|
1761
1742
|
if (!Array.isArray(enumList)) {
|
|
1762
1743
|
return value;
|
|
1763
1744
|
}
|
|
@@ -1773,7 +1754,7 @@ var TableColumn = {
|
|
|
1773
1754
|
}
|
|
1774
1755
|
if (column.type === "action") {
|
|
1775
1756
|
return h("div", {
|
|
1776
|
-
|
|
1757
|
+
class: "ns-table-column__actions"
|
|
1777
1758
|
}, this.renderActionButtons(h, scope, column));
|
|
1778
1759
|
}
|
|
1779
1760
|
if (column.type === "tag") {
|
|
@@ -1789,7 +1770,7 @@ var TableColumn = {
|
|
|
1789
1770
|
if (typeof column.formatter === "function") {
|
|
1790
1771
|
return column.formatter(scope.row, column, cellValue);
|
|
1791
1772
|
}
|
|
1792
|
-
if (column
|
|
1773
|
+
if (column.enum) {
|
|
1793
1774
|
return this.resolveEnumText(column, cellValue);
|
|
1794
1775
|
}
|
|
1795
1776
|
return cellValue === void 0 || cellValue === null || cellValue === "" ? "-" : cellValue;
|
|
@@ -1825,7 +1806,7 @@ var TableColumn = {
|
|
|
1825
1806
|
scopedSlots: children.length ? headerRenderer ? {
|
|
1826
1807
|
header: headerRenderer
|
|
1827
1808
|
} : void 0 : __spreadValues({
|
|
1828
|
-
|
|
1809
|
+
default: function _default(scope) {
|
|
1829
1810
|
return _this9.renderDefaultCell(h, scope, column);
|
|
1830
1811
|
}
|
|
1831
1812
|
}, headerRenderer ? {
|
|
@@ -1876,115 +1857,115 @@ var _sfc_main$2 = {
|
|
|
1876
1857
|
props: {
|
|
1877
1858
|
tableData: {
|
|
1878
1859
|
type: Array,
|
|
1879
|
-
|
|
1860
|
+
default: function _default() {
|
|
1880
1861
|
return [];
|
|
1881
1862
|
}
|
|
1882
1863
|
},
|
|
1883
1864
|
columns: {
|
|
1884
1865
|
type: Array,
|
|
1885
|
-
|
|
1866
|
+
default: function _default() {
|
|
1886
1867
|
return [];
|
|
1887
1868
|
}
|
|
1888
1869
|
},
|
|
1889
1870
|
actionButtons: {
|
|
1890
1871
|
type: Array,
|
|
1891
|
-
|
|
1872
|
+
default: function _default() {
|
|
1892
1873
|
return [];
|
|
1893
1874
|
}
|
|
1894
1875
|
},
|
|
1895
1876
|
showAddButton: {
|
|
1896
1877
|
type: Boolean,
|
|
1897
|
-
|
|
1878
|
+
default: true
|
|
1898
1879
|
},
|
|
1899
1880
|
addButtonText: {
|
|
1900
1881
|
type: String,
|
|
1901
|
-
|
|
1882
|
+
default: "新增"
|
|
1902
1883
|
},
|
|
1903
1884
|
showHeaderToolbar: {
|
|
1904
1885
|
type: Boolean,
|
|
1905
|
-
|
|
1886
|
+
default: true
|
|
1906
1887
|
},
|
|
1907
1888
|
showSelection: {
|
|
1908
1889
|
type: Boolean,
|
|
1909
|
-
|
|
1890
|
+
default: false
|
|
1910
1891
|
},
|
|
1911
1892
|
showIndex: {
|
|
1912
1893
|
type: Boolean,
|
|
1913
|
-
|
|
1894
|
+
default: false
|
|
1914
1895
|
},
|
|
1915
1896
|
border: {
|
|
1916
1897
|
type: Boolean,
|
|
1917
|
-
|
|
1898
|
+
default: true
|
|
1918
1899
|
},
|
|
1919
1900
|
stripe: {
|
|
1920
1901
|
type: Boolean,
|
|
1921
|
-
|
|
1902
|
+
default: false
|
|
1922
1903
|
},
|
|
1923
1904
|
height: {
|
|
1924
1905
|
type: [String, Number],
|
|
1925
|
-
|
|
1906
|
+
default: void 0
|
|
1926
1907
|
},
|
|
1927
1908
|
maxHeight: {
|
|
1928
1909
|
type: [String, Number],
|
|
1929
|
-
|
|
1910
|
+
default: void 0
|
|
1930
1911
|
},
|
|
1931
1912
|
rowKey: {
|
|
1932
1913
|
type: [String, Function],
|
|
1933
|
-
|
|
1914
|
+
default: void 0
|
|
1934
1915
|
},
|
|
1935
1916
|
defaultExpandAll: {
|
|
1936
1917
|
type: Boolean,
|
|
1937
|
-
|
|
1918
|
+
default: false
|
|
1938
1919
|
},
|
|
1939
1920
|
highlightCurrentRow: {
|
|
1940
1921
|
type: Boolean,
|
|
1941
|
-
|
|
1922
|
+
default: false
|
|
1942
1923
|
},
|
|
1943
1924
|
loading: {
|
|
1944
1925
|
type: Boolean,
|
|
1945
|
-
|
|
1926
|
+
default: false
|
|
1946
1927
|
},
|
|
1947
1928
|
showPagination: {
|
|
1948
1929
|
type: Boolean,
|
|
1949
|
-
|
|
1930
|
+
default: true
|
|
1950
1931
|
},
|
|
1951
1932
|
total: {
|
|
1952
1933
|
type: Number,
|
|
1953
|
-
|
|
1934
|
+
default: 0
|
|
1954
1935
|
},
|
|
1955
1936
|
currentPage: {
|
|
1956
1937
|
type: Number,
|
|
1957
|
-
|
|
1938
|
+
default: null
|
|
1958
1939
|
},
|
|
1959
1940
|
pageSize: {
|
|
1960
1941
|
type: Number,
|
|
1961
|
-
|
|
1942
|
+
default: null
|
|
1962
1943
|
},
|
|
1963
1944
|
pageSizes: {
|
|
1964
1945
|
type: Array,
|
|
1965
|
-
|
|
1946
|
+
default: function _default() {
|
|
1966
1947
|
return [10, 20, 50, 100];
|
|
1967
1948
|
}
|
|
1968
1949
|
},
|
|
1969
1950
|
paginationLayout: {
|
|
1970
1951
|
type: String,
|
|
1971
|
-
|
|
1952
|
+
default: "total, sizes, prev, pager, next, jumper"
|
|
1972
1953
|
},
|
|
1973
1954
|
pageNumberKey: {
|
|
1974
1955
|
type: String,
|
|
1975
|
-
|
|
1956
|
+
default: "currentPage"
|
|
1976
1957
|
},
|
|
1977
1958
|
pageSizeKey: {
|
|
1978
1959
|
type: String,
|
|
1979
|
-
|
|
1960
|
+
default: "pageSize"
|
|
1980
1961
|
},
|
|
1981
1962
|
pageTotalKey: {
|
|
1982
1963
|
type: String,
|
|
1983
|
-
|
|
1964
|
+
default: "total"
|
|
1984
1965
|
},
|
|
1985
1966
|
slotRenderers: {
|
|
1986
1967
|
type: Object,
|
|
1987
|
-
|
|
1968
|
+
default: function _default() {
|
|
1988
1969
|
return {};
|
|
1989
1970
|
}
|
|
1990
1971
|
}
|
|
@@ -2270,7 +2251,7 @@ var _sfc_render$2 = function render4() {
|
|
|
2270
2251
|
};
|
|
2271
2252
|
var _sfc_staticRenderFns$2 = [];
|
|
2272
2253
|
var __component__$2 = /* @__PURE__ */normalizeComponent(_sfc_main$2, _sfc_render$2, _sfc_staticRenderFns$2, false, null, "e9b089a2", null, null);
|
|
2273
|
-
var NsTable =
|
|
2254
|
+
var NsTable = __component__$2.exports;
|
|
2274
2255
|
var PageContainer_vue_vue_type_style_index_0_scoped_400797f6_lang = "";
|
|
2275
2256
|
var _sfc_main$1 = {
|
|
2276
2257
|
name: "NsTableContainer",
|
|
@@ -2281,77 +2262,77 @@ var _sfc_main$1 = {
|
|
|
2281
2262
|
props: {
|
|
2282
2263
|
showSearch: {
|
|
2283
2264
|
type: Boolean,
|
|
2284
|
-
|
|
2265
|
+
default: true
|
|
2285
2266
|
},
|
|
2286
2267
|
externalSearchParams: {
|
|
2287
2268
|
type: Object,
|
|
2288
|
-
|
|
2269
|
+
default: function _default() {
|
|
2289
2270
|
return {};
|
|
2290
2271
|
}
|
|
2291
2272
|
},
|
|
2292
2273
|
searchItems: {
|
|
2293
2274
|
type: Array,
|
|
2294
|
-
|
|
2275
|
+
default: function _default() {
|
|
2295
2276
|
return [];
|
|
2296
2277
|
}
|
|
2297
2278
|
},
|
|
2298
2279
|
tableData: {
|
|
2299
2280
|
type: Array,
|
|
2300
|
-
|
|
2281
|
+
default: function _default() {
|
|
2301
2282
|
return [];
|
|
2302
2283
|
}
|
|
2303
2284
|
},
|
|
2304
2285
|
columns: {
|
|
2305
2286
|
type: Array,
|
|
2306
|
-
|
|
2287
|
+
default: function _default() {
|
|
2307
2288
|
return [];
|
|
2308
2289
|
}
|
|
2309
2290
|
},
|
|
2310
2291
|
actionButtons: {
|
|
2311
2292
|
type: Array,
|
|
2312
|
-
|
|
2293
|
+
default: function _default() {
|
|
2313
2294
|
return [];
|
|
2314
2295
|
}
|
|
2315
2296
|
},
|
|
2316
2297
|
total: {
|
|
2317
2298
|
type: Number,
|
|
2318
|
-
|
|
2299
|
+
default: 0
|
|
2319
2300
|
},
|
|
2320
2301
|
currentPage: {
|
|
2321
2302
|
type: Number,
|
|
2322
|
-
|
|
2303
|
+
default: null
|
|
2323
2304
|
},
|
|
2324
2305
|
pageSize: {
|
|
2325
2306
|
type: Number,
|
|
2326
|
-
|
|
2307
|
+
default: null
|
|
2327
2308
|
},
|
|
2328
2309
|
pageNumberKey: {
|
|
2329
2310
|
type: String,
|
|
2330
|
-
|
|
2311
|
+
default: "currentPage"
|
|
2331
2312
|
},
|
|
2332
2313
|
pageSizeKey: {
|
|
2333
2314
|
type: String,
|
|
2334
|
-
|
|
2315
|
+
default: "pageSize"
|
|
2335
2316
|
},
|
|
2336
2317
|
pageTotalKey: {
|
|
2337
2318
|
type: String,
|
|
2338
|
-
|
|
2319
|
+
default: "total"
|
|
2339
2320
|
},
|
|
2340
2321
|
searchProps: {
|
|
2341
2322
|
type: Object,
|
|
2342
|
-
|
|
2323
|
+
default: function _default() {
|
|
2343
2324
|
return {};
|
|
2344
2325
|
}
|
|
2345
2326
|
},
|
|
2346
2327
|
tableProps: {
|
|
2347
2328
|
type: Object,
|
|
2348
|
-
|
|
2329
|
+
default: function _default() {
|
|
2349
2330
|
return {};
|
|
2350
2331
|
}
|
|
2351
2332
|
},
|
|
2352
2333
|
loadData: {
|
|
2353
2334
|
type: Function,
|
|
2354
|
-
|
|
2335
|
+
default: null
|
|
2355
2336
|
}
|
|
2356
2337
|
},
|
|
2357
2338
|
data: function data() {
|
|
@@ -2486,7 +2467,7 @@ var _sfc_main$1 = {
|
|
|
2486
2467
|
return _this13.getRowKey(row);
|
|
2487
2468
|
});
|
|
2488
2469
|
currentPageKeys.forEach(function (key) {
|
|
2489
|
-
_this13.pendingSelectionKeys
|
|
2470
|
+
_this13.pendingSelectionKeys.delete(key);
|
|
2490
2471
|
_this13.$delete(_this13.selectionRowMap, key);
|
|
2491
2472
|
});
|
|
2492
2473
|
(selection || []).forEach(function (row) {
|
|
@@ -2640,7 +2621,7 @@ var _sfc_render$1 = function render5() {
|
|
|
2640
2621
|
};
|
|
2641
2622
|
var _sfc_staticRenderFns$1 = [];
|
|
2642
2623
|
var __component__$1 = /* @__PURE__ */normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, "400797f6", null, null);
|
|
2643
|
-
var NsTableContainer =
|
|
2624
|
+
var NsTableContainer = __component__$1.exports;
|
|
2644
2625
|
[NsTableContainer, NsSearch, NsTable].forEach(function (component) {
|
|
2645
2626
|
component.install = function install3(Vue2) {
|
|
2646
2627
|
Vue2.component(component.name, component);
|
|
@@ -2652,89 +2633,89 @@ var _sfc_main = {
|
|
|
2652
2633
|
props: {
|
|
2653
2634
|
className: {
|
|
2654
2635
|
type: String,
|
|
2655
|
-
|
|
2636
|
+
default: ""
|
|
2656
2637
|
},
|
|
2657
2638
|
title: {
|
|
2658
2639
|
type: String,
|
|
2659
|
-
|
|
2640
|
+
default: ""
|
|
2660
2641
|
},
|
|
2661
2642
|
width: {
|
|
2662
2643
|
type: [Number, String],
|
|
2663
|
-
|
|
2644
|
+
default: 500
|
|
2664
2645
|
},
|
|
2665
2646
|
height: {
|
|
2666
2647
|
type: [Number, String],
|
|
2667
|
-
|
|
2648
|
+
default: ""
|
|
2668
2649
|
},
|
|
2669
2650
|
modal: {
|
|
2670
2651
|
type: Boolean,
|
|
2671
|
-
|
|
2652
|
+
default: true
|
|
2672
2653
|
},
|
|
2673
2654
|
dialogPadding: {
|
|
2674
2655
|
type: [Number, String, Array],
|
|
2675
|
-
|
|
2656
|
+
default: -1
|
|
2676
2657
|
},
|
|
2677
2658
|
modalColor: {
|
|
2678
2659
|
type: String,
|
|
2679
|
-
|
|
2660
|
+
default: "rgba(0, 0, 0, 0.45)"
|
|
2680
2661
|
},
|
|
2681
2662
|
closeOnClickModal: {
|
|
2682
2663
|
type: Boolean,
|
|
2683
|
-
|
|
2664
|
+
default: true
|
|
2684
2665
|
},
|
|
2685
2666
|
dom: {
|
|
2686
2667
|
type: [Object, Function],
|
|
2687
|
-
|
|
2668
|
+
default: null
|
|
2688
2669
|
},
|
|
2689
2670
|
option: {
|
|
2690
2671
|
type: Object,
|
|
2691
|
-
|
|
2672
|
+
default: function _default() {
|
|
2692
2673
|
return {};
|
|
2693
2674
|
}
|
|
2694
2675
|
},
|
|
2695
2676
|
events: {
|
|
2696
2677
|
type: Object,
|
|
2697
|
-
|
|
2678
|
+
default: function _default() {
|
|
2698
2679
|
return {};
|
|
2699
2680
|
}
|
|
2700
2681
|
},
|
|
2701
2682
|
domCompleted: {
|
|
2702
2683
|
type: Function,
|
|
2703
|
-
|
|
2684
|
+
default: null
|
|
2704
2685
|
},
|
|
2705
2686
|
headerDom: {
|
|
2706
2687
|
type: [Object, Function],
|
|
2707
|
-
|
|
2688
|
+
default: null
|
|
2708
2689
|
},
|
|
2709
2690
|
headerOption: {
|
|
2710
2691
|
type: Object,
|
|
2711
|
-
|
|
2692
|
+
default: function _default() {
|
|
2712
2693
|
return {};
|
|
2713
2694
|
}
|
|
2714
2695
|
},
|
|
2715
2696
|
headerEvents: {
|
|
2716
2697
|
type: Object,
|
|
2717
|
-
|
|
2698
|
+
default: function _default() {
|
|
2718
2699
|
return {};
|
|
2719
2700
|
}
|
|
2720
2701
|
},
|
|
2721
2702
|
showFooter: {
|
|
2722
2703
|
type: Boolean,
|
|
2723
|
-
|
|
2704
|
+
default: true
|
|
2724
2705
|
},
|
|
2725
2706
|
footerDom: {
|
|
2726
2707
|
type: [Object, Function],
|
|
2727
|
-
|
|
2708
|
+
default: null
|
|
2728
2709
|
},
|
|
2729
2710
|
footerOption: {
|
|
2730
2711
|
type: Object,
|
|
2731
|
-
|
|
2712
|
+
default: function _default() {
|
|
2732
2713
|
return {};
|
|
2733
2714
|
}
|
|
2734
2715
|
},
|
|
2735
2716
|
footerTitle: {
|
|
2736
2717
|
type: Object,
|
|
2737
|
-
|
|
2718
|
+
default: function _default() {
|
|
2738
2719
|
return {
|
|
2739
2720
|
close: "取消",
|
|
2740
2721
|
confirm: "确定"
|
|
@@ -2743,53 +2724,53 @@ var _sfc_main = {
|
|
|
2743
2724
|
},
|
|
2744
2725
|
footerEvents: {
|
|
2745
2726
|
type: Object,
|
|
2746
|
-
|
|
2727
|
+
default: function _default() {
|
|
2747
2728
|
return {};
|
|
2748
2729
|
}
|
|
2749
2730
|
},
|
|
2750
2731
|
footerButtonReverse: {
|
|
2751
2732
|
type: Boolean,
|
|
2752
|
-
|
|
2733
|
+
default: false
|
|
2753
2734
|
},
|
|
2754
2735
|
immediately: {
|
|
2755
2736
|
type: Boolean,
|
|
2756
|
-
|
|
2737
|
+
default: false
|
|
2757
2738
|
},
|
|
2758
2739
|
close: {
|
|
2759
2740
|
type: Function,
|
|
2760
|
-
|
|
2741
|
+
default: null
|
|
2761
2742
|
},
|
|
2762
2743
|
closed: {
|
|
2763
2744
|
type: Function,
|
|
2764
|
-
|
|
2745
|
+
default: null
|
|
2765
2746
|
},
|
|
2766
2747
|
draggable: {
|
|
2767
2748
|
type: Boolean,
|
|
2768
|
-
|
|
2749
|
+
default: false
|
|
2769
2750
|
},
|
|
2770
2751
|
confirm: {
|
|
2771
2752
|
type: Function,
|
|
2772
|
-
|
|
2753
|
+
default: null
|
|
2773
2754
|
},
|
|
2774
2755
|
x: {
|
|
2775
2756
|
type: [Number, String],
|
|
2776
|
-
|
|
2757
|
+
default: null
|
|
2777
2758
|
},
|
|
2778
2759
|
y: {
|
|
2779
2760
|
type: [Number, String],
|
|
2780
|
-
|
|
2761
|
+
default: null
|
|
2781
2762
|
},
|
|
2782
2763
|
maxSize: {
|
|
2783
2764
|
type: Function,
|
|
2784
|
-
|
|
2765
|
+
default: null
|
|
2785
2766
|
},
|
|
2786
2767
|
dialogInstance: {
|
|
2787
2768
|
type: Object,
|
|
2788
|
-
|
|
2769
|
+
default: null
|
|
2789
2770
|
},
|
|
2790
2771
|
containerId: {
|
|
2791
2772
|
type: String,
|
|
2792
|
-
|
|
2773
|
+
default: ""
|
|
2793
2774
|
}
|
|
2794
2775
|
},
|
|
2795
2776
|
data: function data() {
|
|
@@ -2942,8 +2923,8 @@ var _sfc_main = {
|
|
|
2942
2923
|
},
|
|
2943
2924
|
resolveComponent: function resolveComponent(source) {
|
|
2944
2925
|
if (!source) return null;
|
|
2945
|
-
if (source
|
|
2946
|
-
return source
|
|
2926
|
+
if (source.default) {
|
|
2927
|
+
return source.default;
|
|
2947
2928
|
}
|
|
2948
2929
|
if (typeof source.then === "function") {
|
|
2949
2930
|
return function () {
|
|
@@ -3271,7 +3252,7 @@ var _sfc_staticRenderFns = [];
|
|
|
3271
3252
|
var __component__ = /* @__PURE__ */normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "e8cb0826", null, null);
|
|
3272
3253
|
var NsDialogComponent = __component__.exports;
|
|
3273
3254
|
var dialogInstances = typeof window !== "undefined" ? window.__dialogInstances = window.__dialogInstances || [] : [];
|
|
3274
|
-
var externalVue =
|
|
3255
|
+
var externalVue = Vue;
|
|
3275
3256
|
var externalStore = null;
|
|
3276
3257
|
var externalPinia = null;
|
|
3277
3258
|
var dialogSeed = 0;
|
|
@@ -3382,7 +3363,7 @@ function NsDialog(data) {
|
|
|
3382
3363
|
mountTarget.appendChild(container);
|
|
3383
3364
|
var instance = {
|
|
3384
3365
|
id: id,
|
|
3385
|
-
|
|
3366
|
+
class: dialogData.class || "",
|
|
3386
3367
|
element: container,
|
|
3387
3368
|
vm: null,
|
|
3388
3369
|
rootEl: null,
|
|
@@ -3392,9 +3373,9 @@ function NsDialog(data) {
|
|
|
3392
3373
|
callMethod: function callMethod() {},
|
|
3393
3374
|
close: function close() {}
|
|
3394
3375
|
};
|
|
3395
|
-
var DialogConstructor = (externalVue ||
|
|
3376
|
+
var DialogConstructor = (externalVue || Vue).extend(NsDialogComponent);
|
|
3396
3377
|
var propsData = __spreadProps(__spreadValues({}, dialogData), {
|
|
3397
|
-
className: dialogData
|
|
3378
|
+
className: dialogData.class || "",
|
|
3398
3379
|
modal: modal,
|
|
3399
3380
|
footerButtonReverse: true,
|
|
3400
3381
|
containerId: id,
|
|
@@ -3463,7 +3444,7 @@ function install2(Vue2) {
|
|
|
3463
3444
|
window.closeAllNsDialog = closeAllNsDialog;
|
|
3464
3445
|
}
|
|
3465
3446
|
}
|
|
3466
|
-
var index =
|
|
3447
|
+
var index = {
|
|
3467
3448
|
install: install2,
|
|
3468
3449
|
NsForm: NsForm,
|
|
3469
3450
|
NsFormTitle: NsFormTitle,
|
|
@@ -3481,3 +3462,4 @@ var index = exports["default"] = {
|
|
|
3481
3462
|
createPaginationWithCustomKeys: createPaginationWithCustomKeys,
|
|
3482
3463
|
resetPagination: resetPagination
|
|
3483
3464
|
};
|
|
3465
|
+
export { NsDialog, NsForm, NsFormTitle, NsSearch, NsTable, NsTableContainer, closeAllNsDialog, createPagination, createPaginationWithCustomKeys, index as default, getAllFormKvData, getAllFormNodeByKey, getAllFormNodeRefByKey, install2 as install, resetPagination, setExternalApp, useFileUpload };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue2-components-plus",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/vue2-components-plus.umd.cjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"dev": "vite",
|
|
34
34
|
"build": "vite build",
|
|
35
|
-
"build:es5": "pnpm build && babel dist/vue2-components-plus.js --out-file dist/vue2-components-plus.es5.js --
|
|
35
|
+
"build:es5": "pnpm build && babel dist/vue2-components-plus.js --out-file dist/vue2-components-plus.es5.js --config-file ./babel.es5.config.cjs",
|
|
36
36
|
"preview": "vite preview"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -52,19 +52,5 @@
|
|
|
52
52
|
"vue-template-compiler": "2.7.16"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
},
|
|
56
|
-
"babel": {
|
|
57
|
-
"presets": [
|
|
58
|
-
[
|
|
59
|
-
"@babel/preset-env",
|
|
60
|
-
{
|
|
61
|
-
"targets": {
|
|
62
|
-
"ie": "11"
|
|
63
|
-
},
|
|
64
|
-
"modules": false,
|
|
65
|
-
"useBuiltIns": false
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
]
|
|
69
55
|
}
|
|
70
56
|
}
|