@juzhenfe/page-model 3.14.10 → 3.14.11
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/components/buttons-renderer/index.vue.d.ts +11 -9
- package/dist/components/buttons-renderer/utils/index.d.ts +2 -0
- package/dist/components/column-filter-tools/index.vue.d.ts +12 -6
- package/dist/components/column-sort-tools/index.vue.d.ts +13 -6
- package/dist/components/form/constructor.d.ts +9 -0
- package/dist/components/page-model/components/selectable-operate/index.vue.d.ts +11 -8
- package/dist/components/page-model/constructor.d.ts +16 -0
- package/dist/components/simple-popover/index.vue.d.ts +9 -4
- package/dist/components/table/components/context-menu/index.vue.d.ts +163 -0
- package/dist/components/table/components/table-column/index.vue.d.ts +9 -10
- package/dist/components/table/constructor.d.ts +18 -0
- package/dist/components/table/type.d.ts +160 -109
- package/dist/index.es.js +1198 -989
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -212,11 +212,11 @@ const randomStr = (len = 16) => {
|
|
|
212
212
|
return RANDOM_RANGE[Math.floor(Math.random() * RANDOM_RANGE_LENGTH)];
|
|
213
213
|
}).join("");
|
|
214
214
|
};
|
|
215
|
-
const _hoisted_1$
|
|
215
|
+
const _hoisted_1$F = { class: "scenes-tab" };
|
|
216
216
|
const __default__$o = {
|
|
217
217
|
name: "ScenesTab"
|
|
218
218
|
};
|
|
219
|
-
const _sfc_main$
|
|
219
|
+
const _sfc_main$14 = defineComponent({
|
|
220
220
|
...__default__$o,
|
|
221
221
|
setup(__props, { expose: __expose }) {
|
|
222
222
|
const getValue2 = () => {
|
|
@@ -226,15 +226,15 @@ const _sfc_main$13 = defineComponent({
|
|
|
226
226
|
getValue: getValue2
|
|
227
227
|
});
|
|
228
228
|
return (_ctx, _cache) => {
|
|
229
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
229
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
var index_vue_vue_type_style_index_0_lang$
|
|
233
|
+
var index_vue_vue_type_style_index_0_lang$c = "";
|
|
234
234
|
const __default__$n = {
|
|
235
235
|
name: "NormalTab"
|
|
236
236
|
};
|
|
237
|
-
const _sfc_main$
|
|
237
|
+
const _sfc_main$13 = defineComponent({
|
|
238
238
|
...__default__$n,
|
|
239
239
|
props: {
|
|
240
240
|
panes: {},
|
|
@@ -1683,11 +1683,11 @@ class TopTabsManager extends IManager {
|
|
|
1683
1683
|
this.context = markRaw(context);
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
|
-
var index_vue_vue_type_style_index_0_lang$
|
|
1686
|
+
var index_vue_vue_type_style_index_0_lang$b = "";
|
|
1687
1687
|
const __default__$m = {
|
|
1688
1688
|
name: "TopTabs"
|
|
1689
1689
|
};
|
|
1690
|
-
const _sfc_main$
|
|
1690
|
+
const _sfc_main$12 = defineComponent({
|
|
1691
1691
|
...__default__$m,
|
|
1692
1692
|
props: {
|
|
1693
1693
|
tabs: {},
|
|
@@ -1708,12 +1708,12 @@ const _sfc_main$11 = defineComponent({
|
|
|
1708
1708
|
const tabComponent = computed(() => {
|
|
1709
1709
|
if (props.tabs.useScene) {
|
|
1710
1710
|
return {
|
|
1711
|
-
component: _sfc_main$
|
|
1711
|
+
component: _sfc_main$14,
|
|
1712
1712
|
props: props.tabs.sceneTab
|
|
1713
1713
|
};
|
|
1714
1714
|
} else {
|
|
1715
1715
|
return {
|
|
1716
|
-
component: _sfc_main$
|
|
1716
|
+
component: _sfc_main$13,
|
|
1717
1717
|
props: {
|
|
1718
1718
|
panes: props.tabs.panes,
|
|
1719
1719
|
props: props.tabs.props
|
|
@@ -1746,643 +1746,59 @@ const _sfc_main$11 = defineComponent({
|
|
|
1746
1746
|
};
|
|
1747
1747
|
}
|
|
1748
1748
|
});
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
setChain(chainItem) {
|
|
1754
|
-
this.chains.push(chainItem);
|
|
1755
|
-
return this;
|
|
1756
|
-
}
|
|
1757
|
-
passRequest(...rest) {
|
|
1758
|
-
const chains = this.chains;
|
|
1759
|
-
const len = chains.length;
|
|
1760
|
-
let result = false;
|
|
1761
|
-
for (let index2 = 0; index2 < len; index2++) {
|
|
1762
|
-
const chain = chains[index2];
|
|
1763
|
-
result = chain.apply(this, rest);
|
|
1764
|
-
if (result !== false) {
|
|
1765
|
-
break;
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
return result;
|
|
1749
|
+
var _export_sfc$1 = (sfc, props) => {
|
|
1750
|
+
const target = sfc.__vccOpts || sfc;
|
|
1751
|
+
for (const [key, val] of props) {
|
|
1752
|
+
target[key] = val;
|
|
1769
1753
|
}
|
|
1754
|
+
return target;
|
|
1755
|
+
};
|
|
1756
|
+
const _sfc_main$11 = defineComponent({
|
|
1757
|
+
name: "ArrowDownBold"
|
|
1758
|
+
});
|
|
1759
|
+
const _hoisted_1$E = {
|
|
1760
|
+
class: "icon",
|
|
1761
|
+
width: "200",
|
|
1762
|
+
height: "200",
|
|
1763
|
+
viewBox: "0 0 1024 1024",
|
|
1764
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1765
|
+
};
|
|
1766
|
+
const _hoisted_2$u = /* @__PURE__ */ createElementVNode("path", {
|
|
1767
|
+
fill: "currentColor",
|
|
1768
|
+
d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
|
|
1769
|
+
}, null, -1);
|
|
1770
|
+
const _hoisted_3$t = [
|
|
1771
|
+
_hoisted_2$u
|
|
1772
|
+
];
|
|
1773
|
+
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1774
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$E, _hoisted_3$t);
|
|
1770
1775
|
}
|
|
1771
|
-
var
|
|
1772
|
-
|
|
1773
|
-
|
|
1776
|
+
var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$11, [["render", _sfc_render$m]]);
|
|
1777
|
+
const _sfc_main$10 = defineComponent({
|
|
1778
|
+
name: "ArrowDown"
|
|
1779
|
+
});
|
|
1780
|
+
const _hoisted_1$D = {
|
|
1781
|
+
class: "icon",
|
|
1782
|
+
width: "200",
|
|
1783
|
+
height: "200",
|
|
1784
|
+
viewBox: "0 0 1024 1024",
|
|
1785
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1786
|
+
};
|
|
1787
|
+
const _hoisted_2$t = /* @__PURE__ */ createElementVNode("path", {
|
|
1788
|
+
fill: "currentColor",
|
|
1789
|
+
d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
|
|
1790
|
+
}, null, -1);
|
|
1791
|
+
const _hoisted_3$s = [
|
|
1792
|
+
_hoisted_2$t
|
|
1793
|
+
];
|
|
1794
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1795
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$D, _hoisted_3$s);
|
|
1774
1796
|
}
|
|
1775
|
-
var
|
|
1776
|
-
/*!
|
|
1777
|
-
* clipboard.js v2.0.10
|
|
1778
|
-
* https://clipboardjs.com/
|
|
1779
|
-
*
|
|
1780
|
-
* Licensed MIT © Zeno Rocha
|
|
1781
|
-
*/
|
|
1782
|
-
(function(module2, exports2) {
|
|
1783
|
-
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
1784
|
-
module2.exports = factory();
|
|
1785
|
-
})(commonjsGlobal, function() {
|
|
1786
|
-
return function() {
|
|
1787
|
-
var __webpack_modules__ = {
|
|
1788
|
-
686: function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
|
|
1789
|
-
__webpack_require__2.d(__webpack_exports__, {
|
|
1790
|
-
"default": function() {
|
|
1791
|
-
return clipboard2;
|
|
1792
|
-
}
|
|
1793
|
-
});
|
|
1794
|
-
var tiny_emitter = __webpack_require__2(279);
|
|
1795
|
-
var tiny_emitter_default = /* @__PURE__ */ __webpack_require__2.n(tiny_emitter);
|
|
1796
|
-
var listen = __webpack_require__2(370);
|
|
1797
|
-
var listen_default = /* @__PURE__ */ __webpack_require__2.n(listen);
|
|
1798
|
-
var src_select = __webpack_require__2(817);
|
|
1799
|
-
var select_default = /* @__PURE__ */ __webpack_require__2.n(src_select);
|
|
1800
|
-
function command(type) {
|
|
1801
|
-
try {
|
|
1802
|
-
return document.execCommand(type);
|
|
1803
|
-
} catch (err) {
|
|
1804
|
-
return false;
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
var ClipboardActionCut = function ClipboardActionCut2(target) {
|
|
1808
|
-
var selectedText = select_default()(target);
|
|
1809
|
-
command("cut");
|
|
1810
|
-
return selectedText;
|
|
1811
|
-
};
|
|
1812
|
-
var actions_cut = ClipboardActionCut;
|
|
1813
|
-
function createFakeElement(value) {
|
|
1814
|
-
var isRTL = document.documentElement.getAttribute("dir") === "rtl";
|
|
1815
|
-
var fakeElement = document.createElement("textarea");
|
|
1816
|
-
fakeElement.style.fontSize = "12pt";
|
|
1817
|
-
fakeElement.style.border = "0";
|
|
1818
|
-
fakeElement.style.padding = "0";
|
|
1819
|
-
fakeElement.style.margin = "0";
|
|
1820
|
-
fakeElement.style.position = "absolute";
|
|
1821
|
-
fakeElement.style[isRTL ? "right" : "left"] = "-9999px";
|
|
1822
|
-
var yPosition = window.pageYOffset || document.documentElement.scrollTop;
|
|
1823
|
-
fakeElement.style.top = "".concat(yPosition, "px");
|
|
1824
|
-
fakeElement.setAttribute("readonly", "");
|
|
1825
|
-
fakeElement.value = value;
|
|
1826
|
-
return fakeElement;
|
|
1827
|
-
}
|
|
1828
|
-
var ClipboardActionCopy = function ClipboardActionCopy2(target) {
|
|
1829
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1830
|
-
container: document.body
|
|
1831
|
-
};
|
|
1832
|
-
var selectedText = "";
|
|
1833
|
-
if (typeof target === "string") {
|
|
1834
|
-
var fakeElement = createFakeElement(target);
|
|
1835
|
-
options.container.appendChild(fakeElement);
|
|
1836
|
-
selectedText = select_default()(fakeElement);
|
|
1837
|
-
command("copy");
|
|
1838
|
-
fakeElement.remove();
|
|
1839
|
-
} else {
|
|
1840
|
-
selectedText = select_default()(target);
|
|
1841
|
-
command("copy");
|
|
1842
|
-
}
|
|
1843
|
-
return selectedText;
|
|
1844
|
-
};
|
|
1845
|
-
var actions_copy = ClipboardActionCopy;
|
|
1846
|
-
function _typeof(obj) {
|
|
1847
|
-
"@babel/helpers - typeof";
|
|
1848
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
1849
|
-
_typeof = function _typeof2(obj2) {
|
|
1850
|
-
return typeof obj2;
|
|
1851
|
-
};
|
|
1852
|
-
} else {
|
|
1853
|
-
_typeof = function _typeof2(obj2) {
|
|
1854
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
1855
|
-
};
|
|
1856
|
-
}
|
|
1857
|
-
return _typeof(obj);
|
|
1858
|
-
}
|
|
1859
|
-
var ClipboardActionDefault = function ClipboardActionDefault2() {
|
|
1860
|
-
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1861
|
-
var _options$action = options.action, action = _options$action === void 0 ? "copy" : _options$action, container = options.container, target = options.target, text = options.text;
|
|
1862
|
-
if (action !== "copy" && action !== "cut") {
|
|
1863
|
-
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
1864
|
-
}
|
|
1865
|
-
if (target !== void 0) {
|
|
1866
|
-
if (target && _typeof(target) === "object" && target.nodeType === 1) {
|
|
1867
|
-
if (action === "copy" && target.hasAttribute("disabled")) {
|
|
1868
|
-
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
1869
|
-
}
|
|
1870
|
-
if (action === "cut" && (target.hasAttribute("readonly") || target.hasAttribute("disabled"))) {
|
|
1871
|
-
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
1872
|
-
}
|
|
1873
|
-
} else {
|
|
1874
|
-
throw new Error('Invalid "target" value, use a valid Element');
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
if (text) {
|
|
1878
|
-
return actions_copy(text, {
|
|
1879
|
-
container
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
if (target) {
|
|
1883
|
-
return action === "cut" ? actions_cut(target) : actions_copy(target, {
|
|
1884
|
-
container
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
};
|
|
1888
|
-
var actions_default = ClipboardActionDefault;
|
|
1889
|
-
function clipboard_typeof(obj) {
|
|
1890
|
-
"@babel/helpers - typeof";
|
|
1891
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
1892
|
-
clipboard_typeof = function _typeof2(obj2) {
|
|
1893
|
-
return typeof obj2;
|
|
1894
|
-
};
|
|
1895
|
-
} else {
|
|
1896
|
-
clipboard_typeof = function _typeof2(obj2) {
|
|
1897
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
1898
|
-
};
|
|
1899
|
-
}
|
|
1900
|
-
return clipboard_typeof(obj);
|
|
1901
|
-
}
|
|
1902
|
-
function _classCallCheck(instance, Constructor) {
|
|
1903
|
-
if (!(instance instanceof Constructor)) {
|
|
1904
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
function _defineProperties(target, props) {
|
|
1908
|
-
for (var i = 0; i < props.length; i++) {
|
|
1909
|
-
var descriptor = props[i];
|
|
1910
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
1911
|
-
descriptor.configurable = true;
|
|
1912
|
-
if ("value" in descriptor)
|
|
1913
|
-
descriptor.writable = true;
|
|
1914
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
1918
|
-
if (protoProps)
|
|
1919
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
1920
|
-
if (staticProps)
|
|
1921
|
-
_defineProperties(Constructor, staticProps);
|
|
1922
|
-
return Constructor;
|
|
1923
|
-
}
|
|
1924
|
-
function _inherits(subClass, superClass) {
|
|
1925
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
1926
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
1927
|
-
}
|
|
1928
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
1929
|
-
if (superClass)
|
|
1930
|
-
_setPrototypeOf(subClass, superClass);
|
|
1931
|
-
}
|
|
1932
|
-
function _setPrototypeOf(o, p) {
|
|
1933
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
|
|
1934
|
-
o2.__proto__ = p2;
|
|
1935
|
-
return o2;
|
|
1936
|
-
};
|
|
1937
|
-
return _setPrototypeOf(o, p);
|
|
1938
|
-
}
|
|
1939
|
-
function _createSuper(Derived) {
|
|
1940
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
1941
|
-
return function _createSuperInternal() {
|
|
1942
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
1943
|
-
if (hasNativeReflectConstruct) {
|
|
1944
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
1945
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
1946
|
-
} else {
|
|
1947
|
-
result = Super.apply(this, arguments);
|
|
1948
|
-
}
|
|
1949
|
-
return _possibleConstructorReturn(this, result);
|
|
1950
|
-
};
|
|
1951
|
-
}
|
|
1952
|
-
function _possibleConstructorReturn(self2, call) {
|
|
1953
|
-
if (call && (clipboard_typeof(call) === "object" || typeof call === "function")) {
|
|
1954
|
-
return call;
|
|
1955
|
-
}
|
|
1956
|
-
return _assertThisInitialized(self2);
|
|
1957
|
-
}
|
|
1958
|
-
function _assertThisInitialized(self2) {
|
|
1959
|
-
if (self2 === void 0) {
|
|
1960
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1961
|
-
}
|
|
1962
|
-
return self2;
|
|
1963
|
-
}
|
|
1964
|
-
function _isNativeReflectConstruct() {
|
|
1965
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
1966
|
-
return false;
|
|
1967
|
-
if (Reflect.construct.sham)
|
|
1968
|
-
return false;
|
|
1969
|
-
if (typeof Proxy === "function")
|
|
1970
|
-
return true;
|
|
1971
|
-
try {
|
|
1972
|
-
Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
1973
|
-
}));
|
|
1974
|
-
return true;
|
|
1975
|
-
} catch (e) {
|
|
1976
|
-
return false;
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
function _getPrototypeOf(o) {
|
|
1980
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
1981
|
-
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
1982
|
-
};
|
|
1983
|
-
return _getPrototypeOf(o);
|
|
1984
|
-
}
|
|
1985
|
-
function getAttributeValue(suffix, element) {
|
|
1986
|
-
var attribute = "data-clipboard-".concat(suffix);
|
|
1987
|
-
if (!element.hasAttribute(attribute)) {
|
|
1988
|
-
return;
|
|
1989
|
-
}
|
|
1990
|
-
return element.getAttribute(attribute);
|
|
1991
|
-
}
|
|
1992
|
-
var Clipboard = /* @__PURE__ */ function(_Emitter) {
|
|
1993
|
-
_inherits(Clipboard2, _Emitter);
|
|
1994
|
-
var _super = _createSuper(Clipboard2);
|
|
1995
|
-
function Clipboard2(trigger, options) {
|
|
1996
|
-
var _this;
|
|
1997
|
-
_classCallCheck(this, Clipboard2);
|
|
1998
|
-
_this = _super.call(this);
|
|
1999
|
-
_this.resolveOptions(options);
|
|
2000
|
-
_this.listenClick(trigger);
|
|
2001
|
-
return _this;
|
|
2002
|
-
}
|
|
2003
|
-
_createClass(Clipboard2, [{
|
|
2004
|
-
key: "resolveOptions",
|
|
2005
|
-
value: function resolveOptions() {
|
|
2006
|
-
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2007
|
-
this.action = typeof options.action === "function" ? options.action : this.defaultAction;
|
|
2008
|
-
this.target = typeof options.target === "function" ? options.target : this.defaultTarget;
|
|
2009
|
-
this.text = typeof options.text === "function" ? options.text : this.defaultText;
|
|
2010
|
-
this.container = clipboard_typeof(options.container) === "object" ? options.container : document.body;
|
|
2011
|
-
}
|
|
2012
|
-
}, {
|
|
2013
|
-
key: "listenClick",
|
|
2014
|
-
value: function listenClick(trigger) {
|
|
2015
|
-
var _this2 = this;
|
|
2016
|
-
this.listener = listen_default()(trigger, "click", function(e) {
|
|
2017
|
-
return _this2.onClick(e);
|
|
2018
|
-
});
|
|
2019
|
-
}
|
|
2020
|
-
}, {
|
|
2021
|
-
key: "onClick",
|
|
2022
|
-
value: function onClick(e) {
|
|
2023
|
-
var trigger = e.delegateTarget || e.currentTarget;
|
|
2024
|
-
var action = this.action(trigger) || "copy";
|
|
2025
|
-
var text = actions_default({
|
|
2026
|
-
action,
|
|
2027
|
-
container: this.container,
|
|
2028
|
-
target: this.target(trigger),
|
|
2029
|
-
text: this.text(trigger)
|
|
2030
|
-
});
|
|
2031
|
-
this.emit(text ? "success" : "error", {
|
|
2032
|
-
action,
|
|
2033
|
-
text,
|
|
2034
|
-
trigger,
|
|
2035
|
-
clearSelection: function clearSelection() {
|
|
2036
|
-
if (trigger) {
|
|
2037
|
-
trigger.focus();
|
|
2038
|
-
}
|
|
2039
|
-
document.activeElement.blur();
|
|
2040
|
-
window.getSelection().removeAllRanges();
|
|
2041
|
-
}
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
}, {
|
|
2045
|
-
key: "defaultAction",
|
|
2046
|
-
value: function defaultAction(trigger) {
|
|
2047
|
-
return getAttributeValue("action", trigger);
|
|
2048
|
-
}
|
|
2049
|
-
}, {
|
|
2050
|
-
key: "defaultTarget",
|
|
2051
|
-
value: function defaultTarget(trigger) {
|
|
2052
|
-
var selector = getAttributeValue("target", trigger);
|
|
2053
|
-
if (selector) {
|
|
2054
|
-
return document.querySelector(selector);
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
}, {
|
|
2058
|
-
key: "defaultText",
|
|
2059
|
-
value: function defaultText(trigger) {
|
|
2060
|
-
return getAttributeValue("text", trigger);
|
|
2061
|
-
}
|
|
2062
|
-
}, {
|
|
2063
|
-
key: "destroy",
|
|
2064
|
-
value: function destroy() {
|
|
2065
|
-
this.listener.destroy();
|
|
2066
|
-
}
|
|
2067
|
-
}], [{
|
|
2068
|
-
key: "copy",
|
|
2069
|
-
value: function copy(target) {
|
|
2070
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2071
|
-
container: document.body
|
|
2072
|
-
};
|
|
2073
|
-
return actions_copy(target, options);
|
|
2074
|
-
}
|
|
2075
|
-
}, {
|
|
2076
|
-
key: "cut",
|
|
2077
|
-
value: function cut(target) {
|
|
2078
|
-
return actions_cut(target);
|
|
2079
|
-
}
|
|
2080
|
-
}, {
|
|
2081
|
-
key: "isSupported",
|
|
2082
|
-
value: function isSupported() {
|
|
2083
|
-
var action = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"];
|
|
2084
|
-
var actions = typeof action === "string" ? [action] : action;
|
|
2085
|
-
var support = !!document.queryCommandSupported;
|
|
2086
|
-
actions.forEach(function(action2) {
|
|
2087
|
-
support = support && !!document.queryCommandSupported(action2);
|
|
2088
|
-
});
|
|
2089
|
-
return support;
|
|
2090
|
-
}
|
|
2091
|
-
}]);
|
|
2092
|
-
return Clipboard2;
|
|
2093
|
-
}(tiny_emitter_default());
|
|
2094
|
-
var clipboard2 = Clipboard;
|
|
2095
|
-
},
|
|
2096
|
-
828: function(module3) {
|
|
2097
|
-
var DOCUMENT_NODE_TYPE = 9;
|
|
2098
|
-
if (typeof Element !== "undefined" && !Element.prototype.matches) {
|
|
2099
|
-
var proto = Element.prototype;
|
|
2100
|
-
proto.matches = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;
|
|
2101
|
-
}
|
|
2102
|
-
function closest(element, selector) {
|
|
2103
|
-
while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {
|
|
2104
|
-
if (typeof element.matches === "function" && element.matches(selector)) {
|
|
2105
|
-
return element;
|
|
2106
|
-
}
|
|
2107
|
-
element = element.parentNode;
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
module3.exports = closest;
|
|
2111
|
-
},
|
|
2112
|
-
438: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
2113
|
-
var closest = __webpack_require__2(828);
|
|
2114
|
-
function _delegate(element, selector, type, callback, useCapture) {
|
|
2115
|
-
var listenerFn = listener.apply(this, arguments);
|
|
2116
|
-
element.addEventListener(type, listenerFn, useCapture);
|
|
2117
|
-
return {
|
|
2118
|
-
destroy: function() {
|
|
2119
|
-
element.removeEventListener(type, listenerFn, useCapture);
|
|
2120
|
-
}
|
|
2121
|
-
};
|
|
2122
|
-
}
|
|
2123
|
-
function delegate(elements, selector, type, callback, useCapture) {
|
|
2124
|
-
if (typeof elements.addEventListener === "function") {
|
|
2125
|
-
return _delegate.apply(null, arguments);
|
|
2126
|
-
}
|
|
2127
|
-
if (typeof type === "function") {
|
|
2128
|
-
return _delegate.bind(null, document).apply(null, arguments);
|
|
2129
|
-
}
|
|
2130
|
-
if (typeof elements === "string") {
|
|
2131
|
-
elements = document.querySelectorAll(elements);
|
|
2132
|
-
}
|
|
2133
|
-
return Array.prototype.map.call(elements, function(element) {
|
|
2134
|
-
return _delegate(element, selector, type, callback, useCapture);
|
|
2135
|
-
});
|
|
2136
|
-
}
|
|
2137
|
-
function listener(element, selector, type, callback) {
|
|
2138
|
-
return function(e) {
|
|
2139
|
-
e.delegateTarget = closest(e.target, selector);
|
|
2140
|
-
if (e.delegateTarget) {
|
|
2141
|
-
callback.call(element, e);
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
}
|
|
2145
|
-
module3.exports = delegate;
|
|
2146
|
-
},
|
|
2147
|
-
879: function(__unused_webpack_module, exports3) {
|
|
2148
|
-
exports3.node = function(value) {
|
|
2149
|
-
return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
|
|
2150
|
-
};
|
|
2151
|
-
exports3.nodeList = function(value) {
|
|
2152
|
-
var type = Object.prototype.toString.call(value);
|
|
2153
|
-
return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports3.node(value[0]));
|
|
2154
|
-
};
|
|
2155
|
-
exports3.string = function(value) {
|
|
2156
|
-
return typeof value === "string" || value instanceof String;
|
|
2157
|
-
};
|
|
2158
|
-
exports3.fn = function(value) {
|
|
2159
|
-
var type = Object.prototype.toString.call(value);
|
|
2160
|
-
return type === "[object Function]";
|
|
2161
|
-
};
|
|
2162
|
-
},
|
|
2163
|
-
370: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
2164
|
-
var is = __webpack_require__2(879);
|
|
2165
|
-
var delegate = __webpack_require__2(438);
|
|
2166
|
-
function listen(target, type, callback) {
|
|
2167
|
-
if (!target && !type && !callback) {
|
|
2168
|
-
throw new Error("Missing required arguments");
|
|
2169
|
-
}
|
|
2170
|
-
if (!is.string(type)) {
|
|
2171
|
-
throw new TypeError("Second argument must be a String");
|
|
2172
|
-
}
|
|
2173
|
-
if (!is.fn(callback)) {
|
|
2174
|
-
throw new TypeError("Third argument must be a Function");
|
|
2175
|
-
}
|
|
2176
|
-
if (is.node(target)) {
|
|
2177
|
-
return listenNode(target, type, callback);
|
|
2178
|
-
} else if (is.nodeList(target)) {
|
|
2179
|
-
return listenNodeList(target, type, callback);
|
|
2180
|
-
} else if (is.string(target)) {
|
|
2181
|
-
return listenSelector(target, type, callback);
|
|
2182
|
-
} else {
|
|
2183
|
-
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
function listenNode(node, type, callback) {
|
|
2187
|
-
node.addEventListener(type, callback);
|
|
2188
|
-
return {
|
|
2189
|
-
destroy: function() {
|
|
2190
|
-
node.removeEventListener(type, callback);
|
|
2191
|
-
}
|
|
2192
|
-
};
|
|
2193
|
-
}
|
|
2194
|
-
function listenNodeList(nodeList, type, callback) {
|
|
2195
|
-
Array.prototype.forEach.call(nodeList, function(node) {
|
|
2196
|
-
node.addEventListener(type, callback);
|
|
2197
|
-
});
|
|
2198
|
-
return {
|
|
2199
|
-
destroy: function() {
|
|
2200
|
-
Array.prototype.forEach.call(nodeList, function(node) {
|
|
2201
|
-
node.removeEventListener(type, callback);
|
|
2202
|
-
});
|
|
2203
|
-
}
|
|
2204
|
-
};
|
|
2205
|
-
}
|
|
2206
|
-
function listenSelector(selector, type, callback) {
|
|
2207
|
-
return delegate(document.body, selector, type, callback);
|
|
2208
|
-
}
|
|
2209
|
-
module3.exports = listen;
|
|
2210
|
-
},
|
|
2211
|
-
817: function(module3) {
|
|
2212
|
-
function select2(element) {
|
|
2213
|
-
var selectedText;
|
|
2214
|
-
if (element.nodeName === "SELECT") {
|
|
2215
|
-
element.focus();
|
|
2216
|
-
selectedText = element.value;
|
|
2217
|
-
} else if (element.nodeName === "INPUT" || element.nodeName === "TEXTAREA") {
|
|
2218
|
-
var isReadOnly = element.hasAttribute("readonly");
|
|
2219
|
-
if (!isReadOnly) {
|
|
2220
|
-
element.setAttribute("readonly", "");
|
|
2221
|
-
}
|
|
2222
|
-
element.select();
|
|
2223
|
-
element.setSelectionRange(0, element.value.length);
|
|
2224
|
-
if (!isReadOnly) {
|
|
2225
|
-
element.removeAttribute("readonly");
|
|
2226
|
-
}
|
|
2227
|
-
selectedText = element.value;
|
|
2228
|
-
} else {
|
|
2229
|
-
if (element.hasAttribute("contenteditable")) {
|
|
2230
|
-
element.focus();
|
|
2231
|
-
}
|
|
2232
|
-
var selection = window.getSelection();
|
|
2233
|
-
var range = document.createRange();
|
|
2234
|
-
range.selectNodeContents(element);
|
|
2235
|
-
selection.removeAllRanges();
|
|
2236
|
-
selection.addRange(range);
|
|
2237
|
-
selectedText = selection.toString();
|
|
2238
|
-
}
|
|
2239
|
-
return selectedText;
|
|
2240
|
-
}
|
|
2241
|
-
module3.exports = select2;
|
|
2242
|
-
},
|
|
2243
|
-
279: function(module3) {
|
|
2244
|
-
function E() {
|
|
2245
|
-
}
|
|
2246
|
-
E.prototype = {
|
|
2247
|
-
on: function(name2, callback, ctx) {
|
|
2248
|
-
var e = this.e || (this.e = {});
|
|
2249
|
-
(e[name2] || (e[name2] = [])).push({
|
|
2250
|
-
fn: callback,
|
|
2251
|
-
ctx
|
|
2252
|
-
});
|
|
2253
|
-
return this;
|
|
2254
|
-
},
|
|
2255
|
-
once: function(name2, callback, ctx) {
|
|
2256
|
-
var self2 = this;
|
|
2257
|
-
function listener() {
|
|
2258
|
-
self2.off(name2, listener);
|
|
2259
|
-
callback.apply(ctx, arguments);
|
|
2260
|
-
}
|
|
2261
|
-
listener._ = callback;
|
|
2262
|
-
return this.on(name2, listener, ctx);
|
|
2263
|
-
},
|
|
2264
|
-
emit: function(name2) {
|
|
2265
|
-
var data = [].slice.call(arguments, 1);
|
|
2266
|
-
var evtArr = ((this.e || (this.e = {}))[name2] || []).slice();
|
|
2267
|
-
var i = 0;
|
|
2268
|
-
var len = evtArr.length;
|
|
2269
|
-
for (i; i < len; i++) {
|
|
2270
|
-
evtArr[i].fn.apply(evtArr[i].ctx, data);
|
|
2271
|
-
}
|
|
2272
|
-
return this;
|
|
2273
|
-
},
|
|
2274
|
-
off: function(name2, callback) {
|
|
2275
|
-
var e = this.e || (this.e = {});
|
|
2276
|
-
var evts = e[name2];
|
|
2277
|
-
var liveEvents = [];
|
|
2278
|
-
if (evts && callback) {
|
|
2279
|
-
for (var i = 0, len = evts.length; i < len; i++) {
|
|
2280
|
-
if (evts[i].fn !== callback && evts[i].fn._ !== callback)
|
|
2281
|
-
liveEvents.push(evts[i]);
|
|
2282
|
-
}
|
|
2283
|
-
}
|
|
2284
|
-
liveEvents.length ? e[name2] = liveEvents : delete e[name2];
|
|
2285
|
-
return this;
|
|
2286
|
-
}
|
|
2287
|
-
};
|
|
2288
|
-
module3.exports = E;
|
|
2289
|
-
module3.exports.TinyEmitter = E;
|
|
2290
|
-
}
|
|
2291
|
-
};
|
|
2292
|
-
var __webpack_module_cache__ = {};
|
|
2293
|
-
function __webpack_require__(moduleId) {
|
|
2294
|
-
if (__webpack_module_cache__[moduleId]) {
|
|
2295
|
-
return __webpack_module_cache__[moduleId].exports;
|
|
2296
|
-
}
|
|
2297
|
-
var module3 = __webpack_module_cache__[moduleId] = {
|
|
2298
|
-
exports: {}
|
|
2299
|
-
};
|
|
2300
|
-
__webpack_modules__[moduleId](module3, module3.exports, __webpack_require__);
|
|
2301
|
-
return module3.exports;
|
|
2302
|
-
}
|
|
2303
|
-
!function() {
|
|
2304
|
-
__webpack_require__.n = function(module3) {
|
|
2305
|
-
var getter = module3 && module3.__esModule ? function() {
|
|
2306
|
-
return module3["default"];
|
|
2307
|
-
} : function() {
|
|
2308
|
-
return module3;
|
|
2309
|
-
};
|
|
2310
|
-
__webpack_require__.d(getter, { a: getter });
|
|
2311
|
-
return getter;
|
|
2312
|
-
};
|
|
2313
|
-
}();
|
|
2314
|
-
!function() {
|
|
2315
|
-
__webpack_require__.d = function(exports3, definition) {
|
|
2316
|
-
for (var key in definition) {
|
|
2317
|
-
if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports3, key)) {
|
|
2318
|
-
Object.defineProperty(exports3, key, { enumerable: true, get: definition[key] });
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
};
|
|
2322
|
-
}();
|
|
2323
|
-
!function() {
|
|
2324
|
-
__webpack_require__.o = function(obj, prop) {
|
|
2325
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
2326
|
-
};
|
|
2327
|
-
}();
|
|
2328
|
-
return __webpack_require__(686);
|
|
2329
|
-
}().default;
|
|
2330
|
-
});
|
|
2331
|
-
})(clipboard);
|
|
2332
|
-
var ClipboardJS = /* @__PURE__ */ getDefaultExportFromCjs(clipboard.exports);
|
|
2333
|
-
var _export_sfc$1 = (sfc, props) => {
|
|
2334
|
-
const target = sfc.__vccOpts || sfc;
|
|
2335
|
-
for (const [key, val] of props) {
|
|
2336
|
-
target[key] = val;
|
|
2337
|
-
}
|
|
2338
|
-
return target;
|
|
2339
|
-
};
|
|
2340
|
-
const _sfc_main$10 = defineComponent({
|
|
2341
|
-
name: "ArrowDownBold"
|
|
2342
|
-
});
|
|
2343
|
-
const _hoisted_1$D = {
|
|
2344
|
-
class: "icon",
|
|
2345
|
-
width: "200",
|
|
2346
|
-
height: "200",
|
|
2347
|
-
viewBox: "0 0 1024 1024",
|
|
2348
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2349
|
-
};
|
|
2350
|
-
const _hoisted_2$u = /* @__PURE__ */ createElementVNode("path", {
|
|
2351
|
-
fill: "currentColor",
|
|
2352
|
-
d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
|
|
2353
|
-
}, null, -1);
|
|
2354
|
-
const _hoisted_3$t = [
|
|
2355
|
-
_hoisted_2$u
|
|
2356
|
-
];
|
|
2357
|
-
function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2358
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$D, _hoisted_3$t);
|
|
2359
|
-
}
|
|
2360
|
-
var arrowDownBold = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$m]]);
|
|
1797
|
+
var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$l]]);
|
|
2361
1798
|
const _sfc_main$$ = defineComponent({
|
|
2362
|
-
name: "ArrowDown"
|
|
2363
|
-
});
|
|
2364
|
-
const _hoisted_1$C = {
|
|
2365
|
-
class: "icon",
|
|
2366
|
-
width: "200",
|
|
2367
|
-
height: "200",
|
|
2368
|
-
viewBox: "0 0 1024 1024",
|
|
2369
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2370
|
-
};
|
|
2371
|
-
const _hoisted_2$t = /* @__PURE__ */ createElementVNode("path", {
|
|
2372
|
-
fill: "currentColor",
|
|
2373
|
-
d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
|
|
2374
|
-
}, null, -1);
|
|
2375
|
-
const _hoisted_3$s = [
|
|
2376
|
-
_hoisted_2$t
|
|
2377
|
-
];
|
|
2378
|
-
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2379
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$s);
|
|
2380
|
-
}
|
|
2381
|
-
var arrowDown = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["render", _sfc_render$l]]);
|
|
2382
|
-
const _sfc_main$_ = defineComponent({
|
|
2383
1799
|
name: "CaretBottom"
|
|
2384
1800
|
});
|
|
2385
|
-
const _hoisted_1$
|
|
1801
|
+
const _hoisted_1$C = {
|
|
2386
1802
|
class: "icon",
|
|
2387
1803
|
width: "200",
|
|
2388
1804
|
height: "200",
|
|
@@ -2397,13 +1813,13 @@ const _hoisted_3$r = [
|
|
|
2397
1813
|
_hoisted_2$s
|
|
2398
1814
|
];
|
|
2399
1815
|
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2400
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1816
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$r);
|
|
2401
1817
|
}
|
|
2402
|
-
var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
2403
|
-
const _sfc_main$
|
|
1818
|
+
var caretBottom = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["render", _sfc_render$k]]);
|
|
1819
|
+
const _sfc_main$_ = defineComponent({
|
|
2404
1820
|
name: "CaretRight"
|
|
2405
1821
|
});
|
|
2406
|
-
const _hoisted_1$
|
|
1822
|
+
const _hoisted_1$B = {
|
|
2407
1823
|
class: "icon",
|
|
2408
1824
|
width: "200",
|
|
2409
1825
|
height: "200",
|
|
@@ -2418,13 +1834,13 @@ const _hoisted_3$q = [
|
|
|
2418
1834
|
_hoisted_2$r
|
|
2419
1835
|
];
|
|
2420
1836
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2421
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1837
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$B, _hoisted_3$q);
|
|
2422
1838
|
}
|
|
2423
|
-
var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2424
|
-
const _sfc_main$
|
|
1839
|
+
var caretRight = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["render", _sfc_render$j]]);
|
|
1840
|
+
const _sfc_main$Z = defineComponent({
|
|
2425
1841
|
name: "CaretTop"
|
|
2426
1842
|
});
|
|
2427
|
-
const _hoisted_1$
|
|
1843
|
+
const _hoisted_1$A = {
|
|
2428
1844
|
class: "icon",
|
|
2429
1845
|
width: "200",
|
|
2430
1846
|
height: "200",
|
|
@@ -2439,13 +1855,13 @@ const _hoisted_3$p = [
|
|
|
2439
1855
|
_hoisted_2$q
|
|
2440
1856
|
];
|
|
2441
1857
|
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2442
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1858
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$A, _hoisted_3$p);
|
|
2443
1859
|
}
|
|
2444
|
-
var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2445
|
-
const _sfc_main$
|
|
1860
|
+
var caretTop = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["render", _sfc_render$i]]);
|
|
1861
|
+
const _sfc_main$Y = defineComponent({
|
|
2446
1862
|
name: "CirclePlusFilled"
|
|
2447
1863
|
});
|
|
2448
|
-
const _hoisted_1$
|
|
1864
|
+
const _hoisted_1$z = {
|
|
2449
1865
|
class: "icon",
|
|
2450
1866
|
width: "200",
|
|
2451
1867
|
height: "200",
|
|
@@ -2460,13 +1876,13 @@ const _hoisted_3$o = [
|
|
|
2460
1876
|
_hoisted_2$p
|
|
2461
1877
|
];
|
|
2462
1878
|
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2463
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1879
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$z, _hoisted_3$o);
|
|
2464
1880
|
}
|
|
2465
|
-
var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2466
|
-
const _sfc_main$
|
|
1881
|
+
var circlePlusFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["render", _sfc_render$h]]);
|
|
1882
|
+
const _sfc_main$X = defineComponent({
|
|
2467
1883
|
name: "CirclePlus"
|
|
2468
1884
|
});
|
|
2469
|
-
const _hoisted_1$
|
|
1885
|
+
const _hoisted_1$y = {
|
|
2470
1886
|
class: "icon",
|
|
2471
1887
|
width: "200",
|
|
2472
1888
|
height: "200",
|
|
@@ -2491,13 +1907,13 @@ const _hoisted_5$5 = [
|
|
|
2491
1907
|
_hoisted_4$8
|
|
2492
1908
|
];
|
|
2493
1909
|
function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2494
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1910
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$y, _hoisted_5$5);
|
|
2495
1911
|
}
|
|
2496
|
-
var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2497
|
-
const _sfc_main$
|
|
1912
|
+
var circlePlus = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render", _sfc_render$g]]);
|
|
1913
|
+
const _sfc_main$W = defineComponent({
|
|
2498
1914
|
name: "Download"
|
|
2499
1915
|
});
|
|
2500
|
-
const _hoisted_1$
|
|
1916
|
+
const _hoisted_1$x = {
|
|
2501
1917
|
class: "icon",
|
|
2502
1918
|
width: "200",
|
|
2503
1919
|
height: "200",
|
|
@@ -2512,13 +1928,13 @@ const _hoisted_3$m = [
|
|
|
2512
1928
|
_hoisted_2$n
|
|
2513
1929
|
];
|
|
2514
1930
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2515
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1931
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$x, _hoisted_3$m);
|
|
2516
1932
|
}
|
|
2517
|
-
var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2518
|
-
const _sfc_main$
|
|
1933
|
+
var download = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$f]]);
|
|
1934
|
+
const _sfc_main$V = defineComponent({
|
|
2519
1935
|
name: "Edit"
|
|
2520
1936
|
});
|
|
2521
|
-
const _hoisted_1$
|
|
1937
|
+
const _hoisted_1$w = {
|
|
2522
1938
|
class: "icon",
|
|
2523
1939
|
width: "200",
|
|
2524
1940
|
height: "200",
|
|
@@ -2538,13 +1954,13 @@ const _hoisted_4$7 = [
|
|
|
2538
1954
|
_hoisted_3$l
|
|
2539
1955
|
];
|
|
2540
1956
|
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2541
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1957
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$w, _hoisted_4$7);
|
|
2542
1958
|
}
|
|
2543
|
-
var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2544
|
-
const _sfc_main$
|
|
1959
|
+
var edit = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$e]]);
|
|
1960
|
+
const _sfc_main$U = defineComponent({
|
|
2545
1961
|
name: "Filter"
|
|
2546
1962
|
});
|
|
2547
|
-
const _hoisted_1$
|
|
1963
|
+
const _hoisted_1$v = {
|
|
2548
1964
|
class: "icon",
|
|
2549
1965
|
width: "200",
|
|
2550
1966
|
height: "200",
|
|
@@ -2559,13 +1975,13 @@ const _hoisted_3$k = [
|
|
|
2559
1975
|
_hoisted_2$l
|
|
2560
1976
|
];
|
|
2561
1977
|
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2562
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1978
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$v, _hoisted_3$k);
|
|
2563
1979
|
}
|
|
2564
|
-
var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2565
|
-
const _sfc_main$
|
|
1980
|
+
var filter = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$d]]);
|
|
1981
|
+
const _sfc_main$T = defineComponent({
|
|
2566
1982
|
name: "FullScreen"
|
|
2567
1983
|
});
|
|
2568
|
-
const _hoisted_1$
|
|
1984
|
+
const _hoisted_1$u = {
|
|
2569
1985
|
class: "icon",
|
|
2570
1986
|
width: "200",
|
|
2571
1987
|
height: "200",
|
|
@@ -2580,13 +1996,13 @@ const _hoisted_3$j = [
|
|
|
2580
1996
|
_hoisted_2$k
|
|
2581
1997
|
];
|
|
2582
1998
|
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2583
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1999
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$j);
|
|
2584
2000
|
}
|
|
2585
|
-
var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2586
|
-
const _sfc_main$
|
|
2001
|
+
var fullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$c]]);
|
|
2002
|
+
const _sfc_main$S = defineComponent({
|
|
2587
2003
|
name: "Grid"
|
|
2588
2004
|
});
|
|
2589
|
-
const _hoisted_1$
|
|
2005
|
+
const _hoisted_1$t = {
|
|
2590
2006
|
class: "icon",
|
|
2591
2007
|
width: "200",
|
|
2592
2008
|
height: "200",
|
|
@@ -2601,13 +2017,13 @@ const _hoisted_3$i = [
|
|
|
2601
2017
|
_hoisted_2$j
|
|
2602
2018
|
];
|
|
2603
2019
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2604
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2020
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, _hoisted_3$i);
|
|
2605
2021
|
}
|
|
2606
|
-
var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2607
|
-
const _sfc_main$
|
|
2022
|
+
var grid = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$b]]);
|
|
2023
|
+
const _sfc_main$R = defineComponent({
|
|
2608
2024
|
name: "InfoFilled"
|
|
2609
2025
|
});
|
|
2610
|
-
const _hoisted_1$
|
|
2026
|
+
const _hoisted_1$s = {
|
|
2611
2027
|
class: "icon",
|
|
2612
2028
|
width: "200",
|
|
2613
2029
|
height: "200",
|
|
@@ -2622,13 +2038,13 @@ const _hoisted_3$h = [
|
|
|
2622
2038
|
_hoisted_2$i
|
|
2623
2039
|
];
|
|
2624
2040
|
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2625
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2041
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_3$h);
|
|
2626
2042
|
}
|
|
2627
|
-
var infoFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2628
|
-
const _sfc_main$
|
|
2043
|
+
var infoFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$a]]);
|
|
2044
|
+
const _sfc_main$Q = defineComponent({
|
|
2629
2045
|
name: "Loading"
|
|
2630
2046
|
});
|
|
2631
|
-
const _hoisted_1$
|
|
2047
|
+
const _hoisted_1$r = {
|
|
2632
2048
|
class: "icon",
|
|
2633
2049
|
width: "200",
|
|
2634
2050
|
height: "200",
|
|
@@ -2643,13 +2059,13 @@ const _hoisted_3$g = [
|
|
|
2643
2059
|
_hoisted_2$h
|
|
2644
2060
|
];
|
|
2645
2061
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2646
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2062
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$r, _hoisted_3$g);
|
|
2647
2063
|
}
|
|
2648
|
-
var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2649
|
-
const _sfc_main$
|
|
2064
|
+
var loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$9]]);
|
|
2065
|
+
const _sfc_main$P = defineComponent({
|
|
2650
2066
|
name: "Menu"
|
|
2651
2067
|
});
|
|
2652
|
-
const _hoisted_1$
|
|
2068
|
+
const _hoisted_1$q = {
|
|
2653
2069
|
class: "icon",
|
|
2654
2070
|
width: "200",
|
|
2655
2071
|
height: "200",
|
|
@@ -2664,13 +2080,13 @@ const _hoisted_3$f = [
|
|
|
2664
2080
|
_hoisted_2$g
|
|
2665
2081
|
];
|
|
2666
2082
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2667
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2083
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$q, _hoisted_3$f);
|
|
2668
2084
|
}
|
|
2669
|
-
var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2670
|
-
const _sfc_main$
|
|
2085
|
+
var menu = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$8]]);
|
|
2086
|
+
const _sfc_main$O = defineComponent({
|
|
2671
2087
|
name: "Plus"
|
|
2672
2088
|
});
|
|
2673
|
-
const _hoisted_1$
|
|
2089
|
+
const _hoisted_1$p = {
|
|
2674
2090
|
class: "icon",
|
|
2675
2091
|
width: "200",
|
|
2676
2092
|
height: "200",
|
|
@@ -2685,13 +2101,13 @@ const _hoisted_3$e = [
|
|
|
2685
2101
|
_hoisted_2$f
|
|
2686
2102
|
];
|
|
2687
2103
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2688
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2104
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$p, _hoisted_3$e);
|
|
2689
2105
|
}
|
|
2690
|
-
var plus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2691
|
-
const _sfc_main$
|
|
2106
|
+
var plus = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$7]]);
|
|
2107
|
+
const _sfc_main$N = defineComponent({
|
|
2692
2108
|
name: "QuestionFilled"
|
|
2693
2109
|
});
|
|
2694
|
-
const _hoisted_1$
|
|
2110
|
+
const _hoisted_1$o = {
|
|
2695
2111
|
class: "icon",
|
|
2696
2112
|
width: "200",
|
|
2697
2113
|
height: "200",
|
|
@@ -2706,13 +2122,13 @@ const _hoisted_3$d = [
|
|
|
2706
2122
|
_hoisted_2$e
|
|
2707
2123
|
];
|
|
2708
2124
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2709
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2125
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$d);
|
|
2710
2126
|
}
|
|
2711
|
-
var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2712
|
-
const _sfc_main$
|
|
2127
|
+
var questionFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$6]]);
|
|
2128
|
+
const _sfc_main$M = defineComponent({
|
|
2713
2129
|
name: "RefreshLeft"
|
|
2714
2130
|
});
|
|
2715
|
-
const _hoisted_1$
|
|
2131
|
+
const _hoisted_1$n = {
|
|
2716
2132
|
class: "icon",
|
|
2717
2133
|
width: "200",
|
|
2718
2134
|
height: "200",
|
|
@@ -2727,13 +2143,13 @@ const _hoisted_3$c = [
|
|
|
2727
2143
|
_hoisted_2$d
|
|
2728
2144
|
];
|
|
2729
2145
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2730
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2146
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$n, _hoisted_3$c);
|
|
2731
2147
|
}
|
|
2732
|
-
var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2733
|
-
const _sfc_main$
|
|
2148
|
+
var refreshLeft = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$5]]);
|
|
2149
|
+
const _sfc_main$L = defineComponent({
|
|
2734
2150
|
name: "RemoveFilled"
|
|
2735
2151
|
});
|
|
2736
|
-
const _hoisted_1$
|
|
2152
|
+
const _hoisted_1$m = {
|
|
2737
2153
|
class: "icon",
|
|
2738
2154
|
width: "200",
|
|
2739
2155
|
height: "200",
|
|
@@ -2748,13 +2164,13 @@ const _hoisted_3$b = [
|
|
|
2748
2164
|
_hoisted_2$c
|
|
2749
2165
|
];
|
|
2750
2166
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2751
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2167
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$m, _hoisted_3$b);
|
|
2752
2168
|
}
|
|
2753
|
-
var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2754
|
-
const _sfc_main$
|
|
2169
|
+
var removeFilled = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$4]]);
|
|
2170
|
+
const _sfc_main$K = defineComponent({
|
|
2755
2171
|
name: "Remove"
|
|
2756
2172
|
});
|
|
2757
|
-
const _hoisted_1$
|
|
2173
|
+
const _hoisted_1$l = {
|
|
2758
2174
|
class: "icon",
|
|
2759
2175
|
width: "200",
|
|
2760
2176
|
height: "200",
|
|
@@ -2774,13 +2190,13 @@ const _hoisted_4$6 = [
|
|
|
2774
2190
|
_hoisted_3$a
|
|
2775
2191
|
];
|
|
2776
2192
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2777
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2193
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$l, _hoisted_4$6);
|
|
2778
2194
|
}
|
|
2779
|
-
var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2780
|
-
const _sfc_main$
|
|
2195
|
+
var remove = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$3]]);
|
|
2196
|
+
const _sfc_main$J = defineComponent({
|
|
2781
2197
|
name: "Select"
|
|
2782
2198
|
});
|
|
2783
|
-
const _hoisted_1$
|
|
2199
|
+
const _hoisted_1$k = {
|
|
2784
2200
|
class: "icon",
|
|
2785
2201
|
width: "200",
|
|
2786
2202
|
height: "200",
|
|
@@ -2795,13 +2211,13 @@ const _hoisted_3$9 = [
|
|
|
2795
2211
|
_hoisted_2$a
|
|
2796
2212
|
];
|
|
2797
2213
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2798
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2214
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$k, _hoisted_3$9);
|
|
2799
2215
|
}
|
|
2800
|
-
var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2801
|
-
const _sfc_main$
|
|
2216
|
+
var select = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$2]]);
|
|
2217
|
+
const _sfc_main$I = defineComponent({
|
|
2802
2218
|
name: "Sort"
|
|
2803
2219
|
});
|
|
2804
|
-
const _hoisted_1$
|
|
2220
|
+
const _hoisted_1$j = {
|
|
2805
2221
|
class: "icon",
|
|
2806
2222
|
width: "200",
|
|
2807
2223
|
height: "200",
|
|
@@ -2816,13 +2232,13 @@ const _hoisted_3$8 = [
|
|
|
2816
2232
|
_hoisted_2$9
|
|
2817
2233
|
];
|
|
2818
2234
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2819
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2235
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$j, _hoisted_3$8);
|
|
2820
2236
|
}
|
|
2821
|
-
var sort = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2822
|
-
const _sfc_main$
|
|
2237
|
+
var sort = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$1]]);
|
|
2238
|
+
const _sfc_main$H = defineComponent({
|
|
2823
2239
|
name: "Tools"
|
|
2824
2240
|
});
|
|
2825
|
-
const _hoisted_1$
|
|
2241
|
+
const _hoisted_1$i = {
|
|
2826
2242
|
class: "icon",
|
|
2827
2243
|
width: "200",
|
|
2828
2244
|
height: "200",
|
|
@@ -2837,14 +2253,14 @@ const _hoisted_3$7 = [
|
|
|
2837
2253
|
_hoisted_2$8
|
|
2838
2254
|
];
|
|
2839
2255
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2840
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
2256
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$i, _hoisted_3$7);
|
|
2841
2257
|
}
|
|
2842
|
-
var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2258
|
+
var tools = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render]]);
|
|
2843
2259
|
const formManagerProvideKey = Symbol("form-manager");
|
|
2844
2260
|
const registerPropertyProvideKey = Symbol("registerProperty");
|
|
2845
2261
|
const isOpenAuthButtonProvideKey = Symbol("isOpenAuthButton");
|
|
2846
2262
|
const authButtonsProvideKey = Symbol("authButtons");
|
|
2847
|
-
const _sfc_main$
|
|
2263
|
+
const _sfc_main$G = {
|
|
2848
2264
|
name: "ButtonItemRender",
|
|
2849
2265
|
props: {
|
|
2850
2266
|
text: {
|
|
@@ -2868,16 +2284,663 @@ const _sfc_main$F = {
|
|
|
2868
2284
|
}
|
|
2869
2285
|
}
|
|
2870
2286
|
};
|
|
2871
|
-
|
|
2287
|
+
class EventChain {
|
|
2288
|
+
constructor() {
|
|
2289
|
+
__publicField(this, "chains", []);
|
|
2290
|
+
}
|
|
2291
|
+
setChain(chainItem) {
|
|
2292
|
+
this.chains.push(chainItem);
|
|
2293
|
+
return this;
|
|
2294
|
+
}
|
|
2295
|
+
passRequest(...rest) {
|
|
2296
|
+
const chains = this.chains;
|
|
2297
|
+
const len = chains.length;
|
|
2298
|
+
let result = false;
|
|
2299
|
+
for (let index2 = 0; index2 < len; index2++) {
|
|
2300
|
+
const chain = chains[index2];
|
|
2301
|
+
result = chain.apply(this, rest);
|
|
2302
|
+
if (result !== false) {
|
|
2303
|
+
break;
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
return result;
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2310
|
+
function getDefaultExportFromCjs(x) {
|
|
2311
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2312
|
+
}
|
|
2313
|
+
var clipboard = { exports: {} };
|
|
2314
|
+
/*!
|
|
2315
|
+
* clipboard.js v2.0.10
|
|
2316
|
+
* https://clipboardjs.com/
|
|
2317
|
+
*
|
|
2318
|
+
* Licensed MIT © Zeno Rocha
|
|
2319
|
+
*/
|
|
2320
|
+
(function(module2, exports2) {
|
|
2321
|
+
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
2322
|
+
module2.exports = factory();
|
|
2323
|
+
})(commonjsGlobal, function() {
|
|
2324
|
+
return function() {
|
|
2325
|
+
var __webpack_modules__ = {
|
|
2326
|
+
686: function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
|
|
2327
|
+
__webpack_require__2.d(__webpack_exports__, {
|
|
2328
|
+
"default": function() {
|
|
2329
|
+
return clipboard2;
|
|
2330
|
+
}
|
|
2331
|
+
});
|
|
2332
|
+
var tiny_emitter = __webpack_require__2(279);
|
|
2333
|
+
var tiny_emitter_default = /* @__PURE__ */ __webpack_require__2.n(tiny_emitter);
|
|
2334
|
+
var listen = __webpack_require__2(370);
|
|
2335
|
+
var listen_default = /* @__PURE__ */ __webpack_require__2.n(listen);
|
|
2336
|
+
var src_select = __webpack_require__2(817);
|
|
2337
|
+
var select_default = /* @__PURE__ */ __webpack_require__2.n(src_select);
|
|
2338
|
+
function command(type) {
|
|
2339
|
+
try {
|
|
2340
|
+
return document.execCommand(type);
|
|
2341
|
+
} catch (err) {
|
|
2342
|
+
return false;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
var ClipboardActionCut = function ClipboardActionCut2(target) {
|
|
2346
|
+
var selectedText = select_default()(target);
|
|
2347
|
+
command("cut");
|
|
2348
|
+
return selectedText;
|
|
2349
|
+
};
|
|
2350
|
+
var actions_cut = ClipboardActionCut;
|
|
2351
|
+
function createFakeElement(value) {
|
|
2352
|
+
var isRTL = document.documentElement.getAttribute("dir") === "rtl";
|
|
2353
|
+
var fakeElement = document.createElement("textarea");
|
|
2354
|
+
fakeElement.style.fontSize = "12pt";
|
|
2355
|
+
fakeElement.style.border = "0";
|
|
2356
|
+
fakeElement.style.padding = "0";
|
|
2357
|
+
fakeElement.style.margin = "0";
|
|
2358
|
+
fakeElement.style.position = "absolute";
|
|
2359
|
+
fakeElement.style[isRTL ? "right" : "left"] = "-9999px";
|
|
2360
|
+
var yPosition = window.pageYOffset || document.documentElement.scrollTop;
|
|
2361
|
+
fakeElement.style.top = "".concat(yPosition, "px");
|
|
2362
|
+
fakeElement.setAttribute("readonly", "");
|
|
2363
|
+
fakeElement.value = value;
|
|
2364
|
+
return fakeElement;
|
|
2365
|
+
}
|
|
2366
|
+
var ClipboardActionCopy = function ClipboardActionCopy2(target) {
|
|
2367
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2368
|
+
container: document.body
|
|
2369
|
+
};
|
|
2370
|
+
var selectedText = "";
|
|
2371
|
+
if (typeof target === "string") {
|
|
2372
|
+
var fakeElement = createFakeElement(target);
|
|
2373
|
+
options.container.appendChild(fakeElement);
|
|
2374
|
+
selectedText = select_default()(fakeElement);
|
|
2375
|
+
command("copy");
|
|
2376
|
+
fakeElement.remove();
|
|
2377
|
+
} else {
|
|
2378
|
+
selectedText = select_default()(target);
|
|
2379
|
+
command("copy");
|
|
2380
|
+
}
|
|
2381
|
+
return selectedText;
|
|
2382
|
+
};
|
|
2383
|
+
var actions_copy = ClipboardActionCopy;
|
|
2384
|
+
function _typeof(obj) {
|
|
2385
|
+
"@babel/helpers - typeof";
|
|
2386
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2387
|
+
_typeof = function _typeof2(obj2) {
|
|
2388
|
+
return typeof obj2;
|
|
2389
|
+
};
|
|
2390
|
+
} else {
|
|
2391
|
+
_typeof = function _typeof2(obj2) {
|
|
2392
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
2393
|
+
};
|
|
2394
|
+
}
|
|
2395
|
+
return _typeof(obj);
|
|
2396
|
+
}
|
|
2397
|
+
var ClipboardActionDefault = function ClipboardActionDefault2() {
|
|
2398
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2399
|
+
var _options$action = options.action, action = _options$action === void 0 ? "copy" : _options$action, container = options.container, target = options.target, text = options.text;
|
|
2400
|
+
if (action !== "copy" && action !== "cut") {
|
|
2401
|
+
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
2402
|
+
}
|
|
2403
|
+
if (target !== void 0) {
|
|
2404
|
+
if (target && _typeof(target) === "object" && target.nodeType === 1) {
|
|
2405
|
+
if (action === "copy" && target.hasAttribute("disabled")) {
|
|
2406
|
+
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
2407
|
+
}
|
|
2408
|
+
if (action === "cut" && (target.hasAttribute("readonly") || target.hasAttribute("disabled"))) {
|
|
2409
|
+
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
2410
|
+
}
|
|
2411
|
+
} else {
|
|
2412
|
+
throw new Error('Invalid "target" value, use a valid Element');
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
if (text) {
|
|
2416
|
+
return actions_copy(text, {
|
|
2417
|
+
container
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2420
|
+
if (target) {
|
|
2421
|
+
return action === "cut" ? actions_cut(target) : actions_copy(target, {
|
|
2422
|
+
container
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
};
|
|
2426
|
+
var actions_default = ClipboardActionDefault;
|
|
2427
|
+
function clipboard_typeof(obj) {
|
|
2428
|
+
"@babel/helpers - typeof";
|
|
2429
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2430
|
+
clipboard_typeof = function _typeof2(obj2) {
|
|
2431
|
+
return typeof obj2;
|
|
2432
|
+
};
|
|
2433
|
+
} else {
|
|
2434
|
+
clipboard_typeof = function _typeof2(obj2) {
|
|
2435
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
2436
|
+
};
|
|
2437
|
+
}
|
|
2438
|
+
return clipboard_typeof(obj);
|
|
2439
|
+
}
|
|
2440
|
+
function _classCallCheck(instance, Constructor) {
|
|
2441
|
+
if (!(instance instanceof Constructor)) {
|
|
2442
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
function _defineProperties(target, props) {
|
|
2446
|
+
for (var i = 0; i < props.length; i++) {
|
|
2447
|
+
var descriptor = props[i];
|
|
2448
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2449
|
+
descriptor.configurable = true;
|
|
2450
|
+
if ("value" in descriptor)
|
|
2451
|
+
descriptor.writable = true;
|
|
2452
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
2456
|
+
if (protoProps)
|
|
2457
|
+
_defineProperties(Constructor.prototype, protoProps);
|
|
2458
|
+
if (staticProps)
|
|
2459
|
+
_defineProperties(Constructor, staticProps);
|
|
2460
|
+
return Constructor;
|
|
2461
|
+
}
|
|
2462
|
+
function _inherits(subClass, superClass) {
|
|
2463
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
2464
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
2465
|
+
}
|
|
2466
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
2467
|
+
if (superClass)
|
|
2468
|
+
_setPrototypeOf(subClass, superClass);
|
|
2469
|
+
}
|
|
2470
|
+
function _setPrototypeOf(o, p) {
|
|
2471
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
|
|
2472
|
+
o2.__proto__ = p2;
|
|
2473
|
+
return o2;
|
|
2474
|
+
};
|
|
2475
|
+
return _setPrototypeOf(o, p);
|
|
2476
|
+
}
|
|
2477
|
+
function _createSuper(Derived) {
|
|
2478
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
2479
|
+
return function _createSuperInternal() {
|
|
2480
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
2481
|
+
if (hasNativeReflectConstruct) {
|
|
2482
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
2483
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
2484
|
+
} else {
|
|
2485
|
+
result = Super.apply(this, arguments);
|
|
2486
|
+
}
|
|
2487
|
+
return _possibleConstructorReturn(this, result);
|
|
2488
|
+
};
|
|
2489
|
+
}
|
|
2490
|
+
function _possibleConstructorReturn(self2, call) {
|
|
2491
|
+
if (call && (clipboard_typeof(call) === "object" || typeof call === "function")) {
|
|
2492
|
+
return call;
|
|
2493
|
+
}
|
|
2494
|
+
return _assertThisInitialized(self2);
|
|
2495
|
+
}
|
|
2496
|
+
function _assertThisInitialized(self2) {
|
|
2497
|
+
if (self2 === void 0) {
|
|
2498
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2499
|
+
}
|
|
2500
|
+
return self2;
|
|
2501
|
+
}
|
|
2502
|
+
function _isNativeReflectConstruct() {
|
|
2503
|
+
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
2504
|
+
return false;
|
|
2505
|
+
if (Reflect.construct.sham)
|
|
2506
|
+
return false;
|
|
2507
|
+
if (typeof Proxy === "function")
|
|
2508
|
+
return true;
|
|
2509
|
+
try {
|
|
2510
|
+
Date.prototype.toString.call(Reflect.construct(Date, [], function() {
|
|
2511
|
+
}));
|
|
2512
|
+
return true;
|
|
2513
|
+
} catch (e) {
|
|
2514
|
+
return false;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
function _getPrototypeOf(o) {
|
|
2518
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
2519
|
+
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
2520
|
+
};
|
|
2521
|
+
return _getPrototypeOf(o);
|
|
2522
|
+
}
|
|
2523
|
+
function getAttributeValue(suffix, element) {
|
|
2524
|
+
var attribute = "data-clipboard-".concat(suffix);
|
|
2525
|
+
if (!element.hasAttribute(attribute)) {
|
|
2526
|
+
return;
|
|
2527
|
+
}
|
|
2528
|
+
return element.getAttribute(attribute);
|
|
2529
|
+
}
|
|
2530
|
+
var Clipboard = /* @__PURE__ */ function(_Emitter) {
|
|
2531
|
+
_inherits(Clipboard2, _Emitter);
|
|
2532
|
+
var _super = _createSuper(Clipboard2);
|
|
2533
|
+
function Clipboard2(trigger, options) {
|
|
2534
|
+
var _this;
|
|
2535
|
+
_classCallCheck(this, Clipboard2);
|
|
2536
|
+
_this = _super.call(this);
|
|
2537
|
+
_this.resolveOptions(options);
|
|
2538
|
+
_this.listenClick(trigger);
|
|
2539
|
+
return _this;
|
|
2540
|
+
}
|
|
2541
|
+
_createClass(Clipboard2, [{
|
|
2542
|
+
key: "resolveOptions",
|
|
2543
|
+
value: function resolveOptions() {
|
|
2544
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2545
|
+
this.action = typeof options.action === "function" ? options.action : this.defaultAction;
|
|
2546
|
+
this.target = typeof options.target === "function" ? options.target : this.defaultTarget;
|
|
2547
|
+
this.text = typeof options.text === "function" ? options.text : this.defaultText;
|
|
2548
|
+
this.container = clipboard_typeof(options.container) === "object" ? options.container : document.body;
|
|
2549
|
+
}
|
|
2550
|
+
}, {
|
|
2551
|
+
key: "listenClick",
|
|
2552
|
+
value: function listenClick(trigger) {
|
|
2553
|
+
var _this2 = this;
|
|
2554
|
+
this.listener = listen_default()(trigger, "click", function(e) {
|
|
2555
|
+
return _this2.onClick(e);
|
|
2556
|
+
});
|
|
2557
|
+
}
|
|
2558
|
+
}, {
|
|
2559
|
+
key: "onClick",
|
|
2560
|
+
value: function onClick(e) {
|
|
2561
|
+
var trigger = e.delegateTarget || e.currentTarget;
|
|
2562
|
+
var action = this.action(trigger) || "copy";
|
|
2563
|
+
var text = actions_default({
|
|
2564
|
+
action,
|
|
2565
|
+
container: this.container,
|
|
2566
|
+
target: this.target(trigger),
|
|
2567
|
+
text: this.text(trigger)
|
|
2568
|
+
});
|
|
2569
|
+
this.emit(text ? "success" : "error", {
|
|
2570
|
+
action,
|
|
2571
|
+
text,
|
|
2572
|
+
trigger,
|
|
2573
|
+
clearSelection: function clearSelection() {
|
|
2574
|
+
if (trigger) {
|
|
2575
|
+
trigger.focus();
|
|
2576
|
+
}
|
|
2577
|
+
document.activeElement.blur();
|
|
2578
|
+
window.getSelection().removeAllRanges();
|
|
2579
|
+
}
|
|
2580
|
+
});
|
|
2581
|
+
}
|
|
2582
|
+
}, {
|
|
2583
|
+
key: "defaultAction",
|
|
2584
|
+
value: function defaultAction(trigger) {
|
|
2585
|
+
return getAttributeValue("action", trigger);
|
|
2586
|
+
}
|
|
2587
|
+
}, {
|
|
2588
|
+
key: "defaultTarget",
|
|
2589
|
+
value: function defaultTarget(trigger) {
|
|
2590
|
+
var selector = getAttributeValue("target", trigger);
|
|
2591
|
+
if (selector) {
|
|
2592
|
+
return document.querySelector(selector);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
}, {
|
|
2596
|
+
key: "defaultText",
|
|
2597
|
+
value: function defaultText(trigger) {
|
|
2598
|
+
return getAttributeValue("text", trigger);
|
|
2599
|
+
}
|
|
2600
|
+
}, {
|
|
2601
|
+
key: "destroy",
|
|
2602
|
+
value: function destroy() {
|
|
2603
|
+
this.listener.destroy();
|
|
2604
|
+
}
|
|
2605
|
+
}], [{
|
|
2606
|
+
key: "copy",
|
|
2607
|
+
value: function copy(target) {
|
|
2608
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2609
|
+
container: document.body
|
|
2610
|
+
};
|
|
2611
|
+
return actions_copy(target, options);
|
|
2612
|
+
}
|
|
2613
|
+
}, {
|
|
2614
|
+
key: "cut",
|
|
2615
|
+
value: function cut(target) {
|
|
2616
|
+
return actions_cut(target);
|
|
2617
|
+
}
|
|
2618
|
+
}, {
|
|
2619
|
+
key: "isSupported",
|
|
2620
|
+
value: function isSupported() {
|
|
2621
|
+
var action = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"];
|
|
2622
|
+
var actions = typeof action === "string" ? [action] : action;
|
|
2623
|
+
var support = !!document.queryCommandSupported;
|
|
2624
|
+
actions.forEach(function(action2) {
|
|
2625
|
+
support = support && !!document.queryCommandSupported(action2);
|
|
2626
|
+
});
|
|
2627
|
+
return support;
|
|
2628
|
+
}
|
|
2629
|
+
}]);
|
|
2630
|
+
return Clipboard2;
|
|
2631
|
+
}(tiny_emitter_default());
|
|
2632
|
+
var clipboard2 = Clipboard;
|
|
2633
|
+
},
|
|
2634
|
+
828: function(module3) {
|
|
2635
|
+
var DOCUMENT_NODE_TYPE = 9;
|
|
2636
|
+
if (typeof Element !== "undefined" && !Element.prototype.matches) {
|
|
2637
|
+
var proto = Element.prototype;
|
|
2638
|
+
proto.matches = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;
|
|
2639
|
+
}
|
|
2640
|
+
function closest(element, selector) {
|
|
2641
|
+
while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {
|
|
2642
|
+
if (typeof element.matches === "function" && element.matches(selector)) {
|
|
2643
|
+
return element;
|
|
2644
|
+
}
|
|
2645
|
+
element = element.parentNode;
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
module3.exports = closest;
|
|
2649
|
+
},
|
|
2650
|
+
438: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
2651
|
+
var closest = __webpack_require__2(828);
|
|
2652
|
+
function _delegate(element, selector, type, callback, useCapture) {
|
|
2653
|
+
var listenerFn = listener.apply(this, arguments);
|
|
2654
|
+
element.addEventListener(type, listenerFn, useCapture);
|
|
2655
|
+
return {
|
|
2656
|
+
destroy: function() {
|
|
2657
|
+
element.removeEventListener(type, listenerFn, useCapture);
|
|
2658
|
+
}
|
|
2659
|
+
};
|
|
2660
|
+
}
|
|
2661
|
+
function delegate(elements, selector, type, callback, useCapture) {
|
|
2662
|
+
if (typeof elements.addEventListener === "function") {
|
|
2663
|
+
return _delegate.apply(null, arguments);
|
|
2664
|
+
}
|
|
2665
|
+
if (typeof type === "function") {
|
|
2666
|
+
return _delegate.bind(null, document).apply(null, arguments);
|
|
2667
|
+
}
|
|
2668
|
+
if (typeof elements === "string") {
|
|
2669
|
+
elements = document.querySelectorAll(elements);
|
|
2670
|
+
}
|
|
2671
|
+
return Array.prototype.map.call(elements, function(element) {
|
|
2672
|
+
return _delegate(element, selector, type, callback, useCapture);
|
|
2673
|
+
});
|
|
2674
|
+
}
|
|
2675
|
+
function listener(element, selector, type, callback) {
|
|
2676
|
+
return function(e) {
|
|
2677
|
+
e.delegateTarget = closest(e.target, selector);
|
|
2678
|
+
if (e.delegateTarget) {
|
|
2679
|
+
callback.call(element, e);
|
|
2680
|
+
}
|
|
2681
|
+
};
|
|
2682
|
+
}
|
|
2683
|
+
module3.exports = delegate;
|
|
2684
|
+
},
|
|
2685
|
+
879: function(__unused_webpack_module, exports3) {
|
|
2686
|
+
exports3.node = function(value) {
|
|
2687
|
+
return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
|
|
2688
|
+
};
|
|
2689
|
+
exports3.nodeList = function(value) {
|
|
2690
|
+
var type = Object.prototype.toString.call(value);
|
|
2691
|
+
return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports3.node(value[0]));
|
|
2692
|
+
};
|
|
2693
|
+
exports3.string = function(value) {
|
|
2694
|
+
return typeof value === "string" || value instanceof String;
|
|
2695
|
+
};
|
|
2696
|
+
exports3.fn = function(value) {
|
|
2697
|
+
var type = Object.prototype.toString.call(value);
|
|
2698
|
+
return type === "[object Function]";
|
|
2699
|
+
};
|
|
2700
|
+
},
|
|
2701
|
+
370: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
2702
|
+
var is = __webpack_require__2(879);
|
|
2703
|
+
var delegate = __webpack_require__2(438);
|
|
2704
|
+
function listen(target, type, callback) {
|
|
2705
|
+
if (!target && !type && !callback) {
|
|
2706
|
+
throw new Error("Missing required arguments");
|
|
2707
|
+
}
|
|
2708
|
+
if (!is.string(type)) {
|
|
2709
|
+
throw new TypeError("Second argument must be a String");
|
|
2710
|
+
}
|
|
2711
|
+
if (!is.fn(callback)) {
|
|
2712
|
+
throw new TypeError("Third argument must be a Function");
|
|
2713
|
+
}
|
|
2714
|
+
if (is.node(target)) {
|
|
2715
|
+
return listenNode(target, type, callback);
|
|
2716
|
+
} else if (is.nodeList(target)) {
|
|
2717
|
+
return listenNodeList(target, type, callback);
|
|
2718
|
+
} else if (is.string(target)) {
|
|
2719
|
+
return listenSelector(target, type, callback);
|
|
2720
|
+
} else {
|
|
2721
|
+
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
function listenNode(node, type, callback) {
|
|
2725
|
+
node.addEventListener(type, callback);
|
|
2726
|
+
return {
|
|
2727
|
+
destroy: function() {
|
|
2728
|
+
node.removeEventListener(type, callback);
|
|
2729
|
+
}
|
|
2730
|
+
};
|
|
2731
|
+
}
|
|
2732
|
+
function listenNodeList(nodeList, type, callback) {
|
|
2733
|
+
Array.prototype.forEach.call(nodeList, function(node) {
|
|
2734
|
+
node.addEventListener(type, callback);
|
|
2735
|
+
});
|
|
2736
|
+
return {
|
|
2737
|
+
destroy: function() {
|
|
2738
|
+
Array.prototype.forEach.call(nodeList, function(node) {
|
|
2739
|
+
node.removeEventListener(type, callback);
|
|
2740
|
+
});
|
|
2741
|
+
}
|
|
2742
|
+
};
|
|
2743
|
+
}
|
|
2744
|
+
function listenSelector(selector, type, callback) {
|
|
2745
|
+
return delegate(document.body, selector, type, callback);
|
|
2746
|
+
}
|
|
2747
|
+
module3.exports = listen;
|
|
2748
|
+
},
|
|
2749
|
+
817: function(module3) {
|
|
2750
|
+
function select2(element) {
|
|
2751
|
+
var selectedText;
|
|
2752
|
+
if (element.nodeName === "SELECT") {
|
|
2753
|
+
element.focus();
|
|
2754
|
+
selectedText = element.value;
|
|
2755
|
+
} else if (element.nodeName === "INPUT" || element.nodeName === "TEXTAREA") {
|
|
2756
|
+
var isReadOnly = element.hasAttribute("readonly");
|
|
2757
|
+
if (!isReadOnly) {
|
|
2758
|
+
element.setAttribute("readonly", "");
|
|
2759
|
+
}
|
|
2760
|
+
element.select();
|
|
2761
|
+
element.setSelectionRange(0, element.value.length);
|
|
2762
|
+
if (!isReadOnly) {
|
|
2763
|
+
element.removeAttribute("readonly");
|
|
2764
|
+
}
|
|
2765
|
+
selectedText = element.value;
|
|
2766
|
+
} else {
|
|
2767
|
+
if (element.hasAttribute("contenteditable")) {
|
|
2768
|
+
element.focus();
|
|
2769
|
+
}
|
|
2770
|
+
var selection = window.getSelection();
|
|
2771
|
+
var range = document.createRange();
|
|
2772
|
+
range.selectNodeContents(element);
|
|
2773
|
+
selection.removeAllRanges();
|
|
2774
|
+
selection.addRange(range);
|
|
2775
|
+
selectedText = selection.toString();
|
|
2776
|
+
}
|
|
2777
|
+
return selectedText;
|
|
2778
|
+
}
|
|
2779
|
+
module3.exports = select2;
|
|
2780
|
+
},
|
|
2781
|
+
279: function(module3) {
|
|
2782
|
+
function E() {
|
|
2783
|
+
}
|
|
2784
|
+
E.prototype = {
|
|
2785
|
+
on: function(name2, callback, ctx) {
|
|
2786
|
+
var e = this.e || (this.e = {});
|
|
2787
|
+
(e[name2] || (e[name2] = [])).push({
|
|
2788
|
+
fn: callback,
|
|
2789
|
+
ctx
|
|
2790
|
+
});
|
|
2791
|
+
return this;
|
|
2792
|
+
},
|
|
2793
|
+
once: function(name2, callback, ctx) {
|
|
2794
|
+
var self2 = this;
|
|
2795
|
+
function listener() {
|
|
2796
|
+
self2.off(name2, listener);
|
|
2797
|
+
callback.apply(ctx, arguments);
|
|
2798
|
+
}
|
|
2799
|
+
listener._ = callback;
|
|
2800
|
+
return this.on(name2, listener, ctx);
|
|
2801
|
+
},
|
|
2802
|
+
emit: function(name2) {
|
|
2803
|
+
var data = [].slice.call(arguments, 1);
|
|
2804
|
+
var evtArr = ((this.e || (this.e = {}))[name2] || []).slice();
|
|
2805
|
+
var i = 0;
|
|
2806
|
+
var len = evtArr.length;
|
|
2807
|
+
for (i; i < len; i++) {
|
|
2808
|
+
evtArr[i].fn.apply(evtArr[i].ctx, data);
|
|
2809
|
+
}
|
|
2810
|
+
return this;
|
|
2811
|
+
},
|
|
2812
|
+
off: function(name2, callback) {
|
|
2813
|
+
var e = this.e || (this.e = {});
|
|
2814
|
+
var evts = e[name2];
|
|
2815
|
+
var liveEvents = [];
|
|
2816
|
+
if (evts && callback) {
|
|
2817
|
+
for (var i = 0, len = evts.length; i < len; i++) {
|
|
2818
|
+
if (evts[i].fn !== callback && evts[i].fn._ !== callback)
|
|
2819
|
+
liveEvents.push(evts[i]);
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
liveEvents.length ? e[name2] = liveEvents : delete e[name2];
|
|
2823
|
+
return this;
|
|
2824
|
+
}
|
|
2825
|
+
};
|
|
2826
|
+
module3.exports = E;
|
|
2827
|
+
module3.exports.TinyEmitter = E;
|
|
2828
|
+
}
|
|
2829
|
+
};
|
|
2830
|
+
var __webpack_module_cache__ = {};
|
|
2831
|
+
function __webpack_require__(moduleId) {
|
|
2832
|
+
if (__webpack_module_cache__[moduleId]) {
|
|
2833
|
+
return __webpack_module_cache__[moduleId].exports;
|
|
2834
|
+
}
|
|
2835
|
+
var module3 = __webpack_module_cache__[moduleId] = {
|
|
2836
|
+
exports: {}
|
|
2837
|
+
};
|
|
2838
|
+
__webpack_modules__[moduleId](module3, module3.exports, __webpack_require__);
|
|
2839
|
+
return module3.exports;
|
|
2840
|
+
}
|
|
2841
|
+
!function() {
|
|
2842
|
+
__webpack_require__.n = function(module3) {
|
|
2843
|
+
var getter = module3 && module3.__esModule ? function() {
|
|
2844
|
+
return module3["default"];
|
|
2845
|
+
} : function() {
|
|
2846
|
+
return module3;
|
|
2847
|
+
};
|
|
2848
|
+
__webpack_require__.d(getter, { a: getter });
|
|
2849
|
+
return getter;
|
|
2850
|
+
};
|
|
2851
|
+
}();
|
|
2852
|
+
!function() {
|
|
2853
|
+
__webpack_require__.d = function(exports3, definition) {
|
|
2854
|
+
for (var key in definition) {
|
|
2855
|
+
if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports3, key)) {
|
|
2856
|
+
Object.defineProperty(exports3, key, { enumerable: true, get: definition[key] });
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
};
|
|
2860
|
+
}();
|
|
2861
|
+
!function() {
|
|
2862
|
+
__webpack_require__.o = function(obj, prop) {
|
|
2863
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
2864
|
+
};
|
|
2865
|
+
}();
|
|
2866
|
+
return __webpack_require__(686);
|
|
2867
|
+
}().default;
|
|
2868
|
+
});
|
|
2869
|
+
})(clipboard);
|
|
2870
|
+
var ClipboardJS = /* @__PURE__ */ getDefaultExportFromCjs(clipboard.exports);
|
|
2871
|
+
const addButtonHandler = (button, emit, executeData = []) => {
|
|
2872
|
+
if (!button.isAdd) {
|
|
2873
|
+
return false;
|
|
2874
|
+
}
|
|
2875
|
+
emit("add", ...executeData);
|
|
2876
|
+
};
|
|
2877
|
+
const updButtonHandler = (button, emit, executeData = []) => {
|
|
2878
|
+
if (!button.isEdit) {
|
|
2879
|
+
return false;
|
|
2880
|
+
}
|
|
2881
|
+
emit("upd", ...executeData);
|
|
2882
|
+
};
|
|
2883
|
+
const delButtonHandler = (button, emit, executeData = []) => {
|
|
2884
|
+
if (!button.isDel) {
|
|
2885
|
+
return false;
|
|
2886
|
+
}
|
|
2887
|
+
emit("del", ...executeData);
|
|
2888
|
+
};
|
|
2889
|
+
const importButtonHandler = (button, emit, executeData = []) => {
|
|
2890
|
+
if (!button.isImport) {
|
|
2891
|
+
return false;
|
|
2892
|
+
}
|
|
2893
|
+
emit("import", ...executeData);
|
|
2894
|
+
};
|
|
2895
|
+
const copyButtonHandler = (button, emit, executeData = [], context) => {
|
|
2896
|
+
if (!button.isCopy) {
|
|
2897
|
+
return false;
|
|
2898
|
+
}
|
|
2899
|
+
const copyText = typeof button.copyText === "function" ? button.copyText.apply(context, executeData != null ? executeData : []) : button.copyText;
|
|
2900
|
+
let fakerBtn = document.createElement("button");
|
|
2901
|
+
fakerBtn.setAttribute("data-clipboard-text", copyText != null ? copyText : "");
|
|
2902
|
+
let clipboard2 = new ClipboardJS(fakerBtn);
|
|
2903
|
+
clipboard2.on("success", (e) => {
|
|
2904
|
+
e.clearSelection();
|
|
2905
|
+
ElMessage({
|
|
2906
|
+
message: "\u62F7\u8D1D\u6210\u529F!",
|
|
2907
|
+
type: "success"
|
|
2908
|
+
});
|
|
2909
|
+
clipboard2.destroy();
|
|
2910
|
+
});
|
|
2911
|
+
fakerBtn.click();
|
|
2912
|
+
fakerBtn = null;
|
|
2913
|
+
};
|
|
2914
|
+
const eventButtonHandler = (button, emit, executeData = []) => {
|
|
2915
|
+
if (button.event) {
|
|
2916
|
+
emit("custom", button.event, ...executeData);
|
|
2917
|
+
} else {
|
|
2918
|
+
return false;
|
|
2919
|
+
}
|
|
2920
|
+
};
|
|
2921
|
+
const eventChain = new EventChain();
|
|
2922
|
+
eventChain.setChain(addButtonHandler).setChain(updButtonHandler).setChain(delButtonHandler).setChain(importButtonHandler).setChain(eventButtonHandler).setChain(copyButtonHandler);
|
|
2923
|
+
const execButtonClickEvent = (button, emit, executeData = [], context) => {
|
|
2924
|
+
eventChain.passRequest(button, emit, executeData, context);
|
|
2925
|
+
};
|
|
2926
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$c = "";
|
|
2927
|
+
var _export_sfc = (sfc, props) => {
|
|
2928
|
+
const target = sfc.__vccOpts || sfc;
|
|
2929
|
+
for (const [key, val] of props) {
|
|
2930
|
+
target[key] = val;
|
|
2931
|
+
}
|
|
2932
|
+
return target;
|
|
2933
|
+
};
|
|
2872
2934
|
const __default__$l = {
|
|
2873
2935
|
name: "ButtonRenderer"
|
|
2874
2936
|
};
|
|
2875
|
-
const _sfc_main$
|
|
2937
|
+
const _sfc_main$F = defineComponent({
|
|
2876
2938
|
...__default__$l,
|
|
2877
2939
|
props: {
|
|
2878
2940
|
els: {},
|
|
2879
2941
|
context: {},
|
|
2880
|
-
executeData: { default: () => [] }
|
|
2942
|
+
executeData: { default: () => [] },
|
|
2943
|
+
direction: { default: "horizontal" }
|
|
2881
2944
|
},
|
|
2882
2945
|
emits: ["add", "upd", "del", "import", "custom"],
|
|
2883
2946
|
setup(__props, { emit: __emit }) {
|
|
@@ -2902,70 +2965,14 @@ const _sfc_main$E = defineComponent({
|
|
|
2902
2965
|
});
|
|
2903
2966
|
const { BEMSpace, createBEMName } = createBEMSpace("buttons-renderer");
|
|
2904
2967
|
const emit = __emit;
|
|
2905
|
-
const addButtonHandler = (button) => {
|
|
2906
|
-
if (!button.isAdd) {
|
|
2907
|
-
return false;
|
|
2908
|
-
}
|
|
2909
|
-
emit("add", ...props.executeData);
|
|
2910
|
-
};
|
|
2911
|
-
const updButtonHandler = (button) => {
|
|
2912
|
-
if (!button.isEdit) {
|
|
2913
|
-
return false;
|
|
2914
|
-
}
|
|
2915
|
-
emit("upd", ...props.executeData);
|
|
2916
|
-
};
|
|
2917
|
-
const delButtonHandler = (button) => {
|
|
2918
|
-
if (!button.isDel) {
|
|
2919
|
-
return false;
|
|
2920
|
-
}
|
|
2921
|
-
emit("del", ...props.executeData);
|
|
2922
|
-
};
|
|
2923
|
-
const importButtonHandler = (button) => {
|
|
2924
|
-
if (!button.isImport) {
|
|
2925
|
-
return false;
|
|
2926
|
-
}
|
|
2927
|
-
emit("import", ...props.executeData);
|
|
2928
|
-
};
|
|
2929
|
-
const copyButtonHandler = (button) => {
|
|
2930
|
-
var _a;
|
|
2931
|
-
if (!button.isCopy) {
|
|
2932
|
-
return false;
|
|
2933
|
-
}
|
|
2934
|
-
const copyText = typeof button.copyText === "function" ? button.copyText.apply(props.context, (_a = props.executeData) != null ? _a : []) : button.copyText;
|
|
2935
|
-
let fakerBtn = document.createElement("button");
|
|
2936
|
-
fakerBtn.setAttribute("data-clipboard-text", copyText != null ? copyText : "");
|
|
2937
|
-
let clipboard2 = new ClipboardJS(fakerBtn);
|
|
2938
|
-
clipboard2.on("success", (e) => {
|
|
2939
|
-
e.clearSelection();
|
|
2940
|
-
ElMessage({
|
|
2941
|
-
message: "\u62F7\u8D1D\u6210\u529F!",
|
|
2942
|
-
type: "success"
|
|
2943
|
-
});
|
|
2944
|
-
clipboard2.destroy();
|
|
2945
|
-
});
|
|
2946
|
-
fakerBtn.click();
|
|
2947
|
-
fakerBtn = null;
|
|
2948
|
-
};
|
|
2949
|
-
const eventButtonHandler = (button) => {
|
|
2950
|
-
if (button.event) {
|
|
2951
|
-
emit("custom", button.event, ...props.executeData);
|
|
2952
|
-
} else {
|
|
2953
|
-
return false;
|
|
2954
|
-
}
|
|
2955
|
-
};
|
|
2956
|
-
const eventChain = new EventChain();
|
|
2957
|
-
eventChain.setChain(addButtonHandler).setChain(updButtonHandler).setChain(delButtonHandler).setChain(importButtonHandler).setChain(eventButtonHandler).setChain(copyButtonHandler);
|
|
2958
|
-
const execButtonClickEvent = (button) => {
|
|
2959
|
-
eventChain.passRequest(button);
|
|
2960
|
-
};
|
|
2961
2968
|
const handleCommand = (command) => {
|
|
2962
2969
|
var _a;
|
|
2963
2970
|
const indexs = command.split("-").map((a) => Number(a));
|
|
2964
2971
|
const button = ((_a = showEls.value[indexs[0]].children) != null ? _a : [])[indexs[1]];
|
|
2965
|
-
execButtonClickEvent(button);
|
|
2972
|
+
execButtonClickEvent(button, emit, props.executeData, props.context);
|
|
2966
2973
|
};
|
|
2967
2974
|
const handleButtonClick = (index2) => {
|
|
2968
|
-
execButtonClickEvent(showEls.value[index2]);
|
|
2975
|
+
execButtonClickEvent(showEls.value[index2], emit, props.executeData, props.context);
|
|
2969
2976
|
};
|
|
2970
2977
|
return (_ctx, _cache) => {
|
|
2971
2978
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -2975,111 +2982,112 @@ const _sfc_main$E = defineComponent({
|
|
|
2975
2982
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
2976
2983
|
const _component_el_badge = resolveComponent("el-badge");
|
|
2977
2984
|
return openBlock(), createElementBlock("div", {
|
|
2978
|
-
class: normalizeClass(unref(BEMSpace))
|
|
2985
|
+
class: normalizeClass([unref(BEMSpace), _ctx.direction === "vertical" ? "vertical" : "horizontal"])
|
|
2979
2986
|
}, [
|
|
2980
2987
|
(openBlock(true), createElementBlock(Fragment, null, renderList(showEls.value, (button, index2) => {
|
|
2981
|
-
var _a;
|
|
2982
2988
|
return openBlock(), createElementBlock("div", {
|
|
2983
2989
|
key: index2,
|
|
2984
2990
|
class: normalizeClass(unref(createBEMName)("item"))
|
|
2985
2991
|
}, [
|
|
2986
|
-
(
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
)
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
2992
|
+
renderSlot(_ctx.$slots, "default", {
|
|
2993
|
+
item: button,
|
|
2994
|
+
index: index2
|
|
2995
|
+
}, () => {
|
|
2996
|
+
var _a;
|
|
2997
|
+
return [
|
|
2998
|
+
((_a = button.children) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_el_dropdown, {
|
|
2999
|
+
key: 0,
|
|
3000
|
+
"hide-on-click": false,
|
|
3001
|
+
onCommand: handleCommand
|
|
3002
|
+
}, {
|
|
3003
|
+
dropdown: withCtx(() => [
|
|
3004
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
3005
|
+
default: withCtx(() => [
|
|
3006
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(button.children, (cButton, cIndex) => {
|
|
3007
|
+
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
3008
|
+
key: cIndex,
|
|
3009
|
+
command: `${index2}-${cIndex}`,
|
|
3010
|
+
disabled: cButton.isDisabled ? Boolean(
|
|
3011
|
+
cButton.isDisabled.apply(this, [cButton, ...props.executeData])
|
|
3012
|
+
) : false
|
|
3013
|
+
}, {
|
|
3014
|
+
default: withCtx(() => [
|
|
3015
|
+
createTextVNode(toDisplayString(cButton.text), 1)
|
|
3016
|
+
]),
|
|
3017
|
+
_: 2
|
|
3018
|
+
}, 1032, ["command", "disabled"]);
|
|
3019
|
+
}), 128))
|
|
3020
|
+
]),
|
|
3021
|
+
_: 2
|
|
3022
|
+
}, 1024)
|
|
3008
3023
|
]),
|
|
3009
|
-
_: 2
|
|
3010
|
-
}, 1024)
|
|
3011
|
-
]),
|
|
3012
|
-
default: withCtx(() => [
|
|
3013
|
-
createVNode(_component_el_button, mergeProps({ ref_for: true }, button.props, {
|
|
3014
|
-
onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
|
|
3015
|
-
}), {
|
|
3016
3024
|
default: withCtx(() => [
|
|
3017
|
-
createVNode(
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
text: button.text
|
|
3021
|
-
}, null, 8, ["context", "render-fn", "text"]),
|
|
3022
|
-
createVNode(_component_el_icon, { style: { "margin-left": "2px" } }, {
|
|
3025
|
+
createVNode(_component_el_button, mergeProps({ ref_for: true }, button.props, {
|
|
3026
|
+
onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
|
|
3027
|
+
}), {
|
|
3023
3028
|
default: withCtx(() => [
|
|
3024
|
-
createVNode(
|
|
3029
|
+
createVNode(_sfc_main$G, {
|
|
3030
|
+
context: _ctx.context,
|
|
3031
|
+
"render-fn": button.renderFn,
|
|
3032
|
+
text: button.text
|
|
3033
|
+
}, null, 8, ["context", "render-fn", "text"]),
|
|
3034
|
+
createVNode(_component_el_icon, { style: { "margin-left": "2px" } }, {
|
|
3035
|
+
default: withCtx(() => [
|
|
3036
|
+
createVNode(unref(arrowDown))
|
|
3037
|
+
]),
|
|
3038
|
+
_: 1
|
|
3039
|
+
})
|
|
3025
3040
|
]),
|
|
3026
|
-
_:
|
|
3027
|
-
})
|
|
3041
|
+
_: 2
|
|
3042
|
+
}, 1040, ["onClick"])
|
|
3028
3043
|
]),
|
|
3029
3044
|
_: 2
|
|
3030
|
-
},
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
]
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
]
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
}, 1032, ["value", "max"]))
|
|
3045
|
+
}, 1024)) : (openBlock(), createBlock(_component_el_badge, {
|
|
3046
|
+
key: 1,
|
|
3047
|
+
value: button.count,
|
|
3048
|
+
max: button.maxCount
|
|
3049
|
+
}, {
|
|
3050
|
+
default: withCtx(() => {
|
|
3051
|
+
var _a2;
|
|
3052
|
+
return [
|
|
3053
|
+
button.renderFn ? (openBlock(), createBlock(_sfc_main$G, {
|
|
3054
|
+
key: 0,
|
|
3055
|
+
context: _ctx.context,
|
|
3056
|
+
"render-fn": button.renderFn,
|
|
3057
|
+
text: button.text,
|
|
3058
|
+
onClick: ($event) => handleButtonClick(index2)
|
|
3059
|
+
}, null, 8, ["context", "render-fn", "text", "onClick"])) : (openBlock(), createBlock(_component_el_button, mergeProps({
|
|
3060
|
+
key: 1,
|
|
3061
|
+
ref_for: true
|
|
3062
|
+
}, button.props, {
|
|
3063
|
+
icon: ((_a2 = button.props) == null ? void 0 : _a2.icon) ? typeof button.props.icon === "string" ? button.props.icon : { ...button.props.icon } : null,
|
|
3064
|
+
onClick: withModifiers(($event) => handleButtonClick(index2), ["stop"])
|
|
3065
|
+
}), {
|
|
3066
|
+
default: withCtx(() => [
|
|
3067
|
+
createTextVNode(toDisplayString(button.text), 1)
|
|
3068
|
+
]),
|
|
3069
|
+
_: 2
|
|
3070
|
+
}, 1040, ["icon", "onClick"]))
|
|
3071
|
+
];
|
|
3072
|
+
}),
|
|
3073
|
+
_: 2
|
|
3074
|
+
}, 1032, ["value", "max"]))
|
|
3075
|
+
];
|
|
3076
|
+
}, true)
|
|
3063
3077
|
], 2);
|
|
3064
3078
|
}), 128))
|
|
3065
3079
|
], 2);
|
|
3066
3080
|
};
|
|
3067
3081
|
}
|
|
3068
3082
|
});
|
|
3069
|
-
var
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3072
|
-
for (const [key, val] of props) {
|
|
3073
|
-
target[key] = val;
|
|
3074
|
-
}
|
|
3075
|
-
return target;
|
|
3076
|
-
};
|
|
3077
|
-
const _hoisted_1$g = { class: "selectable-operate" };
|
|
3083
|
+
var ButtonsRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-37e0fa28"]]);
|
|
3084
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$b = "";
|
|
3085
|
+
const _hoisted_1$h = { class: "selectable-operate" };
|
|
3078
3086
|
const __default__$k = {
|
|
3079
3087
|
name: "SelectableOpearte",
|
|
3080
3088
|
inheritAttrs: false
|
|
3081
3089
|
};
|
|
3082
|
-
const _sfc_main$
|
|
3090
|
+
const _sfc_main$E = defineComponent({
|
|
3083
3091
|
...__default__$k,
|
|
3084
3092
|
props: {
|
|
3085
3093
|
els: {},
|
|
@@ -3093,8 +3101,8 @@ const _sfc_main$D = defineComponent({
|
|
|
3093
3101
|
return ((_a = props.tableManager) == null ? void 0 : _a.selection) || [];
|
|
3094
3102
|
});
|
|
3095
3103
|
return (_ctx, _cache) => {
|
|
3096
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3097
|
-
createVNode(
|
|
3104
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
3105
|
+
createVNode(ButtonsRenderer, mergeProps({
|
|
3098
3106
|
els: props.els,
|
|
3099
3107
|
"execute-data": [executeData.value],
|
|
3100
3108
|
context: props.manager
|
|
@@ -3103,7 +3111,7 @@ const _sfc_main$D = defineComponent({
|
|
|
3103
3111
|
};
|
|
3104
3112
|
}
|
|
3105
3113
|
});
|
|
3106
|
-
var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3114
|
+
var SelectableOperate = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-4e4544c2"]]);
|
|
3107
3115
|
class SearchFormManager extends IManager {
|
|
3108
3116
|
constructor(form) {
|
|
3109
3117
|
super();
|
|
@@ -3171,7 +3179,7 @@ class SearchFormManager extends IManager {
|
|
|
3171
3179
|
this.manager = manager;
|
|
3172
3180
|
}
|
|
3173
3181
|
}
|
|
3174
|
-
const _sfc_main$
|
|
3182
|
+
const _sfc_main$D = defineComponent({
|
|
3175
3183
|
name: "FormItemRenderer",
|
|
3176
3184
|
props: {
|
|
3177
3185
|
modelValue: null,
|
|
@@ -3390,10 +3398,10 @@ const useMove = (callback) => {
|
|
|
3390
3398
|
return { destroy, bind };
|
|
3391
3399
|
};
|
|
3392
3400
|
var index_vue_vue_type_style_index_0_lang$a = "";
|
|
3393
|
-
const _hoisted_1$
|
|
3401
|
+
const _hoisted_1$g = { class: "el-dialog__title" };
|
|
3394
3402
|
const MIN_WIDTH = 300;
|
|
3395
3403
|
const MIN_HEIGHT = 160;
|
|
3396
|
-
const _sfc_main$
|
|
3404
|
+
const _sfc_main$C = defineComponent({
|
|
3397
3405
|
__name: "index",
|
|
3398
3406
|
props: {
|
|
3399
3407
|
modelValue: { type: Boolean },
|
|
@@ -3462,7 +3470,7 @@ const _sfc_main$B = defineComponent({
|
|
|
3462
3470
|
class: `${unref(BEMSpace)} ${props.customClass}`
|
|
3463
3471
|
}, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
|
|
3464
3472
|
header: withCtx(() => [
|
|
3465
|
-
createElementVNode("span", _hoisted_1$
|
|
3473
|
+
createElementVNode("span", _hoisted_1$g, toDisplayString(_ctx.title), 1)
|
|
3466
3474
|
]),
|
|
3467
3475
|
default: withCtx(() => [
|
|
3468
3476
|
renderSlot(_ctx.$slots, "default"),
|
|
@@ -3486,7 +3494,7 @@ const _sfc_main$B = defineComponent({
|
|
|
3486
3494
|
}
|
|
3487
3495
|
});
|
|
3488
3496
|
var index_vue_vue_type_style_index_0_lang$9 = "";
|
|
3489
|
-
const _sfc_main$
|
|
3497
|
+
const _sfc_main$B = defineComponent({
|
|
3490
3498
|
__name: "index",
|
|
3491
3499
|
emits: ["filter"],
|
|
3492
3500
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -3521,7 +3529,7 @@ const _sfc_main$A = defineComponent({
|
|
|
3521
3529
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
3522
3530
|
const _component_el_form = resolveComponent("el-form");
|
|
3523
3531
|
const _component_el_button = resolveComponent("el-button");
|
|
3524
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3532
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
3525
3533
|
modelValue: isShow.value,
|
|
3526
3534
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isShow.value = $event),
|
|
3527
3535
|
title: "\u7B5B\u9009\u6761\u4EF6",
|
|
@@ -3567,7 +3575,7 @@ const _sfc_main$A = defineComponent({
|
|
|
3567
3575
|
prop: item.prop
|
|
3568
3576
|
}), {
|
|
3569
3577
|
default: withCtx(() => [
|
|
3570
|
-
createVNode(_sfc_main$
|
|
3578
|
+
createVNode(_sfc_main$D, {
|
|
3571
3579
|
modelValue: formData.value[item.prop],
|
|
3572
3580
|
"onUpdate:modelValue": ($event) => formData.value[item.prop] = $event,
|
|
3573
3581
|
renderFn: item.renderFn,
|
|
@@ -3687,6 +3695,8 @@ const _PageModelManager = class extends Reflections {
|
|
|
3687
3695
|
__publicField(this, "loadingInstance");
|
|
3688
3696
|
__publicField(this, "authButtons", []);
|
|
3689
3697
|
__publicField(this, "exposeActions", {});
|
|
3698
|
+
__publicField(this, "isFilterPopupVisible", false);
|
|
3699
|
+
__publicField(this, "isSortPopupVisible", false);
|
|
3690
3700
|
this.id = managerController.getManagerId();
|
|
3691
3701
|
}
|
|
3692
3702
|
static setDefaultConfig(config) {
|
|
@@ -4114,6 +4124,12 @@ const _PageModelManager = class extends Reflections {
|
|
|
4114
4124
|
updateAuthButtons(buttons) {
|
|
4115
4125
|
this.authButtons = buttons;
|
|
4116
4126
|
}
|
|
4127
|
+
updateFilterPopupVisible(visible) {
|
|
4128
|
+
this.isFilterPopupVisible = visible;
|
|
4129
|
+
}
|
|
4130
|
+
updateSortPopupVisible(visible) {
|
|
4131
|
+
this.isSortPopupVisible = visible;
|
|
4132
|
+
}
|
|
4117
4133
|
destroy() {
|
|
4118
4134
|
this.children.forEach((item) => {
|
|
4119
4135
|
item.destroy();
|
|
@@ -4240,7 +4256,7 @@ var index_vue_vue_type_style_index_0_lang$8 = "";
|
|
|
4240
4256
|
const __default__$j = {
|
|
4241
4257
|
name: "PageModelSearchForm"
|
|
4242
4258
|
};
|
|
4243
|
-
const _sfc_main$
|
|
4259
|
+
const _sfc_main$A = defineComponent({
|
|
4244
4260
|
...__default__$j,
|
|
4245
4261
|
props: {
|
|
4246
4262
|
form: {},
|
|
@@ -4394,7 +4410,7 @@ const _sfc_main$z = defineComponent({
|
|
|
4394
4410
|
style: { width: ((_a = item.style) == null ? void 0 : _a.width) || unref(searchFormItemWidth) }
|
|
4395
4411
|
}), {
|
|
4396
4412
|
default: withCtx(() => [
|
|
4397
|
-
createVNode(_sfc_main$
|
|
4413
|
+
createVNode(_sfc_main$D, {
|
|
4398
4414
|
modelValue: searchFormManager.formData[item.prop],
|
|
4399
4415
|
"onUpdate:modelValue": ($event) => searchFormManager.formData[item.prop] = $event,
|
|
4400
4416
|
renderFn: item.renderFn,
|
|
@@ -4477,7 +4493,7 @@ const _sfc_main$z = defineComponent({
|
|
|
4477
4493
|
}, [
|
|
4478
4494
|
renderSlot(_ctx.$slots, "default")
|
|
4479
4495
|
], 2),
|
|
4480
|
-
searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$
|
|
4496
|
+
searchFormManager.expandMode === "dialog" && showFormEls.value.length && unref(showMoreButton) ? (openBlock(), createBlock(_sfc_main$B, {
|
|
4481
4497
|
key: 0,
|
|
4482
4498
|
ref_key: "SearchFormFullRef",
|
|
4483
4499
|
ref: SearchFormFullRef,
|
|
@@ -4605,6 +4621,7 @@ class TableManager extends IManager {
|
|
|
4605
4621
|
__publicField(this, "sortParams", {});
|
|
4606
4622
|
__publicField(this, "isInitColumnParams", false);
|
|
4607
4623
|
__publicField(this, "isInitColumnSortParams", false);
|
|
4624
|
+
__publicField(this, "isColumnToolsVisible", false);
|
|
4608
4625
|
__publicField(this, "randomRowKey", null);
|
|
4609
4626
|
__publicField(this, "columnParamsList", []);
|
|
4610
4627
|
__publicField(this, "columnSortParamsList", []);
|
|
@@ -4619,6 +4636,7 @@ class TableManager extends IManager {
|
|
|
4619
4636
|
__publicField(this, "saveContent");
|
|
4620
4637
|
__publicField(this, "scrollTop", 0);
|
|
4621
4638
|
__publicField(this, "scrollLeft", 0);
|
|
4639
|
+
__publicField(this, "exposeActions", {});
|
|
4622
4640
|
this.propsConfig = config;
|
|
4623
4641
|
this.init();
|
|
4624
4642
|
}
|
|
@@ -4644,6 +4662,9 @@ class TableManager extends IManager {
|
|
|
4644
4662
|
this.columnSortParamsList = params || [];
|
|
4645
4663
|
this.isInitColumnSortParams = true;
|
|
4646
4664
|
}
|
|
4665
|
+
updateColumnToolsVisible(visible) {
|
|
4666
|
+
this.isColumnToolsVisible = visible;
|
|
4667
|
+
}
|
|
4647
4668
|
get table() {
|
|
4648
4669
|
var _a;
|
|
4649
4670
|
return ((_a = this.config) == null ? void 0 : _a.table) || this.propsConfig || {
|
|
@@ -4832,6 +4853,7 @@ class TableManager extends IManager {
|
|
|
4832
4853
|
}
|
|
4833
4854
|
this.patchTableSelectable();
|
|
4834
4855
|
this.patchTableRadio();
|
|
4856
|
+
this.patchTableContextMenu();
|
|
4835
4857
|
const isUseSort = this.table.els.some((a) => a.sortValues);
|
|
4836
4858
|
if (isUseSort) {
|
|
4837
4859
|
this.patchTableSortable();
|
|
@@ -4882,6 +4904,18 @@ class TableManager extends IManager {
|
|
|
4882
4904
|
}.bind(this);
|
|
4883
4905
|
}
|
|
4884
4906
|
}
|
|
4907
|
+
patchTableContextMenu() {
|
|
4908
|
+
if (!this.table.contextMenu) {
|
|
4909
|
+
return false;
|
|
4910
|
+
}
|
|
4911
|
+
const _rowContextmenu = this.tableEvents["rowContextmenu"];
|
|
4912
|
+
this.tableEvents["rowContextmenu"] = function(row, column, event) {
|
|
4913
|
+
_rowContextmenu == null ? void 0 : _rowContextmenu.call(this, row, column, event);
|
|
4914
|
+
event.preventDefault();
|
|
4915
|
+
const rowIndex = this.tableData.findIndex((a) => a[this.rowKey] === row[this.rowKey]);
|
|
4916
|
+
this.exposeActions.showContextMenu(row, rowIndex, event);
|
|
4917
|
+
}.bind(this);
|
|
4918
|
+
}
|
|
4885
4919
|
patchTableSortable() {
|
|
4886
4920
|
const _this = this;
|
|
4887
4921
|
const _sortChange = this.tableEvents["sortChange"];
|
|
@@ -5351,7 +5385,7 @@ class TableManager extends IManager {
|
|
|
5351
5385
|
this.removeCellOutClickEvent();
|
|
5352
5386
|
}
|
|
5353
5387
|
}
|
|
5354
|
-
const _sfc_main$
|
|
5388
|
+
const _sfc_main$z = defineComponent({
|
|
5355
5389
|
name: "TableCellRenderer",
|
|
5356
5390
|
props: {
|
|
5357
5391
|
renderFn: {
|
|
@@ -5389,29 +5423,36 @@ const _sfc_main$y = defineComponent({
|
|
|
5389
5423
|
};
|
|
5390
5424
|
}
|
|
5391
5425
|
});
|
|
5392
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$
|
|
5426
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$a = "";
|
|
5393
5427
|
const __default__$i = {
|
|
5394
5428
|
name: "SimplePopover"
|
|
5395
5429
|
};
|
|
5396
|
-
const _sfc_main$
|
|
5430
|
+
const _sfc_main$y = defineComponent({
|
|
5397
5431
|
...__default__$i,
|
|
5398
5432
|
props: {
|
|
5399
5433
|
width: { default: 200 },
|
|
5400
5434
|
placement: { default: "right" }
|
|
5401
5435
|
},
|
|
5402
|
-
|
|
5436
|
+
emits: ["closed"],
|
|
5437
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
5403
5438
|
const { BEMSpace } = createBEMSpace("simple-popover");
|
|
5404
5439
|
const props = __props;
|
|
5440
|
+
const emit = __emit;
|
|
5405
5441
|
const { nextZIndex } = useZIndex();
|
|
5406
5442
|
const visible = ref(false);
|
|
5407
5443
|
const isRender = ref(false);
|
|
5444
|
+
let hideTimer = null;
|
|
5408
5445
|
watch(
|
|
5409
5446
|
() => visible.value,
|
|
5410
5447
|
(val) => {
|
|
5411
5448
|
if (val) {
|
|
5412
5449
|
isRender.value = true;
|
|
5450
|
+
if (hideTimer) {
|
|
5451
|
+
clearTimeout(hideTimer);
|
|
5452
|
+
hideTimer = null;
|
|
5453
|
+
}
|
|
5413
5454
|
} else {
|
|
5414
|
-
setTimeout(() => {
|
|
5455
|
+
hideTimer = setTimeout(() => {
|
|
5415
5456
|
isRender.value = false;
|
|
5416
5457
|
}, 300);
|
|
5417
5458
|
}
|
|
@@ -5472,7 +5513,7 @@ const _sfc_main$x = defineComponent({
|
|
|
5472
5513
|
return false;
|
|
5473
5514
|
}
|
|
5474
5515
|
};
|
|
5475
|
-
const
|
|
5516
|
+
const handleClickElement = (e) => {
|
|
5476
5517
|
if (isChildElement(popoverRef.value, e.target) || isPopperChildElement(e.target)) {
|
|
5477
5518
|
return;
|
|
5478
5519
|
}
|
|
@@ -5482,35 +5523,50 @@ const _sfc_main$x = defineComponent({
|
|
|
5482
5523
|
currentTriggerElement && getPopoverTriggerElementRectInfo(currentTriggerElement);
|
|
5483
5524
|
}, 100);
|
|
5484
5525
|
const bindEvent = () => {
|
|
5485
|
-
document.addEventListener("mousedown",
|
|
5486
|
-
document.addEventListener("touchstart",
|
|
5526
|
+
document.addEventListener("mousedown", handleClickElement);
|
|
5527
|
+
document.addEventListener("touchstart", handleClickElement);
|
|
5487
5528
|
window.addEventListener("resize", handleResize);
|
|
5488
5529
|
};
|
|
5489
5530
|
const unbindEvent = () => {
|
|
5490
|
-
document.removeEventListener("mousedown",
|
|
5491
|
-
document.removeEventListener("touchstart",
|
|
5531
|
+
document.removeEventListener("mousedown", handleClickElement);
|
|
5532
|
+
document.removeEventListener("touchstart", handleClickElement);
|
|
5492
5533
|
window.removeEventListener("resize", handleResize);
|
|
5493
5534
|
};
|
|
5494
5535
|
const hide = () => {
|
|
5536
|
+
currentTriggerElement = null;
|
|
5495
5537
|
unbindEvent();
|
|
5496
5538
|
visible.value = false;
|
|
5539
|
+
emit("closed");
|
|
5497
5540
|
};
|
|
5498
5541
|
const zIndex = ref(0);
|
|
5499
5542
|
const show = (element) => {
|
|
5500
|
-
if (
|
|
5501
|
-
|
|
5543
|
+
if (element instanceof DOMRect) {
|
|
5544
|
+
currentTriggerElement = null;
|
|
5545
|
+
popoverRectInfo.value = element;
|
|
5546
|
+
if (visible.value) {
|
|
5502
5547
|
hide();
|
|
5503
|
-
return;
|
|
5504
5548
|
}
|
|
5505
|
-
|
|
5549
|
+
zIndex.value = nextZIndex();
|
|
5550
|
+
visible.value = true;
|
|
5551
|
+
setTimeout(() => {
|
|
5552
|
+
bindEvent();
|
|
5553
|
+
}, 0);
|
|
5554
|
+
} else {
|
|
5555
|
+
if (visible.value) {
|
|
5556
|
+
if (currentTriggerElement === element) {
|
|
5557
|
+
hide();
|
|
5558
|
+
return;
|
|
5559
|
+
}
|
|
5560
|
+
unbindEvent();
|
|
5561
|
+
}
|
|
5562
|
+
zIndex.value = nextZIndex();
|
|
5563
|
+
currentTriggerElement = element;
|
|
5564
|
+
getPopoverTriggerElementRectInfo(currentTriggerElement);
|
|
5565
|
+
visible.value = true;
|
|
5566
|
+
setTimeout(() => {
|
|
5567
|
+
bindEvent();
|
|
5568
|
+
}, 0);
|
|
5506
5569
|
}
|
|
5507
|
-
zIndex.value = nextZIndex();
|
|
5508
|
-
currentTriggerElement = element;
|
|
5509
|
-
getPopoverTriggerElementRectInfo(currentTriggerElement);
|
|
5510
|
-
visible.value = true;
|
|
5511
|
-
setTimeout(() => {
|
|
5512
|
-
bindEvent();
|
|
5513
|
-
}, 0);
|
|
5514
5570
|
};
|
|
5515
5571
|
__expose({
|
|
5516
5572
|
show,
|
|
@@ -5534,7 +5590,7 @@ const _sfc_main$x = defineComponent({
|
|
|
5534
5590
|
};
|
|
5535
5591
|
}
|
|
5536
5592
|
});
|
|
5537
|
-
var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5593
|
+
var SimplePopover = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-200a6b63"]]);
|
|
5538
5594
|
var FilterItemTypeEnum$1 = /* @__PURE__ */ ((FilterItemTypeEnum2) => {
|
|
5539
5595
|
FilterItemTypeEnum2["\u6587\u5B57"] = "string";
|
|
5540
5596
|
FilterItemTypeEnum2["\u6570\u5B57"] = "number";
|
|
@@ -5637,9 +5693,9 @@ const compareOptions$1 = {
|
|
|
5637
5693
|
}
|
|
5638
5694
|
]
|
|
5639
5695
|
};
|
|
5640
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$
|
|
5641
|
-
const _hoisted_1$
|
|
5642
|
-
const _sfc_main$
|
|
5696
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$9 = "";
|
|
5697
|
+
const _hoisted_1$f = { key: 1 };
|
|
5698
|
+
const _sfc_main$x = defineComponent({
|
|
5643
5699
|
__name: "index",
|
|
5644
5700
|
props: {
|
|
5645
5701
|
tableManager: {}
|
|
@@ -6019,7 +6075,7 @@ const _sfc_main$w = defineComponent({
|
|
|
6019
6075
|
createTextVNode("\u7B5B\u9009\u6761\u4EF6")
|
|
6020
6076
|
]),
|
|
6021
6077
|
_: 1
|
|
6022
|
-
}, 8, ["icon"])) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6078
|
+
}, 8, ["icon"])) : (openBlock(), createElementBlock("div", _hoisted_1$f)),
|
|
6023
6079
|
createElementVNode("div", null, [
|
|
6024
6080
|
createVNode(_component_el_button, { onClick: handleClear }, {
|
|
6025
6081
|
default: withCtx(() => [
|
|
@@ -6043,9 +6099,9 @@ const _sfc_main$w = defineComponent({
|
|
|
6043
6099
|
};
|
|
6044
6100
|
}
|
|
6045
6101
|
});
|
|
6046
|
-
var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6102
|
+
var FilterZone$1 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-9b1b33b8"]]);
|
|
6047
6103
|
var index_vue_vue_type_style_index_0_lang$7 = "";
|
|
6048
|
-
const _hoisted_1$
|
|
6104
|
+
const _hoisted_1$e = ["data-key", "title"];
|
|
6049
6105
|
const _hoisted_2$7 = {
|
|
6050
6106
|
key: 0,
|
|
6051
6107
|
style: { "color": "red" }
|
|
@@ -6070,7 +6126,7 @@ const _hoisted_10$1 = ["onClick"];
|
|
|
6070
6126
|
const __default__$h = {
|
|
6071
6127
|
name: "TableColumn"
|
|
6072
6128
|
};
|
|
6073
|
-
const _sfc_main$
|
|
6129
|
+
const _sfc_main$w = defineComponent({
|
|
6074
6130
|
...__default__$h,
|
|
6075
6131
|
props: {
|
|
6076
6132
|
els: {},
|
|
@@ -6230,7 +6286,7 @@ const _sfc_main$v = defineComponent({
|
|
|
6230
6286
|
_: 1
|
|
6231
6287
|
})
|
|
6232
6288
|
], 14, _hoisted_3$6)) : createCommentVNode("", true)
|
|
6233
|
-
], 10, _hoisted_1$
|
|
6289
|
+
], 10, _hoisted_1$e)
|
|
6234
6290
|
]),
|
|
6235
6291
|
default: withCtx(({ row, $index, column: columnEl }) => [
|
|
6236
6292
|
column.children ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -6257,7 +6313,7 @@ const _sfc_main$v = defineComponent({
|
|
|
6257
6313
|
) ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
6258
6314
|
column.editData ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
6259
6315
|
createElementVNode("div", _hoisted_6$3, [
|
|
6260
|
-
createVNode(_sfc_main$
|
|
6316
|
+
createVNode(_sfc_main$D, {
|
|
6261
6317
|
modelValue: row[column.editData.prop || column.prop],
|
|
6262
6318
|
renderFn: column.editData.renderFn,
|
|
6263
6319
|
context: props.context,
|
|
@@ -6293,7 +6349,7 @@ const _sfc_main$v = defineComponent({
|
|
|
6293
6349
|
])) : createCommentVNode("", true)
|
|
6294
6350
|
], 64)) : (openBlock(), createElementBlock("div", _hoisted_8$1, "\u8BE5\u5217\u672A\u8BBE\u7F6E\u7F16\u8F91\u7EC4\u4EF6"))
|
|
6295
6351
|
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6296
|
-
column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$
|
|
6352
|
+
column.renderFn && $index !== -1 ? (openBlock(), createBlock(_sfc_main$z, {
|
|
6297
6353
|
key: 0,
|
|
6298
6354
|
"render-fn": column.renderFn,
|
|
6299
6355
|
context: props.context,
|
|
@@ -7297,7 +7353,7 @@ var Sortable = Sortable_min.exports;
|
|
|
7297
7353
|
const __default__$g = {
|
|
7298
7354
|
name: "DraggableList"
|
|
7299
7355
|
};
|
|
7300
|
-
const _sfc_main$
|
|
7356
|
+
const _sfc_main$v = defineComponent({
|
|
7301
7357
|
...__default__$g,
|
|
7302
7358
|
props: {
|
|
7303
7359
|
modelValue: {},
|
|
@@ -7398,7 +7454,7 @@ var setting_vue_vue_type_style_index_1_lang$2 = "";
|
|
|
7398
7454
|
const __default__$f = {
|
|
7399
7455
|
name: "SaveColumnSetting"
|
|
7400
7456
|
};
|
|
7401
|
-
const _sfc_main$
|
|
7457
|
+
const _sfc_main$u = defineComponent({
|
|
7402
7458
|
...__default__$f,
|
|
7403
7459
|
props: {
|
|
7404
7460
|
onlyShow: { type: Boolean, default: false }
|
|
@@ -7474,7 +7530,7 @@ const _sfc_main$t = defineComponent({
|
|
|
7474
7530
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
7475
7531
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
7476
7532
|
const _component_el_button = resolveComponent("el-button");
|
|
7477
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7533
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
7478
7534
|
modelValue: visible.value,
|
|
7479
7535
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
7480
7536
|
title: "\u7F16\u8F91\u8868\u683C",
|
|
@@ -7523,7 +7579,7 @@ const _sfc_main$t = defineComponent({
|
|
|
7523
7579
|
createElementVNode("div", {
|
|
7524
7580
|
class: normalizeClass(unref(createBEMName)("column-table-wrap"))
|
|
7525
7581
|
}, [
|
|
7526
|
-
createVNode(_sfc_main$
|
|
7582
|
+
createVNode(_sfc_main$v, {
|
|
7527
7583
|
modelValue: innerEls.value,
|
|
7528
7584
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
|
|
7529
7585
|
"item-key": "_key"
|
|
@@ -7718,7 +7774,7 @@ var userConfig_vue_vue_type_style_index_1_lang = "";
|
|
|
7718
7774
|
const __default__$e = {
|
|
7719
7775
|
name: "SaveUserConfig"
|
|
7720
7776
|
};
|
|
7721
|
-
const _sfc_main$
|
|
7777
|
+
const _sfc_main$t = defineComponent({
|
|
7722
7778
|
...__default__$e,
|
|
7723
7779
|
emits: ["submit", "closed"],
|
|
7724
7780
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -7782,7 +7838,7 @@ const _sfc_main$s = defineComponent({
|
|
|
7782
7838
|
};
|
|
7783
7839
|
return (_ctx, _cache) => {
|
|
7784
7840
|
const _component_el_button = resolveComponent("el-button");
|
|
7785
|
-
return openBlock(), createBlock(_sfc_main$
|
|
7841
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
7786
7842
|
modelValue: visible.value,
|
|
7787
7843
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
7788
7844
|
title: "\u7F16\u8F91\u79C1\u4EBA\u914D\u7F6E",
|
|
@@ -7849,7 +7905,7 @@ const useUserConfig = () => {
|
|
|
7849
7905
|
var index_vue_vue_type_style_index_0_lang$6 = "";
|
|
7850
7906
|
var index_vue_vue_type_style_index_1_scoped_true_lang$1 = "";
|
|
7851
7907
|
const _withScopeId$3 = (n) => (pushScopeId("data-v-7bf8eedc"), n = n(), popScopeId(), n);
|
|
7852
|
-
const _hoisted_1$
|
|
7908
|
+
const _hoisted_1$d = { title: "\u5168\u9009/\u53D6\u6D88" };
|
|
7853
7909
|
const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("i", {
|
|
7854
7910
|
class: "pm-icon icon-drag-dot",
|
|
7855
7911
|
title: "\u62D6\u52A8\u8C03\u6574\u663E\u793A\u987A\u5E8F"
|
|
@@ -7857,7 +7913,7 @@ const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ create
|
|
|
7857
7913
|
const _hoisted_3$5 = ["title"];
|
|
7858
7914
|
const _hoisted_4$4 = ["title", "onClick"];
|
|
7859
7915
|
const _hoisted_5$3 = ["title", "onClick"];
|
|
7860
|
-
const _sfc_main$
|
|
7916
|
+
const _sfc_main$s = defineComponent({
|
|
7861
7917
|
__name: "index",
|
|
7862
7918
|
props: {
|
|
7863
7919
|
els: {}
|
|
@@ -7951,7 +8007,7 @@ const _sfc_main$r = defineComponent({
|
|
|
7951
8007
|
createElementVNode("div", {
|
|
7952
8008
|
class: normalizeClass(unref(createBEMName)("header"))
|
|
7953
8009
|
}, [
|
|
7954
|
-
createElementVNode("span", _hoisted_1$
|
|
8010
|
+
createElementVNode("span", _hoisted_1$d, [
|
|
7955
8011
|
createVNode(_component_el_checkbox, {
|
|
7956
8012
|
label: "\u5168\u90E8",
|
|
7957
8013
|
modelValue: isAllShow.value,
|
|
@@ -7989,7 +8045,7 @@ const _sfc_main$r = defineComponent({
|
|
|
7989
8045
|
createElementVNode("div", {
|
|
7990
8046
|
class: normalizeClass(unref(createBEMName)("list"))
|
|
7991
8047
|
}, [
|
|
7992
|
-
createVNode(_sfc_main$
|
|
8048
|
+
createVNode(_sfc_main$v, {
|
|
7993
8049
|
modelValue: innerEls.value,
|
|
7994
8050
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => innerEls.value = $event),
|
|
7995
8051
|
class: normalizeClass(unref(BEMSpace))
|
|
@@ -8055,14 +8111,14 @@ const _sfc_main$r = defineComponent({
|
|
|
8055
8111
|
_: 1
|
|
8056
8112
|
})
|
|
8057
8113
|
], 2),
|
|
8058
|
-
unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$
|
|
8114
|
+
unref(isRenderColumnToolsSetting) ? (openBlock(), createBlock(_sfc_main$u, {
|
|
8059
8115
|
key: 0,
|
|
8060
8116
|
ref_key: "columnToolsSettingRef",
|
|
8061
8117
|
ref: columnToolsSettingRef,
|
|
8062
8118
|
onSubmit: onSubmitColumns,
|
|
8063
8119
|
onClosed: unref(onColumnToolsSettingClosed)
|
|
8064
8120
|
}, null, 8, ["onClosed"])) : createCommentVNode("", true),
|
|
8065
|
-
unref(isRenderUserConfig) ? (openBlock(), createBlock(_sfc_main$
|
|
8121
|
+
unref(isRenderUserConfig) ? (openBlock(), createBlock(_sfc_main$t, {
|
|
8066
8122
|
key: 1,
|
|
8067
8123
|
ref_key: "userConfigRef",
|
|
8068
8124
|
ref: userConfigRef,
|
|
@@ -8073,17 +8129,17 @@ const _sfc_main$r = defineComponent({
|
|
|
8073
8129
|
};
|
|
8074
8130
|
}
|
|
8075
8131
|
});
|
|
8076
|
-
var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8077
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$
|
|
8132
|
+
var ColumnTools$1 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-7bf8eedc"]]);
|
|
8133
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
|
|
8078
8134
|
const _withScopeId$2 = (n) => (pushScopeId("data-v-15dbe923"), n = n(), popScopeId(), n);
|
|
8079
|
-
const _hoisted_1$
|
|
8135
|
+
const _hoisted_1$c = { key: 0 };
|
|
8080
8136
|
const _hoisted_2$5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u4ECE\u7B2C", -1));
|
|
8081
8137
|
const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u9875\u5F00\u59CB\u5BFC\u51FA\uFF0C\u6BCF\u9875", -1));
|
|
8082
8138
|
const _hoisted_4$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "export-wrod" }, "\u6761\u6570\u636E", -1));
|
|
8083
8139
|
const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", null, null, -1));
|
|
8084
8140
|
const _hoisted_6$2 = { class: "export-columns" };
|
|
8085
8141
|
const _hoisted_7$2 = { class: "bottom-box" };
|
|
8086
|
-
const _sfc_main$
|
|
8142
|
+
const _sfc_main$r = defineComponent({
|
|
8087
8143
|
__name: "index",
|
|
8088
8144
|
emits: ["closed"],
|
|
8089
8145
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -8236,7 +8292,7 @@ const _sfc_main$q = defineComponent({
|
|
|
8236
8292
|
const _component_el_empty = resolveComponent("el-empty");
|
|
8237
8293
|
const _component_el_button = resolveComponent("el-button");
|
|
8238
8294
|
const _directive_loading = resolveDirective("loading");
|
|
8239
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8295
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
8240
8296
|
modelValue: visible.value,
|
|
8241
8297
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => visible.value = $event),
|
|
8242
8298
|
title: "\u5BFC\u51FA\u8868\u683C\u6570\u636E",
|
|
@@ -8321,7 +8377,7 @@ const _sfc_main$q = defineComponent({
|
|
|
8321
8377
|
]),
|
|
8322
8378
|
_: 1
|
|
8323
8379
|
}, 8, ["modelValue"]),
|
|
8324
|
-
formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8380
|
+
formData.fromApi ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
8325
8381
|
_hoisted_2$5,
|
|
8326
8382
|
createVNode(_component_el_input_number, {
|
|
8327
8383
|
modelValue: formData.pageIndex,
|
|
@@ -8410,35 +8466,35 @@ const _sfc_main$q = defineComponent({
|
|
|
8410
8466
|
};
|
|
8411
8467
|
}
|
|
8412
8468
|
});
|
|
8413
|
-
var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8469
|
+
var ExportForm = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-15dbe923"]]);
|
|
8414
8470
|
const SAVE_NAME$2 = "table-columns";
|
|
8415
8471
|
const columnsSaver$1 = new ConfigSaver(SAVE_NAME$2);
|
|
8416
8472
|
const saveTableColumns = columnsSaver$1.setContents.bind(columnsSaver$1);
|
|
8417
8473
|
const genSaveColumnName = columnsSaver$1.genScopeItemKey.bind(columnsSaver$1);
|
|
8418
8474
|
const saveColumns$1 = columnsSaver$1.saveContentItem.bind(columnsSaver$1);
|
|
8419
8475
|
const getColumns$1 = columnsSaver$1.getContentItem.bind(columnsSaver$1);
|
|
8420
|
-
const _hoisted_1$
|
|
8476
|
+
const _hoisted_1$b = { class: "el-table__empty-data" };
|
|
8421
8477
|
const __default__$d = {
|
|
8422
8478
|
name: "EmptyData"
|
|
8423
8479
|
};
|
|
8424
|
-
const _sfc_main$
|
|
8480
|
+
const _sfc_main$q = defineComponent({
|
|
8425
8481
|
...__default__$d,
|
|
8426
8482
|
props: {
|
|
8427
8483
|
text: {}
|
|
8428
8484
|
},
|
|
8429
8485
|
setup(__props) {
|
|
8430
8486
|
return (_ctx, _cache) => {
|
|
8431
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
8487
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
8432
8488
|
createElementVNode("span", null, toDisplayString(_ctx.text || "\u6682\u65E0\u6570\u636E"), 1)
|
|
8433
8489
|
]);
|
|
8434
8490
|
};
|
|
8435
8491
|
}
|
|
8436
8492
|
});
|
|
8437
|
-
var index_vue_vue_type_style_index_0_scoped_true_lang$
|
|
8493
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$7 = "";
|
|
8438
8494
|
const __default__$c = {
|
|
8439
8495
|
name: "SelectionsTable"
|
|
8440
8496
|
};
|
|
8441
|
-
const _sfc_main$
|
|
8497
|
+
const _sfc_main$p = defineComponent({
|
|
8442
8498
|
...__default__$c,
|
|
8443
8499
|
emits: ["closed"],
|
|
8444
8500
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -8505,7 +8561,7 @@ const _sfc_main$o = defineComponent({
|
|
|
8505
8561
|
});
|
|
8506
8562
|
return (_ctx, _cache) => {
|
|
8507
8563
|
const _component_el_button = resolveComponent("el-button");
|
|
8508
|
-
return openBlock(), createBlock(_sfc_main$
|
|
8564
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
8509
8565
|
modelValue: visible.value,
|
|
8510
8566
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
8511
8567
|
title: "\u5DF2\u9009\u6570\u636E",
|
|
@@ -8554,7 +8610,7 @@ const _sfc_main$o = defineComponent({
|
|
|
8554
8610
|
};
|
|
8555
8611
|
}
|
|
8556
8612
|
});
|
|
8557
|
-
var SelectionsTable = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8613
|
+
var SelectionsTable = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-3b4b4ed8"]]);
|
|
8558
8614
|
const useSelectionsTable = () => {
|
|
8559
8615
|
const selectionsTableRef = ref();
|
|
8560
8616
|
const isRenderSelectionsTable = ref(false);
|
|
@@ -8716,7 +8772,7 @@ const useExportForm = () => {
|
|
|
8716
8772
|
onExportFormClosed: onClosed
|
|
8717
8773
|
};
|
|
8718
8774
|
};
|
|
8719
|
-
const _sfc_main$
|
|
8775
|
+
const _sfc_main$o = {
|
|
8720
8776
|
props: {
|
|
8721
8777
|
isLoading: {
|
|
8722
8778
|
type: Boolean,
|
|
@@ -8777,6 +8833,96 @@ const useColumnDrag = () => {
|
|
|
8777
8833
|
}
|
|
8778
8834
|
};
|
|
8779
8835
|
};
|
|
8836
|
+
var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
|
|
8837
|
+
const _hoisted_1$a = ["onClick"];
|
|
8838
|
+
const _sfc_main$n = defineComponent({
|
|
8839
|
+
__name: "index",
|
|
8840
|
+
emits: ["add", "upd", "del", "import", "custom"],
|
|
8841
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8842
|
+
const emit = __emit;
|
|
8843
|
+
const simplePopoverRef = ref();
|
|
8844
|
+
const currentOpt = ref();
|
|
8845
|
+
const contextMenuHeight = computed(() => {
|
|
8846
|
+
var _a, _b;
|
|
8847
|
+
const elementLength = ((_b = (_a = currentOpt.value) == null ? void 0 : _a.els) == null ? void 0 : _b.length) || 0;
|
|
8848
|
+
const maxShowCount = 6;
|
|
8849
|
+
const showCount = Math.min(elementLength, maxShowCount) || 0;
|
|
8850
|
+
return `${showCount * 41 + 5}px`;
|
|
8851
|
+
});
|
|
8852
|
+
const show = (event, opt) => {
|
|
8853
|
+
var _a;
|
|
8854
|
+
const rect = new DOMRect(event.clientX, event.clientY, 0, 0);
|
|
8855
|
+
(_a = simplePopoverRef.value) == null ? void 0 : _a.show(rect);
|
|
8856
|
+
currentOpt.value = opt;
|
|
8857
|
+
};
|
|
8858
|
+
const hide = () => {
|
|
8859
|
+
var _a;
|
|
8860
|
+
(_a = simplePopoverRef.value) == null ? void 0 : _a.hide();
|
|
8861
|
+
};
|
|
8862
|
+
const handleItemClick = (item, index2) => {
|
|
8863
|
+
var _a;
|
|
8864
|
+
if ((_a = item.props) == null ? void 0 : _a.disabled) {
|
|
8865
|
+
return;
|
|
8866
|
+
}
|
|
8867
|
+
execButtonClickEvent(
|
|
8868
|
+
item,
|
|
8869
|
+
emit,
|
|
8870
|
+
currentOpt.value.executeData,
|
|
8871
|
+
currentOpt.value.context
|
|
8872
|
+
);
|
|
8873
|
+
hide();
|
|
8874
|
+
};
|
|
8875
|
+
__expose({
|
|
8876
|
+
show,
|
|
8877
|
+
hide
|
|
8878
|
+
});
|
|
8879
|
+
return (_ctx, _cache) => {
|
|
8880
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
8881
|
+
return openBlock(), createBlock(SimplePopover, {
|
|
8882
|
+
ref_key: "simplePopoverRef",
|
|
8883
|
+
ref: simplePopoverRef,
|
|
8884
|
+
width: 200
|
|
8885
|
+
}, {
|
|
8886
|
+
default: withCtx(() => [
|
|
8887
|
+
createElementVNode("div", {
|
|
8888
|
+
class: "context-menu",
|
|
8889
|
+
style: normalizeStyle({
|
|
8890
|
+
height: contextMenuHeight.value
|
|
8891
|
+
})
|
|
8892
|
+
}, [
|
|
8893
|
+
createVNode(_component_el_scrollbar, { style: { "height": "100%" } }, {
|
|
8894
|
+
default: withCtx(() => [
|
|
8895
|
+
createVNode(ButtonsRenderer, mergeProps({
|
|
8896
|
+
...currentOpt.value,
|
|
8897
|
+
..._ctx.$attrs
|
|
8898
|
+
}, { direction: "vertical" }), {
|
|
8899
|
+
default: withCtx(({ item, index: index2 }) => [
|
|
8900
|
+
renderSlot(_ctx.$slots, "default", {
|
|
8901
|
+
item,
|
|
8902
|
+
index: index2
|
|
8903
|
+
}, () => {
|
|
8904
|
+
var _a;
|
|
8905
|
+
return [
|
|
8906
|
+
createElementVNode("div", {
|
|
8907
|
+
class: normalizeClass(["context-menu__item", { disabled: (_a = item.props) == null ? void 0 : _a.disabled }]),
|
|
8908
|
+
onClick: ($event) => handleItemClick(item)
|
|
8909
|
+
}, toDisplayString(item.text), 11, _hoisted_1$a)
|
|
8910
|
+
];
|
|
8911
|
+
}, true)
|
|
8912
|
+
]),
|
|
8913
|
+
_: 3
|
|
8914
|
+
}, 16)
|
|
8915
|
+
]),
|
|
8916
|
+
_: 3
|
|
8917
|
+
})
|
|
8918
|
+
], 4)
|
|
8919
|
+
]),
|
|
8920
|
+
_: 3
|
|
8921
|
+
}, 512);
|
|
8922
|
+
};
|
|
8923
|
+
}
|
|
8924
|
+
});
|
|
8925
|
+
var ContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-5631c18b"]]);
|
|
8780
8926
|
var index_vue_vue_type_style_index_0_lang$5 = "";
|
|
8781
8927
|
const __default__$b = {
|
|
8782
8928
|
name: "PageModelTable",
|
|
@@ -8913,14 +9059,18 @@ const _sfc_main$m = defineComponent({
|
|
|
8913
9059
|
var _a;
|
|
8914
9060
|
(_a = tableRef.value) == null ? void 0 : _a.doLayout();
|
|
8915
9061
|
};
|
|
8916
|
-
const
|
|
9062
|
+
const columnToolsSimplePopoverRef = ref();
|
|
8917
9063
|
const showColumnToolSimplePopover = (element) => {
|
|
8918
9064
|
var _a;
|
|
8919
|
-
(_a =
|
|
9065
|
+
(_a = columnToolsSimplePopoverRef.value) == null ? void 0 : _a.show(element);
|
|
9066
|
+
tableManager.updateColumnToolsVisible(true);
|
|
8920
9067
|
};
|
|
8921
9068
|
const hideColumnToolSimplePopover = () => {
|
|
8922
9069
|
var _a;
|
|
8923
|
-
(_a =
|
|
9070
|
+
(_a = columnToolsSimplePopoverRef.value) == null ? void 0 : _a.hide();
|
|
9071
|
+
};
|
|
9072
|
+
const handleColumnToolsClosed = () => {
|
|
9073
|
+
tableManager.updateColumnToolsVisible(false);
|
|
8924
9074
|
};
|
|
8925
9075
|
const scrollLifecycle = useListenScroll(tableManager);
|
|
8926
9076
|
const { initTableDrag, destroyTableDrag } = useColumnDrag();
|
|
@@ -8975,6 +9125,33 @@ const _sfc_main$m = defineComponent({
|
|
|
8975
9125
|
saveColumnSort(tableManager.table.els, tableManager.columnSortParamsList);
|
|
8976
9126
|
}
|
|
8977
9127
|
};
|
|
9128
|
+
const contextMenuRef = ref();
|
|
9129
|
+
const showContextMenu = (row, rowIndex, event) => {
|
|
9130
|
+
var _a, _b;
|
|
9131
|
+
const contextMenu = tableManager.table.contextMenu;
|
|
9132
|
+
let buttons = [];
|
|
9133
|
+
if (contextMenu.containOperation) {
|
|
9134
|
+
buttons = cloneDeep(((_a = tableManager.table.operate) == null ? void 0 : _a.els) || []);
|
|
9135
|
+
buttons = buttons.reduce((memo, button) => {
|
|
9136
|
+
memo.push(button);
|
|
9137
|
+
if (button.children) {
|
|
9138
|
+
memo.push(...button.children);
|
|
9139
|
+
}
|
|
9140
|
+
return memo;
|
|
9141
|
+
}, []);
|
|
9142
|
+
}
|
|
9143
|
+
if (contextMenu.els) {
|
|
9144
|
+
buttons = buttons.concat(cloneDeep(contextMenu.els));
|
|
9145
|
+
}
|
|
9146
|
+
if (!buttons.length) {
|
|
9147
|
+
return;
|
|
9148
|
+
}
|
|
9149
|
+
(_b = contextMenuRef.value) == null ? void 0 : _b.show(event, {
|
|
9150
|
+
els: buttons,
|
|
9151
|
+
context: tableManager,
|
|
9152
|
+
executeData: [row, rowIndex]
|
|
9153
|
+
});
|
|
9154
|
+
};
|
|
8978
9155
|
onUnmounted(() => {
|
|
8979
9156
|
tableManager.onUnmounted();
|
|
8980
9157
|
scrollLifecycle.onUnmounted();
|
|
@@ -8983,7 +9160,8 @@ const _sfc_main$m = defineComponent({
|
|
|
8983
9160
|
onActivated(() => {
|
|
8984
9161
|
scrollLifecycle.onActivated();
|
|
8985
9162
|
});
|
|
8986
|
-
|
|
9163
|
+
const exposeActions = {
|
|
9164
|
+
showContextMenu,
|
|
8987
9165
|
showExport,
|
|
8988
9166
|
clearSelection,
|
|
8989
9167
|
getRenderedEls,
|
|
@@ -8991,6 +9169,10 @@ const _sfc_main$m = defineComponent({
|
|
|
8991
9169
|
hideColumnToolSimplePopover,
|
|
8992
9170
|
handleColumnScreen,
|
|
8993
9171
|
handleColumnSort
|
|
9172
|
+
};
|
|
9173
|
+
tableManager.exposeActions = exposeActions;
|
|
9174
|
+
__expose({
|
|
9175
|
+
...exposeActions
|
|
8994
9176
|
});
|
|
8995
9177
|
return (_ctx, _cache) => {
|
|
8996
9178
|
const _component_el_radio = resolveComponent("el-radio");
|
|
@@ -9001,7 +9183,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9001
9183
|
const _component_el_popconfirm = resolveComponent("el-popconfirm");
|
|
9002
9184
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
9003
9185
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
9004
|
-
createVNode(_sfc_main$
|
|
9186
|
+
createVNode(_sfc_main$o, {
|
|
9005
9187
|
class: normalizeClass([unref(createBEMName)("table")]),
|
|
9006
9188
|
isLoading: tableManager.loadingData,
|
|
9007
9189
|
directiveName: table.value.loadingDirectiveName
|
|
@@ -9025,7 +9207,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9025
9207
|
unref(PageModelManager).emptyTableComponent ? (openBlock(), createBlock(resolveDynamicComponent(unref(PageModelManager).emptyTableComponent), {
|
|
9026
9208
|
key: 0,
|
|
9027
9209
|
text: (_a = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _a.emptyText
|
|
9028
|
-
}, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$
|
|
9210
|
+
}, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$q, {
|
|
9029
9211
|
key: 1,
|
|
9030
9212
|
text: (_b = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _b.emptyText
|
|
9031
9213
|
}, null, 8, ["text"]))
|
|
@@ -9086,7 +9268,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9086
9268
|
width: table.value.operate.width
|
|
9087
9269
|
}, table.value.operate.props), {
|
|
9088
9270
|
default: withCtx(({ row, $index }) => [
|
|
9089
|
-
createVNode(
|
|
9271
|
+
createVNode(ButtonsRenderer, mergeProps({
|
|
9090
9272
|
els: table.value.operate.els,
|
|
9091
9273
|
context: tableManager,
|
|
9092
9274
|
executeData: [row, $index]
|
|
@@ -9095,7 +9277,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9095
9277
|
_: 1
|
|
9096
9278
|
}, 16, ["width"])) : createCommentVNode("", true)
|
|
9097
9279
|
], 64)) : createCommentVNode("", true),
|
|
9098
|
-
createVNode(_sfc_main$
|
|
9280
|
+
createVNode(_sfc_main$w, {
|
|
9099
9281
|
els: renderedTableEls.value,
|
|
9100
9282
|
context: tableManager,
|
|
9101
9283
|
onColumnScreen: handleColumnScreen
|
|
@@ -9107,7 +9289,7 @@ const _sfc_main$m = defineComponent({
|
|
|
9107
9289
|
width: table.value.operate.width
|
|
9108
9290
|
}, table.value.operate.props), {
|
|
9109
9291
|
default: withCtx(({ row, $index }) => [
|
|
9110
|
-
createVNode(
|
|
9292
|
+
createVNode(ButtonsRenderer, mergeProps({
|
|
9111
9293
|
els: table.value.operate.els,
|
|
9112
9294
|
context: tableManager,
|
|
9113
9295
|
executeData: [row, $index]
|
|
@@ -9203,8 +9385,9 @@ const _sfc_main$m = defineComponent({
|
|
|
9203
9385
|
onClosed: unref(onSelectionsTableClosed)
|
|
9204
9386
|
}, null, 8, ["onClosed"])) : createCommentVNode("", true),
|
|
9205
9387
|
createVNode(SimplePopover, {
|
|
9206
|
-
ref_key: "
|
|
9207
|
-
ref:
|
|
9388
|
+
ref_key: "columnToolsSimplePopoverRef",
|
|
9389
|
+
ref: columnToolsSimplePopoverRef,
|
|
9390
|
+
onClosed: handleColumnToolsClosed
|
|
9208
9391
|
}, {
|
|
9209
9392
|
default: withCtx(() => [
|
|
9210
9393
|
createVNode(ColumnTools$1, {
|
|
@@ -9214,7 +9397,11 @@ const _sfc_main$m = defineComponent({
|
|
|
9214
9397
|
}, null, 8, ["els"])
|
|
9215
9398
|
]),
|
|
9216
9399
|
_: 1
|
|
9217
|
-
}, 512)
|
|
9400
|
+
}, 512),
|
|
9401
|
+
createVNode(ContextMenu, mergeProps({
|
|
9402
|
+
ref_key: "contextMenuRef",
|
|
9403
|
+
ref: contextMenuRef
|
|
9404
|
+
}, _ctx.$attrs), null, 16)
|
|
9218
9405
|
], 64);
|
|
9219
9406
|
};
|
|
9220
9407
|
}
|
|
@@ -9230,6 +9417,7 @@ class FormManager extends IManager {
|
|
|
9230
9417
|
__publicField(this, "errorProp");
|
|
9231
9418
|
__publicField(this, "formUpdateEvent", new EventEmitter());
|
|
9232
9419
|
__publicField(this, "tempFormData");
|
|
9420
|
+
__publicField(this, "isFormVisible", false);
|
|
9233
9421
|
this.propsForm = form;
|
|
9234
9422
|
}
|
|
9235
9423
|
get form() {
|
|
@@ -9273,6 +9461,9 @@ class FormManager extends IManager {
|
|
|
9273
9461
|
};
|
|
9274
9462
|
}
|
|
9275
9463
|
}
|
|
9464
|
+
updateFormVisible(visible) {
|
|
9465
|
+
this.isFormVisible = visible;
|
|
9466
|
+
}
|
|
9276
9467
|
async updateFormData(formData) {
|
|
9277
9468
|
const form = this.form;
|
|
9278
9469
|
if (form == null ? void 0 : form.bindData) {
|
|
@@ -9888,7 +10079,7 @@ const _sfc_main$g = defineComponent({
|
|
|
9888
10079
|
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
9889
10080
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
9890
10081
|
const _component_el_button = resolveComponent("el-button");
|
|
9891
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10082
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
9892
10083
|
modelValue: visible.value,
|
|
9893
10084
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
|
|
9894
10085
|
title: "\u8868\u5355\u914D\u7F6E",
|
|
@@ -9954,7 +10145,7 @@ const _sfc_main$g = defineComponent({
|
|
|
9954
10145
|
], 2);
|
|
9955
10146
|
}), 128))
|
|
9956
10147
|
], 2),
|
|
9957
|
-
createVNode(_sfc_main$
|
|
10148
|
+
createVNode(_sfc_main$v, {
|
|
9958
10149
|
modelValue: innerEls.value,
|
|
9959
10150
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
|
|
9960
10151
|
"item-key": "_key"
|
|
@@ -10314,7 +10505,7 @@ const _sfc_main$f = defineComponent({
|
|
|
10314
10505
|
key: 0,
|
|
10315
10506
|
class: normalizeClass(unref(createBEMName)("prefix"))
|
|
10316
10507
|
}, toDisplayString(renderDeText(item.prefix, formManager.formData)), 3)) : createCommentVNode("", true),
|
|
10317
|
-
createVNode(_sfc_main$
|
|
10508
|
+
createVNode(_sfc_main$D, {
|
|
10318
10509
|
modelValue: formManager.formData[item.prop],
|
|
10319
10510
|
renderFn: item.renderFn,
|
|
10320
10511
|
context: formManager,
|
|
@@ -10441,7 +10632,7 @@ const _sfc_main$e = defineComponent({
|
|
|
10441
10632
|
});
|
|
10442
10633
|
return (_ctx, _cache) => {
|
|
10443
10634
|
const _component_el_button = resolveComponent("el-button");
|
|
10444
|
-
return formVisible.value ? (openBlock(), createBlock(_sfc_main$
|
|
10635
|
+
return formVisible.value ? (openBlock(), createBlock(_sfc_main$C, {
|
|
10445
10636
|
key: 0,
|
|
10446
10637
|
modelValue: formVisible.value,
|
|
10447
10638
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formVisible.value = $event),
|
|
@@ -11453,7 +11644,7 @@ const _sfc_main$7 = defineComponent({
|
|
|
11453
11644
|
props: {
|
|
11454
11645
|
manager: {}
|
|
11455
11646
|
},
|
|
11456
|
-
emits: ["screen"],
|
|
11647
|
+
emits: ["screen", "closed"],
|
|
11457
11648
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
11458
11649
|
const props = __props;
|
|
11459
11650
|
const emit = __emit;
|
|
@@ -11566,7 +11757,8 @@ const _sfc_main$7 = defineComponent({
|
|
|
11566
11757
|
return openBlock(), createBlock(SimplePopover, {
|
|
11567
11758
|
ref_key: "simplePopoverRef",
|
|
11568
11759
|
ref: simplePopoverRef,
|
|
11569
|
-
width: 560
|
|
11760
|
+
width: 560,
|
|
11761
|
+
onClosed: _cache[0] || (_cache[0] = ($event) => emit("closed"))
|
|
11570
11762
|
}, {
|
|
11571
11763
|
default: withCtx(() => [
|
|
11572
11764
|
createElementVNode("div", {
|
|
@@ -11843,9 +12035,9 @@ const _sfc_main$7 = defineComponent({
|
|
|
11843
12035
|
};
|
|
11844
12036
|
}
|
|
11845
12037
|
});
|
|
11846
|
-
var ColumnFilterTools = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
12038
|
+
var ColumnFilterTools = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-16a43018"]]);
|
|
11847
12039
|
var index_vue_vue_type_style_index_0_scoped_true_lang$2 = "";
|
|
11848
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
12040
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-6b237206"), n = n(), popScopeId(), n);
|
|
11849
12041
|
const _hoisted_1$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", null, "\u8BBE\u7F6E\u6392\u5E8F\u6761\u4EF6", -1));
|
|
11850
12042
|
const _hoisted_2$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", {
|
|
11851
12043
|
class: "pm-icon icon-drag-dot",
|
|
@@ -11868,7 +12060,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
11868
12060
|
props: {
|
|
11869
12061
|
manager: {}
|
|
11870
12062
|
},
|
|
11871
|
-
emits: ["screen"],
|
|
12063
|
+
emits: ["screen", "closed"],
|
|
11872
12064
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
11873
12065
|
const props = __props;
|
|
11874
12066
|
const emit = __emit;
|
|
@@ -11931,9 +12123,12 @@ const _sfc_main$6 = defineComponent({
|
|
|
11931
12123
|
const handleSelectSortItem = (item, sortValue) => {
|
|
11932
12124
|
item.order = sortValue;
|
|
11933
12125
|
};
|
|
12126
|
+
const popoverRef = ref();
|
|
11934
12127
|
const handleClickSelect = (addProp) => {
|
|
12128
|
+
var _a;
|
|
11935
12129
|
const item = getAddFilterItem(addProp);
|
|
11936
12130
|
filterList.value.push(item);
|
|
12131
|
+
(_a = popoverRef.value) == null ? void 0 : _a.hide();
|
|
11937
12132
|
};
|
|
11938
12133
|
const handleRemoveItem = (index2) => {
|
|
11939
12134
|
filterList.value.splice(index2, 1);
|
|
@@ -11965,7 +12160,8 @@ const _sfc_main$6 = defineComponent({
|
|
|
11965
12160
|
return openBlock(), createBlock(SimplePopover, {
|
|
11966
12161
|
ref_key: "simplePopoverRef",
|
|
11967
12162
|
ref: simplePopoverRef,
|
|
11968
|
-
width: 420
|
|
12163
|
+
width: 420,
|
|
12164
|
+
onClosed: _cache[2] || (_cache[2] = ($event) => emit("closed"))
|
|
11969
12165
|
}, {
|
|
11970
12166
|
default: withCtx(() => [
|
|
11971
12167
|
createElementVNode("div", {
|
|
@@ -11993,7 +12189,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
11993
12189
|
_: 1
|
|
11994
12190
|
})
|
|
11995
12191
|
], 2),
|
|
11996
|
-
createVNode(_sfc_main$
|
|
12192
|
+
createVNode(_sfc_main$v, {
|
|
11997
12193
|
modelValue: filterList.value,
|
|
11998
12194
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterList.value = $event),
|
|
11999
12195
|
itemKey: "prop",
|
|
@@ -12070,6 +12266,8 @@ const _sfc_main$6 = defineComponent({
|
|
|
12070
12266
|
class: normalizeClass(unref(createBEMName)("actions"))
|
|
12071
12267
|
}, [
|
|
12072
12268
|
createVNode(_component_el_popover, {
|
|
12269
|
+
ref_key: "popoverRef",
|
|
12270
|
+
ref: popoverRef,
|
|
12073
12271
|
placement: "bottom-start",
|
|
12074
12272
|
width: 200,
|
|
12075
12273
|
trigger: "click"
|
|
@@ -12117,7 +12315,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
12117
12315
|
], 2)
|
|
12118
12316
|
]),
|
|
12119
12317
|
_: 1
|
|
12120
|
-
}),
|
|
12318
|
+
}, 512),
|
|
12121
12319
|
createElementVNode("div", null, [
|
|
12122
12320
|
createVNode(_component_el_button, { onClick: handleClear }, {
|
|
12123
12321
|
default: withCtx(() => [
|
|
@@ -12143,7 +12341,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
12143
12341
|
};
|
|
12144
12342
|
}
|
|
12145
12343
|
});
|
|
12146
|
-
var ColumnSortTools = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
12344
|
+
var ColumnSortTools = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6b237206"]]);
|
|
12147
12345
|
var index_vue_vue_type_style_index_0_scoped_true_lang$1 = "";
|
|
12148
12346
|
const _hoisted_1$3 = ["data-event", "onClick"];
|
|
12149
12347
|
const __default__$4 = {
|
|
@@ -12199,25 +12397,27 @@ const _sfc_main$5 = defineComponent({
|
|
|
12199
12397
|
}
|
|
12200
12398
|
};
|
|
12201
12399
|
const showToolbox = computed(() => {
|
|
12400
|
+
const tableManager = props.tableManager;
|
|
12401
|
+
const manager = tableManager == null ? void 0 : tableManager.manager;
|
|
12202
12402
|
const _innerTools = props.toolbox ? props.toolbox.map((toolKey) => innerTools[toolKey]).filter((a) => a).map((item) => {
|
|
12203
|
-
var _a
|
|
12403
|
+
var _a;
|
|
12204
12404
|
let desc = "";
|
|
12205
12405
|
let bg = false;
|
|
12206
|
-
if (item.event === "show-column-tool" &&
|
|
12207
|
-
desc =
|
|
12208
|
-
bg =
|
|
12406
|
+
if (item.event === "show-column-tool" && tableManager) {
|
|
12407
|
+
desc = tableManager.hiddeenFieldCount ? `(${tableManager.hiddeenFieldCount} \u9690\u85CF)` : "";
|
|
12408
|
+
bg = tableManager.isColumnToolsVisible || tableManager.hiddeenFieldCount > 0;
|
|
12209
12409
|
} else if (item.event === "fullscreen") {
|
|
12210
|
-
bg = (
|
|
12211
|
-
} else if (item.event === "filter" &&
|
|
12212
|
-
if (
|
|
12213
|
-
desc = `(${
|
|
12214
|
-
bg = true;
|
|
12410
|
+
bg = (_a = tableManager == null ? void 0 : tableManager.manager) == null ? void 0 : _a.isTableFullscreen;
|
|
12411
|
+
} else if (item.event === "filter" && tableManager) {
|
|
12412
|
+
if (tableManager.columnParamsList.length) {
|
|
12413
|
+
desc = `(${tableManager.columnParamsList.length})`;
|
|
12215
12414
|
}
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12415
|
+
bg = manager.isFilterPopupVisible || tableManager.columnParamsList.length > 0;
|
|
12416
|
+
} else if (item.event === "sort" && tableManager) {
|
|
12417
|
+
if (tableManager.columnSortParamsList.length) {
|
|
12418
|
+
desc = `(${tableManager.columnSortParamsList.length})`;
|
|
12220
12419
|
}
|
|
12420
|
+
bg = manager.isSortPopupVisible || tableManager.columnSortParamsList.length > 0;
|
|
12221
12421
|
}
|
|
12222
12422
|
return {
|
|
12223
12423
|
...item,
|
|
@@ -12303,7 +12503,7 @@ const _sfc_main$5 = defineComponent({
|
|
|
12303
12503
|
};
|
|
12304
12504
|
}
|
|
12305
12505
|
});
|
|
12306
|
-
var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
12506
|
+
var TableToolsbox = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-bdb3c2d2"]]);
|
|
12307
12507
|
function patchConfig(config, patches) {
|
|
12308
12508
|
return patches.reduce((memoConfig, patchFn) => {
|
|
12309
12509
|
return patchFn.call(this, memoConfig);
|
|
@@ -12661,12 +12861,14 @@ const _sfc_main$4 = defineComponent({
|
|
|
12661
12861
|
formContainerRef.value.show();
|
|
12662
12862
|
nextTick(() => {
|
|
12663
12863
|
var _a;
|
|
12864
|
+
manager.formManager.updateFormVisible(true);
|
|
12664
12865
|
(_a = manager.formManager.form.onFormOpened) == null ? void 0 : _a.call(manager.formManager);
|
|
12665
12866
|
});
|
|
12666
12867
|
}
|
|
12667
12868
|
};
|
|
12668
12869
|
const hideForm = (needLeaveConfirm = true) => {
|
|
12669
12870
|
if (formContainerRef.value) {
|
|
12871
|
+
manager.formManager.updateFormVisible(false);
|
|
12670
12872
|
formContainerRef.value.hide(needLeaveConfirm);
|
|
12671
12873
|
}
|
|
12672
12874
|
};
|
|
@@ -12848,10 +13050,15 @@ const _sfc_main$4 = defineComponent({
|
|
|
12848
13050
|
const columnFilterToolsRef = ref();
|
|
12849
13051
|
const handleShowFilter = (item, e) => {
|
|
12850
13052
|
columnFilterToolsRef.value.showPopover(e.currentTarget);
|
|
13053
|
+
manager.updateFilterPopupVisible(true);
|
|
13054
|
+
};
|
|
13055
|
+
const handleColumnFilterToolsClosed = () => {
|
|
13056
|
+
manager.updateFilterPopupVisible(false);
|
|
12851
13057
|
};
|
|
12852
13058
|
const columnSortToolsRef = ref();
|
|
12853
13059
|
const handleShowSort = (item, e) => {
|
|
12854
13060
|
columnSortToolsRef.value.showPopover(e.currentTarget);
|
|
13061
|
+
manager.updateSortPopupVisible(true);
|
|
12855
13062
|
};
|
|
12856
13063
|
const handleToolboxCustomEvent = (eventName, item, event) => {
|
|
12857
13064
|
switch (eventName) {
|
|
@@ -12884,7 +13091,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
12884
13091
|
const { useKeyboardEvents } = useKeyBoardEvent();
|
|
12885
13092
|
const tableToolsboxRef = ref();
|
|
12886
13093
|
const trigTableToolboxEvent = (event) => {
|
|
12887
|
-
tableToolsboxRef.value.trigEvent(event);
|
|
13094
|
+
tableToolsboxRef.value && tableToolsboxRef.value.trigEvent(event);
|
|
12888
13095
|
};
|
|
12889
13096
|
const exposeActions = {
|
|
12890
13097
|
doTableLayout,
|
|
@@ -12950,7 +13157,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
12950
13157
|
key: 0,
|
|
12951
13158
|
class: normalizeClass(unref(createBEMName)("top-tabs"))
|
|
12952
13159
|
}, [
|
|
12953
|
-
hasTabs.value ? (openBlock(), createBlock(_sfc_main$
|
|
13160
|
+
hasTabs.value ? (openBlock(), createBlock(_sfc_main$12, {
|
|
12954
13161
|
key: 0,
|
|
12955
13162
|
tabs: uConfig.value.tabs,
|
|
12956
13163
|
manager,
|
|
@@ -12966,7 +13173,7 @@ const _sfc_main$4 = defineComponent({
|
|
|
12966
13173
|
key: 1,
|
|
12967
13174
|
class: normalizeClass(unref(createBEMName)("search"))
|
|
12968
13175
|
}, [
|
|
12969
|
-
createVNode(_sfc_main$
|
|
13176
|
+
createVNode(_sfc_main$A, {
|
|
12970
13177
|
ref_key: "searchFormRef",
|
|
12971
13178
|
ref: searchFormRef,
|
|
12972
13179
|
manager
|
|
@@ -13092,14 +13299,16 @@ const _sfc_main$4 = defineComponent({
|
|
|
13092
13299
|
ref_key: "columnFilterToolsRef",
|
|
13093
13300
|
ref: columnFilterToolsRef,
|
|
13094
13301
|
manager,
|
|
13095
|
-
onScreen: handleColumnFilterToolsScreen
|
|
13302
|
+
onScreen: handleColumnFilterToolsScreen,
|
|
13303
|
+
onClosed: handleColumnFilterToolsClosed
|
|
13096
13304
|
}, null, 8, ["manager"])) : createCommentVNode("", true),
|
|
13097
13305
|
((_d = (_c = _ctx.config.table) == null ? void 0 : _c.toolbox) == null ? void 0 : _d.includes("sort")) ? (openBlock(), createBlock(ColumnSortTools, {
|
|
13098
13306
|
key: 4,
|
|
13099
13307
|
ref_key: "columnSortToolsRef",
|
|
13100
13308
|
ref: columnSortToolsRef,
|
|
13101
13309
|
manager,
|
|
13102
|
-
onScreen: handleColumnSortToolsScreen
|
|
13310
|
+
onScreen: handleColumnSortToolsScreen,
|
|
13311
|
+
onClosed: _cache[0] || (_cache[0] = ($event) => manager.updateSortPopupVisible(false))
|
|
13103
13312
|
}, null, 8, ["manager"])) : createCommentVNode("", true)
|
|
13104
13313
|
], 64))
|
|
13105
13314
|
], 16, _hoisted_1$2);
|
|
@@ -13244,7 +13453,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
13244
13453
|
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
13245
13454
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
13246
13455
|
const _component_el_button = resolveComponent("el-button");
|
|
13247
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13456
|
+
return openBlock(), createBlock(_sfc_main$C, {
|
|
13248
13457
|
modelValue: visible.value,
|
|
13249
13458
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
13250
13459
|
title: "\u7F16\u8F91\u8868\u683C",
|
|
@@ -13287,7 +13496,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
13287
13496
|
], 2);
|
|
13288
13497
|
}), 128))
|
|
13289
13498
|
], 2),
|
|
13290
|
-
createVNode(_sfc_main$
|
|
13499
|
+
createVNode(_sfc_main$v, {
|
|
13291
13500
|
modelValue: innerEls.value,
|
|
13292
13501
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
|
|
13293
13502
|
"item-key": "_key"
|
|
@@ -13451,7 +13660,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
13451
13660
|
createElementVNode("div", {
|
|
13452
13661
|
class: normalizeClass(unref(createBEMName)("list"))
|
|
13453
13662
|
}, [
|
|
13454
|
-
createVNode(_sfc_main$
|
|
13663
|
+
createVNode(_sfc_main$v, {
|
|
13455
13664
|
modelValue: innerEls.value,
|
|
13456
13665
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerEls.value = $event),
|
|
13457
13666
|
class: normalizeClass(unref(BEMSpace)),
|
|
@@ -13914,7 +14123,7 @@ const _sfc_main = defineComponent({
|
|
|
13914
14123
|
}, {
|
|
13915
14124
|
default: withCtx(() => [
|
|
13916
14125
|
_ctx.alwaysShowEdit || isCurrentRowFocus($index) ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
13917
|
-
createVNode(_sfc_main$
|
|
14126
|
+
createVNode(_sfc_main$z, {
|
|
13918
14127
|
"render-fn": column.renderFn,
|
|
13919
14128
|
pure: "",
|
|
13920
14129
|
row,
|
|
@@ -13968,7 +14177,7 @@ const _sfc_main = defineComponent({
|
|
|
13968
14177
|
}, 16, ["data"]),
|
|
13969
14178
|
bottomActions.value.length || hasSlots.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
13970
14179
|
renderSlot(_ctx.$slots, "action-prefix", {}, void 0, true),
|
|
13971
|
-
createVNode(
|
|
14180
|
+
createVNode(ButtonsRenderer, {
|
|
13972
14181
|
els: bottomActions.value,
|
|
13973
14182
|
onCustom: handleBottomActionsEvent
|
|
13974
14183
|
}, null, 8, ["els"]),
|
|
@@ -14064,4 +14273,4 @@ const ModelComponent = {
|
|
|
14064
14273
|
saveTableColumns(content);
|
|
14065
14274
|
}
|
|
14066
14275
|
};
|
|
14067
|
-
export {
|
|
14276
|
+
export { ButtonsRenderer, _sfc_main$v as DraggableList, index as EditableTable, _sfc_main$C as FormDialog, _sfc_main$c as FormDrawer, PageModelForm, _sfc_main$z as TableCellRenderer, _sfc_main$u as TableColumnSetting, columnTools, ModelComponent as default, defineConfig, defineEditableTable, defineForm };
|