ll-plus 2.1.20 → 2.1.21
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/es/component.mjs +4 -0
- package/es/component.mjs.map +1 -1
- package/es/components/api-component/index.d.ts +442 -0
- package/es/components/api-component/index.mjs +18 -0
- package/es/components/api-component/index.mjs.map +1 -0
- package/es/components/api-component/src/api-component.vue.d.ts +435 -0
- package/es/components/api-component/src/api-component.vue.mjs +8 -0
- package/es/components/api-component/src/api-component.vue.mjs.map +1 -0
- package/es/components/api-component/src/api-component.vue2.mjs +148 -0
- package/es/components/api-component/src/api-component.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/api-modal.vue.d.ts +71 -0
- package/es/components/api-component/src/components/api-modal.vue.mjs +8 -0
- package/es/components/api-component/src/components/api-modal.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/api-modal.vue2.mjs +65 -0
- package/es/components/api-component/src/components/api-modal.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/api-url.vue.d.ts +57 -0
- package/es/components/api-component/src/components/api-url.vue.mjs +8 -0
- package/es/components/api-component/src/components/api-url.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/api-url.vue2.mjs +60 -0
- package/es/components/api-component/src/components/api-url.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/batch-editing.vue.d.ts +37 -0
- package/es/components/api-component/src/components/batch-editing.vue.mjs +8 -0
- package/es/components/api-component/src/components/batch-editing.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/batch-editing.vue2.mjs +98 -0
- package/es/components/api-component/src/components/batch-editing.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/click-input.vue.d.ts +111 -0
- package/es/components/api-component/src/components/click-input.vue.mjs +8 -0
- package/es/components/api-component/src/components/click-input.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/click-input.vue2.mjs +72 -0
- package/es/components/api-component/src/components/click-input.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/json-xml-table-row.vue.d.ts +21 -0
- package/es/components/api-component/src/components/json-xml-table-row.vue.mjs +8 -0
- package/es/components/api-component/src/components/json-xml-table-row.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/json-xml-table-row.vue2.mjs +454 -0
- package/es/components/api-component/src/components/json-xml-table-row.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/json-xml-table.vue.d.ts +30 -0
- package/es/components/api-component/src/components/json-xml-table.vue.mjs +8 -0
- package/es/components/api-component/src/components/json-xml-table.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/json-xml-table.vue2.mjs +117 -0
- package/es/components/api-component/src/components/json-xml-table.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/json-xml.vue.d.ts +83 -0
- package/es/components/api-component/src/components/json-xml.vue.mjs +8 -0
- package/es/components/api-component/src/components/json-xml.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/json-xml.vue2.mjs +328 -0
- package/es/components/api-component/src/components/json-xml.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/params-table-row.vue.d.ts +146 -0
- package/es/components/api-component/src/components/params-table-row.vue.mjs +8 -0
- package/es/components/api-component/src/components/params-table-row.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/params-table-row.vue2.mjs +156 -0
- package/es/components/api-component/src/components/params-table-row.vue2.mjs.map +1 -0
- package/es/components/api-component/src/components/params-table.vue.d.ts +177 -0
- package/es/components/api-component/src/components/params-table.vue.mjs +8 -0
- package/es/components/api-component/src/components/params-table.vue.mjs.map +1 -0
- package/es/components/api-component/src/components/params-table.vue2.mjs +163 -0
- package/es/components/api-component/src/components/params-table.vue2.mjs.map +1 -0
- package/es/components/api-component/src/config/api-component.d.ts +41 -0
- package/es/components/api-component/src/config/api-component.mjs +77 -0
- package/es/components/api-component/src/config/api-component.mjs.map +1 -0
- package/es/components/api-component/src/config/api-modal.d.ts +11 -0
- package/es/components/api-component/src/config/api-modal.mjs +26 -0
- package/es/components/api-component/src/config/api-modal.mjs.map +1 -0
- package/es/components/api-component/src/config/api-url.d.ts +9 -0
- package/es/components/api-component/src/config/api-url.mjs +26 -0
- package/es/components/api-component/src/config/api-url.mjs.map +1 -0
- package/es/components/api-component/src/config/batch-editing.d.ts +12 -0
- package/es/components/api-component/src/config/batch-editing.mjs +30 -0
- package/es/components/api-component/src/config/batch-editing.mjs.map +1 -0
- package/es/components/api-component/src/config/click-input.d.ts +8 -0
- package/es/components/api-component/src/config/click-input.mjs +20 -0
- package/es/components/api-component/src/config/click-input.mjs.map +1 -0
- package/es/components/api-component/src/config/index.d.ts +8 -0
- package/es/components/api-component/src/config/index.mjs +11 -0
- package/es/components/api-component/src/config/index.mjs.map +1 -0
- package/es/components/api-component/src/config/json-xml.d.ts +52 -0
- package/es/components/api-component/src/config/json-xml.mjs +144 -0
- package/es/components/api-component/src/config/json-xml.mjs.map +1 -0
- package/es/components/api-component/src/config/params-table.d.ts +31 -0
- package/es/components/api-component/src/config/params-table.mjs +64 -0
- package/es/components/api-component/src/config/params-table.mjs.map +1 -0
- package/es/components/api-component/src/config/table.d.ts +33 -0
- package/es/components/api-component/src/config/table.mjs +109 -0
- package/es/components/api-component/src/config/table.mjs.map +1 -0
- package/es/components/button/src/button.vue2.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.vue2.mjs.map +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +11 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/key-value/src/components/key-value-item.vue2.mjs +0 -1
- package/es/components/key-value/src/components/key-value-item.vue2.mjs.map +1 -1
- package/es/components/modal/index.d.ts +1 -1
- package/es/components/modal/src/modal.vue.d.ts +1 -1
- package/es/components/modal/src/modal.vue2.mjs.map +1 -1
- package/es/components/number-range/index.d.ts +854 -0
- package/es/components/number-range/index.mjs +10 -0
- package/es/components/number-range/index.mjs.map +1 -0
- package/es/components/number-range/src/number-range.d.ts +23 -0
- package/es/components/number-range/src/number-range.mjs +30 -0
- package/es/components/number-range/src/number-range.mjs.map +1 -0
- package/es/components/number-range/src/number-range.vue.d.ts +848 -0
- package/es/components/number-range/src/number-range.vue.mjs +8 -0
- package/es/components/number-range/src/number-range.vue.mjs.map +1 -0
- package/es/components/number-range/src/number-range.vue2.mjs +161 -0
- package/es/components/number-range/src/number-range.vue2.mjs.map +1 -0
- package/es/components/table/src/components/main-table.vue2.mjs +3 -0
- package/es/components/table/src/components/main-table.vue2.mjs.map +1 -1
- package/es/components/table/src/table.vue2.mjs +3 -0
- package/es/components/table/src/table.vue2.mjs.map +1 -1
- package/es/components/tree-search/index.d.ts +1 -1
- package/es/components/tree-search/src/tree-search.vue.d.ts +1 -1
- package/es/index.mjs +11 -0
- package/es/index.mjs.map +1 -1
- package/es/utils/props/runtime.d.ts +2 -2
- package/global.d.ts +2 -0
- package/index.full.js +2454 -198
- package/index.full.min.js +21 -21
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +25 -25
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +2421 -200
- package/lib/component.js +93 -89
- package/lib/component.js.map +1 -1
- package/lib/components/api-component/index.d.ts +442 -0
- package/lib/components/api-component/index.js +54 -0
- package/lib/components/api-component/index.js.map +1 -0
- package/lib/components/api-component/src/api-component.vue.d.ts +435 -0
- package/lib/components/api-component/src/api-component.vue.js +12 -0
- package/lib/components/api-component/src/api-component.vue.js.map +1 -0
- package/lib/components/api-component/src/api-component.vue2.js +152 -0
- package/lib/components/api-component/src/api-component.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/api-modal.vue.d.ts +71 -0
- package/lib/components/api-component/src/components/api-modal.vue.js +12 -0
- package/lib/components/api-component/src/components/api-modal.vue.js.map +1 -0
- package/lib/components/api-component/src/components/api-modal.vue2.js +69 -0
- package/lib/components/api-component/src/components/api-modal.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/api-url.vue.d.ts +57 -0
- package/lib/components/api-component/src/components/api-url.vue.js +12 -0
- package/lib/components/api-component/src/components/api-url.vue.js.map +1 -0
- package/lib/components/api-component/src/components/api-url.vue2.js +64 -0
- package/lib/components/api-component/src/components/api-url.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/batch-editing.vue.d.ts +37 -0
- package/lib/components/api-component/src/components/batch-editing.vue.js +12 -0
- package/lib/components/api-component/src/components/batch-editing.vue.js.map +1 -0
- package/lib/components/api-component/src/components/batch-editing.vue2.js +102 -0
- package/lib/components/api-component/src/components/batch-editing.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/click-input.vue.d.ts +111 -0
- package/lib/components/api-component/src/components/click-input.vue.js +12 -0
- package/lib/components/api-component/src/components/click-input.vue.js.map +1 -0
- package/lib/components/api-component/src/components/click-input.vue2.js +76 -0
- package/lib/components/api-component/src/components/click-input.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/json-xml-table-row.vue.d.ts +21 -0
- package/lib/components/api-component/src/components/json-xml-table-row.vue.js +12 -0
- package/lib/components/api-component/src/components/json-xml-table-row.vue.js.map +1 -0
- package/lib/components/api-component/src/components/json-xml-table-row.vue2.js +458 -0
- package/lib/components/api-component/src/components/json-xml-table-row.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/json-xml-table.vue.d.ts +30 -0
- package/lib/components/api-component/src/components/json-xml-table.vue.js +12 -0
- package/lib/components/api-component/src/components/json-xml-table.vue.js.map +1 -0
- package/lib/components/api-component/src/components/json-xml-table.vue2.js +121 -0
- package/lib/components/api-component/src/components/json-xml-table.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/json-xml.vue.d.ts +83 -0
- package/lib/components/api-component/src/components/json-xml.vue.js +12 -0
- package/lib/components/api-component/src/components/json-xml.vue.js.map +1 -0
- package/lib/components/api-component/src/components/json-xml.vue2.js +332 -0
- package/lib/components/api-component/src/components/json-xml.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/params-table-row.vue.d.ts +146 -0
- package/lib/components/api-component/src/components/params-table-row.vue.js +12 -0
- package/lib/components/api-component/src/components/params-table-row.vue.js.map +1 -0
- package/lib/components/api-component/src/components/params-table-row.vue2.js +160 -0
- package/lib/components/api-component/src/components/params-table-row.vue2.js.map +1 -0
- package/lib/components/api-component/src/components/params-table.vue.d.ts +177 -0
- package/lib/components/api-component/src/components/params-table.vue.js +12 -0
- package/lib/components/api-component/src/components/params-table.vue.js.map +1 -0
- package/lib/components/api-component/src/components/params-table.vue2.js +167 -0
- package/lib/components/api-component/src/components/params-table.vue2.js.map +1 -0
- package/lib/components/api-component/src/config/api-component.d.ts +41 -0
- package/lib/components/api-component/src/config/api-component.js +82 -0
- package/lib/components/api-component/src/config/api-component.js.map +1 -0
- package/lib/components/api-component/src/config/api-modal.d.ts +11 -0
- package/lib/components/api-component/src/config/api-modal.js +29 -0
- package/lib/components/api-component/src/config/api-modal.js.map +1 -0
- package/lib/components/api-component/src/config/api-url.d.ts +9 -0
- package/lib/components/api-component/src/config/api-url.js +29 -0
- package/lib/components/api-component/src/config/api-url.js.map +1 -0
- package/lib/components/api-component/src/config/batch-editing.d.ts +12 -0
- package/lib/components/api-component/src/config/batch-editing.js +34 -0
- package/lib/components/api-component/src/config/batch-editing.js.map +1 -0
- package/lib/components/api-component/src/config/click-input.d.ts +8 -0
- package/lib/components/api-component/src/config/click-input.js +23 -0
- package/lib/components/api-component/src/config/click-input.js.map +1 -0
- package/lib/components/api-component/src/config/index.d.ts +8 -0
- package/lib/components/api-component/src/config/index.js +45 -0
- package/lib/components/api-component/src/config/index.js.map +1 -0
- package/lib/components/api-component/src/config/json-xml.d.ts +52 -0
- package/lib/components/api-component/src/config/json-xml.js +156 -0
- package/lib/components/api-component/src/config/json-xml.js.map +1 -0
- package/lib/components/api-component/src/config/params-table.d.ts +31 -0
- package/lib/components/api-component/src/config/params-table.js +69 -0
- package/lib/components/api-component/src/config/params-table.js.map +1 -0
- package/lib/components/api-component/src/config/table.d.ts +33 -0
- package/lib/components/api-component/src/config/table.js +113 -0
- package/lib/components/api-component/src/config/table.js.map +1 -0
- package/lib/components/button/src/button.vue2.js.map +1 -1
- package/lib/components/drawer/index.d.ts +1 -1
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.vue2.js.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +139 -93
- package/lib/components/index.js.map +1 -1
- package/lib/components/key-value/src/components/key-value-item.vue2.js +0 -1
- package/lib/components/key-value/src/components/key-value-item.vue2.js.map +1 -1
- package/lib/components/modal/index.d.ts +1 -1
- package/lib/components/modal/src/modal.vue.d.ts +1 -1
- package/lib/components/modal/src/modal.vue2.js.map +1 -1
- package/lib/components/number-range/index.d.ts +854 -0
- package/lib/components/number-range/index.js +17 -0
- package/lib/components/number-range/index.js.map +1 -0
- package/lib/components/number-range/src/number-range.d.ts +23 -0
- package/lib/components/number-range/src/number-range.js +33 -0
- package/lib/components/number-range/src/number-range.js.map +1 -0
- package/lib/components/number-range/src/number-range.vue.d.ts +848 -0
- package/lib/components/number-range/src/number-range.vue.js +12 -0
- package/lib/components/number-range/src/number-range.vue.js.map +1 -0
- package/lib/components/number-range/src/number-range.vue2.js +165 -0
- package/lib/components/number-range/src/number-range.vue2.js.map +1 -0
- package/lib/components/table/src/components/main-table.vue2.js +3 -0
- package/lib/components/table/src/components/main-table.vue2.js.map +1 -1
- package/lib/components/table/src/table.vue2.js +3 -0
- package/lib/components/table/src/table.vue2.js.map +1 -1
- package/lib/components/tree-search/index.d.ts +1 -1
- package/lib/components/tree-search/src/tree-search.vue.d.ts +1 -1
- package/lib/index.js +139 -93
- package/lib/index.js.map +1 -1
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/theme-chalk/css/api-component.css +5 -0
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/number-range.css +5 -0
- package/types/packages/components/api-component/index.d.ts +442 -0
- package/types/packages/components/api-component/src/api-component.vue.d.ts +435 -0
- package/types/packages/components/api-component/src/components/api-modal.vue.d.ts +71 -0
- package/types/packages/components/api-component/src/components/api-url.vue.d.ts +57 -0
- package/types/packages/components/api-component/src/components/batch-editing.vue.d.ts +37 -0
- package/types/packages/components/api-component/src/components/click-input.vue.d.ts +111 -0
- package/types/packages/components/api-component/src/components/json-xml-table-row.vue.d.ts +21 -0
- package/types/packages/components/api-component/src/components/json-xml-table.vue.d.ts +30 -0
- package/types/packages/components/api-component/src/components/json-xml.vue.d.ts +83 -0
- package/types/packages/components/api-component/src/components/params-table-row.vue.d.ts +146 -0
- package/types/packages/components/api-component/src/components/params-table.vue.d.ts +177 -0
- package/types/packages/components/api-component/src/config/api-component.d.ts +41 -0
- package/types/packages/components/api-component/src/config/api-modal.d.ts +11 -0
- package/types/packages/components/api-component/src/config/api-url.d.ts +9 -0
- package/types/packages/components/api-component/src/config/batch-editing.d.ts +12 -0
- package/types/packages/components/api-component/src/config/click-input.d.ts +8 -0
- package/types/packages/components/api-component/src/config/index.d.ts +8 -0
- package/types/packages/components/api-component/src/config/json-xml.d.ts +52 -0
- package/types/packages/components/api-component/src/config/params-table.d.ts +31 -0
- package/types/packages/components/api-component/src/config/table.d.ts +33 -0
- package/types/packages/components/drawer/index.d.ts +1 -1
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
- package/types/packages/components/drawer/src/drawer.vue.d.ts +1 -1
- package/types/packages/components/index.d.ts +2 -0
- package/types/packages/components/modal/index.d.ts +1 -1
- package/types/packages/components/modal/src/modal.vue.d.ts +1 -1
- package/types/packages/components/number-range/index.d.ts +854 -0
- package/types/packages/components/number-range/src/number-range.d.ts +23 -0
- package/types/packages/components/number-range/src/number-range.vue.d.ts +848 -0
- package/types/packages/components/tree-search/index.d.ts +1 -1
- package/types/packages/components/tree-search/src/tree-search.vue.d.ts +1 -1
- package/types/packages/utils/props/runtime.d.ts +2 -2
package/index.full.js
CHANGED
|
@@ -1685,7 +1685,7 @@
|
|
|
1685
1685
|
"update:value": (value) => !!value
|
|
1686
1686
|
};
|
|
1687
1687
|
|
|
1688
|
-
const _hoisted_1$
|
|
1688
|
+
const _hoisted_1$d = /* @__PURE__ */ require$$0.createElementVNode(
|
|
1689
1689
|
"p",
|
|
1690
1690
|
null,
|
|
1691
1691
|
"\u6682\u65E0\u6570\u636E",
|
|
@@ -1693,9 +1693,9 @@
|
|
|
1693
1693
|
/* HOISTED */
|
|
1694
1694
|
);
|
|
1695
1695
|
const _hoisted_2$5 = [
|
|
1696
|
-
_hoisted_1$
|
|
1696
|
+
_hoisted_1$d
|
|
1697
1697
|
];
|
|
1698
|
-
var _sfc_main$
|
|
1698
|
+
var _sfc_main$16 = /* @__PURE__ */ require$$0.defineComponent({
|
|
1699
1699
|
...{ name: "LlAdvancedFilteringParams" },
|
|
1700
1700
|
__name: "advanced-filtering-params",
|
|
1701
1701
|
props: advancedFilteringParamsProps,
|
|
@@ -1808,7 +1808,7 @@
|
|
|
1808
1808
|
return target;
|
|
1809
1809
|
};
|
|
1810
1810
|
|
|
1811
|
-
var AdvancedFilteringParams = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1811
|
+
var AdvancedFilteringParams = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__file", "advanced-filtering-params.vue"]]);
|
|
1812
1812
|
|
|
1813
1813
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1814
1814
|
|
|
@@ -2135,7 +2135,7 @@
|
|
|
2135
2135
|
var dayjs_minExports = dayjs_min.exports;
|
|
2136
2136
|
var dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
2137
2137
|
|
|
2138
|
-
const _hoisted_1$
|
|
2138
|
+
const _hoisted_1$c = /* @__PURE__ */ require$$0.createElementVNode(
|
|
2139
2139
|
"p",
|
|
2140
2140
|
null,
|
|
2141
2141
|
"\u7B5B\u9009\u7ED3\u679C\uFF1A",
|
|
@@ -2153,7 +2153,7 @@
|
|
|
2153
2153
|
const _hoisted_4 = [
|
|
2154
2154
|
_hoisted_3$2
|
|
2155
2155
|
];
|
|
2156
|
-
var _sfc_main$
|
|
2156
|
+
var _sfc_main$15 = /* @__PURE__ */ require$$0.defineComponent({
|
|
2157
2157
|
...{ name: "LlAdvancedFilteringTags" },
|
|
2158
2158
|
__name: "advanced-filtering-tags",
|
|
2159
2159
|
props: advancedFilteringProps,
|
|
@@ -2285,7 +2285,7 @@
|
|
|
2285
2285
|
class: require$$0.normalizeClass(require$$0.unref(bem).m("title"))
|
|
2286
2286
|
},
|
|
2287
2287
|
[
|
|
2288
|
-
_hoisted_1$
|
|
2288
|
+
_hoisted_1$c,
|
|
2289
2289
|
require$$0.createElementVNode("a", {
|
|
2290
2290
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClean(null))
|
|
2291
2291
|
}, "\u6E05\u9664\u7B5B\u9009\u7ED3\u679C")
|
|
@@ -2296,70 +2296,1774 @@
|
|
|
2296
2296
|
tags.value.length > 0 ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
2297
2297
|
"div",
|
|
2298
2298
|
{
|
|
2299
|
-
key: 0,
|
|
2300
|
-
class: require$$0.normalizeClass(require$$0.unref(bem).m("box"))
|
|
2299
|
+
key: 0,
|
|
2300
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("box"))
|
|
2301
|
+
},
|
|
2302
|
+
[
|
|
2303
|
+
(require$$0.openBlock(true), require$$0.createElementBlock(
|
|
2304
|
+
require$$0.Fragment,
|
|
2305
|
+
null,
|
|
2306
|
+
require$$0.renderList(tags.value, (tag) => {
|
|
2307
|
+
return require$$0.openBlock(), require$$0.createElementBlock(
|
|
2308
|
+
"div",
|
|
2309
|
+
{
|
|
2310
|
+
key: tag.key,
|
|
2311
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("tag"))
|
|
2312
|
+
},
|
|
2313
|
+
[
|
|
2314
|
+
require$$0.createElementVNode(
|
|
2315
|
+
"span",
|
|
2316
|
+
{
|
|
2317
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("label"))
|
|
2318
|
+
},
|
|
2319
|
+
require$$0.toDisplayString(tag.label) + ":",
|
|
2320
|
+
3
|
|
2321
|
+
/* TEXT, CLASS */
|
|
2322
|
+
),
|
|
2323
|
+
require$$0.createElementVNode(
|
|
2324
|
+
"span",
|
|
2325
|
+
{
|
|
2326
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("value"))
|
|
2327
|
+
},
|
|
2328
|
+
require$$0.toDisplayString(tag.showValue),
|
|
2329
|
+
3
|
|
2330
|
+
/* TEXT, CLASS */
|
|
2331
|
+
),
|
|
2332
|
+
require$$0.createElementVNode("span", {
|
|
2333
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("close")),
|
|
2334
|
+
onClick: ($event) => handleClean(tag)
|
|
2335
|
+
}, [
|
|
2336
|
+
require$$0.createVNode(_component_ll_icon, {
|
|
2337
|
+
"icon-name": "icon-close2",
|
|
2338
|
+
color: "#909399",
|
|
2339
|
+
"class-name": require$$0.unref(bem).m("icon")
|
|
2340
|
+
}, null, 8, ["class-name"])
|
|
2341
|
+
], 10, _hoisted_2$4)
|
|
2342
|
+
],
|
|
2343
|
+
2
|
|
2344
|
+
/* CLASS */
|
|
2345
|
+
);
|
|
2346
|
+
}),
|
|
2347
|
+
128
|
|
2348
|
+
/* KEYED_FRAGMENT */
|
|
2349
|
+
))
|
|
2350
|
+
],
|
|
2351
|
+
2
|
|
2352
|
+
/* CLASS */
|
|
2353
|
+
)) : (require$$0.openBlock(), require$$0.createElementBlock(
|
|
2354
|
+
"div",
|
|
2355
|
+
{
|
|
2356
|
+
key: 1,
|
|
2357
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("empty"))
|
|
2358
|
+
},
|
|
2359
|
+
_hoisted_4,
|
|
2360
|
+
2
|
|
2361
|
+
/* CLASS */
|
|
2362
|
+
))
|
|
2363
|
+
],
|
|
2364
|
+
2
|
|
2365
|
+
/* CLASS */
|
|
2366
|
+
);
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2369
|
+
});
|
|
2370
|
+
|
|
2371
|
+
var AdvancedFilteringTags = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__file", "advanced-filtering-tags.vue"]]);
|
|
2372
|
+
|
|
2373
|
+
const _hoisted_1$b = /* @__PURE__ */ require$$0.createElementVNode(
|
|
2374
|
+
"span",
|
|
2375
|
+
null,
|
|
2376
|
+
"\u9AD8\u7EA7\u7B5B\u9009",
|
|
2377
|
+
-1
|
|
2378
|
+
/* HOISTED */
|
|
2379
|
+
);
|
|
2380
|
+
var _sfc_main$14 = /* @__PURE__ */ require$$0.defineComponent({
|
|
2381
|
+
...{ name: "LlAdvancedFiltering" },
|
|
2382
|
+
__name: "advanced-filtering",
|
|
2383
|
+
props: advancedFilteringProps,
|
|
2384
|
+
emits: advancedFilteringEmits,
|
|
2385
|
+
setup(__props, { emit: __emit }) {
|
|
2386
|
+
const props = __props;
|
|
2387
|
+
const emits = __emit;
|
|
2388
|
+
const bem = createNamespace("advanced-filtering");
|
|
2389
|
+
const filterValue = require$$0.ref(props.value);
|
|
2390
|
+
const showSelectBox = require$$0.ref(false);
|
|
2391
|
+
const showValueBox = require$$0.ref(false);
|
|
2392
|
+
const handleHoverChange = (visible) => {
|
|
2393
|
+
if (showSelectBox.value)
|
|
2394
|
+
return;
|
|
2395
|
+
showValueBox.value = visible;
|
|
2396
|
+
};
|
|
2397
|
+
const handleClickChange = () => {
|
|
2398
|
+
showSelectBox.value = !showSelectBox.value;
|
|
2399
|
+
showValueBox.value = false;
|
|
2400
|
+
};
|
|
2401
|
+
const handleClose = () => {
|
|
2402
|
+
showSelectBox.value = false;
|
|
2403
|
+
showValueBox.value = false;
|
|
2404
|
+
};
|
|
2405
|
+
const handleChange = (val) => {
|
|
2406
|
+
filterValue.value = val;
|
|
2407
|
+
};
|
|
2408
|
+
require$$0.watch(
|
|
2409
|
+
filterValue,
|
|
2410
|
+
(n) => {
|
|
2411
|
+
emits("update:value", n);
|
|
2412
|
+
emits("change", n);
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
deep: true
|
|
2416
|
+
}
|
|
2417
|
+
);
|
|
2418
|
+
return (_ctx, _cache) => {
|
|
2419
|
+
const _component_a_popover = require$$0.resolveComponent("a-popover");
|
|
2420
|
+
return require$$0.openBlock(), require$$0.createBlock(_component_a_popover, {
|
|
2421
|
+
"overlay-class-name": require$$0.unref(bem).b(),
|
|
2422
|
+
placement: "bottomRight",
|
|
2423
|
+
"overlay-style": props.overlayStyle,
|
|
2424
|
+
open: showSelectBox.value
|
|
2425
|
+
}, {
|
|
2426
|
+
content: require$$0.withCtx(() => [
|
|
2427
|
+
require$$0.createVNode(AdvancedFilteringParams, {
|
|
2428
|
+
value: filterValue.value,
|
|
2429
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => filterValue.value = $event),
|
|
2430
|
+
"filter-columns": props.filterColumns,
|
|
2431
|
+
"form-options": props.formOptions,
|
|
2432
|
+
onClose: handleClose
|
|
2433
|
+
}, null, 8, ["value", "filter-columns", "form-options"])
|
|
2434
|
+
]),
|
|
2435
|
+
default: require$$0.withCtx(() => [
|
|
2436
|
+
require$$0.createVNode(_component_a_popover, {
|
|
2437
|
+
"overlay-class-name": require$$0.unref(bem).b(),
|
|
2438
|
+
trigger: "hover",
|
|
2439
|
+
placement: "bottomRight",
|
|
2440
|
+
open: showValueBox.value,
|
|
2441
|
+
"overlay-style": props.overlayStyle,
|
|
2442
|
+
onOpenChange: handleHoverChange
|
|
2443
|
+
}, {
|
|
2444
|
+
content: require$$0.withCtx(() => [
|
|
2445
|
+
require$$0.createVNode(AdvancedFilteringTags, {
|
|
2446
|
+
value: filterValue.value,
|
|
2447
|
+
"filter-columns": props.filterColumns,
|
|
2448
|
+
onChange: handleChange
|
|
2449
|
+
}, null, 8, ["value", "filter-columns"])
|
|
2450
|
+
]),
|
|
2451
|
+
default: require$$0.withCtx(() => [
|
|
2452
|
+
require$$0.createVNode(require$$0.unref(LlButton), {
|
|
2453
|
+
onClick: require$$0.withModifiers(handleClickChange, ["stop"])
|
|
2454
|
+
}, {
|
|
2455
|
+
default: require$$0.withCtx(() => [
|
|
2456
|
+
require$$0.createVNode(require$$0.unref(LlIcon), {
|
|
2457
|
+
"icon-name": "icon-Screening",
|
|
2458
|
+
style: { "margin-right": "10px" }
|
|
2459
|
+
}),
|
|
2460
|
+
_hoisted_1$b
|
|
2461
|
+
]),
|
|
2462
|
+
_: 1
|
|
2463
|
+
/* STABLE */
|
|
2464
|
+
})
|
|
2465
|
+
]),
|
|
2466
|
+
_: 1
|
|
2467
|
+
/* STABLE */
|
|
2468
|
+
}, 8, ["overlay-class-name", "open", "overlay-style"])
|
|
2469
|
+
]),
|
|
2470
|
+
_: 1
|
|
2471
|
+
/* STABLE */
|
|
2472
|
+
}, 8, ["overlay-class-name", "overlay-style", "open"]);
|
|
2473
|
+
};
|
|
2474
|
+
}
|
|
2475
|
+
});
|
|
2476
|
+
|
|
2477
|
+
var AdvancedFiltering = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__file", "advanced-filtering.vue"]]);
|
|
2478
|
+
|
|
2479
|
+
const LlAdvancedFiltering = withInstall(AdvancedFiltering);
|
|
2480
|
+
const LlAdvancedFilteringParams = withInstall(AdvancedFilteringParams);
|
|
2481
|
+
const LlAdvancedFilteringTags = withInstall(AdvancedFilteringTags);
|
|
2482
|
+
|
|
2483
|
+
const DEFAULT_METHOD = "GET";
|
|
2484
|
+
const requestList = [
|
|
2485
|
+
{
|
|
2486
|
+
key: "params",
|
|
2487
|
+
name: "\u8BF7\u6C42\u53C2\u6570"
|
|
2488
|
+
},
|
|
2489
|
+
{
|
|
2490
|
+
key: "body",
|
|
2491
|
+
name: "\u8BF7\u6C42\u62A5\u6587\u4F53"
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
key: "headers",
|
|
2495
|
+
name: "\u8BF7\u6C42\u5934"
|
|
2496
|
+
}
|
|
2497
|
+
];
|
|
2498
|
+
const bodyList = [
|
|
2499
|
+
{
|
|
2500
|
+
key: "none",
|
|
2501
|
+
name: "none"
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
key: "form-data",
|
|
2505
|
+
name: "form-data"
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
key: "x-www-form-urlencoded",
|
|
2509
|
+
name: "x-www-form-urlencoded"
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
key: "json",
|
|
2513
|
+
name: "json"
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
key: "xml",
|
|
2517
|
+
name: "xml"
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
key: "raw",
|
|
2521
|
+
name: "raw"
|
|
2522
|
+
}
|
|
2523
|
+
];
|
|
2524
|
+
const apiComponentProps = buildProps({
|
|
2525
|
+
url: {
|
|
2526
|
+
type: String,
|
|
2527
|
+
default: ""
|
|
2528
|
+
},
|
|
2529
|
+
method: {
|
|
2530
|
+
type: definePropType(String),
|
|
2531
|
+
default: DEFAULT_METHOD
|
|
2532
|
+
},
|
|
2533
|
+
requestParams: {
|
|
2534
|
+
type: definePropType(Array),
|
|
2535
|
+
default: () => []
|
|
2536
|
+
},
|
|
2537
|
+
headerParams: {
|
|
2538
|
+
type: definePropType(Array),
|
|
2539
|
+
default: () => []
|
|
2540
|
+
},
|
|
2541
|
+
bodyParams: {
|
|
2542
|
+
type: Object,
|
|
2543
|
+
default: () => ({
|
|
2544
|
+
none: null,
|
|
2545
|
+
"form-data": [],
|
|
2546
|
+
json: [],
|
|
2547
|
+
xml: [],
|
|
2548
|
+
raw: "",
|
|
2549
|
+
"x-www-form-urlencoded": []
|
|
2550
|
+
})
|
|
2551
|
+
}
|
|
2552
|
+
});
|
|
2553
|
+
|
|
2554
|
+
const apiModalProps = buildProps({
|
|
2555
|
+
type: {
|
|
2556
|
+
type: definePropType(String),
|
|
2557
|
+
default: "textarea"
|
|
2558
|
+
},
|
|
2559
|
+
open: {
|
|
2560
|
+
type: Boolean,
|
|
2561
|
+
default: false
|
|
2562
|
+
},
|
|
2563
|
+
value: {
|
|
2564
|
+
type: String,
|
|
2565
|
+
default: ""
|
|
2566
|
+
}
|
|
2567
|
+
});
|
|
2568
|
+
const apiModalEmits = {
|
|
2569
|
+
"update:open": (open) => !!open,
|
|
2570
|
+
"update:value": (value) => !!value,
|
|
2571
|
+
ok: (value) => !!value
|
|
2572
|
+
};
|
|
2573
|
+
|
|
2574
|
+
const methods = [
|
|
2575
|
+
{
|
|
2576
|
+
label: "GET",
|
|
2577
|
+
value: "GET"
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
label: "POST",
|
|
2581
|
+
value: "POST"
|
|
2582
|
+
},
|
|
2583
|
+
{
|
|
2584
|
+
label: "PUT",
|
|
2585
|
+
value: "PUT"
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
label: "DELETE",
|
|
2589
|
+
value: "DELETE"
|
|
2590
|
+
}
|
|
2591
|
+
];
|
|
2592
|
+
const apiUrlEmits = {
|
|
2593
|
+
["update:url"]: (url) => !!url,
|
|
2594
|
+
["update:method"]: (method) => !!method
|
|
2595
|
+
};
|
|
2596
|
+
|
|
2597
|
+
const batchEditingOptions = [
|
|
2598
|
+
{
|
|
2599
|
+
value: "comma",
|
|
2600
|
+
payload: {
|
|
2601
|
+
title: "\u9017\u53F7\u6A21\u5F0F"
|
|
2602
|
+
}
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
value: "colon",
|
|
2606
|
+
payload: {
|
|
2607
|
+
title: "\u5192\u53F7\u6A21\u5F0F"
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
];
|
|
2611
|
+
const batchEditingProps = buildProps({
|
|
2612
|
+
value: {
|
|
2613
|
+
type: String,
|
|
2614
|
+
default: ""
|
|
2615
|
+
}
|
|
2616
|
+
});
|
|
2617
|
+
const batchEditingEmits = {
|
|
2618
|
+
"update:value": (value) => !!value
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2621
|
+
const clickInputProps = buildProps({
|
|
2622
|
+
value: {
|
|
2623
|
+
type: String,
|
|
2624
|
+
default: ""
|
|
2625
|
+
},
|
|
2626
|
+
type: {
|
|
2627
|
+
type: definePropType(String),
|
|
2628
|
+
default: "textarea"
|
|
2629
|
+
}
|
|
2630
|
+
});
|
|
2631
|
+
const clickInputEmits = {
|
|
2632
|
+
"update:value": (value) => !!value
|
|
2633
|
+
};
|
|
2634
|
+
|
|
2635
|
+
const jsonTableColumns = [
|
|
2636
|
+
{
|
|
2637
|
+
title: "\u5B57\u6BB5\u540D",
|
|
2638
|
+
key: "name",
|
|
2639
|
+
dataIndex: "name",
|
|
2640
|
+
span: 6
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
title: "\u7C7B\u578B",
|
|
2644
|
+
key: "type",
|
|
2645
|
+
dataIndex: "type",
|
|
2646
|
+
span: 4
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
title: "Mock",
|
|
2650
|
+
key: "mock",
|
|
2651
|
+
dataIndex: "mock",
|
|
2652
|
+
span: 4
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
title: "\u4E2D\u6587\u540D",
|
|
2656
|
+
key: "chineseName",
|
|
2657
|
+
dataIndex: "chineseName",
|
|
2658
|
+
span: 4
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
title: "\u8BF4\u660E",
|
|
2662
|
+
key: "description",
|
|
2663
|
+
dataIndex: "description",
|
|
2664
|
+
span: 6
|
|
2665
|
+
}
|
|
2666
|
+
];
|
|
2667
|
+
const jsonXmlOptions = [
|
|
2668
|
+
{
|
|
2669
|
+
value: "json",
|
|
2670
|
+
payload: {
|
|
2671
|
+
title: "\u53C2\u6570\u503C"
|
|
2672
|
+
}
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
value: "data",
|
|
2676
|
+
payload: {
|
|
2677
|
+
title: "\u6570\u636E\u7ED3\u6784"
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
];
|
|
2681
|
+
const DEFAULT_TYPE = "data";
|
|
2682
|
+
const customOverlay = [
|
|
2683
|
+
{
|
|
2684
|
+
label: "\u4EC5\u751F\u6210\u5B57\u6BB5\u540D"
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
label: "\u4F18\u5148\u4F7F\u7528\u5B57\u6BB5\u9ED8\u8BA4\u503C"
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
label: "\u4F18\u5148\u4F7F\u7528\u5B57\u6BB5\u793A\u4F8B\u503C"
|
|
2691
|
+
}
|
|
2692
|
+
];
|
|
2693
|
+
const jsonXmlTypeOptions = [
|
|
2694
|
+
{
|
|
2695
|
+
label: "string",
|
|
2696
|
+
value: "string"
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
label: "interger",
|
|
2700
|
+
value: "interger"
|
|
2701
|
+
},
|
|
2702
|
+
{
|
|
2703
|
+
label: "boolean",
|
|
2704
|
+
value: "boolean"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
label: "array",
|
|
2708
|
+
value: "array"
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
label: "object",
|
|
2712
|
+
value: "object"
|
|
2713
|
+
},
|
|
2714
|
+
{
|
|
2715
|
+
label: "number",
|
|
2716
|
+
value: "number"
|
|
2717
|
+
},
|
|
2718
|
+
{
|
|
2719
|
+
label: "null",
|
|
2720
|
+
value: "null"
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
label: "any",
|
|
2724
|
+
value: "any"
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
label: "\u81EA\u5B9A\u4E49",
|
|
2728
|
+
value: "other"
|
|
2729
|
+
}
|
|
2730
|
+
];
|
|
2731
|
+
const jsonXmlProps = buildProps({
|
|
2732
|
+
value: {
|
|
2733
|
+
type: Object,
|
|
2734
|
+
default: () => {
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
});
|
|
2738
|
+
const jsonXmlEmits = {
|
|
2739
|
+
"update:value": (value) => !!value
|
|
2740
|
+
};
|
|
2741
|
+
const jsonXmlTableProps = buildProps({
|
|
2742
|
+
dataSource: {
|
|
2743
|
+
type: definePropType(Array),
|
|
2744
|
+
default: () => []
|
|
2745
|
+
}
|
|
2746
|
+
});
|
|
2747
|
+
const jsonXmlTableEmits = {
|
|
2748
|
+
change: (value) => !!value
|
|
2749
|
+
};
|
|
2750
|
+
const jsonXmlTableRowProps = buildProps({
|
|
2751
|
+
data: {
|
|
2752
|
+
type: definePropType(Object),
|
|
2753
|
+
default: () => {
|
|
2754
|
+
}
|
|
2755
|
+
},
|
|
2756
|
+
parentData: {
|
|
2757
|
+
type: definePropType(Object),
|
|
2758
|
+
default: () => null
|
|
2759
|
+
},
|
|
2760
|
+
layer: {
|
|
2761
|
+
type: Number,
|
|
2762
|
+
default: 0
|
|
2763
|
+
},
|
|
2764
|
+
treeKey: {
|
|
2765
|
+
type: String,
|
|
2766
|
+
default: ""
|
|
2767
|
+
}
|
|
2768
|
+
});
|
|
2769
|
+
const jsonXmlTableRowEmits = {
|
|
2770
|
+
change: () => true
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
const paramsOptions = [
|
|
2774
|
+
{
|
|
2775
|
+
label: "string",
|
|
2776
|
+
value: "string"
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
label: "integer",
|
|
2780
|
+
value: "integer"
|
|
2781
|
+
},
|
|
2782
|
+
{
|
|
2783
|
+
label: "boolean",
|
|
2784
|
+
value: "boolean"
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
label: "number",
|
|
2788
|
+
value: "number"
|
|
2789
|
+
},
|
|
2790
|
+
{
|
|
2791
|
+
label: "array",
|
|
2792
|
+
value: "array"
|
|
2793
|
+
}
|
|
2794
|
+
];
|
|
2795
|
+
const paramsTableProps = buildProps({
|
|
2796
|
+
dataSource: {
|
|
2797
|
+
type: definePropType(Array),
|
|
2798
|
+
default: () => []
|
|
2799
|
+
},
|
|
2800
|
+
columns: {
|
|
2801
|
+
type: definePropType(Array),
|
|
2802
|
+
default: () => []
|
|
2803
|
+
},
|
|
2804
|
+
options: {
|
|
2805
|
+
type: definePropType(Array),
|
|
2806
|
+
default: () => []
|
|
2807
|
+
}
|
|
2808
|
+
});
|
|
2809
|
+
const paramsTableRowProps = buildProps({
|
|
2810
|
+
columns: {
|
|
2811
|
+
type: definePropType(Array),
|
|
2812
|
+
default: () => []
|
|
2813
|
+
},
|
|
2814
|
+
dataSource: {
|
|
2815
|
+
type: definePropType(Array),
|
|
2816
|
+
default: () => []
|
|
2817
|
+
},
|
|
2818
|
+
data: {
|
|
2819
|
+
type: definePropType(Object),
|
|
2820
|
+
default: () => ({})
|
|
2821
|
+
},
|
|
2822
|
+
options: {
|
|
2823
|
+
type: definePropType(Array),
|
|
2824
|
+
default: () => []
|
|
2825
|
+
}
|
|
2826
|
+
});
|
|
2827
|
+
const paramsTableEmits = {
|
|
2828
|
+
add: (value) => !!value
|
|
2829
|
+
};
|
|
2830
|
+
|
|
2831
|
+
const paramsTableColumns = [
|
|
2832
|
+
{
|
|
2833
|
+
key: "required",
|
|
2834
|
+
dataIndex: "required",
|
|
2835
|
+
span: 1
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
title: "\u53C2\u6570\u540D",
|
|
2839
|
+
key: "name",
|
|
2840
|
+
dataIndex: "name",
|
|
2841
|
+
span: 5
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
title: "\u53C2\u6570\u503C",
|
|
2845
|
+
key: "value",
|
|
2846
|
+
dataIndex: "value",
|
|
2847
|
+
span: 6
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
title: "\u7C7B\u578B",
|
|
2851
|
+
key: "type",
|
|
2852
|
+
dataIndex: "type",
|
|
2853
|
+
span: 3
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
title: "\u56FA\u5B9A\u53C2\u6570\u503C",
|
|
2857
|
+
key: "static",
|
|
2858
|
+
dataIndex: "static",
|
|
2859
|
+
span: 2
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
title: "\u8BF4\u660E",
|
|
2863
|
+
key: "description",
|
|
2864
|
+
dataIndex: "description",
|
|
2865
|
+
span: 6
|
|
2866
|
+
}
|
|
2867
|
+
];
|
|
2868
|
+
const headersTableColumns = [
|
|
2869
|
+
{
|
|
2870
|
+
key: "required",
|
|
2871
|
+
dataIndex: "required",
|
|
2872
|
+
span: 1
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
title: "\u53C2\u6570\u540D",
|
|
2876
|
+
key: "name",
|
|
2877
|
+
dataIndex: "name",
|
|
2878
|
+
span: 6
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
title: "\u53C2\u6570\u503C",
|
|
2882
|
+
key: "value",
|
|
2883
|
+
dataIndex: "value",
|
|
2884
|
+
span: 6
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
title: "\u7C7B\u578B",
|
|
2888
|
+
key: "type",
|
|
2889
|
+
dataIndex: "type",
|
|
2890
|
+
span: 4
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
title: "\u8BF4\u660E",
|
|
2894
|
+
key: "description",
|
|
2895
|
+
dataIndex: "description",
|
|
2896
|
+
span: 6
|
|
2897
|
+
}
|
|
2898
|
+
];
|
|
2899
|
+
const formdataTableColumns = [
|
|
2900
|
+
{
|
|
2901
|
+
key: "required",
|
|
2902
|
+
dataIndex: "required",
|
|
2903
|
+
span: 1
|
|
2904
|
+
},
|
|
2905
|
+
{
|
|
2906
|
+
title: "\u53C2\u6570\u540D",
|
|
2907
|
+
key: "name",
|
|
2908
|
+
dataIndex: "name",
|
|
2909
|
+
span: 6
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
title: "\u53C2\u6570\u503C",
|
|
2913
|
+
key: "value",
|
|
2914
|
+
dataIndex: "value",
|
|
2915
|
+
span: 4
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
title: "\u7C7B\u578B",
|
|
2919
|
+
key: "type",
|
|
2920
|
+
dataIndex: "type",
|
|
2921
|
+
span: 3
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
title: "Content-Type",
|
|
2925
|
+
key: "contentType",
|
|
2926
|
+
dataIndex: "contentType",
|
|
2927
|
+
span: 3
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
title: "\u8BF4\u660E",
|
|
2931
|
+
key: "description",
|
|
2932
|
+
dataIndex: "description",
|
|
2933
|
+
span: 6
|
|
2934
|
+
}
|
|
2935
|
+
];
|
|
2936
|
+
|
|
2937
|
+
var _sfc_main$13 = /* @__PURE__ */ require$$0.defineComponent({
|
|
2938
|
+
__name: "api-url",
|
|
2939
|
+
props: apiComponentProps,
|
|
2940
|
+
emits: apiUrlEmits,
|
|
2941
|
+
setup(__props, { emit: __emit }) {
|
|
2942
|
+
const props = __props;
|
|
2943
|
+
const emits = __emit;
|
|
2944
|
+
const method = require$$0.ref(props.method);
|
|
2945
|
+
const url = require$$0.ref(props.url);
|
|
2946
|
+
require$$0.watch(method, (n) => {
|
|
2947
|
+
emits("update:method", n);
|
|
2948
|
+
});
|
|
2949
|
+
require$$0.watch(url, (n) => {
|
|
2950
|
+
emits("update:url", n);
|
|
2951
|
+
});
|
|
2952
|
+
return (_ctx, _cache) => {
|
|
2953
|
+
const _component_ll_select = require$$0.resolveComponent("ll-select");
|
|
2954
|
+
const _component_ll_input = require$$0.resolveComponent("ll-input");
|
|
2955
|
+
const _component_a_input_group = require$$0.resolveComponent("a-input-group");
|
|
2956
|
+
const _component_ll_form_item = require$$0.resolveComponent("ll-form-item");
|
|
2957
|
+
return require$$0.openBlock(), require$$0.createBlock(_component_ll_form_item, {
|
|
2958
|
+
label: "\u8BF7\u6C42\u5730\u5740",
|
|
2959
|
+
"label-col": { span: 24 },
|
|
2960
|
+
required: ""
|
|
2961
|
+
}, {
|
|
2962
|
+
default: require$$0.withCtx(() => [
|
|
2963
|
+
require$$0.createVNode(_component_a_input_group, { compact: "" }, {
|
|
2964
|
+
default: require$$0.withCtx(() => [
|
|
2965
|
+
require$$0.createVNode(_component_ll_select, {
|
|
2966
|
+
value: method.value,
|
|
2967
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => method.value = $event),
|
|
2968
|
+
options: require$$0.unref(methods),
|
|
2969
|
+
style: { "width": "150px" }
|
|
2970
|
+
}, null, 8, ["value", "options"]),
|
|
2971
|
+
require$$0.createVNode(_component_ll_input, {
|
|
2972
|
+
value: url.value,
|
|
2973
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => url.value = $event),
|
|
2974
|
+
style: { "width": "50%" },
|
|
2975
|
+
placeholder: "\u8BF7\u8F93\u5165\u5730\u5740\uFF08\u53BB\u9664\u524D\u7F6EURL)"
|
|
2976
|
+
}, null, 8, ["value"])
|
|
2977
|
+
]),
|
|
2978
|
+
_: 1
|
|
2979
|
+
/* STABLE */
|
|
2980
|
+
})
|
|
2981
|
+
]),
|
|
2982
|
+
_: 1
|
|
2983
|
+
/* STABLE */
|
|
2984
|
+
});
|
|
2985
|
+
};
|
|
2986
|
+
}
|
|
2987
|
+
});
|
|
2988
|
+
|
|
2989
|
+
var ApiUrl = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__file", "api-url.vue"]]);
|
|
2990
|
+
|
|
2991
|
+
const _hoisted_1$a = /* @__PURE__ */ require$$0.createElementVNode(
|
|
2992
|
+
"a",
|
|
2993
|
+
{ href: "javascript:;" },
|
|
2994
|
+
"\u300A\u6807\u51C6 CSV \u89C4\u8303\u300B",
|
|
2995
|
+
-1
|
|
2996
|
+
/* HOISTED */
|
|
2997
|
+
);
|
|
2998
|
+
var _sfc_main$12 = /* @__PURE__ */ require$$0.defineComponent({
|
|
2999
|
+
...{ name: "LlBatchEditing" },
|
|
3000
|
+
__name: "batch-editing",
|
|
3001
|
+
props: batchEditingProps,
|
|
3002
|
+
emits: batchEditingEmits,
|
|
3003
|
+
setup(__props, { emit: __emit }) {
|
|
3004
|
+
const props = __props;
|
|
3005
|
+
const emits = __emit;
|
|
3006
|
+
const bem = createNamespace("batch-editing");
|
|
3007
|
+
const type = require$$0.ref("comma");
|
|
3008
|
+
const currentPlaceholder = require$$0.computed(() => {
|
|
3009
|
+
return type.value === "comma" ? "\u683C\u5F0F: \u542F\u7528,\u53C2\u6570\u540D,\u53C2\u6570\u503C,\u7C7B\u578B,\u5FC5\u9700\u5907\u4EFD" : "\u683C\u5F0F\uFF1A\u53C2\u6570\u540D\uFF1A\u53C2\u6570\u503C";
|
|
3010
|
+
});
|
|
3011
|
+
const innerValue = require$$0.ref(props.value);
|
|
3012
|
+
require$$0.watch(innerValue, () => {
|
|
3013
|
+
emits("update:value", innerValue.value);
|
|
3014
|
+
});
|
|
3015
|
+
return (_ctx, _cache) => {
|
|
3016
|
+
const _component_ll_segmented = require$$0.resolveComponent("ll-segmented");
|
|
3017
|
+
const _component_ll_textarea = require$$0.resolveComponent("ll-textarea");
|
|
3018
|
+
return require$$0.openBlock(), require$$0.createElementBlock(
|
|
3019
|
+
"div",
|
|
3020
|
+
{
|
|
3021
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).b())
|
|
3022
|
+
},
|
|
3023
|
+
[
|
|
3024
|
+
require$$0.createVNode(_component_ll_segmented, {
|
|
3025
|
+
value: type.value,
|
|
3026
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => type.value = $event),
|
|
3027
|
+
options: require$$0.unref(batchEditingOptions)
|
|
3028
|
+
}, {
|
|
3029
|
+
label: require$$0.withCtx(({ payload }) => [
|
|
3030
|
+
require$$0.createElementVNode(
|
|
3031
|
+
"div",
|
|
3032
|
+
null,
|
|
3033
|
+
require$$0.toDisplayString(payload.title),
|
|
3034
|
+
1
|
|
3035
|
+
/* TEXT */
|
|
3036
|
+
)
|
|
3037
|
+
]),
|
|
3038
|
+
_: 1
|
|
3039
|
+
/* STABLE */
|
|
3040
|
+
}, 8, ["value", "options"]),
|
|
3041
|
+
require$$0.createElementVNode(
|
|
3042
|
+
"div",
|
|
3043
|
+
{
|
|
3044
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("textarea"))
|
|
3045
|
+
},
|
|
3046
|
+
[
|
|
3047
|
+
require$$0.createVNode(_component_ll_textarea, {
|
|
3048
|
+
value: innerValue.value,
|
|
3049
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
3050
|
+
placeholder: currentPlaceholder.value,
|
|
3051
|
+
autosize: { minRows: 10 },
|
|
3052
|
+
bordered: false
|
|
3053
|
+
}, null, 8, ["value", "placeholder"]),
|
|
3054
|
+
type.value === "comma" ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
3055
|
+
"p",
|
|
3056
|
+
{
|
|
3057
|
+
key: 0,
|
|
3058
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("textarea-tip"))
|
|
3059
|
+
},
|
|
3060
|
+
[
|
|
3061
|
+
require$$0.createTextVNode(" \u6570\u636E\u683C\u5F0F\u9075\u5FAA "),
|
|
3062
|
+
_hoisted_1$a,
|
|
3063
|
+
require$$0.createTextVNode(" \u5B57\u6BB5\u4E4B\u95F4\u4EE5\u82F1\u6587\u9017\u53F7( , )\u5206\u9694\uFF0C\u591A\u6761\u8BB0\u5F55\u4EE5\u6362\u884C\u5206\u9694 ")
|
|
3064
|
+
],
|
|
3065
|
+
2
|
|
3066
|
+
/* CLASS */
|
|
3067
|
+
)) : require$$0.createCommentVNode("v-if", true)
|
|
3068
|
+
],
|
|
3069
|
+
2
|
|
3070
|
+
/* CLASS */
|
|
3071
|
+
)
|
|
3072
|
+
],
|
|
3073
|
+
2
|
|
3074
|
+
/* CLASS */
|
|
3075
|
+
);
|
|
3076
|
+
};
|
|
3077
|
+
}
|
|
3078
|
+
});
|
|
3079
|
+
|
|
3080
|
+
var batchEditing = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__file", "batch-editing.vue"]]);
|
|
3081
|
+
|
|
3082
|
+
var _sfc_main$11 = /* @__PURE__ */ require$$0.defineComponent({
|
|
3083
|
+
...{ name: "LlApiModal" },
|
|
3084
|
+
__name: "api-modal",
|
|
3085
|
+
props: apiModalProps,
|
|
3086
|
+
emits: apiModalEmits,
|
|
3087
|
+
setup(__props, { emit: __emit }) {
|
|
3088
|
+
const props = __props;
|
|
3089
|
+
const emits = __emit;
|
|
3090
|
+
const innerValue = require$$0.ref(props.value);
|
|
3091
|
+
const handleCancel = () => {
|
|
3092
|
+
emits("update:open", false);
|
|
3093
|
+
};
|
|
3094
|
+
const handleOk = () => {
|
|
3095
|
+
emits("update:open", false);
|
|
3096
|
+
emits("ok", innerValue.value);
|
|
3097
|
+
};
|
|
3098
|
+
require$$0.watch(innerValue, (n) => {
|
|
3099
|
+
emits("update:value", n);
|
|
3100
|
+
});
|
|
3101
|
+
return (_ctx, _cache) => {
|
|
3102
|
+
const _component_ll_code_editor = require$$0.resolveComponent("ll-code-editor");
|
|
3103
|
+
const _component_ll_textarea = require$$0.resolveComponent("ll-textarea");
|
|
3104
|
+
const _component_ll_modal = require$$0.resolveComponent("ll-modal");
|
|
3105
|
+
return require$$0.openBlock(), require$$0.createBlock(_component_ll_modal, {
|
|
3106
|
+
open: props.open,
|
|
3107
|
+
title: "\u7F16\u8F91",
|
|
3108
|
+
width: "1200px",
|
|
3109
|
+
onOk: handleOk,
|
|
3110
|
+
onCancel: handleCancel
|
|
3111
|
+
}, {
|
|
3112
|
+
default: require$$0.withCtx(() => [
|
|
3113
|
+
props.type === "code" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_code_editor, {
|
|
3114
|
+
key: 0,
|
|
3115
|
+
value: innerValue.value,
|
|
3116
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event),
|
|
3117
|
+
language: "json",
|
|
3118
|
+
options: { minimap: { enabled: false } }
|
|
3119
|
+
}, null, 8, ["value"])) : require$$0.createCommentVNode("v-if", true),
|
|
3120
|
+
props.type === "textarea" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_textarea, {
|
|
3121
|
+
key: 1,
|
|
3122
|
+
value: innerValue.value,
|
|
3123
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
3124
|
+
autosize: { minRows: 15 }
|
|
3125
|
+
}, null, 8, ["value"])) : require$$0.createCommentVNode("v-if", true),
|
|
3126
|
+
props.type === "batch" ? (require$$0.openBlock(), require$$0.createBlock(batchEditing, {
|
|
3127
|
+
key: 2,
|
|
3128
|
+
value: innerValue.value,
|
|
3129
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerValue.value = $event)
|
|
3130
|
+
}, null, 8, ["value"])) : require$$0.createCommentVNode("v-if", true)
|
|
3131
|
+
]),
|
|
3132
|
+
_: 1
|
|
3133
|
+
/* STABLE */
|
|
3134
|
+
}, 8, ["open"]);
|
|
3135
|
+
};
|
|
3136
|
+
}
|
|
3137
|
+
});
|
|
3138
|
+
|
|
3139
|
+
var ApiModal = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__file", "api-modal.vue"]]);
|
|
3140
|
+
|
|
3141
|
+
const _hoisted_1$9 = ["disabled"];
|
|
3142
|
+
var _sfc_main$10 = /* @__PURE__ */ require$$0.defineComponent({
|
|
3143
|
+
...{ name: "LlClickInput" },
|
|
3144
|
+
__name: "click-input",
|
|
3145
|
+
props: clickInputProps,
|
|
3146
|
+
emits: clickInputEmits,
|
|
3147
|
+
setup(__props, { emit: __emit }) {
|
|
3148
|
+
const bem = createNamespace("api-component");
|
|
3149
|
+
const props = __props;
|
|
3150
|
+
const emits = __emit;
|
|
3151
|
+
const attrs = require$$0.useAttrs();
|
|
3152
|
+
const innerValue = require$$0.ref(props.value);
|
|
3153
|
+
const open = require$$0.ref(false);
|
|
3154
|
+
const getBindValue = require$$0.computed(() => {
|
|
3155
|
+
return omit({ ...attrs }, ["value"]);
|
|
3156
|
+
});
|
|
3157
|
+
const handleClick = () => {
|
|
3158
|
+
if (attrs.disabled)
|
|
3159
|
+
return;
|
|
3160
|
+
open.value = true;
|
|
3161
|
+
};
|
|
3162
|
+
require$$0.watch(innerValue, (n) => {
|
|
3163
|
+
emits("update:value", n);
|
|
3164
|
+
});
|
|
3165
|
+
return (_ctx, _cache) => {
|
|
3166
|
+
const _component_ll_icon = require$$0.resolveComponent("ll-icon");
|
|
3167
|
+
const _component_ll_input = require$$0.resolveComponent("ll-input");
|
|
3168
|
+
return require$$0.openBlock(), require$$0.createElementBlock("div", null, [
|
|
3169
|
+
require$$0.createVNode(_component_ll_input, require$$0.mergeProps({
|
|
3170
|
+
value: innerValue.value,
|
|
3171
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event)
|
|
3172
|
+
}, getBindValue.value, {
|
|
3173
|
+
class: require$$0.unref(bem).m("click-input")
|
|
3174
|
+
}), {
|
|
3175
|
+
suffix: require$$0.withCtx(() => [
|
|
3176
|
+
require$$0.createElementVNode("a", {
|
|
3177
|
+
href: "javascript:;",
|
|
3178
|
+
disabled: require$$0.unref(attrs).disabled,
|
|
3179
|
+
onClick: handleClick
|
|
3180
|
+
}, [
|
|
3181
|
+
require$$0.createVNode(_component_ll_icon, {
|
|
3182
|
+
style: { "font-size": "16px" },
|
|
3183
|
+
"icon-name": "icon-amplify2"
|
|
3184
|
+
})
|
|
3185
|
+
], 8, _hoisted_1$9)
|
|
3186
|
+
]),
|
|
3187
|
+
_: 1
|
|
3188
|
+
/* STABLE */
|
|
3189
|
+
}, 16, ["value", "class"]),
|
|
3190
|
+
require$$0.createVNode(ApiModal, {
|
|
3191
|
+
value: innerValue.value,
|
|
3192
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
3193
|
+
open: open.value,
|
|
3194
|
+
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => open.value = $event),
|
|
3195
|
+
type: props.type
|
|
3196
|
+
}, null, 8, ["value", "open", "type"])
|
|
3197
|
+
]);
|
|
3198
|
+
};
|
|
3199
|
+
}
|
|
3200
|
+
});
|
|
3201
|
+
|
|
3202
|
+
var ClickInput = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__file", "click-input.vue"]]);
|
|
3203
|
+
|
|
3204
|
+
var _sfc_main$$ = /* @__PURE__ */ require$$0.defineComponent({
|
|
3205
|
+
...{ name: "LlJsonXmlTableRow" },
|
|
3206
|
+
__name: "json-xml-table-row",
|
|
3207
|
+
props: jsonXmlTableRowProps,
|
|
3208
|
+
emits: jsonXmlTableRowEmits,
|
|
3209
|
+
setup(__props, { emit: __emit }) {
|
|
3210
|
+
const bem = createNamespace("json-xml");
|
|
3211
|
+
const props = __props;
|
|
3212
|
+
const emits = __emit;
|
|
3213
|
+
const innerData = require$$0.ref(props.data);
|
|
3214
|
+
const parentData = require$$0.ref(props.parentData);
|
|
3215
|
+
const expanded = require$$0.ref(true);
|
|
3216
|
+
const addValue = require$$0.ref("");
|
|
3217
|
+
const customOverlay = (parentData2, innerData2) => [
|
|
3218
|
+
{
|
|
3219
|
+
label: "\u6DFB\u52A0\u5B50\u8282\u70B9",
|
|
3220
|
+
type: "child",
|
|
3221
|
+
parentData: parentData2,
|
|
3222
|
+
innerData: innerData2
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
label: "\u6DFB\u52A0\u76F8\u90BB\u8282\u70B9",
|
|
3226
|
+
type: "next",
|
|
3227
|
+
parentData: parentData2,
|
|
3228
|
+
innerData: innerData2
|
|
3229
|
+
}
|
|
3230
|
+
];
|
|
3231
|
+
const getTip = (parentData2, innerData2) => {
|
|
3232
|
+
if (!parentData2 || parentData2.type === "array" && innerData2.type === "object") {
|
|
3233
|
+
return "child";
|
|
3234
|
+
}
|
|
3235
|
+
if (parentData2.type === "object" && innerData2.type !== "object") {
|
|
3236
|
+
return "next";
|
|
3237
|
+
}
|
|
3238
|
+
};
|
|
3239
|
+
const handleChange = () => {
|
|
3240
|
+
if (innerData.value.type === "object" || innerData.value.type === "array") {
|
|
3241
|
+
innerData.value.children = [];
|
|
3242
|
+
if (innerData.value.type === "array") {
|
|
3243
|
+
innerData.value.children[0] = {
|
|
3244
|
+
key: props.treeKey + "-1",
|
|
3245
|
+
name: "ITEMS",
|
|
3246
|
+
type: "string",
|
|
3247
|
+
value: "",
|
|
3248
|
+
chineseName: "",
|
|
3249
|
+
description: "",
|
|
3250
|
+
mock: ""
|
|
3251
|
+
};
|
|
3252
|
+
}
|
|
3253
|
+
} else {
|
|
3254
|
+
delete innerData.value.children;
|
|
3255
|
+
}
|
|
3256
|
+
};
|
|
3257
|
+
const handleConfirm = (parentData2, innerData2) => {
|
|
3258
|
+
const findIndex = parentData2.children.findIndex(
|
|
3259
|
+
(item) => item.key === innerData2.key
|
|
3260
|
+
);
|
|
3261
|
+
parentData2.children.splice(findIndex, 1);
|
|
3262
|
+
};
|
|
3263
|
+
const handleInput = () => {
|
|
3264
|
+
innerData.value.children = [];
|
|
3265
|
+
innerData.value.children[0] = {
|
|
3266
|
+
key: props.treeKey + "-1",
|
|
3267
|
+
name: addValue.value,
|
|
3268
|
+
type: "string",
|
|
3269
|
+
value: "",
|
|
3270
|
+
chineseName: "",
|
|
3271
|
+
description: "",
|
|
3272
|
+
mock: ""
|
|
3273
|
+
};
|
|
3274
|
+
addValue.value = "";
|
|
3275
|
+
};
|
|
3276
|
+
const handleAdd = (type, parentData2, innerData2) => {
|
|
3277
|
+
if (type === "next") {
|
|
3278
|
+
parentData2.children.push({
|
|
3279
|
+
key: `${parentData2.children.length + 1}`,
|
|
3280
|
+
name: "",
|
|
3281
|
+
type: "string",
|
|
3282
|
+
value: "",
|
|
3283
|
+
chineseName: "",
|
|
3284
|
+
description: "",
|
|
3285
|
+
mock: ""
|
|
3286
|
+
});
|
|
3287
|
+
} else {
|
|
3288
|
+
innerData2.children.push({
|
|
3289
|
+
key: props.treeKey + `${innerData2.children.length + 1}`,
|
|
3290
|
+
name: "",
|
|
3291
|
+
type: "string",
|
|
3292
|
+
value: "",
|
|
3293
|
+
chineseName: "",
|
|
3294
|
+
description: "",
|
|
3295
|
+
mock: ""
|
|
3296
|
+
});
|
|
3297
|
+
}
|
|
3298
|
+
};
|
|
3299
|
+
const handleClaimSelected = (item) => {
|
|
3300
|
+
const { type, parentData: parentData2, innerData: innerData2 } = item;
|
|
3301
|
+
handleAdd(type, parentData2, innerData2);
|
|
3302
|
+
};
|
|
3303
|
+
const handleRowChange = () => {
|
|
3304
|
+
emits("change");
|
|
3305
|
+
};
|
|
3306
|
+
require$$0.watch(
|
|
3307
|
+
innerData,
|
|
3308
|
+
() => {
|
|
3309
|
+
emits("change");
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
deep: true
|
|
3313
|
+
}
|
|
3314
|
+
);
|
|
3315
|
+
return (_ctx, _cache) => {
|
|
3316
|
+
const _component_ll_icon = require$$0.resolveComponent("ll-icon");
|
|
3317
|
+
const _component_ll_input = require$$0.resolveComponent("ll-input");
|
|
3318
|
+
const _component_a_col = require$$0.resolveComponent("a-col");
|
|
3319
|
+
const _component_ll_select = require$$0.resolveComponent("ll-select");
|
|
3320
|
+
const _component_ll_tooltip = require$$0.resolveComponent("ll-tooltip");
|
|
3321
|
+
const _component_ll_dropdown = require$$0.resolveComponent("ll-dropdown");
|
|
3322
|
+
const _component_a_popconfirm = require$$0.resolveComponent("a-popconfirm");
|
|
3323
|
+
const _component_a_row = require$$0.resolveComponent("a-row");
|
|
3324
|
+
return require$$0.openBlock(), require$$0.createElementBlock(
|
|
3325
|
+
require$$0.Fragment,
|
|
3326
|
+
null,
|
|
3327
|
+
[
|
|
3328
|
+
require$$0.createVNode(_component_a_row, {
|
|
3329
|
+
gutter: 20,
|
|
3330
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-row"))
|
|
3331
|
+
}, {
|
|
3332
|
+
default: require$$0.withCtx(() => [
|
|
3333
|
+
require$$0.createVNode(_component_a_col, {
|
|
3334
|
+
style: { "display": "flex" },
|
|
3335
|
+
span: 7,
|
|
3336
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
3337
|
+
}, {
|
|
3338
|
+
default: require$$0.withCtx(() => [
|
|
3339
|
+
require$$0.createElementVNode(
|
|
3340
|
+
"p",
|
|
3341
|
+
{
|
|
3342
|
+
style: require$$0.normalizeStyle({ width: 10 * props.layer + "px" })
|
|
3343
|
+
},
|
|
3344
|
+
null,
|
|
3345
|
+
4
|
|
3346
|
+
/* STYLE */
|
|
3347
|
+
),
|
|
3348
|
+
require$$0.createElementVNode(
|
|
3349
|
+
"div",
|
|
3350
|
+
{
|
|
3351
|
+
style: { "margin-right": "30px" },
|
|
3352
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-row-icon"))
|
|
3353
|
+
},
|
|
3354
|
+
[
|
|
3355
|
+
innerData.value.type === "object" || innerData.value.type === "array" ? (require$$0.openBlock(), require$$0.createElementBlock("span", {
|
|
3356
|
+
key: 0,
|
|
3357
|
+
style: { "width": "10px" },
|
|
3358
|
+
onClick: _cache[0] || (_cache[0] = ($event) => expanded.value = !expanded.value)
|
|
3359
|
+
}, [
|
|
3360
|
+
!expanded.value ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_icon, {
|
|
3361
|
+
key: 0,
|
|
3362
|
+
style: { "font-size": "14px" },
|
|
3363
|
+
"icon-name": "icon-list-expand"
|
|
3364
|
+
})) : (require$$0.openBlock(), require$$0.createBlock(_component_ll_icon, {
|
|
3365
|
+
key: 1,
|
|
3366
|
+
style: { "font-size": "14px" },
|
|
3367
|
+
"icon-name": "icon-list-retract"
|
|
3368
|
+
}))
|
|
3369
|
+
])) : require$$0.createCommentVNode("v-if", true)
|
|
3370
|
+
],
|
|
3371
|
+
2
|
|
3372
|
+
/* CLASS */
|
|
3373
|
+
),
|
|
3374
|
+
!props.parentData ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
3375
|
+
"div",
|
|
3376
|
+
{
|
|
3377
|
+
key: 0,
|
|
3378
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-row-tag"))
|
|
3379
|
+
},
|
|
3380
|
+
"\u6839\u8282\u70B9",
|
|
3381
|
+
2
|
|
3382
|
+
/* CLASS */
|
|
3383
|
+
)) : (require$$0.openBlock(), require$$0.createElementBlock(
|
|
3384
|
+
require$$0.Fragment,
|
|
3385
|
+
{ key: 1 },
|
|
3386
|
+
[
|
|
3387
|
+
props.parentData.type === "array" ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
3388
|
+
"div",
|
|
3389
|
+
{
|
|
3390
|
+
key: 0,
|
|
3391
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-row-tag"))
|
|
3392
|
+
},
|
|
3393
|
+
" ITEMS ",
|
|
3394
|
+
2
|
|
3395
|
+
/* CLASS */
|
|
3396
|
+
)) : require$$0.createCommentVNode("v-if", true),
|
|
3397
|
+
props.parentData.type === "object" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_input, {
|
|
3398
|
+
key: 1,
|
|
3399
|
+
value: innerData.value.name,
|
|
3400
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerData.value.name = $event),
|
|
3401
|
+
placeholder: "\u6DFB\u52A0\u5B57\u6BB5\u540D",
|
|
3402
|
+
bordered: false
|
|
3403
|
+
}, null, 8, ["value"])) : require$$0.createCommentVNode("v-if", true)
|
|
3404
|
+
],
|
|
3405
|
+
64
|
|
3406
|
+
/* STABLE_FRAGMENT */
|
|
3407
|
+
))
|
|
3408
|
+
]),
|
|
3409
|
+
_: 1
|
|
3410
|
+
/* STABLE */
|
|
3411
|
+
}, 8, ["class"]),
|
|
3412
|
+
require$$0.createVNode(_component_a_col, {
|
|
3413
|
+
span: 3,
|
|
3414
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
3415
|
+
}, {
|
|
3416
|
+
default: require$$0.withCtx(() => [
|
|
3417
|
+
require$$0.createVNode(_component_ll_select, {
|
|
3418
|
+
value: innerData.value.type,
|
|
3419
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerData.value.type = $event),
|
|
3420
|
+
options: require$$0.unref(jsonXmlTypeOptions),
|
|
3421
|
+
style: { "width": "100%" },
|
|
3422
|
+
onChange: handleChange
|
|
3423
|
+
}, null, 8, ["value", "options"])
|
|
3424
|
+
]),
|
|
3425
|
+
_: 1
|
|
3426
|
+
/* STABLE */
|
|
3427
|
+
}, 8, ["class"]),
|
|
3428
|
+
require$$0.createVNode(_component_a_col, {
|
|
3429
|
+
span: 4,
|
|
3430
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
3431
|
+
}, {
|
|
3432
|
+
default: require$$0.withCtx(() => [
|
|
3433
|
+
require$$0.createVNode(ClickInput, {
|
|
3434
|
+
value: innerData.value.mock,
|
|
3435
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => innerData.value.mock = $event),
|
|
3436
|
+
placeholder: "Mock",
|
|
3437
|
+
disabled: innerData.value.type === "object",
|
|
3438
|
+
style: { "width": "100%" }
|
|
3439
|
+
}, null, 8, ["value", "disabled"])
|
|
3440
|
+
]),
|
|
3441
|
+
_: 1
|
|
3442
|
+
/* STABLE */
|
|
3443
|
+
}, 8, ["class"]),
|
|
3444
|
+
require$$0.createVNode(_component_a_col, {
|
|
3445
|
+
span: 4,
|
|
3446
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
3447
|
+
}, {
|
|
3448
|
+
default: require$$0.withCtx(() => [
|
|
3449
|
+
require$$0.createVNode(_component_ll_input, {
|
|
3450
|
+
value: innerData.value.chineseName,
|
|
3451
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => innerData.value.chineseName = $event),
|
|
3452
|
+
placeholder: "\u4E2D\u6587\u540D",
|
|
3453
|
+
style: { "width": "100%" }
|
|
3454
|
+
}, null, 8, ["value"])
|
|
3455
|
+
]),
|
|
3456
|
+
_: 1
|
|
3457
|
+
/* STABLE */
|
|
3458
|
+
}, 8, ["class"]),
|
|
3459
|
+
require$$0.createVNode(_component_a_col, {
|
|
3460
|
+
span: 4,
|
|
3461
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
3462
|
+
}, {
|
|
3463
|
+
default: require$$0.withCtx(() => [
|
|
3464
|
+
require$$0.createVNode(ClickInput, {
|
|
3465
|
+
value: innerData.value.description,
|
|
3466
|
+
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => innerData.value.description = $event),
|
|
3467
|
+
placeholder: "\u8BF4\u660E",
|
|
3468
|
+
style: { "width": "100%" }
|
|
3469
|
+
}, null, 8, ["value"])
|
|
3470
|
+
]),
|
|
3471
|
+
_: 1
|
|
3472
|
+
/* STABLE */
|
|
3473
|
+
}, 8, ["class"]),
|
|
3474
|
+
require$$0.createVNode(_component_a_col, { span: 2 }, {
|
|
3475
|
+
default: require$$0.withCtx(() => [
|
|
3476
|
+
require$$0.createElementVNode(
|
|
3477
|
+
"div",
|
|
3478
|
+
{
|
|
3479
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-operation"))
|
|
3480
|
+
},
|
|
3481
|
+
[
|
|
3482
|
+
props.parentData && props.parentData.type === "object" && innerData.value.type !== "object" || !props.parentData && innerData.value.type === "object" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_tooltip, {
|
|
3483
|
+
key: 0,
|
|
3484
|
+
tip: getTip(parentData.value, innerData.value) === "child" ? "\u6DFB\u52A0\u5B50\u8282\u70B9" : "\u6DFB\u52A0\u76F8\u90BB\u8282\u70B9"
|
|
3485
|
+
}, {
|
|
3486
|
+
default: require$$0.withCtx(() => [
|
|
3487
|
+
require$$0.createElementVNode(
|
|
3488
|
+
"a",
|
|
3489
|
+
{
|
|
3490
|
+
href: "javascript:;",
|
|
3491
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-icon")),
|
|
3492
|
+
onClick: _cache[6] || (_cache[6] = ($event) => handleAdd(
|
|
3493
|
+
getTip(parentData.value, innerData.value),
|
|
3494
|
+
props.parentData,
|
|
3495
|
+
innerData.value
|
|
3496
|
+
))
|
|
3497
|
+
},
|
|
3498
|
+
[
|
|
3499
|
+
require$$0.createVNode(_component_ll_icon, { "icon-name": "icon-list-add" })
|
|
3500
|
+
],
|
|
3501
|
+
2
|
|
3502
|
+
/* CLASS */
|
|
3503
|
+
)
|
|
3504
|
+
]),
|
|
3505
|
+
_: 1
|
|
3506
|
+
/* STABLE */
|
|
3507
|
+
}, 8, ["tip"])) : require$$0.createCommentVNode("v-if", true),
|
|
3508
|
+
require$$0.createVNode(_component_ll_dropdown, {
|
|
3509
|
+
"dropdown-items": customOverlay(props.parentData, innerData.value),
|
|
3510
|
+
placement: "bottomRight",
|
|
3511
|
+
onClaimSelected: handleClaimSelected
|
|
3512
|
+
}, {
|
|
3513
|
+
default: require$$0.withCtx(() => [
|
|
3514
|
+
props.parentData && props.parentData.type === "object" && innerData.value.type === "object" ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
3515
|
+
"a",
|
|
3516
|
+
{
|
|
3517
|
+
key: 0,
|
|
3518
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-icon")),
|
|
3519
|
+
href: "javascript:;"
|
|
3520
|
+
},
|
|
3521
|
+
[
|
|
3522
|
+
require$$0.createVNode(_component_ll_icon, { "icon-name": "icon-list-add" })
|
|
3523
|
+
],
|
|
3524
|
+
2
|
|
3525
|
+
/* CLASS */
|
|
3526
|
+
)) : require$$0.createCommentVNode("v-if", true)
|
|
3527
|
+
]),
|
|
3528
|
+
_: 1
|
|
3529
|
+
/* STABLE */
|
|
3530
|
+
}, 8, ["dropdown-items"]),
|
|
3531
|
+
props.parentData && props.parentData.type !== "array" ? (require$$0.openBlock(), require$$0.createBlock(_component_a_popconfirm, {
|
|
3532
|
+
key: 1,
|
|
3533
|
+
title: "\u4F60\u786E\u5B9A\u8981\u79FB\u9664\u5417\uFF1F",
|
|
3534
|
+
"ok-text": "\u786E\u8BA4",
|
|
3535
|
+
"cancel-text": "\u53D6\u6D88",
|
|
3536
|
+
placement: "topRight",
|
|
3537
|
+
"overlay-class-name": require$$0.unref(bem).e("popconfirm"),
|
|
3538
|
+
onConfirm: _cache[7] || (_cache[7] = ($event) => handleConfirm(props.parentData, innerData.value))
|
|
3539
|
+
}, {
|
|
3540
|
+
default: require$$0.withCtx(() => [
|
|
3541
|
+
require$$0.createElementVNode(
|
|
3542
|
+
"a",
|
|
3543
|
+
{
|
|
3544
|
+
href: "javascript:;",
|
|
3545
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-icon"))
|
|
3546
|
+
},
|
|
3547
|
+
[
|
|
3548
|
+
require$$0.createVNode(_component_ll_icon, { "icon-name": "icon-remove" })
|
|
3549
|
+
],
|
|
3550
|
+
2
|
|
3551
|
+
/* CLASS */
|
|
3552
|
+
)
|
|
3553
|
+
]),
|
|
3554
|
+
_: 1
|
|
3555
|
+
/* STABLE */
|
|
3556
|
+
}, 8, ["overlay-class-name"])) : require$$0.createCommentVNode("v-if", true)
|
|
3557
|
+
],
|
|
3558
|
+
2
|
|
3559
|
+
/* CLASS */
|
|
3560
|
+
)
|
|
3561
|
+
]),
|
|
3562
|
+
_: 1
|
|
3563
|
+
/* STABLE */
|
|
3564
|
+
})
|
|
3565
|
+
]),
|
|
3566
|
+
_: 1
|
|
3567
|
+
/* STABLE */
|
|
3568
|
+
}, 8, ["class"]),
|
|
3569
|
+
expanded.value ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
3570
|
+
require$$0.Fragment,
|
|
3571
|
+
{ key: 0 },
|
|
3572
|
+
[
|
|
3573
|
+
innerData.value.type === "object" && innerData.value.children && innerData.value.children.length === 0 ? (require$$0.openBlock(), require$$0.createBlock(_component_a_row, {
|
|
3574
|
+
key: 0,
|
|
3575
|
+
gutter: 20,
|
|
3576
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-row"))
|
|
3577
|
+
}, {
|
|
3578
|
+
default: require$$0.withCtx(() => [
|
|
3579
|
+
require$$0.createVNode(_component_a_col, {
|
|
3580
|
+
style: { "display": "flex" },
|
|
3581
|
+
span: 7,
|
|
3582
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
3583
|
+
}, {
|
|
3584
|
+
default: require$$0.withCtx(() => [
|
|
3585
|
+
require$$0.createElementVNode(
|
|
3586
|
+
"p",
|
|
3587
|
+
{
|
|
3588
|
+
style: require$$0.normalizeStyle({ width: 10 * props.layer + "px" })
|
|
3589
|
+
},
|
|
3590
|
+
null,
|
|
3591
|
+
4
|
|
3592
|
+
/* STYLE */
|
|
3593
|
+
),
|
|
3594
|
+
require$$0.createElementVNode(
|
|
3595
|
+
"div",
|
|
3596
|
+
{
|
|
3597
|
+
style: { "margin-right": "30px" },
|
|
3598
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-row-icon"))
|
|
3599
|
+
},
|
|
3600
|
+
null,
|
|
3601
|
+
2
|
|
3602
|
+
/* CLASS */
|
|
3603
|
+
),
|
|
3604
|
+
require$$0.createVNode(_component_ll_input, {
|
|
3605
|
+
value: addValue.value,
|
|
3606
|
+
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => addValue.value = $event),
|
|
3607
|
+
placeholder: "\u6DFB\u52A0\u5B57\u6BB5\u540D",
|
|
3608
|
+
bordered: false,
|
|
3609
|
+
onInput: handleInput
|
|
3610
|
+
}, null, 8, ["value"])
|
|
3611
|
+
]),
|
|
3612
|
+
_: 1
|
|
3613
|
+
/* STABLE */
|
|
3614
|
+
}, 8, ["class"])
|
|
3615
|
+
]),
|
|
3616
|
+
_: 1
|
|
3617
|
+
/* STABLE */
|
|
3618
|
+
}, 8, ["class"])) : require$$0.createCommentVNode("v-if", true),
|
|
3619
|
+
innerData.value.children && innerData.value.children.length > 0 ? (require$$0.openBlock(true), require$$0.createElementBlock(
|
|
3620
|
+
require$$0.Fragment,
|
|
3621
|
+
{ key: 1 },
|
|
3622
|
+
require$$0.renderList(innerData.value.children, (child, index) => {
|
|
3623
|
+
return require$$0.openBlock(), require$$0.createBlock(TableRow$1, {
|
|
3624
|
+
key: index,
|
|
3625
|
+
"parent-data": innerData.value,
|
|
3626
|
+
data: child,
|
|
3627
|
+
layer: props.layer + 1,
|
|
3628
|
+
"tree-key": props.treeKey + "-" + (index + 1),
|
|
3629
|
+
onChange: handleRowChange
|
|
3630
|
+
}, null, 8, ["parent-data", "data", "layer", "tree-key"]);
|
|
3631
|
+
}),
|
|
3632
|
+
128
|
|
3633
|
+
/* KEYED_FRAGMENT */
|
|
3634
|
+
)) : require$$0.createCommentVNode("v-if", true)
|
|
3635
|
+
],
|
|
3636
|
+
64
|
|
3637
|
+
/* STABLE_FRAGMENT */
|
|
3638
|
+
)) : require$$0.createCommentVNode("v-if", true)
|
|
3639
|
+
],
|
|
3640
|
+
64
|
|
3641
|
+
/* STABLE_FRAGMENT */
|
|
3642
|
+
);
|
|
3643
|
+
};
|
|
3644
|
+
}
|
|
3645
|
+
});
|
|
3646
|
+
|
|
3647
|
+
var TableRow$1 = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__file", "json-xml-table-row.vue"]]);
|
|
3648
|
+
|
|
3649
|
+
var _sfc_main$_ = /* @__PURE__ */ require$$0.defineComponent({
|
|
3650
|
+
...{ name: "LlJsonXmlTable" },
|
|
3651
|
+
__name: "json-xml-table",
|
|
3652
|
+
props: jsonXmlTableProps,
|
|
3653
|
+
emits: jsonXmlTableEmits,
|
|
3654
|
+
setup(__props, { emit: __emit }) {
|
|
3655
|
+
const bem = createNamespace("json-xml");
|
|
3656
|
+
const props = __props;
|
|
3657
|
+
const emits = __emit;
|
|
3658
|
+
const handleChange = (dataSource) => {
|
|
3659
|
+
emits("change", dataSource);
|
|
3660
|
+
};
|
|
3661
|
+
return (_ctx, _cache) => {
|
|
3662
|
+
const _component_a_col = require$$0.resolveComponent("a-col");
|
|
3663
|
+
const _component_a_row = require$$0.resolveComponent("a-row");
|
|
3664
|
+
return require$$0.openBlock(), require$$0.createElementBlock(
|
|
3665
|
+
"div",
|
|
3666
|
+
{
|
|
3667
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table"))
|
|
3668
|
+
},
|
|
3669
|
+
[
|
|
3670
|
+
require$$0.createVNode(_component_a_row, {
|
|
3671
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-header")),
|
|
3672
|
+
gutter: 20
|
|
3673
|
+
}, {
|
|
3674
|
+
default: require$$0.withCtx(() => [
|
|
3675
|
+
require$$0.createVNode(_component_a_col, {
|
|
3676
|
+
span: 7,
|
|
3677
|
+
style: { "padding-left": "60px" }
|
|
3678
|
+
}, {
|
|
3679
|
+
default: require$$0.withCtx(() => [
|
|
3680
|
+
require$$0.createTextVNode(" \u540D\u79F0 ")
|
|
3681
|
+
]),
|
|
3682
|
+
_: 1
|
|
3683
|
+
/* STABLE */
|
|
3684
|
+
}),
|
|
3685
|
+
require$$0.createVNode(_component_a_col, { span: 3 }, {
|
|
3686
|
+
default: require$$0.withCtx(() => [
|
|
3687
|
+
require$$0.createTextVNode(" \u7C7B\u578B ")
|
|
3688
|
+
]),
|
|
3689
|
+
_: 1
|
|
3690
|
+
/* STABLE */
|
|
3691
|
+
}),
|
|
3692
|
+
require$$0.createVNode(_component_a_col, { span: 4 }, {
|
|
3693
|
+
default: require$$0.withCtx(() => [
|
|
3694
|
+
require$$0.createTextVNode(" Mock ")
|
|
3695
|
+
]),
|
|
3696
|
+
_: 1
|
|
3697
|
+
/* STABLE */
|
|
3698
|
+
}),
|
|
3699
|
+
require$$0.createVNode(_component_a_col, { span: 4 }, {
|
|
3700
|
+
default: require$$0.withCtx(() => [
|
|
3701
|
+
require$$0.createTextVNode(" \u4E2D\u6587\u540D ")
|
|
3702
|
+
]),
|
|
3703
|
+
_: 1
|
|
3704
|
+
/* STABLE */
|
|
3705
|
+
}),
|
|
3706
|
+
require$$0.createVNode(_component_a_col, { span: 4 }, {
|
|
3707
|
+
default: require$$0.withCtx(() => [
|
|
3708
|
+
require$$0.createTextVNode(" \u8BF4\u660E ")
|
|
3709
|
+
]),
|
|
3710
|
+
_: 1
|
|
3711
|
+
/* STABLE */
|
|
3712
|
+
}),
|
|
3713
|
+
require$$0.createVNode(_component_a_col, { span: 2 }, {
|
|
3714
|
+
default: require$$0.withCtx(() => [
|
|
3715
|
+
require$$0.createTextVNode(" \u64CD\u4F5C ")
|
|
3716
|
+
]),
|
|
3717
|
+
_: 1
|
|
3718
|
+
/* STABLE */
|
|
3719
|
+
})
|
|
3720
|
+
]),
|
|
3721
|
+
_: 1
|
|
3722
|
+
/* STABLE */
|
|
3723
|
+
}, 8, ["class"]),
|
|
3724
|
+
require$$0.createElementVNode(
|
|
3725
|
+
"div",
|
|
3726
|
+
{
|
|
3727
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-body"))
|
|
3728
|
+
},
|
|
3729
|
+
[
|
|
3730
|
+
(require$$0.openBlock(true), require$$0.createElementBlock(
|
|
3731
|
+
require$$0.Fragment,
|
|
3732
|
+
null,
|
|
3733
|
+
require$$0.renderList(props.dataSource, (item, index) => {
|
|
3734
|
+
return require$$0.openBlock(), require$$0.createBlock(TableRow$1, {
|
|
3735
|
+
key: index,
|
|
3736
|
+
data: item,
|
|
3737
|
+
"tree-key": (index + 1).toString(),
|
|
3738
|
+
onChange: _cache[0] || (_cache[0] = ($event) => handleChange(props.dataSource))
|
|
3739
|
+
}, null, 8, ["data", "tree-key"]);
|
|
3740
|
+
}),
|
|
3741
|
+
128
|
|
3742
|
+
/* KEYED_FRAGMENT */
|
|
3743
|
+
))
|
|
3744
|
+
],
|
|
3745
|
+
2
|
|
3746
|
+
/* CLASS */
|
|
3747
|
+
)
|
|
3748
|
+
],
|
|
3749
|
+
2
|
|
3750
|
+
/* CLASS */
|
|
3751
|
+
);
|
|
3752
|
+
};
|
|
3753
|
+
}
|
|
3754
|
+
});
|
|
3755
|
+
|
|
3756
|
+
var TreeTable = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__file", "json-xml-table.vue"]]);
|
|
3757
|
+
|
|
3758
|
+
const _hoisted_1$8 = { class: "flex" };
|
|
3759
|
+
var _sfc_main$Z = /* @__PURE__ */ require$$0.defineComponent({
|
|
3760
|
+
...{ name: "LlJsonXml" },
|
|
3761
|
+
__name: "json-xml",
|
|
3762
|
+
props: jsonXmlProps,
|
|
3763
|
+
emits: jsonXmlEmits,
|
|
3764
|
+
setup(__props, { emit: __emit }) {
|
|
3765
|
+
const props = __props;
|
|
3766
|
+
const emits = __emit;
|
|
3767
|
+
const bem = createNamespace("json-xml");
|
|
3768
|
+
const type = require$$0.ref(DEFAULT_TYPE);
|
|
3769
|
+
const innerValue = require$$0.ref(JSON.stringify(props.value));
|
|
3770
|
+
const dataSource = require$$0.ref([
|
|
3771
|
+
{
|
|
3772
|
+
key: "1",
|
|
3773
|
+
name: "\u6839\u8282\u70B9",
|
|
3774
|
+
type: "object",
|
|
3775
|
+
value: "",
|
|
3776
|
+
chineseName: "",
|
|
3777
|
+
description: "",
|
|
3778
|
+
mock: "",
|
|
3779
|
+
children: []
|
|
3780
|
+
}
|
|
3781
|
+
]);
|
|
3782
|
+
const parseJson2Array = (json, parentKey = "1", parentType = "object") => {
|
|
3783
|
+
let num = 0;
|
|
3784
|
+
const result = [];
|
|
3785
|
+
for (const key in json) {
|
|
3786
|
+
num++;
|
|
3787
|
+
if (Object.prototype.hasOwnProperty.call(json, key)) {
|
|
3788
|
+
const element = json[key];
|
|
3789
|
+
if (typeof element === "object" || Array.isArray(element)) {
|
|
3790
|
+
const currentType = Array.isArray(element) ? "array" : "object";
|
|
3791
|
+
result.push({
|
|
3792
|
+
key: `${parentKey}-${num}`,
|
|
3793
|
+
name: parentType === "array" ? "ITEM" : key,
|
|
3794
|
+
type: currentType,
|
|
3795
|
+
value: parentType === "array" && currentType !== "object" ? element : "",
|
|
3796
|
+
chineseName: "",
|
|
3797
|
+
description: "",
|
|
3798
|
+
mock: "",
|
|
3799
|
+
children: parseJson2Array(element, `${parentKey}-${num}`, currentType)
|
|
3800
|
+
});
|
|
3801
|
+
} else {
|
|
3802
|
+
result.push({
|
|
3803
|
+
key: `${parentKey}-${num}`,
|
|
3804
|
+
name: parentType === "array" ? "ITEM" : key,
|
|
3805
|
+
type: typeof element,
|
|
3806
|
+
value: "",
|
|
3807
|
+
chineseName: "",
|
|
3808
|
+
description: "",
|
|
3809
|
+
mock: element
|
|
3810
|
+
});
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
}
|
|
3814
|
+
return result;
|
|
3815
|
+
};
|
|
3816
|
+
const parseArray2Json = (data) => {
|
|
3817
|
+
const result = {};
|
|
3818
|
+
data.forEach((item) => {
|
|
3819
|
+
if (item.name) {
|
|
3820
|
+
if (item.type === "object" || item.type === "array") {
|
|
3821
|
+
if (item.children && item.children.length) {
|
|
3822
|
+
result[item.name] = parseArray2Json(item.children);
|
|
3823
|
+
}
|
|
3824
|
+
} else {
|
|
3825
|
+
result[item.name] = item.mock;
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
});
|
|
3829
|
+
return result;
|
|
3830
|
+
};
|
|
3831
|
+
const handleTypeChange = (e) => {
|
|
3832
|
+
if (e === "json") {
|
|
3833
|
+
innerValue.value = JSON.stringify(parseArray2Json(dataSource.value));
|
|
3834
|
+
} else {
|
|
3835
|
+
try {
|
|
3836
|
+
const value = JSON.parse(innerValue.value);
|
|
3837
|
+
if (typeof value === "object") {
|
|
3838
|
+
dataSource.value = parseJson2Array(value);
|
|
3839
|
+
} else {
|
|
3840
|
+
dataSource.value = [
|
|
3841
|
+
{
|
|
3842
|
+
key: "1",
|
|
3843
|
+
name: "\u6839\u8282\u70B9",
|
|
3844
|
+
type: typeof value,
|
|
3845
|
+
value: "",
|
|
3846
|
+
chineseName: "",
|
|
3847
|
+
description: "",
|
|
3848
|
+
mock: value,
|
|
3849
|
+
children: []
|
|
3850
|
+
}
|
|
3851
|
+
];
|
|
3852
|
+
}
|
|
3853
|
+
} catch (error) {
|
|
3854
|
+
dataSource.value = [
|
|
3855
|
+
{
|
|
3856
|
+
key: "1",
|
|
3857
|
+
name: "\u6839\u8282\u70B9",
|
|
3858
|
+
type: typeof innerValue.value,
|
|
3859
|
+
value: "",
|
|
3860
|
+
chineseName: "",
|
|
3861
|
+
description: "",
|
|
3862
|
+
mock: innerValue.value,
|
|
3863
|
+
children: []
|
|
3864
|
+
}
|
|
3865
|
+
];
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3868
|
+
};
|
|
3869
|
+
const handleChange = (arr) => {
|
|
3870
|
+
dataSource.value = arr;
|
|
3871
|
+
emits("update:value", parseArray2Json(arr));
|
|
3872
|
+
};
|
|
3873
|
+
require$$0.watch(
|
|
3874
|
+
() => props.value,
|
|
3875
|
+
(n) => {
|
|
3876
|
+
if (!isEmpty(n)) {
|
|
3877
|
+
if (typeof n === "object") {
|
|
3878
|
+
innerValue.value = JSON.stringify(n);
|
|
3879
|
+
dataSource.value = parseJson2Array(props.value);
|
|
3880
|
+
} else {
|
|
3881
|
+
innerValue.value = n;
|
|
3882
|
+
dataSource.value = [
|
|
3883
|
+
{
|
|
3884
|
+
key: "1",
|
|
3885
|
+
name: "\u6839\u8282\u70B9",
|
|
3886
|
+
type: typeof props.value,
|
|
3887
|
+
value: "",
|
|
3888
|
+
chineseName: "",
|
|
3889
|
+
description: "",
|
|
3890
|
+
mock: n,
|
|
3891
|
+
children: []
|
|
3892
|
+
}
|
|
3893
|
+
];
|
|
3894
|
+
}
|
|
3895
|
+
} else {
|
|
3896
|
+
innerValue.value = "";
|
|
3897
|
+
dataSource.value = [
|
|
3898
|
+
{
|
|
3899
|
+
key: "1",
|
|
3900
|
+
name: "\u6839\u8282\u70B9",
|
|
3901
|
+
type: "object",
|
|
3902
|
+
value: "",
|
|
3903
|
+
chineseName: "",
|
|
3904
|
+
description: "",
|
|
3905
|
+
mock: "",
|
|
3906
|
+
children: []
|
|
3907
|
+
}
|
|
3908
|
+
];
|
|
3909
|
+
}
|
|
3910
|
+
console.log(dataSource.value, n);
|
|
3911
|
+
},
|
|
3912
|
+
{
|
|
3913
|
+
deep: true,
|
|
3914
|
+
immediate: true
|
|
3915
|
+
}
|
|
3916
|
+
);
|
|
3917
|
+
require$$0.watch(innerValue, (n) => {
|
|
3918
|
+
try {
|
|
3919
|
+
const value = JSON.parse(n);
|
|
3920
|
+
if (typeof value === "object") {
|
|
3921
|
+
emits("update:value", value);
|
|
3922
|
+
} else {
|
|
3923
|
+
emits("update:value", value);
|
|
3924
|
+
}
|
|
3925
|
+
} catch (error) {
|
|
3926
|
+
emits("update:value", n);
|
|
3927
|
+
}
|
|
3928
|
+
});
|
|
3929
|
+
require$$0.watch(
|
|
3930
|
+
() => dataSource.value,
|
|
3931
|
+
(n) => {
|
|
3932
|
+
console.log({ n });
|
|
3933
|
+
},
|
|
3934
|
+
{
|
|
3935
|
+
deep: true,
|
|
3936
|
+
immediate: true
|
|
3937
|
+
}
|
|
3938
|
+
);
|
|
3939
|
+
return (_ctx, _cache) => {
|
|
3940
|
+
const _component_ll_segmented = require$$0.resolveComponent("ll-segmented");
|
|
3941
|
+
const _component_ll_button = require$$0.resolveComponent("ll-button");
|
|
3942
|
+
const _component_ll_icon = require$$0.resolveComponent("ll-icon");
|
|
3943
|
+
const _component_ll_dropdown = require$$0.resolveComponent("ll-dropdown");
|
|
3944
|
+
const _component_ll_code_editor = require$$0.resolveComponent("ll-code-editor");
|
|
3945
|
+
return require$$0.openBlock(), require$$0.createElementBlock(
|
|
3946
|
+
"div",
|
|
3947
|
+
{
|
|
3948
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).b("json-xml"))
|
|
3949
|
+
},
|
|
3950
|
+
[
|
|
3951
|
+
require$$0.createElementVNode(
|
|
3952
|
+
"div",
|
|
3953
|
+
{
|
|
3954
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("header"))
|
|
2301
3955
|
},
|
|
2302
3956
|
[
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
3957
|
+
require$$0.createVNode(_component_ll_segmented, {
|
|
3958
|
+
value: type.value,
|
|
3959
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => type.value = $event),
|
|
3960
|
+
size: "middle",
|
|
3961
|
+
options: require$$0.unref(jsonXmlOptions),
|
|
3962
|
+
onChange: handleTypeChange
|
|
3963
|
+
}, {
|
|
3964
|
+
label: require$$0.withCtx(({ payload }) => [
|
|
3965
|
+
require$$0.createElementVNode(
|
|
2308
3966
|
"div",
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
require$$0.
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
3967
|
+
null,
|
|
3968
|
+
require$$0.toDisplayString(payload.title),
|
|
3969
|
+
1
|
|
3970
|
+
/* TEXT */
|
|
3971
|
+
)
|
|
3972
|
+
]),
|
|
3973
|
+
_: 1
|
|
3974
|
+
/* STABLE */
|
|
3975
|
+
}, 8, ["value", "options"]),
|
|
3976
|
+
require$$0.createElementVNode("div", _hoisted_1$8, [
|
|
3977
|
+
type.value === "json" ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
3978
|
+
require$$0.Fragment,
|
|
3979
|
+
{ key: 0 },
|
|
3980
|
+
[
|
|
3981
|
+
require$$0.createVNode(_component_ll_button, { type: "text" }, {
|
|
3982
|
+
default: require$$0.withCtx(() => [
|
|
3983
|
+
require$$0.createCommentVNode(" <ll-icon/> "),
|
|
3984
|
+
require$$0.createTextVNode(" \u9884\u89C8 ")
|
|
3985
|
+
]),
|
|
3986
|
+
_: 1
|
|
3987
|
+
/* STABLE */
|
|
3988
|
+
}),
|
|
3989
|
+
require$$0.createVNode(_component_ll_button, { type: "text" }, {
|
|
3990
|
+
default: require$$0.withCtx(() => [
|
|
3991
|
+
require$$0.createCommentVNode(" <ll-icon/> "),
|
|
3992
|
+
require$$0.createTextVNode(" \u751F\u6210\u4EE3\u7801 ")
|
|
3993
|
+
]),
|
|
3994
|
+
_: 1
|
|
3995
|
+
/* STABLE */
|
|
3996
|
+
}),
|
|
3997
|
+
require$$0.createVNode(_component_ll_button, { type: "text" }, {
|
|
3998
|
+
default: require$$0.withCtx(() => [
|
|
3999
|
+
require$$0.createCommentVNode(" <ll-icon/> "),
|
|
4000
|
+
require$$0.createTextVNode(" JSON Schema ")
|
|
4001
|
+
]),
|
|
4002
|
+
_: 1
|
|
4003
|
+
/* STABLE */
|
|
4004
|
+
})
|
|
4005
|
+
],
|
|
4006
|
+
64
|
|
4007
|
+
/* STABLE_FRAGMENT */
|
|
4008
|
+
)) : (require$$0.openBlock(), require$$0.createElementBlock(
|
|
4009
|
+
require$$0.Fragment,
|
|
4010
|
+
{ key: 1 },
|
|
4011
|
+
[
|
|
4012
|
+
require$$0.createVNode(_component_ll_button, { type: "text" }, {
|
|
4013
|
+
default: require$$0.withCtx(() => [
|
|
4014
|
+
require$$0.createCommentVNode(" <ll-icon/> "),
|
|
4015
|
+
require$$0.createTextVNode(" \u683C\u5F0F\u5316 ")
|
|
4016
|
+
]),
|
|
4017
|
+
_: 1
|
|
4018
|
+
/* STABLE */
|
|
4019
|
+
}),
|
|
4020
|
+
require$$0.createVNode(_component_ll_button, { type: "text" }, {
|
|
4021
|
+
default: require$$0.withCtx(() => [
|
|
4022
|
+
require$$0.createCommentVNode(" <ll-icon/> "),
|
|
4023
|
+
require$$0.createTextVNode(" \u751F\u6210\u4EE3\u7801 ")
|
|
4024
|
+
]),
|
|
4025
|
+
_: 1
|
|
4026
|
+
/* STABLE */
|
|
4027
|
+
}),
|
|
4028
|
+
require$$0.createVNode(_component_ll_dropdown, {
|
|
4029
|
+
"dropdown-items": require$$0.unref(customOverlay),
|
|
4030
|
+
placement: "bottomRight"
|
|
4031
|
+
}, {
|
|
4032
|
+
default: require$$0.withCtx(() => [
|
|
4033
|
+
require$$0.createVNode(_component_ll_icon, { "icon-name": "icon-line-arrow-down" })
|
|
4034
|
+
]),
|
|
4035
|
+
_: 1
|
|
4036
|
+
/* STABLE */
|
|
4037
|
+
}, 8, ["dropdown-items"])
|
|
4038
|
+
],
|
|
4039
|
+
64
|
|
4040
|
+
/* STABLE_FRAGMENT */
|
|
4041
|
+
))
|
|
4042
|
+
])
|
|
2350
4043
|
],
|
|
2351
4044
|
2
|
|
2352
4045
|
/* CLASS */
|
|
2353
|
-
)
|
|
4046
|
+
),
|
|
4047
|
+
require$$0.createElementVNode(
|
|
2354
4048
|
"div",
|
|
2355
4049
|
{
|
|
2356
|
-
|
|
2357
|
-
class: require$$0.normalizeClass(require$$0.unref(bem).m("empty"))
|
|
4050
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("body"))
|
|
2358
4051
|
},
|
|
2359
|
-
|
|
4052
|
+
[
|
|
4053
|
+
type.value === "json" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_code_editor, {
|
|
4054
|
+
key: 0,
|
|
4055
|
+
value: innerValue.value,
|
|
4056
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
4057
|
+
language: "json"
|
|
4058
|
+
}, null, 8, ["value"])) : (require$$0.openBlock(), require$$0.createBlock(TreeTable, {
|
|
4059
|
+
key: 1,
|
|
4060
|
+
"data-source": dataSource.value,
|
|
4061
|
+
onChange: handleChange
|
|
4062
|
+
}, null, 8, ["data-source"]))
|
|
4063
|
+
],
|
|
2360
4064
|
2
|
|
2361
4065
|
/* CLASS */
|
|
2362
|
-
)
|
|
4066
|
+
)
|
|
2363
4067
|
],
|
|
2364
4068
|
2
|
|
2365
4069
|
/* CLASS */
|
|
@@ -2368,96 +4072,234 @@
|
|
|
2368
4072
|
}
|
|
2369
4073
|
});
|
|
2370
4074
|
|
|
2371
|
-
var
|
|
4075
|
+
var JsonXml = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__file", "json-xml.vue"]]);
|
|
2372
4076
|
|
|
2373
|
-
|
|
2374
|
-
"
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
/* HOISTED */
|
|
2379
|
-
);
|
|
2380
|
-
var _sfc_main$V = /* @__PURE__ */ require$$0.defineComponent({
|
|
2381
|
-
...{ name: "LlAdvancedFiltering" },
|
|
2382
|
-
__name: "advanced-filtering",
|
|
2383
|
-
props: advancedFilteringProps,
|
|
2384
|
-
emits: advancedFilteringEmits,
|
|
2385
|
-
setup(__props, { emit: __emit }) {
|
|
4077
|
+
var _sfc_main$Y = /* @__PURE__ */ require$$0.defineComponent({
|
|
4078
|
+
...{ name: "LlParamsTableRow" },
|
|
4079
|
+
__name: "params-table-row",
|
|
4080
|
+
props: paramsTableRowProps,
|
|
4081
|
+
setup(__props) {
|
|
2386
4082
|
const props = __props;
|
|
2387
|
-
const
|
|
2388
|
-
const
|
|
2389
|
-
const
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
const handleHoverChange = (visible) => {
|
|
2393
|
-
if (showSelectBox.value)
|
|
2394
|
-
return;
|
|
2395
|
-
showValueBox.value = visible;
|
|
2396
|
-
};
|
|
2397
|
-
const handleClickChange = () => {
|
|
2398
|
-
showSelectBox.value = !showSelectBox.value;
|
|
2399
|
-
showValueBox.value = false;
|
|
4083
|
+
const bem = createNamespace("params-table");
|
|
4084
|
+
const innerData = require$$0.ref(props.data);
|
|
4085
|
+
const handleDelete = (list, data) => {
|
|
4086
|
+
const index = list.findIndex((item) => item.name === data.name);
|
|
4087
|
+
list.splice(index, 1);
|
|
2400
4088
|
};
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
4089
|
+
return (_ctx, _cache) => {
|
|
4090
|
+
const _component_ll_input = require$$0.resolveComponent("ll-input");
|
|
4091
|
+
const _component_ll_icon = require$$0.resolveComponent("ll-icon");
|
|
4092
|
+
const _component_ll_select = require$$0.resolveComponent("ll-select");
|
|
4093
|
+
const _component_ll_switch = require$$0.resolveComponent("ll-switch");
|
|
4094
|
+
const _component_a_col = require$$0.resolveComponent("a-col");
|
|
4095
|
+
const _component_a_popconfirm = require$$0.resolveComponent("a-popconfirm");
|
|
4096
|
+
const _component_a_row = require$$0.resolveComponent("a-row");
|
|
4097
|
+
return require$$0.openBlock(), require$$0.createElementBlock("div", null, [
|
|
4098
|
+
require$$0.createVNode(_component_a_row, {
|
|
4099
|
+
gutter: 20,
|
|
4100
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-row"))
|
|
4101
|
+
}, {
|
|
4102
|
+
default: require$$0.withCtx(() => [
|
|
4103
|
+
(require$$0.openBlock(true), require$$0.createElementBlock(
|
|
4104
|
+
require$$0.Fragment,
|
|
4105
|
+
null,
|
|
4106
|
+
require$$0.renderList(props.columns, (col, index) => {
|
|
4107
|
+
return require$$0.openBlock(), require$$0.createBlock(_component_a_col, {
|
|
4108
|
+
key: index,
|
|
4109
|
+
span: col.span || 24 / props.columns.length,
|
|
4110
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
4111
|
+
}, {
|
|
4112
|
+
default: require$$0.withCtx(() => [
|
|
4113
|
+
col.key === "name" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_input, {
|
|
4114
|
+
key: 0,
|
|
4115
|
+
value: innerData.value.name,
|
|
4116
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerData.value.name = $event),
|
|
4117
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
4118
|
+
}, null, 8, ["value"])) : require$$0.createCommentVNode("v-if", true),
|
|
4119
|
+
col.key === "required" ? (require$$0.openBlock(), require$$0.createElementBlock(
|
|
4120
|
+
"div",
|
|
4121
|
+
{
|
|
4122
|
+
key: 1,
|
|
4123
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("required")),
|
|
4124
|
+
onClick: _cache[1] || (_cache[1] = ($event) => innerData.value.required = !innerData.value.required)
|
|
4125
|
+
},
|
|
4126
|
+
[
|
|
4127
|
+
require$$0.withDirectives(require$$0.createVNode(
|
|
4128
|
+
_component_ll_icon,
|
|
4129
|
+
{ "icon-name": "icon-radio-check" },
|
|
4130
|
+
null,
|
|
4131
|
+
512
|
|
4132
|
+
/* NEED_PATCH */
|
|
4133
|
+
), [
|
|
4134
|
+
[require$$0.vShow, innerData.value.required]
|
|
4135
|
+
])
|
|
4136
|
+
],
|
|
4137
|
+
2
|
|
4138
|
+
/* CLASS */
|
|
4139
|
+
)) : require$$0.createCommentVNode("v-if", true),
|
|
4140
|
+
col.key === "type" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_select, {
|
|
4141
|
+
key: 2,
|
|
4142
|
+
value: innerData.value.type,
|
|
4143
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerData.value.type = $event),
|
|
4144
|
+
options: props.options,
|
|
4145
|
+
style: { "width": "100%" }
|
|
4146
|
+
}, null, 8, ["value", "options"])) : require$$0.createCommentVNode("v-if", true),
|
|
4147
|
+
col.key === "value" ? (require$$0.openBlock(), require$$0.createBlock(ClickInput, {
|
|
4148
|
+
key: 3,
|
|
4149
|
+
value: innerData.value.value,
|
|
4150
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => innerData.value.value = $event),
|
|
4151
|
+
type: "code",
|
|
4152
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
4153
|
+
style: { "width": "100%" }
|
|
4154
|
+
}, null, 8, ["value"])) : require$$0.createCommentVNode("v-if", true),
|
|
4155
|
+
col.key === "static" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_switch, {
|
|
4156
|
+
key: 4,
|
|
4157
|
+
value: innerData.value[col.key],
|
|
4158
|
+
"onUpdate:value": ($event) => innerData.value[col.key] = $event
|
|
4159
|
+
}, null, 8, ["value", "onUpdate:value"])) : require$$0.createCommentVNode("v-if", true),
|
|
4160
|
+
col.key === "description" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_input, {
|
|
4161
|
+
key: 5,
|
|
4162
|
+
value: innerData.value[col.key],
|
|
4163
|
+
"onUpdate:value": ($event) => innerData.value[col.key] = $event,
|
|
4164
|
+
placeholder: col.placeholder || "\u8BF7\u8F93\u5165"
|
|
4165
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"])) : require$$0.createCommentVNode("v-if", true),
|
|
4166
|
+
col.key === "contentType" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_select, {
|
|
4167
|
+
key: 6,
|
|
4168
|
+
value: innerData.value[col.key],
|
|
4169
|
+
"onUpdate:value": ($event) => innerData.value[col.key] = $event,
|
|
4170
|
+
placeholder: col.placeholder || "\u8BF7\u8F93\u5165"
|
|
4171
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"])) : require$$0.createCommentVNode("v-if", true)
|
|
4172
|
+
]),
|
|
4173
|
+
_: 2
|
|
4174
|
+
/* DYNAMIC */
|
|
4175
|
+
}, 1032, ["span", "class"]);
|
|
4176
|
+
}),
|
|
4177
|
+
128
|
|
4178
|
+
/* KEYED_FRAGMENT */
|
|
4179
|
+
)),
|
|
4180
|
+
require$$0.createVNode(_component_a_col, {
|
|
4181
|
+
span: 1,
|
|
4182
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
4183
|
+
}, {
|
|
4184
|
+
default: require$$0.withCtx(() => [
|
|
4185
|
+
require$$0.createVNode(_component_a_popconfirm, {
|
|
4186
|
+
title: "\u4F60\u786E\u5B9A\u8981\u79FB\u9664\u5417\uFF1F",
|
|
4187
|
+
"ok-text": "\u786E\u8BA4",
|
|
4188
|
+
"cancel-text": "\u53D6\u6D88",
|
|
4189
|
+
placement: "topRight",
|
|
4190
|
+
"overlay-class-name": require$$0.unref(bem).e("popconfirm"),
|
|
4191
|
+
onConfirm: _cache[4] || (_cache[4] = ($event) => handleDelete(props.dataSource, innerData.value))
|
|
4192
|
+
}, {
|
|
4193
|
+
default: require$$0.withCtx(() => [
|
|
4194
|
+
require$$0.createElementVNode(
|
|
4195
|
+
"a",
|
|
4196
|
+
{
|
|
4197
|
+
href: "javascript:;",
|
|
4198
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-icon"))
|
|
4199
|
+
},
|
|
4200
|
+
[
|
|
4201
|
+
require$$0.createVNode(_component_ll_icon, { "icon-name": "icon-remove" })
|
|
4202
|
+
],
|
|
4203
|
+
2
|
|
4204
|
+
/* CLASS */
|
|
4205
|
+
)
|
|
4206
|
+
]),
|
|
4207
|
+
_: 1
|
|
4208
|
+
/* STABLE */
|
|
4209
|
+
}, 8, ["overlay-class-name"])
|
|
4210
|
+
]),
|
|
4211
|
+
_: 1
|
|
4212
|
+
/* STABLE */
|
|
4213
|
+
}, 8, ["class"])
|
|
4214
|
+
]),
|
|
4215
|
+
_: 1
|
|
4216
|
+
/* STABLE */
|
|
4217
|
+
}, 8, ["class"])
|
|
4218
|
+
]);
|
|
2404
4219
|
};
|
|
2405
|
-
|
|
2406
|
-
|
|
4220
|
+
}
|
|
4221
|
+
});
|
|
4222
|
+
|
|
4223
|
+
var TableRow = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__file", "params-table-row.vue"]]);
|
|
4224
|
+
|
|
4225
|
+
var _sfc_main$X = /* @__PURE__ */ require$$0.defineComponent({
|
|
4226
|
+
...{ name: "LlParamsTable" },
|
|
4227
|
+
__name: "params-table",
|
|
4228
|
+
props: paramsTableProps,
|
|
4229
|
+
setup(__props) {
|
|
4230
|
+
const bem = createNamespace("params-table");
|
|
4231
|
+
const props = __props;
|
|
4232
|
+
const addData = require$$0.ref("");
|
|
4233
|
+
const handleAdd = (dataSource) => {
|
|
4234
|
+
if (addData.value && dataSource.find((e) => e.name !== addData.value) || !dataSource.length) {
|
|
4235
|
+
if (!addData.value)
|
|
4236
|
+
return;
|
|
4237
|
+
dataSource.push({
|
|
4238
|
+
name: addData.value,
|
|
4239
|
+
required: false,
|
|
4240
|
+
value: "",
|
|
4241
|
+
static: false,
|
|
4242
|
+
description: "",
|
|
4243
|
+
contentType: ""
|
|
4244
|
+
});
|
|
4245
|
+
addData.value = "";
|
|
4246
|
+
}
|
|
2407
4247
|
};
|
|
2408
4248
|
require$$0.watch(
|
|
2409
|
-
|
|
4249
|
+
() => props.dataSource,
|
|
2410
4250
|
(n) => {
|
|
2411
|
-
|
|
2412
|
-
emits("change", n);
|
|
4251
|
+
console.log({ n });
|
|
2413
4252
|
},
|
|
2414
4253
|
{
|
|
2415
4254
|
deep: true
|
|
2416
4255
|
}
|
|
2417
4256
|
);
|
|
2418
4257
|
return (_ctx, _cache) => {
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
"
|
|
2431
|
-
|
|
2432
|
-
onClose: handleClose
|
|
2433
|
-
}, null, 8, ["value", "filter-columns", "form-options"])
|
|
2434
|
-
]),
|
|
2435
|
-
default: require$$0.withCtx(() => [
|
|
2436
|
-
require$$0.createVNode(_component_a_popover, {
|
|
2437
|
-
"overlay-class-name": require$$0.unref(bem).b(),
|
|
2438
|
-
trigger: "hover",
|
|
2439
|
-
placement: "bottomRight",
|
|
2440
|
-
open: showValueBox.value,
|
|
2441
|
-
"overlay-style": props.overlayStyle,
|
|
2442
|
-
onOpenChange: handleHoverChange
|
|
4258
|
+
const _component_ll_tooltip = require$$0.resolveComponent("ll-tooltip");
|
|
4259
|
+
const _component_a_col = require$$0.resolveComponent("a-col");
|
|
4260
|
+
const _component_a_row = require$$0.resolveComponent("a-row");
|
|
4261
|
+
const _component_ll_input = require$$0.resolveComponent("ll-input");
|
|
4262
|
+
return require$$0.openBlock(), require$$0.createElementBlock(
|
|
4263
|
+
"div",
|
|
4264
|
+
{
|
|
4265
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).b())
|
|
4266
|
+
},
|
|
4267
|
+
[
|
|
4268
|
+
require$$0.createVNode(_component_a_row, {
|
|
4269
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-header")),
|
|
4270
|
+
gutter: 20
|
|
2443
4271
|
}, {
|
|
2444
|
-
content: require$$0.withCtx(() => [
|
|
2445
|
-
require$$0.createVNode(AdvancedFilteringTags, {
|
|
2446
|
-
value: filterValue.value,
|
|
2447
|
-
"filter-columns": props.filterColumns,
|
|
2448
|
-
onChange: handleChange
|
|
2449
|
-
}, null, 8, ["value", "filter-columns"])
|
|
2450
|
-
]),
|
|
2451
4272
|
default: require$$0.withCtx(() => [
|
|
2452
|
-
require$$0.
|
|
2453
|
-
|
|
2454
|
-
|
|
4273
|
+
(require$$0.openBlock(true), require$$0.createElementBlock(
|
|
4274
|
+
require$$0.Fragment,
|
|
4275
|
+
null,
|
|
4276
|
+
require$$0.renderList(props.columns, (col, index) => {
|
|
4277
|
+
return require$$0.openBlock(), require$$0.createBlock(_component_a_col, {
|
|
4278
|
+
key: index,
|
|
4279
|
+
span: col.span,
|
|
4280
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-header-col"))
|
|
4281
|
+
}, {
|
|
4282
|
+
default: require$$0.withCtx(() => [
|
|
4283
|
+
require$$0.createTextVNode(
|
|
4284
|
+
require$$0.toDisplayString(col.title) + " ",
|
|
4285
|
+
1
|
|
4286
|
+
/* TEXT */
|
|
4287
|
+
),
|
|
4288
|
+
col.key === "static" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_tooltip, {
|
|
4289
|
+
key: 0,
|
|
4290
|
+
tip: "Content-Type \u5B57\u6BB5\u7528\u4E8E\u6307\u5B9A\u8BF7\u6C42\u90E8\u5206\u7684\u5A92\u4F53\u7C7B\u578B"
|
|
4291
|
+
})) : require$$0.createCommentVNode("v-if", true)
|
|
4292
|
+
]),
|
|
4293
|
+
_: 2
|
|
4294
|
+
/* DYNAMIC */
|
|
4295
|
+
}, 1032, ["span", "class"]);
|
|
4296
|
+
}),
|
|
4297
|
+
128
|
|
4298
|
+
/* KEYED_FRAGMENT */
|
|
4299
|
+
)),
|
|
4300
|
+
require$$0.createVNode(_component_a_col, { span: 1 }, {
|
|
2455
4301
|
default: require$$0.withCtx(() => [
|
|
2456
|
-
require$$0.
|
|
2457
|
-
"icon-name": "icon-Screening",
|
|
2458
|
-
style: { "margin-right": "10px" }
|
|
2459
|
-
}),
|
|
2460
|
-
_hoisted_1$8
|
|
4302
|
+
require$$0.createTextVNode(" \u64CD\u4F5C ")
|
|
2461
4303
|
]),
|
|
2462
4304
|
_: 1
|
|
2463
4305
|
/* STABLE */
|
|
@@ -2465,20 +4307,214 @@
|
|
|
2465
4307
|
]),
|
|
2466
4308
|
_: 1
|
|
2467
4309
|
/* STABLE */
|
|
2468
|
-
}, 8, ["
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
4310
|
+
}, 8, ["class"]),
|
|
4311
|
+
require$$0.createElementVNode(
|
|
4312
|
+
"div",
|
|
4313
|
+
{
|
|
4314
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("table-body"))
|
|
4315
|
+
},
|
|
4316
|
+
[
|
|
4317
|
+
(require$$0.openBlock(true), require$$0.createElementBlock(
|
|
4318
|
+
require$$0.Fragment,
|
|
4319
|
+
null,
|
|
4320
|
+
require$$0.renderList(props.dataSource, (item, index) => {
|
|
4321
|
+
return require$$0.openBlock(), require$$0.createBlock(TableRow, {
|
|
4322
|
+
key: index,
|
|
4323
|
+
data: item,
|
|
4324
|
+
columns: props.columns,
|
|
4325
|
+
"data-source": props.dataSource
|
|
4326
|
+
}, null, 8, ["data", "columns", "data-source"]);
|
|
4327
|
+
}),
|
|
4328
|
+
128
|
|
4329
|
+
/* KEYED_FRAGMENT */
|
|
4330
|
+
)),
|
|
4331
|
+
require$$0.createVNode(_component_a_row, {
|
|
4332
|
+
gutter: 20,
|
|
4333
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-row"))
|
|
4334
|
+
}, {
|
|
4335
|
+
default: require$$0.withCtx(() => [
|
|
4336
|
+
(require$$0.openBlock(true), require$$0.createElementBlock(
|
|
4337
|
+
require$$0.Fragment,
|
|
4338
|
+
null,
|
|
4339
|
+
require$$0.renderList(props.columns, (col, index) => {
|
|
4340
|
+
return require$$0.openBlock(), require$$0.createBlock(_component_a_col, {
|
|
4341
|
+
key: index,
|
|
4342
|
+
span: col.span || 24 / props.columns.length,
|
|
4343
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).e("table-col"))
|
|
4344
|
+
}, {
|
|
4345
|
+
default: require$$0.withCtx(() => [
|
|
4346
|
+
col.key === "name" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_input, {
|
|
4347
|
+
key: 0,
|
|
4348
|
+
value: addData.value,
|
|
4349
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => addData.value = $event),
|
|
4350
|
+
placeholder: "\u6DFB\u52A0\u53C2\u6570",
|
|
4351
|
+
bordered: false,
|
|
4352
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => handleAdd(props.dataSource))
|
|
4353
|
+
}, null, 8, ["value"])) : require$$0.createCommentVNode("v-if", true)
|
|
4354
|
+
]),
|
|
4355
|
+
_: 2
|
|
4356
|
+
/* DYNAMIC */
|
|
4357
|
+
}, 1032, ["span", "class"]);
|
|
4358
|
+
}),
|
|
4359
|
+
128
|
|
4360
|
+
/* KEYED_FRAGMENT */
|
|
4361
|
+
))
|
|
4362
|
+
]),
|
|
4363
|
+
_: 1
|
|
4364
|
+
/* STABLE */
|
|
4365
|
+
}, 8, ["class"])
|
|
4366
|
+
],
|
|
4367
|
+
2
|
|
4368
|
+
/* CLASS */
|
|
4369
|
+
)
|
|
4370
|
+
],
|
|
4371
|
+
2
|
|
4372
|
+
/* CLASS */
|
|
4373
|
+
);
|
|
2473
4374
|
};
|
|
2474
4375
|
}
|
|
2475
4376
|
});
|
|
2476
4377
|
|
|
2477
|
-
var
|
|
4378
|
+
var paramsTable = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__file", "params-table.vue"]]);
|
|
2478
4379
|
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
4380
|
+
var _sfc_main$W = /* @__PURE__ */ require$$0.defineComponent({
|
|
4381
|
+
...{ name: "LlApiComponent" },
|
|
4382
|
+
__name: "api-component",
|
|
4383
|
+
props: apiComponentProps,
|
|
4384
|
+
setup(__props) {
|
|
4385
|
+
const props = __props;
|
|
4386
|
+
const bem = createNamespace("api-component");
|
|
4387
|
+
const method = require$$0.ref(props.method);
|
|
4388
|
+
const url = require$$0.ref(props.url);
|
|
4389
|
+
const activeKey = require$$0.ref("params");
|
|
4390
|
+
const bodyKey = require$$0.ref("form-data");
|
|
4391
|
+
const requestParams = require$$0.ref(props.requestParams);
|
|
4392
|
+
const headerParams = require$$0.ref(props.headerParams);
|
|
4393
|
+
const bodyParams = require$$0.reactive(props.bodyParams);
|
|
4394
|
+
const computedRequestList = require$$0.computed(() => {
|
|
4395
|
+
if (method.value === "GET") {
|
|
4396
|
+
return requestList.filter((item) => item.key !== "body");
|
|
4397
|
+
}
|
|
4398
|
+
return requestList;
|
|
4399
|
+
});
|
|
4400
|
+
require$$0.watch(
|
|
4401
|
+
requestParams,
|
|
4402
|
+
(n) => {
|
|
4403
|
+
console.log("requestParams", n);
|
|
4404
|
+
},
|
|
4405
|
+
{
|
|
4406
|
+
deep: true
|
|
4407
|
+
}
|
|
4408
|
+
);
|
|
4409
|
+
require$$0.watch(
|
|
4410
|
+
bodyParams,
|
|
4411
|
+
(n) => {
|
|
4412
|
+
console.log("bodyParams", n);
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
deep: true
|
|
4416
|
+
}
|
|
4417
|
+
);
|
|
4418
|
+
return (_ctx, _cache) => {
|
|
4419
|
+
const _component_ll_tabs_simple = require$$0.resolveComponent("ll-tabs-simple");
|
|
4420
|
+
const _component_ll_code_editor = require$$0.resolveComponent("ll-code-editor");
|
|
4421
|
+
const _component_ll_empty = require$$0.resolveComponent("ll-empty");
|
|
4422
|
+
return require$$0.openBlock(), require$$0.createElementBlock(
|
|
4423
|
+
"div",
|
|
4424
|
+
{
|
|
4425
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).b())
|
|
4426
|
+
},
|
|
4427
|
+
[
|
|
4428
|
+
require$$0.createVNode(ApiUrl, {
|
|
4429
|
+
method: method.value,
|
|
4430
|
+
"onUpdate:method": _cache[0] || (_cache[0] = ($event) => method.value = $event),
|
|
4431
|
+
url: url.value,
|
|
4432
|
+
"onUpdate:url": _cache[1] || (_cache[1] = ($event) => url.value = $event),
|
|
4433
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("header"))
|
|
4434
|
+
}, null, 8, ["method", "url", "class"]),
|
|
4435
|
+
require$$0.createVNode(_component_ll_tabs_simple, {
|
|
4436
|
+
"active-key": activeKey.value,
|
|
4437
|
+
"onUpdate:activeKey": _cache[2] || (_cache[2] = ($event) => activeKey.value = $event),
|
|
4438
|
+
tabs: computedRequestList.value,
|
|
4439
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("tab"))
|
|
4440
|
+
}, null, 8, ["active-key", "tabs", "class"]),
|
|
4441
|
+
require$$0.withDirectives(require$$0.createVNode(paramsTable, {
|
|
4442
|
+
columns: require$$0.unref(paramsTableColumns),
|
|
4443
|
+
"data-source": requestParams.value
|
|
4444
|
+
}, null, 8, ["columns", "data-source"]), [
|
|
4445
|
+
[require$$0.vShow, activeKey.value === "params"]
|
|
4446
|
+
]),
|
|
4447
|
+
require$$0.withDirectives(require$$0.createVNode(paramsTable, {
|
|
4448
|
+
columns: require$$0.unref(headersTableColumns),
|
|
4449
|
+
"data-source": headerParams.value
|
|
4450
|
+
}, null, 8, ["columns", "data-source"]), [
|
|
4451
|
+
[require$$0.vShow, activeKey.value === "headers"]
|
|
4452
|
+
]),
|
|
4453
|
+
require$$0.withDirectives(require$$0.createElementVNode(
|
|
4454
|
+
"div",
|
|
4455
|
+
null,
|
|
4456
|
+
[
|
|
4457
|
+
require$$0.createVNode(_component_ll_tabs_simple, {
|
|
4458
|
+
"active-key": bodyKey.value,
|
|
4459
|
+
"onUpdate:activeKey": _cache[3] || (_cache[3] = ($event) => bodyKey.value = $event),
|
|
4460
|
+
tabs: require$$0.unref(bodyList),
|
|
4461
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("body-tab"))
|
|
4462
|
+
}, null, 8, ["active-key", "tabs", "class"]),
|
|
4463
|
+
require$$0.withDirectives(require$$0.createVNode(JsonXml, {
|
|
4464
|
+
value: bodyParams["json"],
|
|
4465
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => bodyParams["json"] = $event)
|
|
4466
|
+
}, null, 8, ["value"]), [
|
|
4467
|
+
[require$$0.vShow, bodyKey.value === "json"]
|
|
4468
|
+
]),
|
|
4469
|
+
require$$0.withDirectives(require$$0.createVNode(JsonXml, {
|
|
4470
|
+
value: bodyParams["xml"],
|
|
4471
|
+
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => bodyParams["xml"] = $event)
|
|
4472
|
+
}, null, 8, ["value"]), [
|
|
4473
|
+
[require$$0.vShow, bodyKey.value === "xml"]
|
|
4474
|
+
]),
|
|
4475
|
+
bodyKey.value === "raw" ? (require$$0.openBlock(), require$$0.createBlock(_component_ll_code_editor, {
|
|
4476
|
+
key: 0,
|
|
4477
|
+
value: bodyParams["raw"],
|
|
4478
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => bodyParams["raw"] = $event)
|
|
4479
|
+
}, null, 8, ["value"])) : require$$0.createCommentVNode("v-if", true),
|
|
4480
|
+
require$$0.withDirectives(require$$0.createVNode(paramsTable, {
|
|
4481
|
+
columns: require$$0.unref(paramsTableColumns),
|
|
4482
|
+
"data-source": bodyParams["x-www-form-urlencoded"]
|
|
4483
|
+
}, null, 8, ["columns", "data-source"]), [
|
|
4484
|
+
[require$$0.vShow, bodyKey.value === "x-www-form-urlencoded"]
|
|
4485
|
+
]),
|
|
4486
|
+
require$$0.withDirectives(require$$0.createVNode(paramsTable, {
|
|
4487
|
+
columns: require$$0.unref(formdataTableColumns),
|
|
4488
|
+
"data-source": bodyParams["form-data"]
|
|
4489
|
+
}, null, 8, ["columns", "data-source"]), [
|
|
4490
|
+
[require$$0.vShow, bodyKey.value === "form-data"]
|
|
4491
|
+
]),
|
|
4492
|
+
require$$0.withDirectives(require$$0.createVNode(
|
|
4493
|
+
_component_ll_empty,
|
|
4494
|
+
null,
|
|
4495
|
+
null,
|
|
4496
|
+
512
|
|
4497
|
+
/* NEED_PATCH */
|
|
4498
|
+
), [
|
|
4499
|
+
[require$$0.vShow, bodyKey.value === "none"]
|
|
4500
|
+
])
|
|
4501
|
+
],
|
|
4502
|
+
512
|
|
4503
|
+
/* NEED_PATCH */
|
|
4504
|
+
), [
|
|
4505
|
+
[require$$0.vShow, activeKey.value === "body"]
|
|
4506
|
+
])
|
|
4507
|
+
],
|
|
4508
|
+
2
|
|
4509
|
+
/* CLASS */
|
|
4510
|
+
);
|
|
4511
|
+
};
|
|
4512
|
+
}
|
|
4513
|
+
});
|
|
4514
|
+
|
|
4515
|
+
var ApiComponent = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__file", "api-component.vue"]]);
|
|
4516
|
+
|
|
4517
|
+
const LlApiComponent = withInstall(ApiComponent);
|
|
2482
4518
|
|
|
2483
4519
|
const avatarType = ["single", "multiple"];
|
|
2484
4520
|
const avatarProps = buildProps({
|
|
@@ -2526,7 +4562,7 @@
|
|
|
2526
4562
|
click: (item, index) => !!item || index
|
|
2527
4563
|
};
|
|
2528
4564
|
|
|
2529
|
-
var _sfc_main$
|
|
4565
|
+
var _sfc_main$V = /* @__PURE__ */ require$$0.defineComponent({
|
|
2530
4566
|
...{ name: "LlAvatar" },
|
|
2531
4567
|
__name: "avatar",
|
|
2532
4568
|
props: avatarProps,
|
|
@@ -2702,7 +4738,7 @@
|
|
|
2702
4738
|
}
|
|
2703
4739
|
});
|
|
2704
4740
|
|
|
2705
|
-
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4741
|
+
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__file", "avatar.vue"]]);
|
|
2706
4742
|
|
|
2707
4743
|
const LlAvatar = withInstall(Avatar);
|
|
2708
4744
|
|
|
@@ -2728,7 +4764,7 @@
|
|
|
2728
4764
|
});
|
|
2729
4765
|
|
|
2730
4766
|
const _hoisted_1$7 = { key: 0 };
|
|
2731
|
-
var _sfc_main$
|
|
4767
|
+
var _sfc_main$U = /* @__PURE__ */ require$$0.defineComponent({
|
|
2732
4768
|
...{ name: "LlButton" },
|
|
2733
4769
|
__name: "button",
|
|
2734
4770
|
props: buttonProps,
|
|
@@ -2787,11 +4823,11 @@
|
|
|
2787
4823
|
}
|
|
2788
4824
|
});
|
|
2789
4825
|
|
|
2790
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4826
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__file", "button.vue"]]);
|
|
2791
4827
|
|
|
2792
4828
|
const LlButton = withInstall(Button);
|
|
2793
4829
|
|
|
2794
|
-
var _sfc_main$
|
|
4830
|
+
var _sfc_main$T = /* @__PURE__ */ require$$0.defineComponent({
|
|
2795
4831
|
...{ name: "LlCascader" },
|
|
2796
4832
|
__name: "cascader",
|
|
2797
4833
|
setup(__props) {
|
|
@@ -2818,7 +4854,7 @@
|
|
|
2818
4854
|
}
|
|
2819
4855
|
});
|
|
2820
4856
|
|
|
2821
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4857
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__file", "cascader.vue"]]);
|
|
2822
4858
|
|
|
2823
4859
|
const LlCascader = withInstall(Cascader);
|
|
2824
4860
|
|
|
@@ -2840,7 +4876,7 @@
|
|
|
2840
4876
|
}
|
|
2841
4877
|
});
|
|
2842
4878
|
|
|
2843
|
-
var _sfc_main$
|
|
4879
|
+
var _sfc_main$S = /* @__PURE__ */ require$$0.defineComponent({
|
|
2844
4880
|
...{ name: "LlCheckbox" },
|
|
2845
4881
|
__name: "checkbox",
|
|
2846
4882
|
props: checkboxProps,
|
|
@@ -2892,9 +4928,9 @@
|
|
|
2892
4928
|
}
|
|
2893
4929
|
});
|
|
2894
4930
|
|
|
2895
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4931
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__file", "checkbox.vue"]]);
|
|
2896
4932
|
|
|
2897
|
-
var _sfc_main$
|
|
4933
|
+
var _sfc_main$R = /* @__PURE__ */ require$$0.defineComponent({
|
|
2898
4934
|
...{ name: "LlCheckboxGroup" },
|
|
2899
4935
|
__name: "checkbox-group",
|
|
2900
4936
|
props: checkboxGroupProps,
|
|
@@ -2963,7 +4999,7 @@
|
|
|
2963
4999
|
}
|
|
2964
5000
|
});
|
|
2965
5001
|
|
|
2966
|
-
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5002
|
+
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__file", "checkbox-group.vue"]]);
|
|
2967
5003
|
|
|
2968
5004
|
const LlCheckbox = withInstall(Checkbox);
|
|
2969
5005
|
const LlCheckboxGroup = withInstall(CheckboxGroup);
|
|
@@ -43877,7 +45913,7 @@
|
|
|
43877
45913
|
}
|
|
43878
45914
|
];
|
|
43879
45915
|
|
|
43880
|
-
var _sfc_main$
|
|
45916
|
+
var _sfc_main$Q = /* @__PURE__ */ require$$0.defineComponent({
|
|
43881
45917
|
...{ name: "LlCodeEditor" },
|
|
43882
45918
|
__name: "code-editor",
|
|
43883
45919
|
props: codeEditorProps,
|
|
@@ -44024,11 +46060,11 @@
|
|
|
44024
46060
|
}
|
|
44025
46061
|
});
|
|
44026
46062
|
|
|
44027
|
-
var CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46063
|
+
var CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__file", "code-editor.vue"]]);
|
|
44028
46064
|
|
|
44029
46065
|
const LlCodeEditor = withInstall(CodeEditor);
|
|
44030
46066
|
|
|
44031
|
-
var _sfc_main$
|
|
46067
|
+
var _sfc_main$P = /* @__PURE__ */ require$$0.defineComponent({
|
|
44032
46068
|
...{
|
|
44033
46069
|
name: "LlConfigProvider"
|
|
44034
46070
|
},
|
|
@@ -44051,11 +46087,11 @@
|
|
|
44051
46087
|
}
|
|
44052
46088
|
});
|
|
44053
46089
|
|
|
44054
|
-
var ConfigProvider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46090
|
+
var ConfigProvider = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__file", "config-provider.vue"]]);
|
|
44055
46091
|
|
|
44056
46092
|
const LlConfigProvider = withInstall(ConfigProvider);
|
|
44057
46093
|
|
|
44058
|
-
var _sfc_main$
|
|
46094
|
+
var _sfc_main$O = /* @__PURE__ */ require$$0.defineComponent({
|
|
44059
46095
|
...{ name: "LlDatePicker" },
|
|
44060
46096
|
__name: "date-picker",
|
|
44061
46097
|
setup(__props) {
|
|
@@ -44081,11 +46117,11 @@
|
|
|
44081
46117
|
}
|
|
44082
46118
|
});
|
|
44083
46119
|
|
|
44084
|
-
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46120
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__file", "date-picker.vue"]]);
|
|
44085
46121
|
|
|
44086
46122
|
const LlDatePicker = withInstall(DatePicker);
|
|
44087
46123
|
|
|
44088
|
-
var _sfc_main$
|
|
46124
|
+
var _sfc_main$N = /* @__PURE__ */ require$$0.defineComponent({
|
|
44089
46125
|
...{ name: "LlDateRange" },
|
|
44090
46126
|
__name: "date-range",
|
|
44091
46127
|
setup(__props) {
|
|
@@ -44111,7 +46147,7 @@
|
|
|
44111
46147
|
}
|
|
44112
46148
|
});
|
|
44113
46149
|
|
|
44114
|
-
var DateRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46150
|
+
var DateRange = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__file", "date-range.vue"]]);
|
|
44115
46151
|
|
|
44116
46152
|
const LlDateRange = withInstall(DateRange);
|
|
44117
46153
|
|
|
@@ -44126,7 +46162,7 @@
|
|
|
44126
46162
|
}
|
|
44127
46163
|
});
|
|
44128
46164
|
|
|
44129
|
-
var _sfc_main$
|
|
46165
|
+
var _sfc_main$M = /* @__PURE__ */ require$$0.defineComponent({
|
|
44130
46166
|
...{ name: "LlDescriptions" },
|
|
44131
46167
|
__name: "descriptions",
|
|
44132
46168
|
props: descriptionsProps,
|
|
@@ -44201,7 +46237,7 @@
|
|
|
44201
46237
|
}
|
|
44202
46238
|
});
|
|
44203
46239
|
|
|
44204
|
-
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46240
|
+
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__file", "descriptions.vue"]]);
|
|
44205
46241
|
|
|
44206
46242
|
const LlDescriptions = withInstall(Descriptions);
|
|
44207
46243
|
|
|
@@ -44216,7 +46252,7 @@
|
|
|
44216
46252
|
}
|
|
44217
46253
|
});
|
|
44218
46254
|
|
|
44219
|
-
var _sfc_main$
|
|
46255
|
+
var _sfc_main$L = /* @__PURE__ */ require$$0.defineComponent({
|
|
44220
46256
|
...{ name: "LlDescriptionsItem" },
|
|
44221
46257
|
__name: "descriptions-item",
|
|
44222
46258
|
props: descriptionsItemProps,
|
|
@@ -44246,7 +46282,7 @@
|
|
|
44246
46282
|
}
|
|
44247
46283
|
});
|
|
44248
46284
|
|
|
44249
|
-
var DescriptionsItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46285
|
+
var DescriptionsItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__file", "descriptions-item.vue"]]);
|
|
44250
46286
|
|
|
44251
46287
|
const LlDescriptionsItem = withInstall(DescriptionsItem);
|
|
44252
46288
|
|
|
@@ -44378,7 +46414,7 @@
|
|
|
44378
46414
|
onCancel: Function
|
|
44379
46415
|
});
|
|
44380
46416
|
|
|
44381
|
-
var _sfc_main$
|
|
46417
|
+
var _sfc_main$K = /* @__PURE__ */ require$$0.defineComponent({
|
|
44382
46418
|
...{ name: "LlSecondConfirmation" },
|
|
44383
46419
|
__name: "second-confirmation",
|
|
44384
46420
|
props: secondConfirmationProps,
|
|
@@ -44456,7 +46492,7 @@
|
|
|
44456
46492
|
}
|
|
44457
46493
|
});
|
|
44458
46494
|
|
|
44459
|
-
var SecondConfirmation = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46495
|
+
var SecondConfirmation = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__file", "second-confirmation.vue"]]);
|
|
44460
46496
|
|
|
44461
46497
|
const useSecondConfirmation = (options) => {
|
|
44462
46498
|
const { title, message, confirmText, cancelText, icon = null } = options;
|
|
@@ -44489,7 +46525,7 @@
|
|
|
44489
46525
|
|
|
44490
46526
|
const LlSecondConfirmation = withInstall(SecondConfirmation);
|
|
44491
46527
|
|
|
44492
|
-
var _sfc_main$
|
|
46528
|
+
var _sfc_main$J = /* @__PURE__ */ require$$0.defineComponent({
|
|
44493
46529
|
...{ name: "LlDrawer" },
|
|
44494
46530
|
__name: "drawer",
|
|
44495
46531
|
props: drawerProps,
|
|
@@ -44647,7 +46683,7 @@
|
|
|
44647
46683
|
}
|
|
44648
46684
|
});
|
|
44649
46685
|
|
|
44650
|
-
var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46686
|
+
var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__file", "drawer.vue"]]);
|
|
44651
46687
|
|
|
44652
46688
|
const LlDrawer = withInstall(Drawer);
|
|
44653
46689
|
|
|
@@ -44677,7 +46713,7 @@
|
|
|
44677
46713
|
});
|
|
44678
46714
|
|
|
44679
46715
|
const _hoisted_1$6 = ["src"];
|
|
44680
|
-
var _sfc_main$
|
|
46716
|
+
var _sfc_main$I = /* @__PURE__ */ require$$0.defineComponent({
|
|
44681
46717
|
...{ name: "LlEmpty" },
|
|
44682
46718
|
__name: "empty",
|
|
44683
46719
|
props: emptyProps,
|
|
@@ -44736,7 +46772,7 @@
|
|
|
44736
46772
|
}
|
|
44737
46773
|
});
|
|
44738
46774
|
|
|
44739
|
-
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46775
|
+
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__file", "empty.vue"]]);
|
|
44740
46776
|
|
|
44741
46777
|
const LlEmpty = withInstall(Empty);
|
|
44742
46778
|
|
|
@@ -44801,7 +46837,7 @@
|
|
|
44801
46837
|
}
|
|
44802
46838
|
});
|
|
44803
46839
|
|
|
44804
|
-
var _sfc_main$
|
|
46840
|
+
var _sfc_main$H = /* @__PURE__ */ require$$0.defineComponent({
|
|
44805
46841
|
__name: "form-component",
|
|
44806
46842
|
props: formComponentProps,
|
|
44807
46843
|
setup(__props) {
|
|
@@ -44829,9 +46865,9 @@
|
|
|
44829
46865
|
}
|
|
44830
46866
|
});
|
|
44831
46867
|
|
|
44832
|
-
var FormComponent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46868
|
+
var FormComponent = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__file", "form-component.vue"]]);
|
|
44833
46869
|
|
|
44834
|
-
var _sfc_main$
|
|
46870
|
+
var _sfc_main$G = /* @__PURE__ */ require$$0.defineComponent({
|
|
44835
46871
|
...{ name: "LlForm" },
|
|
44836
46872
|
__name: "form",
|
|
44837
46873
|
props: formProps,
|
|
@@ -45046,12 +47082,12 @@
|
|
|
45046
47082
|
}
|
|
45047
47083
|
});
|
|
45048
47084
|
|
|
45049
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47085
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__file", "form.vue"]]);
|
|
45050
47086
|
|
|
45051
47087
|
const LlFormComponent = withInstall(FormComponent);
|
|
45052
47088
|
const LlForm = withInstall(Form);
|
|
45053
47089
|
|
|
45054
|
-
var _sfc_main$
|
|
47090
|
+
var _sfc_main$F = /* @__PURE__ */ require$$0.defineComponent({
|
|
45055
47091
|
...{ name: "LlFormItem" },
|
|
45056
47092
|
__name: "form-item",
|
|
45057
47093
|
setup(__props) {
|
|
@@ -45077,7 +47113,7 @@
|
|
|
45077
47113
|
}
|
|
45078
47114
|
});
|
|
45079
47115
|
|
|
45080
|
-
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47116
|
+
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__file", "form-item.vue"]]);
|
|
45081
47117
|
|
|
45082
47118
|
const LlFormItem = withInstall(FormItem);
|
|
45083
47119
|
|
|
@@ -45105,7 +47141,7 @@
|
|
|
45105
47141
|
|
|
45106
47142
|
const _hoisted_1$5 = { "aria-hidden": "true" };
|
|
45107
47143
|
const _hoisted_2$3 = ["xlink:href"];
|
|
45108
|
-
var _sfc_main$
|
|
47144
|
+
var _sfc_main$E = /* @__PURE__ */ require$$0.defineComponent({
|
|
45109
47145
|
...{
|
|
45110
47146
|
name: "LlIcon"
|
|
45111
47147
|
},
|
|
@@ -45147,7 +47183,7 @@
|
|
|
45147
47183
|
}
|
|
45148
47184
|
});
|
|
45149
47185
|
|
|
45150
|
-
var Icon$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47186
|
+
var Icon$1 = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__file", "icon.vue"]]);
|
|
45151
47187
|
|
|
45152
47188
|
const LlIcon = withInstall(Icon$1);
|
|
45153
47189
|
|
|
@@ -45212,7 +47248,7 @@
|
|
|
45212
47248
|
}
|
|
45213
47249
|
});
|
|
45214
47250
|
|
|
45215
|
-
var _sfc_main$
|
|
47251
|
+
var _sfc_main$D = /* @__PURE__ */ require$$0.defineComponent({
|
|
45216
47252
|
...{
|
|
45217
47253
|
name: "LlIconBase"
|
|
45218
47254
|
},
|
|
@@ -45314,7 +47350,7 @@
|
|
|
45314
47350
|
}
|
|
45315
47351
|
});
|
|
45316
47352
|
|
|
45317
|
-
var IconBase$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47353
|
+
var IconBase$1 = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__file", "icon-base.vue"]]);
|
|
45318
47354
|
|
|
45319
47355
|
const LlIconBase = withInstall(IconBase$1);
|
|
45320
47356
|
|
|
@@ -45372,7 +47408,7 @@
|
|
|
45372
47408
|
handleModalVisible: (bool) => !!bool
|
|
45373
47409
|
};
|
|
45374
47410
|
|
|
45375
|
-
var _sfc_main$
|
|
47411
|
+
var _sfc_main$C = /* @__PURE__ */ require$$0.defineComponent({
|
|
45376
47412
|
...{
|
|
45377
47413
|
name: "LlIconPickerSearch"
|
|
45378
47414
|
},
|
|
@@ -45423,9 +47459,9 @@
|
|
|
45423
47459
|
}
|
|
45424
47460
|
});
|
|
45425
47461
|
|
|
45426
|
-
var search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47462
|
+
var search = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__file", "search.vue"]]);
|
|
45427
47463
|
|
|
45428
|
-
var _sfc_main$
|
|
47464
|
+
var _sfc_main$B = /* @__PURE__ */ require$$0.defineComponent({
|
|
45429
47465
|
...{
|
|
45430
47466
|
name: "LlIconPickerModal"
|
|
45431
47467
|
},
|
|
@@ -45574,9 +47610,9 @@
|
|
|
45574
47610
|
}
|
|
45575
47611
|
});
|
|
45576
47612
|
|
|
45577
|
-
var modal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47613
|
+
var modal = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__file", "modal.vue"]]);
|
|
45578
47614
|
|
|
45579
|
-
var _sfc_main$
|
|
47615
|
+
var _sfc_main$A = /* @__PURE__ */ require$$0.defineComponent({
|
|
45580
47616
|
...{
|
|
45581
47617
|
name: "LlIconPicker"
|
|
45582
47618
|
},
|
|
@@ -45625,7 +47661,7 @@
|
|
|
45625
47661
|
}
|
|
45626
47662
|
});
|
|
45627
47663
|
|
|
45628
|
-
var IconPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47664
|
+
var IconPicker = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__file", "icon-picker.vue"]]);
|
|
45629
47665
|
|
|
45630
47666
|
const LlIconPicker = withInstall(IconPicker);
|
|
45631
47667
|
|
|
@@ -45656,7 +47692,7 @@
|
|
|
45656
47692
|
}
|
|
45657
47693
|
});
|
|
45658
47694
|
|
|
45659
|
-
var _sfc_main$
|
|
47695
|
+
var _sfc_main$z = /* @__PURE__ */ require$$0.defineComponent({
|
|
45660
47696
|
...{ name: "LlInput" },
|
|
45661
47697
|
__name: "input",
|
|
45662
47698
|
props: inputProps,
|
|
@@ -45715,7 +47751,7 @@
|
|
|
45715
47751
|
}
|
|
45716
47752
|
});
|
|
45717
47753
|
|
|
45718
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47754
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__file", "input.vue"]]);
|
|
45719
47755
|
|
|
45720
47756
|
const LlInput = withInstall(Input);
|
|
45721
47757
|
|
|
@@ -45792,7 +47828,7 @@
|
|
|
45792
47828
|
const _hoisted_1$4 = ["title"];
|
|
45793
47829
|
const _hoisted_2$2 = { key: 0 };
|
|
45794
47830
|
const _hoisted_3$1 = { key: 1 };
|
|
45795
|
-
var _sfc_main$
|
|
47831
|
+
var _sfc_main$y = /* @__PURE__ */ require$$0.defineComponent({
|
|
45796
47832
|
...{ name: "LlInputNumber" },
|
|
45797
47833
|
__name: "input-number",
|
|
45798
47834
|
props: inputNumberProps,
|
|
@@ -45932,7 +47968,7 @@
|
|
|
45932
47968
|
}
|
|
45933
47969
|
});
|
|
45934
47970
|
|
|
45935
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47971
|
+
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "input-number.vue"]]);
|
|
45936
47972
|
|
|
45937
47973
|
const LlInputNumber = withInstall(InputNumber);
|
|
45938
47974
|
|
|
@@ -46041,7 +48077,7 @@
|
|
|
46041
48077
|
"update:value": (value) => !!value
|
|
46042
48078
|
};
|
|
46043
48079
|
|
|
46044
|
-
var _sfc_main$
|
|
48080
|
+
var _sfc_main$x = /* @__PURE__ */ require$$0.defineComponent({
|
|
46045
48081
|
...{
|
|
46046
48082
|
name: "LlKeyValueItem"
|
|
46047
48083
|
},
|
|
@@ -46052,7 +48088,6 @@
|
|
|
46052
48088
|
const props = __props;
|
|
46053
48089
|
const emits = __emit;
|
|
46054
48090
|
const attrs = require$$0.useAttrs();
|
|
46055
|
-
console.log({ attrs });
|
|
46056
48091
|
const bem = createNamespace("key-value");
|
|
46057
48092
|
const innerValue = require$$0.ref(props.value);
|
|
46058
48093
|
const getKeyType = require$$0.computed(() => {
|
|
@@ -46281,9 +48316,9 @@
|
|
|
46281
48316
|
}
|
|
46282
48317
|
});
|
|
46283
48318
|
|
|
46284
|
-
var keyValueItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48319
|
+
var keyValueItem = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "key-value-item.vue"]]);
|
|
46285
48320
|
|
|
46286
|
-
var _sfc_main$
|
|
48321
|
+
var _sfc_main$w = /* @__PURE__ */ require$$0.defineComponent({
|
|
46287
48322
|
...{ name: "LlKeyValue" },
|
|
46288
48323
|
__name: "key-value",
|
|
46289
48324
|
props: keyValueProps,
|
|
@@ -46410,7 +48445,7 @@
|
|
|
46410
48445
|
}
|
|
46411
48446
|
});
|
|
46412
48447
|
|
|
46413
|
-
var KeyValue = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48448
|
+
var KeyValue = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__file", "key-value.vue"]]);
|
|
46414
48449
|
|
|
46415
48450
|
const LlKeyValue = withInstall(KeyValue);
|
|
46416
48451
|
|
|
@@ -46498,7 +48533,7 @@
|
|
|
46498
48533
|
"update:open": () => true
|
|
46499
48534
|
};
|
|
46500
48535
|
|
|
46501
|
-
var _sfc_main$
|
|
48536
|
+
var _sfc_main$v = /* @__PURE__ */ require$$0.defineComponent({
|
|
46502
48537
|
...{ name: "LlModal" },
|
|
46503
48538
|
__name: "modal",
|
|
46504
48539
|
props: modalProps,
|
|
@@ -46596,10 +48631,188 @@
|
|
|
46596
48631
|
}
|
|
46597
48632
|
});
|
|
46598
48633
|
|
|
46599
|
-
var Modal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48634
|
+
var Modal = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__file", "modal.vue"]]);
|
|
46600
48635
|
|
|
46601
48636
|
const LlModal = withInstall(Modal);
|
|
46602
48637
|
|
|
48638
|
+
const numberRangeProps = buildProps({
|
|
48639
|
+
value: {
|
|
48640
|
+
type: definePropType(Array),
|
|
48641
|
+
default: () => []
|
|
48642
|
+
},
|
|
48643
|
+
min: Number,
|
|
48644
|
+
max: Number,
|
|
48645
|
+
precision: {
|
|
48646
|
+
type: definePropType(Number)
|
|
48647
|
+
},
|
|
48648
|
+
disabled: {
|
|
48649
|
+
type: Boolean,
|
|
48650
|
+
default: false
|
|
48651
|
+
},
|
|
48652
|
+
placeholder: {
|
|
48653
|
+
type: Array,
|
|
48654
|
+
default: () => ["\u6700\u5C0F\u503C", "\u6700\u5927\u503C"]
|
|
48655
|
+
}
|
|
48656
|
+
});
|
|
48657
|
+
const numberRangeEmits = {
|
|
48658
|
+
change: (value) => !!value,
|
|
48659
|
+
"update:value": (value) => !!value
|
|
48660
|
+
};
|
|
48661
|
+
|
|
48662
|
+
var _sfc_main$u = /* @__PURE__ */ require$$0.defineComponent({
|
|
48663
|
+
...{ name: "LlNumberRange" },
|
|
48664
|
+
__name: "number-range",
|
|
48665
|
+
props: numberRangeProps,
|
|
48666
|
+
emits: numberRangeEmits,
|
|
48667
|
+
setup(__props, { emit: __emit }) {
|
|
48668
|
+
const props = __props;
|
|
48669
|
+
const emits = __emit;
|
|
48670
|
+
const bem = createNamespace("number-range");
|
|
48671
|
+
const minValue = require$$0.ref(null);
|
|
48672
|
+
const maxValue = require$$0.ref(null);
|
|
48673
|
+
const { defaultSeed } = antDesignVue.theme;
|
|
48674
|
+
const computedHeight = require$$0.computed(() => {
|
|
48675
|
+
return `${defaultSeed.controlHeight}px`;
|
|
48676
|
+
});
|
|
48677
|
+
const setValue = () => {
|
|
48678
|
+
const arr = [minValue.value, maxValue.value];
|
|
48679
|
+
emits("change", arr);
|
|
48680
|
+
emits("update:value", arr);
|
|
48681
|
+
};
|
|
48682
|
+
const handleMinChange = (e) => {
|
|
48683
|
+
if (!!e || e.value === 0) {
|
|
48684
|
+
minValue.value = e;
|
|
48685
|
+
} else {
|
|
48686
|
+
minValue.value = null;
|
|
48687
|
+
}
|
|
48688
|
+
setValue();
|
|
48689
|
+
};
|
|
48690
|
+
const handleMaxChange = (e) => {
|
|
48691
|
+
if (!!e || e.value === 0) {
|
|
48692
|
+
maxValue.value = e;
|
|
48693
|
+
} else {
|
|
48694
|
+
minValue.value = null;
|
|
48695
|
+
}
|
|
48696
|
+
setValue();
|
|
48697
|
+
};
|
|
48698
|
+
const handleMaxBlur = () => {
|
|
48699
|
+
if (minValue.value || minValue.value === 0) {
|
|
48700
|
+
if (maxValue.value && maxValue.value < minValue.value) {
|
|
48701
|
+
maxValue.value = minValue.value;
|
|
48702
|
+
}
|
|
48703
|
+
}
|
|
48704
|
+
setValue();
|
|
48705
|
+
};
|
|
48706
|
+
const handleMinBlur = () => {
|
|
48707
|
+
if (maxValue.value || maxValue.value === 0) {
|
|
48708
|
+
if (minValue.value && minValue.value > maxValue.value) {
|
|
48709
|
+
minValue.value = maxValue.value;
|
|
48710
|
+
}
|
|
48711
|
+
}
|
|
48712
|
+
setValue();
|
|
48713
|
+
};
|
|
48714
|
+
require$$0.watch(
|
|
48715
|
+
() => props.value,
|
|
48716
|
+
(n) => {
|
|
48717
|
+
if (n && n.length) {
|
|
48718
|
+
if (n[0] || n[0] === 0) {
|
|
48719
|
+
minValue.value = n[0];
|
|
48720
|
+
} else {
|
|
48721
|
+
minValue.value = null;
|
|
48722
|
+
}
|
|
48723
|
+
if (n[1] || n[1] === 0) {
|
|
48724
|
+
maxValue.value = n[1];
|
|
48725
|
+
} else {
|
|
48726
|
+
maxValue.value = null;
|
|
48727
|
+
}
|
|
48728
|
+
}
|
|
48729
|
+
}
|
|
48730
|
+
);
|
|
48731
|
+
return (_ctx, _cache) => {
|
|
48732
|
+
return require$$0.openBlock(), require$$0.createElementBlock(
|
|
48733
|
+
"div",
|
|
48734
|
+
{
|
|
48735
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).b()),
|
|
48736
|
+
style: require$$0.normalizeStyle({
|
|
48737
|
+
height: `${computedHeight.value}`
|
|
48738
|
+
})
|
|
48739
|
+
},
|
|
48740
|
+
[
|
|
48741
|
+
require$$0.createElementVNode(
|
|
48742
|
+
"div",
|
|
48743
|
+
{
|
|
48744
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("input"))
|
|
48745
|
+
},
|
|
48746
|
+
[
|
|
48747
|
+
require$$0.createVNode(require$$0.unref(LlInputNumber), {
|
|
48748
|
+
value: minValue.value,
|
|
48749
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => minValue.value = $event),
|
|
48750
|
+
placeholder: _ctx.placeholder[0],
|
|
48751
|
+
precision: props.precision,
|
|
48752
|
+
min: props.min,
|
|
48753
|
+
max: props.max,
|
|
48754
|
+
disabled: props.disabled,
|
|
48755
|
+
controls: false,
|
|
48756
|
+
bordered: false,
|
|
48757
|
+
style: { "width": "100%" },
|
|
48758
|
+
onChange: handleMinChange,
|
|
48759
|
+
onBlur: handleMinBlur
|
|
48760
|
+
}, null, 8, ["value", "placeholder", "precision", "min", "max", "disabled"])
|
|
48761
|
+
],
|
|
48762
|
+
2
|
|
48763
|
+
/* CLASS */
|
|
48764
|
+
),
|
|
48765
|
+
require$$0.createCommentVNode(" \u5DE6\u8FB9InputNumber "),
|
|
48766
|
+
require$$0.createElementVNode(
|
|
48767
|
+
"span",
|
|
48768
|
+
{
|
|
48769
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("separator"))
|
|
48770
|
+
},
|
|
48771
|
+
[
|
|
48772
|
+
require$$0.renderSlot(_ctx.$slots, "separator", {}, () => [
|
|
48773
|
+
require$$0.createTextVNode(" - ")
|
|
48774
|
+
])
|
|
48775
|
+
],
|
|
48776
|
+
2
|
|
48777
|
+
/* CLASS */
|
|
48778
|
+
),
|
|
48779
|
+
require$$0.createCommentVNode(" \u53F3\u8FB9InputNumber "),
|
|
48780
|
+
require$$0.createElementVNode(
|
|
48781
|
+
"div",
|
|
48782
|
+
{
|
|
48783
|
+
class: require$$0.normalizeClass(require$$0.unref(bem).m("input"))
|
|
48784
|
+
},
|
|
48785
|
+
[
|
|
48786
|
+
require$$0.createVNode(require$$0.unref(LlInputNumber), {
|
|
48787
|
+
value: maxValue.value,
|
|
48788
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => maxValue.value = $event),
|
|
48789
|
+
placeholder: _ctx.placeholder[1],
|
|
48790
|
+
precision: props.precision,
|
|
48791
|
+
min: props.min,
|
|
48792
|
+
max: props.max,
|
|
48793
|
+
disabled: props.disabled,
|
|
48794
|
+
controls: false,
|
|
48795
|
+
bordered: false,
|
|
48796
|
+
style: { "width": "100%" },
|
|
48797
|
+
onChange: handleMaxChange,
|
|
48798
|
+
onBlur: handleMaxBlur
|
|
48799
|
+
}, null, 8, ["value", "placeholder", "precision", "min", "max", "disabled"])
|
|
48800
|
+
],
|
|
48801
|
+
2
|
|
48802
|
+
/* CLASS */
|
|
48803
|
+
)
|
|
48804
|
+
],
|
|
48805
|
+
6
|
|
48806
|
+
/* CLASS, STYLE */
|
|
48807
|
+
);
|
|
48808
|
+
};
|
|
48809
|
+
}
|
|
48810
|
+
});
|
|
48811
|
+
|
|
48812
|
+
var NumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__file", "number-range.vue"]]);
|
|
48813
|
+
|
|
48814
|
+
const LlNumberRange = withInstall(NumberRange);
|
|
48815
|
+
|
|
46603
48816
|
const operateIconProps = buildProps({
|
|
46604
48817
|
/**
|
|
46605
48818
|
* @description 监听dropdown是否打开和关闭
|
|
@@ -56723,6 +58936,9 @@
|
|
|
56723
58936
|
})
|
|
56724
58937
|
])
|
|
56725
58938
|
]),
|
|
58939
|
+
expandedRowRender: require$$0.withCtx((slots) => [
|
|
58940
|
+
require$$0.renderSlot(_ctx.$slots, "expandedRowRender", require$$0.normalizeProps(require$$0.guardReactiveProps(slots)))
|
|
58941
|
+
]),
|
|
56726
58942
|
_: 3
|
|
56727
58943
|
/* FORWARDED */
|
|
56728
58944
|
}, 16, ["class", "columns", "data-source", "expanded-row-keys", "custom-row", "scroll", "onChange", "onExpandedRowsChange"]);
|
|
@@ -56860,6 +59076,9 @@
|
|
|
56860
59076
|
emptyText: require$$0.withCtx(() => [
|
|
56861
59077
|
require$$0.renderSlot(_ctx.$slots, "emptyText")
|
|
56862
59078
|
]),
|
|
59079
|
+
expandedRowRender: require$$0.withCtx((slots) => [
|
|
59080
|
+
require$$0.renderSlot(_ctx.$slots, "expandedRowRender", require$$0.normalizeProps(require$$0.guardReactiveProps(slots)))
|
|
59081
|
+
]),
|
|
56863
59082
|
_: 3
|
|
56864
59083
|
/* FORWARDED */
|
|
56865
59084
|
},
|
|
@@ -63876,6 +66095,7 @@
|
|
|
63876
66095
|
LlAdvancedFiltering,
|
|
63877
66096
|
LlAdvancedFilteringParams,
|
|
63878
66097
|
LlAdvancedFilteringTags,
|
|
66098
|
+
LlApiComponent,
|
|
63879
66099
|
LlAvatar,
|
|
63880
66100
|
LlButton,
|
|
63881
66101
|
LlCascader,
|
|
@@ -63898,6 +66118,7 @@
|
|
|
63898
66118
|
LlInputNumber,
|
|
63899
66119
|
LlKeyValue,
|
|
63900
66120
|
LlModal,
|
|
66121
|
+
LlNumberRange,
|
|
63901
66122
|
LlOperateIcon,
|
|
63902
66123
|
LlOperateTree,
|
|
63903
66124
|
LlRadio,
|
|
@@ -63929,11 +66150,14 @@
|
|
|
63929
66150
|
|
|
63930
66151
|
const install = installer.install;
|
|
63931
66152
|
|
|
66153
|
+
exports.DEFAULT_METHOD = DEFAULT_METHOD;
|
|
66154
|
+
exports.DEFAULT_TYPE = DEFAULT_TYPE;
|
|
63932
66155
|
exports.ILlUploadDragProps = ILlUploadDragProps;
|
|
63933
66156
|
exports.ImenuSwitchType = ImenuSwitchType;
|
|
63934
66157
|
exports.LlAdvancedFiltering = LlAdvancedFiltering;
|
|
63935
66158
|
exports.LlAdvancedFilteringParams = LlAdvancedFilteringParams;
|
|
63936
66159
|
exports.LlAdvancedFilteringTags = LlAdvancedFilteringTags;
|
|
66160
|
+
exports.LlApiComponent = LlApiComponent;
|
|
63937
66161
|
exports.LlAvatar = LlAvatar;
|
|
63938
66162
|
exports.LlButton = LlButton;
|
|
63939
66163
|
exports.LlCascader = LlCascader;
|
|
@@ -63959,6 +66183,7 @@
|
|
|
63959
66183
|
exports.LlInputNumber = LlInputNumber;
|
|
63960
66184
|
exports.LlKeyValue = LlKeyValue;
|
|
63961
66185
|
exports.LlModal = LlModal;
|
|
66186
|
+
exports.LlNumberRange = LlNumberRange;
|
|
63962
66187
|
exports.LlOperateIcon = LlOperateIcon;
|
|
63963
66188
|
exports.LlOperateTree = LlOperateTree;
|
|
63964
66189
|
exports.LlRadio = LlRadio;
|
|
@@ -63989,16 +66214,27 @@
|
|
|
63989
66214
|
exports.advancedFilteringParamsProps = advancedFilteringParamsProps;
|
|
63990
66215
|
exports.advancedFilteringProps = advancedFilteringProps;
|
|
63991
66216
|
exports.advancedFilteringTagsEmits = advancedFilteringTagsEmits;
|
|
66217
|
+
exports.apiComponentProps = apiComponentProps;
|
|
66218
|
+
exports.apiModalEmits = apiModalEmits;
|
|
66219
|
+
exports.apiModalProps = apiModalProps;
|
|
66220
|
+
exports.apiUrlEmits = apiUrlEmits;
|
|
63992
66221
|
exports.avatarEmits = avatarEmits;
|
|
63993
66222
|
exports.avatarProps = avatarProps;
|
|
63994
66223
|
exports.avatarType = avatarType;
|
|
66224
|
+
exports.batchEditingEmits = batchEditingEmits;
|
|
66225
|
+
exports.batchEditingOptions = batchEditingOptions;
|
|
66226
|
+
exports.batchEditingProps = batchEditingProps;
|
|
66227
|
+
exports.bodyList = bodyList;
|
|
63995
66228
|
exports.buttonProps = buttonProps;
|
|
63996
66229
|
exports.checkboxGroupProps = checkboxGroupProps;
|
|
63997
66230
|
exports.checkboxProps = checkboxProps;
|
|
63998
66231
|
exports.checkedType = checkedType;
|
|
66232
|
+
exports.clickInputEmits = clickInputEmits;
|
|
66233
|
+
exports.clickInputProps = clickInputProps;
|
|
63999
66234
|
exports.codeEditorEmits = codeEditorEmits;
|
|
64000
66235
|
exports.codeEditorProps = codeEditorProps;
|
|
64001
66236
|
exports.codeThemeList = codeThemeList;
|
|
66237
|
+
exports.customOverlay = customOverlay;
|
|
64002
66238
|
exports.default = installer;
|
|
64003
66239
|
exports.defaultOptions = defaultOptions;
|
|
64004
66240
|
exports.descriptionsItemProps = descriptionsItemProps;
|
|
@@ -64015,7 +66251,9 @@
|
|
|
64015
66251
|
exports.formComponentProps = formComponentProps;
|
|
64016
66252
|
exports.formOptions = formOptions;
|
|
64017
66253
|
exports.formProps = formProps;
|
|
66254
|
+
exports.formdataTableColumns = formdataTableColumns;
|
|
64018
66255
|
exports.getKeyValueItem = getKeyValueItem;
|
|
66256
|
+
exports.headersTableColumns = headersTableColumns;
|
|
64019
66257
|
exports.iconBaseProps = iconBaseProps;
|
|
64020
66258
|
exports.iconPickerModalEmits = iconPickerModalEmits;
|
|
64021
66259
|
exports.iconPickerModalProps = iconPickerModalProps;
|
|
@@ -64028,6 +66266,15 @@
|
|
|
64028
66266
|
exports.inputNumberProps = inputNumberProps;
|
|
64029
66267
|
exports.inputProps = inputProps;
|
|
64030
66268
|
exports.install = install;
|
|
66269
|
+
exports.jsonTableColumns = jsonTableColumns;
|
|
66270
|
+
exports.jsonXmlEmits = jsonXmlEmits;
|
|
66271
|
+
exports.jsonXmlOptions = jsonXmlOptions;
|
|
66272
|
+
exports.jsonXmlProps = jsonXmlProps;
|
|
66273
|
+
exports.jsonXmlTableEmits = jsonXmlTableEmits;
|
|
66274
|
+
exports.jsonXmlTableProps = jsonXmlTableProps;
|
|
66275
|
+
exports.jsonXmlTableRowEmits = jsonXmlTableRowEmits;
|
|
66276
|
+
exports.jsonXmlTableRowProps = jsonXmlTableRowProps;
|
|
66277
|
+
exports.jsonXmlTypeOptions = jsonXmlTypeOptions;
|
|
64031
66278
|
exports.keyValueEmits = keyValueEmits;
|
|
64032
66279
|
exports.keyValueItemEmits = keyValueItemEmits;
|
|
64033
66280
|
exports.keyValueItemProps = keyValueItemProps;
|
|
@@ -64035,13 +66282,22 @@
|
|
|
64035
66282
|
exports.mainTableEmits = mainTableEmits;
|
|
64036
66283
|
exports.mainTableProps = mainTableProps;
|
|
64037
66284
|
exports.menuSwitchRadioList = menuSwitchRadioList;
|
|
66285
|
+
exports.methods = methods;
|
|
64038
66286
|
exports.modalEmits = modalEmits;
|
|
64039
66287
|
exports.modalProps = modalProps;
|
|
66288
|
+
exports.numberRangeEmits = numberRangeEmits;
|
|
66289
|
+
exports.numberRangeProps = numberRangeProps;
|
|
64040
66290
|
exports.operateIconEmits = operateIconEmits;
|
|
64041
66291
|
exports.operateIconProps = operateIconProps;
|
|
64042
66292
|
exports.operateTreeEmits = operateTreeEmits;
|
|
64043
66293
|
exports.operateTreeProps = operateTreeProps;
|
|
66294
|
+
exports.paramsOptions = paramsOptions;
|
|
66295
|
+
exports.paramsTableColumns = paramsTableColumns;
|
|
66296
|
+
exports.paramsTableEmits = paramsTableEmits;
|
|
66297
|
+
exports.paramsTableProps = paramsTableProps;
|
|
66298
|
+
exports.paramsTableRowProps = paramsTableRowProps;
|
|
64044
66299
|
exports.placement = placement;
|
|
66300
|
+
exports.requestList = requestList;
|
|
64045
66301
|
exports.secondConfirmationProps = secondConfirmationProps;
|
|
64046
66302
|
exports.selectGroupData = selectGroupData;
|
|
64047
66303
|
exports.selectGroupEmits = selectGroupEmits;
|