ll-plus 2.1.19 → 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 +2 -4
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -4
- 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 +2 -4
- package/es/components/modal/src/modal.d.ts +4 -0
- package/es/components/modal/src/modal.mjs.map +1 -1
- package/es/components/modal/src/modal.vue.d.ts +3 -4
- package/es/components/modal/src/modal.vue2.mjs +9 -3
- 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/global.d.ts +2 -0
- package/index.full.js +2470 -208
- 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 +2437 -210
- 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 +2 -4
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -4
- 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 +2 -4
- package/lib/components/modal/src/modal.d.ts +4 -0
- package/lib/components/modal/src/modal.js.map +1 -1
- package/lib/components/modal/src/modal.vue.d.ts +3 -4
- package/lib/components/modal/src/modal.vue2.js +9 -3
- 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/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/theme-chalk/fonts/iconfont.js +1 -1
- package/theme-chalk/fonts/iconfont.json +28 -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 +2 -4
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -4
- 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 +2 -4
- package/types/packages/components/modal/src/modal.d.ts +4 -0
- package/types/packages/components/modal/src/modal.vue.d.ts +3 -4
- 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/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import require$$0, { warn, defineComponent, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createVNode, createElementVNode, createElementBlock, createTextVNode, createCommentVNode, watchEffect, Fragment, renderList, toDisplayString, withModifiers,
|
|
1
|
+
import require$$0, { warn, defineComponent, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createVNode, createElementVNode, createElementBlock, createTextVNode, createCommentVNode, watchEffect, Fragment, renderList, toDisplayString, withModifiers, computed, useAttrs, mergeProps, normalizeStyle, withDirectives, vShow, reactive, normalizeProps, renderSlot, guardReactiveProps, createSlots, onBeforeUnmount, onMounted, createApp, nextTick, resolveDynamicComponent, inject, getCurrentInstance, h, isRef, provide, toRef, onUnmounted, toRefs } from 'vue';
|
|
2
2
|
import { Button as Button$1, Cascader as Cascader$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, Row, Col, DatePicker as DatePicker$1, RangePicker, theme, Drawer as Drawer$1, FormItem as FormItem$1, Input as Input$1, InputNumber as InputNumber$1, Modal as Modal$1, Radio as Radio$1, RadioButton as RadioButton$1, RadioGroup as RadioGroup$1, Segmented as Segmented$1, Select as Select$1, SelectOption as SelectOption$1, SelectOptGroup as SelectOptGroup$1, Steps as Steps$1, Switch as Switch$1, Form as Form$1, Popover, Textarea as Textarea$1, TimePicker as TimePicker$1, TimeRangePicker, Tree as Tree$1, message } from 'ant-design-vue';
|
|
3
3
|
import * as monaco from 'monaco-editor';
|
|
4
4
|
|
|
@@ -1663,7 +1663,7 @@ const advancedFilteringTagsEmits = {
|
|
|
1663
1663
|
"update:value": (value) => !!value
|
|
1664
1664
|
};
|
|
1665
1665
|
|
|
1666
|
-
const _hoisted_1$
|
|
1666
|
+
const _hoisted_1$d = /* @__PURE__ */ createElementVNode(
|
|
1667
1667
|
"p",
|
|
1668
1668
|
null,
|
|
1669
1669
|
"\u6682\u65E0\u6570\u636E",
|
|
@@ -1671,9 +1671,9 @@ const _hoisted_1$a = /* @__PURE__ */ createElementVNode(
|
|
|
1671
1671
|
/* HOISTED */
|
|
1672
1672
|
);
|
|
1673
1673
|
const _hoisted_2$5 = [
|
|
1674
|
-
_hoisted_1$
|
|
1674
|
+
_hoisted_1$d
|
|
1675
1675
|
];
|
|
1676
|
-
var _sfc_main$
|
|
1676
|
+
var _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
1677
1677
|
...{ name: "LlAdvancedFilteringParams" },
|
|
1678
1678
|
__name: "advanced-filtering-params",
|
|
1679
1679
|
props: advancedFilteringParamsProps,
|
|
@@ -1786,7 +1786,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
1786
1786
|
return target;
|
|
1787
1787
|
};
|
|
1788
1788
|
|
|
1789
|
-
var AdvancedFilteringParams = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1789
|
+
var AdvancedFilteringParams = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__file", "advanced-filtering-params.vue"]]);
|
|
1790
1790
|
|
|
1791
1791
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1792
1792
|
|
|
@@ -2113,7 +2113,7 @@ var dayjs_min = {exports: {}};
|
|
|
2113
2113
|
var dayjs_minExports = dayjs_min.exports;
|
|
2114
2114
|
var dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
2115
2115
|
|
|
2116
|
-
const _hoisted_1$
|
|
2116
|
+
const _hoisted_1$c = /* @__PURE__ */ createElementVNode(
|
|
2117
2117
|
"p",
|
|
2118
2118
|
null,
|
|
2119
2119
|
"\u7B5B\u9009\u7ED3\u679C\uFF1A",
|
|
@@ -2131,7 +2131,7 @@ const _hoisted_3$2 = /* @__PURE__ */ createElementVNode(
|
|
|
2131
2131
|
const _hoisted_4 = [
|
|
2132
2132
|
_hoisted_3$2
|
|
2133
2133
|
];
|
|
2134
|
-
var _sfc_main$
|
|
2134
|
+
var _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
2135
2135
|
...{ name: "LlAdvancedFilteringTags" },
|
|
2136
2136
|
__name: "advanced-filtering-tags",
|
|
2137
2137
|
props: advancedFilteringProps,
|
|
@@ -2263,7 +2263,7 @@ var _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
2263
2263
|
class: normalizeClass(unref(bem).m("title"))
|
|
2264
2264
|
},
|
|
2265
2265
|
[
|
|
2266
|
-
_hoisted_1$
|
|
2266
|
+
_hoisted_1$c,
|
|
2267
2267
|
createElementVNode("a", {
|
|
2268
2268
|
onClick: _cache[0] || (_cache[0] = ($event) => handleClean(null))
|
|
2269
2269
|
}, "\u6E05\u9664\u7B5B\u9009\u7ED3\u679C")
|
|
@@ -2271,73 +2271,1777 @@ var _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
2271
2271
|
2
|
|
2272
2272
|
/* CLASS */
|
|
2273
2273
|
),
|
|
2274
|
-
tags.value.length > 0 ? (openBlock(), createElementBlock(
|
|
2274
|
+
tags.value.length > 0 ? (openBlock(), createElementBlock(
|
|
2275
|
+
"div",
|
|
2276
|
+
{
|
|
2277
|
+
key: 0,
|
|
2278
|
+
class: normalizeClass(unref(bem).m("box"))
|
|
2279
|
+
},
|
|
2280
|
+
[
|
|
2281
|
+
(openBlock(true), createElementBlock(
|
|
2282
|
+
Fragment,
|
|
2283
|
+
null,
|
|
2284
|
+
renderList(tags.value, (tag) => {
|
|
2285
|
+
return openBlock(), createElementBlock(
|
|
2286
|
+
"div",
|
|
2287
|
+
{
|
|
2288
|
+
key: tag.key,
|
|
2289
|
+
class: normalizeClass(unref(bem).m("tag"))
|
|
2290
|
+
},
|
|
2291
|
+
[
|
|
2292
|
+
createElementVNode(
|
|
2293
|
+
"span",
|
|
2294
|
+
{
|
|
2295
|
+
class: normalizeClass(unref(bem).m("label"))
|
|
2296
|
+
},
|
|
2297
|
+
toDisplayString(tag.label) + ":",
|
|
2298
|
+
3
|
|
2299
|
+
/* TEXT, CLASS */
|
|
2300
|
+
),
|
|
2301
|
+
createElementVNode(
|
|
2302
|
+
"span",
|
|
2303
|
+
{
|
|
2304
|
+
class: normalizeClass(unref(bem).m("value"))
|
|
2305
|
+
},
|
|
2306
|
+
toDisplayString(tag.showValue),
|
|
2307
|
+
3
|
|
2308
|
+
/* TEXT, CLASS */
|
|
2309
|
+
),
|
|
2310
|
+
createElementVNode("span", {
|
|
2311
|
+
class: normalizeClass(unref(bem).m("close")),
|
|
2312
|
+
onClick: ($event) => handleClean(tag)
|
|
2313
|
+
}, [
|
|
2314
|
+
createVNode(_component_ll_icon, {
|
|
2315
|
+
"icon-name": "icon-close2",
|
|
2316
|
+
color: "#909399",
|
|
2317
|
+
"class-name": unref(bem).m("icon")
|
|
2318
|
+
}, null, 8, ["class-name"])
|
|
2319
|
+
], 10, _hoisted_2$4)
|
|
2320
|
+
],
|
|
2321
|
+
2
|
|
2322
|
+
/* CLASS */
|
|
2323
|
+
);
|
|
2324
|
+
}),
|
|
2325
|
+
128
|
|
2326
|
+
/* KEYED_FRAGMENT */
|
|
2327
|
+
))
|
|
2328
|
+
],
|
|
2329
|
+
2
|
|
2330
|
+
/* CLASS */
|
|
2331
|
+
)) : (openBlock(), createElementBlock(
|
|
2332
|
+
"div",
|
|
2333
|
+
{
|
|
2334
|
+
key: 1,
|
|
2335
|
+
class: normalizeClass(unref(bem).m("empty"))
|
|
2336
|
+
},
|
|
2337
|
+
_hoisted_4,
|
|
2338
|
+
2
|
|
2339
|
+
/* CLASS */
|
|
2340
|
+
))
|
|
2341
|
+
],
|
|
2342
|
+
2
|
|
2343
|
+
/* CLASS */
|
|
2344
|
+
);
|
|
2345
|
+
};
|
|
2346
|
+
}
|
|
2347
|
+
});
|
|
2348
|
+
|
|
2349
|
+
var AdvancedFilteringTags = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__file", "advanced-filtering-tags.vue"]]);
|
|
2350
|
+
|
|
2351
|
+
const _hoisted_1$b = /* @__PURE__ */ createElementVNode(
|
|
2352
|
+
"span",
|
|
2353
|
+
null,
|
|
2354
|
+
"\u9AD8\u7EA7\u7B5B\u9009",
|
|
2355
|
+
-1
|
|
2356
|
+
/* HOISTED */
|
|
2357
|
+
);
|
|
2358
|
+
var _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
2359
|
+
...{ name: "LlAdvancedFiltering" },
|
|
2360
|
+
__name: "advanced-filtering",
|
|
2361
|
+
props: advancedFilteringProps,
|
|
2362
|
+
emits: advancedFilteringEmits,
|
|
2363
|
+
setup(__props, { emit: __emit }) {
|
|
2364
|
+
const props = __props;
|
|
2365
|
+
const emits = __emit;
|
|
2366
|
+
const bem = createNamespace("advanced-filtering");
|
|
2367
|
+
const filterValue = ref(props.value);
|
|
2368
|
+
const showSelectBox = ref(false);
|
|
2369
|
+
const showValueBox = ref(false);
|
|
2370
|
+
const handleHoverChange = (visible) => {
|
|
2371
|
+
if (showSelectBox.value)
|
|
2372
|
+
return;
|
|
2373
|
+
showValueBox.value = visible;
|
|
2374
|
+
};
|
|
2375
|
+
const handleClickChange = () => {
|
|
2376
|
+
showSelectBox.value = !showSelectBox.value;
|
|
2377
|
+
showValueBox.value = false;
|
|
2378
|
+
};
|
|
2379
|
+
const handleClose = () => {
|
|
2380
|
+
showSelectBox.value = false;
|
|
2381
|
+
showValueBox.value = false;
|
|
2382
|
+
};
|
|
2383
|
+
const handleChange = (val) => {
|
|
2384
|
+
filterValue.value = val;
|
|
2385
|
+
};
|
|
2386
|
+
watch(
|
|
2387
|
+
filterValue,
|
|
2388
|
+
(n) => {
|
|
2389
|
+
emits("update:value", n);
|
|
2390
|
+
emits("change", n);
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
deep: true
|
|
2394
|
+
}
|
|
2395
|
+
);
|
|
2396
|
+
return (_ctx, _cache) => {
|
|
2397
|
+
const _component_a_popover = resolveComponent("a-popover");
|
|
2398
|
+
return openBlock(), createBlock(_component_a_popover, {
|
|
2399
|
+
"overlay-class-name": unref(bem).b(),
|
|
2400
|
+
placement: "bottomRight",
|
|
2401
|
+
"overlay-style": props.overlayStyle,
|
|
2402
|
+
open: showSelectBox.value
|
|
2403
|
+
}, {
|
|
2404
|
+
content: withCtx(() => [
|
|
2405
|
+
createVNode(AdvancedFilteringParams, {
|
|
2406
|
+
value: filterValue.value,
|
|
2407
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => filterValue.value = $event),
|
|
2408
|
+
"filter-columns": props.filterColumns,
|
|
2409
|
+
"form-options": props.formOptions,
|
|
2410
|
+
onClose: handleClose
|
|
2411
|
+
}, null, 8, ["value", "filter-columns", "form-options"])
|
|
2412
|
+
]),
|
|
2413
|
+
default: withCtx(() => [
|
|
2414
|
+
createVNode(_component_a_popover, {
|
|
2415
|
+
"overlay-class-name": unref(bem).b(),
|
|
2416
|
+
trigger: "hover",
|
|
2417
|
+
placement: "bottomRight",
|
|
2418
|
+
open: showValueBox.value,
|
|
2419
|
+
"overlay-style": props.overlayStyle,
|
|
2420
|
+
onOpenChange: handleHoverChange
|
|
2421
|
+
}, {
|
|
2422
|
+
content: withCtx(() => [
|
|
2423
|
+
createVNode(AdvancedFilteringTags, {
|
|
2424
|
+
value: filterValue.value,
|
|
2425
|
+
"filter-columns": props.filterColumns,
|
|
2426
|
+
onChange: handleChange
|
|
2427
|
+
}, null, 8, ["value", "filter-columns"])
|
|
2428
|
+
]),
|
|
2429
|
+
default: withCtx(() => [
|
|
2430
|
+
createVNode(unref(LlButton), {
|
|
2431
|
+
onClick: withModifiers(handleClickChange, ["stop"])
|
|
2432
|
+
}, {
|
|
2433
|
+
default: withCtx(() => [
|
|
2434
|
+
createVNode(unref(LlIcon), {
|
|
2435
|
+
"icon-name": "icon-Screening",
|
|
2436
|
+
style: { "margin-right": "10px" }
|
|
2437
|
+
}),
|
|
2438
|
+
_hoisted_1$b
|
|
2439
|
+
]),
|
|
2440
|
+
_: 1
|
|
2441
|
+
/* STABLE */
|
|
2442
|
+
})
|
|
2443
|
+
]),
|
|
2444
|
+
_: 1
|
|
2445
|
+
/* STABLE */
|
|
2446
|
+
}, 8, ["overlay-class-name", "open", "overlay-style"])
|
|
2447
|
+
]),
|
|
2448
|
+
_: 1
|
|
2449
|
+
/* STABLE */
|
|
2450
|
+
}, 8, ["overlay-class-name", "overlay-style", "open"]);
|
|
2451
|
+
};
|
|
2452
|
+
}
|
|
2453
|
+
});
|
|
2454
|
+
|
|
2455
|
+
var AdvancedFiltering = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__file", "advanced-filtering.vue"]]);
|
|
2456
|
+
|
|
2457
|
+
const LlAdvancedFiltering = withInstall(AdvancedFiltering);
|
|
2458
|
+
const LlAdvancedFilteringParams = withInstall(AdvancedFilteringParams);
|
|
2459
|
+
const LlAdvancedFilteringTags = withInstall(AdvancedFilteringTags);
|
|
2460
|
+
|
|
2461
|
+
const DEFAULT_METHOD = "GET";
|
|
2462
|
+
const requestList = [
|
|
2463
|
+
{
|
|
2464
|
+
key: "params",
|
|
2465
|
+
name: "\u8BF7\u6C42\u53C2\u6570"
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
key: "body",
|
|
2469
|
+
name: "\u8BF7\u6C42\u62A5\u6587\u4F53"
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
key: "headers",
|
|
2473
|
+
name: "\u8BF7\u6C42\u5934"
|
|
2474
|
+
}
|
|
2475
|
+
];
|
|
2476
|
+
const bodyList = [
|
|
2477
|
+
{
|
|
2478
|
+
key: "none",
|
|
2479
|
+
name: "none"
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
key: "form-data",
|
|
2483
|
+
name: "form-data"
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
key: "x-www-form-urlencoded",
|
|
2487
|
+
name: "x-www-form-urlencoded"
|
|
2488
|
+
},
|
|
2489
|
+
{
|
|
2490
|
+
key: "json",
|
|
2491
|
+
name: "json"
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
key: "xml",
|
|
2495
|
+
name: "xml"
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
key: "raw",
|
|
2499
|
+
name: "raw"
|
|
2500
|
+
}
|
|
2501
|
+
];
|
|
2502
|
+
const apiComponentProps = buildProps({
|
|
2503
|
+
url: {
|
|
2504
|
+
type: String,
|
|
2505
|
+
default: ""
|
|
2506
|
+
},
|
|
2507
|
+
method: {
|
|
2508
|
+
type: definePropType(String),
|
|
2509
|
+
default: DEFAULT_METHOD
|
|
2510
|
+
},
|
|
2511
|
+
requestParams: {
|
|
2512
|
+
type: definePropType(Array),
|
|
2513
|
+
default: () => []
|
|
2514
|
+
},
|
|
2515
|
+
headerParams: {
|
|
2516
|
+
type: definePropType(Array),
|
|
2517
|
+
default: () => []
|
|
2518
|
+
},
|
|
2519
|
+
bodyParams: {
|
|
2520
|
+
type: Object,
|
|
2521
|
+
default: () => ({
|
|
2522
|
+
none: null,
|
|
2523
|
+
"form-data": [],
|
|
2524
|
+
json: [],
|
|
2525
|
+
xml: [],
|
|
2526
|
+
raw: "",
|
|
2527
|
+
"x-www-form-urlencoded": []
|
|
2528
|
+
})
|
|
2529
|
+
}
|
|
2530
|
+
});
|
|
2531
|
+
|
|
2532
|
+
const apiModalProps = buildProps({
|
|
2533
|
+
type: {
|
|
2534
|
+
type: definePropType(String),
|
|
2535
|
+
default: "textarea"
|
|
2536
|
+
},
|
|
2537
|
+
open: {
|
|
2538
|
+
type: Boolean,
|
|
2539
|
+
default: false
|
|
2540
|
+
},
|
|
2541
|
+
value: {
|
|
2542
|
+
type: String,
|
|
2543
|
+
default: ""
|
|
2544
|
+
}
|
|
2545
|
+
});
|
|
2546
|
+
const apiModalEmits = {
|
|
2547
|
+
"update:open": (open) => !!open,
|
|
2548
|
+
"update:value": (value) => !!value,
|
|
2549
|
+
ok: (value) => !!value
|
|
2550
|
+
};
|
|
2551
|
+
|
|
2552
|
+
const methods = [
|
|
2553
|
+
{
|
|
2554
|
+
label: "GET",
|
|
2555
|
+
value: "GET"
|
|
2556
|
+
},
|
|
2557
|
+
{
|
|
2558
|
+
label: "POST",
|
|
2559
|
+
value: "POST"
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
label: "PUT",
|
|
2563
|
+
value: "PUT"
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
label: "DELETE",
|
|
2567
|
+
value: "DELETE"
|
|
2568
|
+
}
|
|
2569
|
+
];
|
|
2570
|
+
const apiUrlEmits = {
|
|
2571
|
+
["update:url"]: (url) => !!url,
|
|
2572
|
+
["update:method"]: (method) => !!method
|
|
2573
|
+
};
|
|
2574
|
+
|
|
2575
|
+
const batchEditingOptions = [
|
|
2576
|
+
{
|
|
2577
|
+
value: "comma",
|
|
2578
|
+
payload: {
|
|
2579
|
+
title: "\u9017\u53F7\u6A21\u5F0F"
|
|
2580
|
+
}
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
value: "colon",
|
|
2584
|
+
payload: {
|
|
2585
|
+
title: "\u5192\u53F7\u6A21\u5F0F"
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
];
|
|
2589
|
+
const batchEditingProps = buildProps({
|
|
2590
|
+
value: {
|
|
2591
|
+
type: String,
|
|
2592
|
+
default: ""
|
|
2593
|
+
}
|
|
2594
|
+
});
|
|
2595
|
+
const batchEditingEmits = {
|
|
2596
|
+
"update:value": (value) => !!value
|
|
2597
|
+
};
|
|
2598
|
+
|
|
2599
|
+
const clickInputProps = buildProps({
|
|
2600
|
+
value: {
|
|
2601
|
+
type: String,
|
|
2602
|
+
default: ""
|
|
2603
|
+
},
|
|
2604
|
+
type: {
|
|
2605
|
+
type: definePropType(String),
|
|
2606
|
+
default: "textarea"
|
|
2607
|
+
}
|
|
2608
|
+
});
|
|
2609
|
+
const clickInputEmits = {
|
|
2610
|
+
"update:value": (value) => !!value
|
|
2611
|
+
};
|
|
2612
|
+
|
|
2613
|
+
const jsonTableColumns = [
|
|
2614
|
+
{
|
|
2615
|
+
title: "\u5B57\u6BB5\u540D",
|
|
2616
|
+
key: "name",
|
|
2617
|
+
dataIndex: "name",
|
|
2618
|
+
span: 6
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
title: "\u7C7B\u578B",
|
|
2622
|
+
key: "type",
|
|
2623
|
+
dataIndex: "type",
|
|
2624
|
+
span: 4
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
title: "Mock",
|
|
2628
|
+
key: "mock",
|
|
2629
|
+
dataIndex: "mock",
|
|
2630
|
+
span: 4
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
title: "\u4E2D\u6587\u540D",
|
|
2634
|
+
key: "chineseName",
|
|
2635
|
+
dataIndex: "chineseName",
|
|
2636
|
+
span: 4
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
title: "\u8BF4\u660E",
|
|
2640
|
+
key: "description",
|
|
2641
|
+
dataIndex: "description",
|
|
2642
|
+
span: 6
|
|
2643
|
+
}
|
|
2644
|
+
];
|
|
2645
|
+
const jsonXmlOptions = [
|
|
2646
|
+
{
|
|
2647
|
+
value: "json",
|
|
2648
|
+
payload: {
|
|
2649
|
+
title: "\u53C2\u6570\u503C"
|
|
2650
|
+
}
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
value: "data",
|
|
2654
|
+
payload: {
|
|
2655
|
+
title: "\u6570\u636E\u7ED3\u6784"
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
];
|
|
2659
|
+
const DEFAULT_TYPE = "data";
|
|
2660
|
+
const customOverlay = [
|
|
2661
|
+
{
|
|
2662
|
+
label: "\u4EC5\u751F\u6210\u5B57\u6BB5\u540D"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
label: "\u4F18\u5148\u4F7F\u7528\u5B57\u6BB5\u9ED8\u8BA4\u503C"
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
label: "\u4F18\u5148\u4F7F\u7528\u5B57\u6BB5\u793A\u4F8B\u503C"
|
|
2669
|
+
}
|
|
2670
|
+
];
|
|
2671
|
+
const jsonXmlTypeOptions = [
|
|
2672
|
+
{
|
|
2673
|
+
label: "string",
|
|
2674
|
+
value: "string"
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
label: "interger",
|
|
2678
|
+
value: "interger"
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
label: "boolean",
|
|
2682
|
+
value: "boolean"
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
label: "array",
|
|
2686
|
+
value: "array"
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
label: "object",
|
|
2690
|
+
value: "object"
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
label: "number",
|
|
2694
|
+
value: "number"
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
label: "null",
|
|
2698
|
+
value: "null"
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
label: "any",
|
|
2702
|
+
value: "any"
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
label: "\u81EA\u5B9A\u4E49",
|
|
2706
|
+
value: "other"
|
|
2707
|
+
}
|
|
2708
|
+
];
|
|
2709
|
+
const jsonXmlProps = buildProps({
|
|
2710
|
+
value: {
|
|
2711
|
+
type: Object,
|
|
2712
|
+
default: () => {
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
});
|
|
2716
|
+
const jsonXmlEmits = {
|
|
2717
|
+
"update:value": (value) => !!value
|
|
2718
|
+
};
|
|
2719
|
+
const jsonXmlTableProps = buildProps({
|
|
2720
|
+
dataSource: {
|
|
2721
|
+
type: definePropType(Array),
|
|
2722
|
+
default: () => []
|
|
2723
|
+
}
|
|
2724
|
+
});
|
|
2725
|
+
const jsonXmlTableEmits = {
|
|
2726
|
+
change: (value) => !!value
|
|
2727
|
+
};
|
|
2728
|
+
const jsonXmlTableRowProps = buildProps({
|
|
2729
|
+
data: {
|
|
2730
|
+
type: definePropType(Object),
|
|
2731
|
+
default: () => {
|
|
2732
|
+
}
|
|
2733
|
+
},
|
|
2734
|
+
parentData: {
|
|
2735
|
+
type: definePropType(Object),
|
|
2736
|
+
default: () => null
|
|
2737
|
+
},
|
|
2738
|
+
layer: {
|
|
2739
|
+
type: Number,
|
|
2740
|
+
default: 0
|
|
2741
|
+
},
|
|
2742
|
+
treeKey: {
|
|
2743
|
+
type: String,
|
|
2744
|
+
default: ""
|
|
2745
|
+
}
|
|
2746
|
+
});
|
|
2747
|
+
const jsonXmlTableRowEmits = {
|
|
2748
|
+
change: () => true
|
|
2749
|
+
};
|
|
2750
|
+
|
|
2751
|
+
const paramsOptions = [
|
|
2752
|
+
{
|
|
2753
|
+
label: "string",
|
|
2754
|
+
value: "string"
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
label: "integer",
|
|
2758
|
+
value: "integer"
|
|
2759
|
+
},
|
|
2760
|
+
{
|
|
2761
|
+
label: "boolean",
|
|
2762
|
+
value: "boolean"
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
label: "number",
|
|
2766
|
+
value: "number"
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
label: "array",
|
|
2770
|
+
value: "array"
|
|
2771
|
+
}
|
|
2772
|
+
];
|
|
2773
|
+
const paramsTableProps = buildProps({
|
|
2774
|
+
dataSource: {
|
|
2775
|
+
type: definePropType(Array),
|
|
2776
|
+
default: () => []
|
|
2777
|
+
},
|
|
2778
|
+
columns: {
|
|
2779
|
+
type: definePropType(Array),
|
|
2780
|
+
default: () => []
|
|
2781
|
+
},
|
|
2782
|
+
options: {
|
|
2783
|
+
type: definePropType(Array),
|
|
2784
|
+
default: () => []
|
|
2785
|
+
}
|
|
2786
|
+
});
|
|
2787
|
+
const paramsTableRowProps = buildProps({
|
|
2788
|
+
columns: {
|
|
2789
|
+
type: definePropType(Array),
|
|
2790
|
+
default: () => []
|
|
2791
|
+
},
|
|
2792
|
+
dataSource: {
|
|
2793
|
+
type: definePropType(Array),
|
|
2794
|
+
default: () => []
|
|
2795
|
+
},
|
|
2796
|
+
data: {
|
|
2797
|
+
type: definePropType(Object),
|
|
2798
|
+
default: () => ({})
|
|
2799
|
+
},
|
|
2800
|
+
options: {
|
|
2801
|
+
type: definePropType(Array),
|
|
2802
|
+
default: () => []
|
|
2803
|
+
}
|
|
2804
|
+
});
|
|
2805
|
+
const paramsTableEmits = {
|
|
2806
|
+
add: (value) => !!value
|
|
2807
|
+
};
|
|
2808
|
+
|
|
2809
|
+
const paramsTableColumns = [
|
|
2810
|
+
{
|
|
2811
|
+
key: "required",
|
|
2812
|
+
dataIndex: "required",
|
|
2813
|
+
span: 1
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
title: "\u53C2\u6570\u540D",
|
|
2817
|
+
key: "name",
|
|
2818
|
+
dataIndex: "name",
|
|
2819
|
+
span: 5
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
title: "\u53C2\u6570\u503C",
|
|
2823
|
+
key: "value",
|
|
2824
|
+
dataIndex: "value",
|
|
2825
|
+
span: 6
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
title: "\u7C7B\u578B",
|
|
2829
|
+
key: "type",
|
|
2830
|
+
dataIndex: "type",
|
|
2831
|
+
span: 3
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
title: "\u56FA\u5B9A\u53C2\u6570\u503C",
|
|
2835
|
+
key: "static",
|
|
2836
|
+
dataIndex: "static",
|
|
2837
|
+
span: 2
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
title: "\u8BF4\u660E",
|
|
2841
|
+
key: "description",
|
|
2842
|
+
dataIndex: "description",
|
|
2843
|
+
span: 6
|
|
2844
|
+
}
|
|
2845
|
+
];
|
|
2846
|
+
const headersTableColumns = [
|
|
2847
|
+
{
|
|
2848
|
+
key: "required",
|
|
2849
|
+
dataIndex: "required",
|
|
2850
|
+
span: 1
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
title: "\u53C2\u6570\u540D",
|
|
2854
|
+
key: "name",
|
|
2855
|
+
dataIndex: "name",
|
|
2856
|
+
span: 6
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
title: "\u53C2\u6570\u503C",
|
|
2860
|
+
key: "value",
|
|
2861
|
+
dataIndex: "value",
|
|
2862
|
+
span: 6
|
|
2863
|
+
},
|
|
2864
|
+
{
|
|
2865
|
+
title: "\u7C7B\u578B",
|
|
2866
|
+
key: "type",
|
|
2867
|
+
dataIndex: "type",
|
|
2868
|
+
span: 4
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
title: "\u8BF4\u660E",
|
|
2872
|
+
key: "description",
|
|
2873
|
+
dataIndex: "description",
|
|
2874
|
+
span: 6
|
|
2875
|
+
}
|
|
2876
|
+
];
|
|
2877
|
+
const formdataTableColumns = [
|
|
2878
|
+
{
|
|
2879
|
+
key: "required",
|
|
2880
|
+
dataIndex: "required",
|
|
2881
|
+
span: 1
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
title: "\u53C2\u6570\u540D",
|
|
2885
|
+
key: "name",
|
|
2886
|
+
dataIndex: "name",
|
|
2887
|
+
span: 6
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
title: "\u53C2\u6570\u503C",
|
|
2891
|
+
key: "value",
|
|
2892
|
+
dataIndex: "value",
|
|
2893
|
+
span: 4
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
title: "\u7C7B\u578B",
|
|
2897
|
+
key: "type",
|
|
2898
|
+
dataIndex: "type",
|
|
2899
|
+
span: 3
|
|
2900
|
+
},
|
|
2901
|
+
{
|
|
2902
|
+
title: "Content-Type",
|
|
2903
|
+
key: "contentType",
|
|
2904
|
+
dataIndex: "contentType",
|
|
2905
|
+
span: 3
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
title: "\u8BF4\u660E",
|
|
2909
|
+
key: "description",
|
|
2910
|
+
dataIndex: "description",
|
|
2911
|
+
span: 6
|
|
2912
|
+
}
|
|
2913
|
+
];
|
|
2914
|
+
|
|
2915
|
+
var _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
2916
|
+
__name: "api-url",
|
|
2917
|
+
props: apiComponentProps,
|
|
2918
|
+
emits: apiUrlEmits,
|
|
2919
|
+
setup(__props, { emit: __emit }) {
|
|
2920
|
+
const props = __props;
|
|
2921
|
+
const emits = __emit;
|
|
2922
|
+
const method = ref(props.method);
|
|
2923
|
+
const url = ref(props.url);
|
|
2924
|
+
watch(method, (n) => {
|
|
2925
|
+
emits("update:method", n);
|
|
2926
|
+
});
|
|
2927
|
+
watch(url, (n) => {
|
|
2928
|
+
emits("update:url", n);
|
|
2929
|
+
});
|
|
2930
|
+
return (_ctx, _cache) => {
|
|
2931
|
+
const _component_ll_select = resolveComponent("ll-select");
|
|
2932
|
+
const _component_ll_input = resolveComponent("ll-input");
|
|
2933
|
+
const _component_a_input_group = resolveComponent("a-input-group");
|
|
2934
|
+
const _component_ll_form_item = resolveComponent("ll-form-item");
|
|
2935
|
+
return openBlock(), createBlock(_component_ll_form_item, {
|
|
2936
|
+
label: "\u8BF7\u6C42\u5730\u5740",
|
|
2937
|
+
"label-col": { span: 24 },
|
|
2938
|
+
required: ""
|
|
2939
|
+
}, {
|
|
2940
|
+
default: withCtx(() => [
|
|
2941
|
+
createVNode(_component_a_input_group, { compact: "" }, {
|
|
2942
|
+
default: withCtx(() => [
|
|
2943
|
+
createVNode(_component_ll_select, {
|
|
2944
|
+
value: method.value,
|
|
2945
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => method.value = $event),
|
|
2946
|
+
options: unref(methods),
|
|
2947
|
+
style: { "width": "150px" }
|
|
2948
|
+
}, null, 8, ["value", "options"]),
|
|
2949
|
+
createVNode(_component_ll_input, {
|
|
2950
|
+
value: url.value,
|
|
2951
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => url.value = $event),
|
|
2952
|
+
style: { "width": "50%" },
|
|
2953
|
+
placeholder: "\u8BF7\u8F93\u5165\u5730\u5740\uFF08\u53BB\u9664\u524D\u7F6EURL)"
|
|
2954
|
+
}, null, 8, ["value"])
|
|
2955
|
+
]),
|
|
2956
|
+
_: 1
|
|
2957
|
+
/* STABLE */
|
|
2958
|
+
})
|
|
2959
|
+
]),
|
|
2960
|
+
_: 1
|
|
2961
|
+
/* STABLE */
|
|
2962
|
+
});
|
|
2963
|
+
};
|
|
2964
|
+
}
|
|
2965
|
+
});
|
|
2966
|
+
|
|
2967
|
+
var ApiUrl = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__file", "api-url.vue"]]);
|
|
2968
|
+
|
|
2969
|
+
const _hoisted_1$a = /* @__PURE__ */ createElementVNode(
|
|
2970
|
+
"a",
|
|
2971
|
+
{ href: "javascript:;" },
|
|
2972
|
+
"\u300A\u6807\u51C6 CSV \u89C4\u8303\u300B",
|
|
2973
|
+
-1
|
|
2974
|
+
/* HOISTED */
|
|
2975
|
+
);
|
|
2976
|
+
var _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
2977
|
+
...{ name: "LlBatchEditing" },
|
|
2978
|
+
__name: "batch-editing",
|
|
2979
|
+
props: batchEditingProps,
|
|
2980
|
+
emits: batchEditingEmits,
|
|
2981
|
+
setup(__props, { emit: __emit }) {
|
|
2982
|
+
const props = __props;
|
|
2983
|
+
const emits = __emit;
|
|
2984
|
+
const bem = createNamespace("batch-editing");
|
|
2985
|
+
const type = ref("comma");
|
|
2986
|
+
const currentPlaceholder = computed(() => {
|
|
2987
|
+
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";
|
|
2988
|
+
});
|
|
2989
|
+
const innerValue = ref(props.value);
|
|
2990
|
+
watch(innerValue, () => {
|
|
2991
|
+
emits("update:value", innerValue.value);
|
|
2992
|
+
});
|
|
2993
|
+
return (_ctx, _cache) => {
|
|
2994
|
+
const _component_ll_segmented = resolveComponent("ll-segmented");
|
|
2995
|
+
const _component_ll_textarea = resolveComponent("ll-textarea");
|
|
2996
|
+
return openBlock(), createElementBlock(
|
|
2997
|
+
"div",
|
|
2998
|
+
{
|
|
2999
|
+
class: normalizeClass(unref(bem).b())
|
|
3000
|
+
},
|
|
3001
|
+
[
|
|
3002
|
+
createVNode(_component_ll_segmented, {
|
|
3003
|
+
value: type.value,
|
|
3004
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => type.value = $event),
|
|
3005
|
+
options: unref(batchEditingOptions)
|
|
3006
|
+
}, {
|
|
3007
|
+
label: withCtx(({ payload }) => [
|
|
3008
|
+
createElementVNode(
|
|
3009
|
+
"div",
|
|
3010
|
+
null,
|
|
3011
|
+
toDisplayString(payload.title),
|
|
3012
|
+
1
|
|
3013
|
+
/* TEXT */
|
|
3014
|
+
)
|
|
3015
|
+
]),
|
|
3016
|
+
_: 1
|
|
3017
|
+
/* STABLE */
|
|
3018
|
+
}, 8, ["value", "options"]),
|
|
3019
|
+
createElementVNode(
|
|
3020
|
+
"div",
|
|
3021
|
+
{
|
|
3022
|
+
class: normalizeClass(unref(bem).e("textarea"))
|
|
3023
|
+
},
|
|
3024
|
+
[
|
|
3025
|
+
createVNode(_component_ll_textarea, {
|
|
3026
|
+
value: innerValue.value,
|
|
3027
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
3028
|
+
placeholder: currentPlaceholder.value,
|
|
3029
|
+
autosize: { minRows: 10 },
|
|
3030
|
+
bordered: false
|
|
3031
|
+
}, null, 8, ["value", "placeholder"]),
|
|
3032
|
+
type.value === "comma" ? (openBlock(), createElementBlock(
|
|
3033
|
+
"p",
|
|
3034
|
+
{
|
|
3035
|
+
key: 0,
|
|
3036
|
+
class: normalizeClass(unref(bem).e("textarea-tip"))
|
|
3037
|
+
},
|
|
3038
|
+
[
|
|
3039
|
+
createTextVNode(" \u6570\u636E\u683C\u5F0F\u9075\u5FAA "),
|
|
3040
|
+
_hoisted_1$a,
|
|
3041
|
+
createTextVNode(" \u5B57\u6BB5\u4E4B\u95F4\u4EE5\u82F1\u6587\u9017\u53F7( , )\u5206\u9694\uFF0C\u591A\u6761\u8BB0\u5F55\u4EE5\u6362\u884C\u5206\u9694 ")
|
|
3042
|
+
],
|
|
3043
|
+
2
|
|
3044
|
+
/* CLASS */
|
|
3045
|
+
)) : createCommentVNode("v-if", true)
|
|
3046
|
+
],
|
|
3047
|
+
2
|
|
3048
|
+
/* CLASS */
|
|
3049
|
+
)
|
|
3050
|
+
],
|
|
3051
|
+
2
|
|
3052
|
+
/* CLASS */
|
|
3053
|
+
);
|
|
3054
|
+
};
|
|
3055
|
+
}
|
|
3056
|
+
});
|
|
3057
|
+
|
|
3058
|
+
var batchEditing = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__file", "batch-editing.vue"]]);
|
|
3059
|
+
|
|
3060
|
+
var _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
3061
|
+
...{ name: "LlApiModal" },
|
|
3062
|
+
__name: "api-modal",
|
|
3063
|
+
props: apiModalProps,
|
|
3064
|
+
emits: apiModalEmits,
|
|
3065
|
+
setup(__props, { emit: __emit }) {
|
|
3066
|
+
const props = __props;
|
|
3067
|
+
const emits = __emit;
|
|
3068
|
+
const innerValue = ref(props.value);
|
|
3069
|
+
const handleCancel = () => {
|
|
3070
|
+
emits("update:open", false);
|
|
3071
|
+
};
|
|
3072
|
+
const handleOk = () => {
|
|
3073
|
+
emits("update:open", false);
|
|
3074
|
+
emits("ok", innerValue.value);
|
|
3075
|
+
};
|
|
3076
|
+
watch(innerValue, (n) => {
|
|
3077
|
+
emits("update:value", n);
|
|
3078
|
+
});
|
|
3079
|
+
return (_ctx, _cache) => {
|
|
3080
|
+
const _component_ll_code_editor = resolveComponent("ll-code-editor");
|
|
3081
|
+
const _component_ll_textarea = resolveComponent("ll-textarea");
|
|
3082
|
+
const _component_ll_modal = resolveComponent("ll-modal");
|
|
3083
|
+
return openBlock(), createBlock(_component_ll_modal, {
|
|
3084
|
+
open: props.open,
|
|
3085
|
+
title: "\u7F16\u8F91",
|
|
3086
|
+
width: "1200px",
|
|
3087
|
+
onOk: handleOk,
|
|
3088
|
+
onCancel: handleCancel
|
|
3089
|
+
}, {
|
|
3090
|
+
default: withCtx(() => [
|
|
3091
|
+
props.type === "code" ? (openBlock(), createBlock(_component_ll_code_editor, {
|
|
3092
|
+
key: 0,
|
|
3093
|
+
value: innerValue.value,
|
|
3094
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event),
|
|
3095
|
+
language: "json",
|
|
3096
|
+
options: { minimap: { enabled: false } }
|
|
3097
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true),
|
|
3098
|
+
props.type === "textarea" ? (openBlock(), createBlock(_component_ll_textarea, {
|
|
3099
|
+
key: 1,
|
|
3100
|
+
value: innerValue.value,
|
|
3101
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
3102
|
+
autosize: { minRows: 15 }
|
|
3103
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true),
|
|
3104
|
+
props.type === "batch" ? (openBlock(), createBlock(batchEditing, {
|
|
3105
|
+
key: 2,
|
|
3106
|
+
value: innerValue.value,
|
|
3107
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerValue.value = $event)
|
|
3108
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true)
|
|
3109
|
+
]),
|
|
3110
|
+
_: 1
|
|
3111
|
+
/* STABLE */
|
|
3112
|
+
}, 8, ["open"]);
|
|
3113
|
+
};
|
|
3114
|
+
}
|
|
3115
|
+
});
|
|
3116
|
+
|
|
3117
|
+
var ApiModal = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__file", "api-modal.vue"]]);
|
|
3118
|
+
|
|
3119
|
+
const _hoisted_1$9 = ["disabled"];
|
|
3120
|
+
var _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
3121
|
+
...{ name: "LlClickInput" },
|
|
3122
|
+
__name: "click-input",
|
|
3123
|
+
props: clickInputProps,
|
|
3124
|
+
emits: clickInputEmits,
|
|
3125
|
+
setup(__props, { emit: __emit }) {
|
|
3126
|
+
const bem = createNamespace("api-component");
|
|
3127
|
+
const props = __props;
|
|
3128
|
+
const emits = __emit;
|
|
3129
|
+
const attrs = useAttrs();
|
|
3130
|
+
const innerValue = ref(props.value);
|
|
3131
|
+
const open = ref(false);
|
|
3132
|
+
const getBindValue = computed(() => {
|
|
3133
|
+
return omit({ ...attrs }, ["value"]);
|
|
3134
|
+
});
|
|
3135
|
+
const handleClick = () => {
|
|
3136
|
+
if (attrs.disabled)
|
|
3137
|
+
return;
|
|
3138
|
+
open.value = true;
|
|
3139
|
+
};
|
|
3140
|
+
watch(innerValue, (n) => {
|
|
3141
|
+
emits("update:value", n);
|
|
3142
|
+
});
|
|
3143
|
+
return (_ctx, _cache) => {
|
|
3144
|
+
const _component_ll_icon = resolveComponent("ll-icon");
|
|
3145
|
+
const _component_ll_input = resolveComponent("ll-input");
|
|
3146
|
+
return openBlock(), createElementBlock("div", null, [
|
|
3147
|
+
createVNode(_component_ll_input, mergeProps({
|
|
3148
|
+
value: innerValue.value,
|
|
3149
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event)
|
|
3150
|
+
}, getBindValue.value, {
|
|
3151
|
+
class: unref(bem).m("click-input")
|
|
3152
|
+
}), {
|
|
3153
|
+
suffix: withCtx(() => [
|
|
3154
|
+
createElementVNode("a", {
|
|
3155
|
+
href: "javascript:;",
|
|
3156
|
+
disabled: unref(attrs).disabled,
|
|
3157
|
+
onClick: handleClick
|
|
3158
|
+
}, [
|
|
3159
|
+
createVNode(_component_ll_icon, {
|
|
3160
|
+
style: { "font-size": "16px" },
|
|
3161
|
+
"icon-name": "icon-amplify2"
|
|
3162
|
+
})
|
|
3163
|
+
], 8, _hoisted_1$9)
|
|
3164
|
+
]),
|
|
3165
|
+
_: 1
|
|
3166
|
+
/* STABLE */
|
|
3167
|
+
}, 16, ["value", "class"]),
|
|
3168
|
+
createVNode(ApiModal, {
|
|
3169
|
+
value: innerValue.value,
|
|
3170
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
3171
|
+
open: open.value,
|
|
3172
|
+
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => open.value = $event),
|
|
3173
|
+
type: props.type
|
|
3174
|
+
}, null, 8, ["value", "open", "type"])
|
|
3175
|
+
]);
|
|
3176
|
+
};
|
|
3177
|
+
}
|
|
3178
|
+
});
|
|
3179
|
+
|
|
3180
|
+
var ClickInput = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__file", "click-input.vue"]]);
|
|
3181
|
+
|
|
3182
|
+
var _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
3183
|
+
...{ name: "LlJsonXmlTableRow" },
|
|
3184
|
+
__name: "json-xml-table-row",
|
|
3185
|
+
props: jsonXmlTableRowProps,
|
|
3186
|
+
emits: jsonXmlTableRowEmits,
|
|
3187
|
+
setup(__props, { emit: __emit }) {
|
|
3188
|
+
const bem = createNamespace("json-xml");
|
|
3189
|
+
const props = __props;
|
|
3190
|
+
const emits = __emit;
|
|
3191
|
+
const innerData = ref(props.data);
|
|
3192
|
+
const parentData = ref(props.parentData);
|
|
3193
|
+
const expanded = ref(true);
|
|
3194
|
+
const addValue = ref("");
|
|
3195
|
+
const customOverlay = (parentData2, innerData2) => [
|
|
3196
|
+
{
|
|
3197
|
+
label: "\u6DFB\u52A0\u5B50\u8282\u70B9",
|
|
3198
|
+
type: "child",
|
|
3199
|
+
parentData: parentData2,
|
|
3200
|
+
innerData: innerData2
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
label: "\u6DFB\u52A0\u76F8\u90BB\u8282\u70B9",
|
|
3204
|
+
type: "next",
|
|
3205
|
+
parentData: parentData2,
|
|
3206
|
+
innerData: innerData2
|
|
3207
|
+
}
|
|
3208
|
+
];
|
|
3209
|
+
const getTip = (parentData2, innerData2) => {
|
|
3210
|
+
if (!parentData2 || parentData2.type === "array" && innerData2.type === "object") {
|
|
3211
|
+
return "child";
|
|
3212
|
+
}
|
|
3213
|
+
if (parentData2.type === "object" && innerData2.type !== "object") {
|
|
3214
|
+
return "next";
|
|
3215
|
+
}
|
|
3216
|
+
};
|
|
3217
|
+
const handleChange = () => {
|
|
3218
|
+
if (innerData.value.type === "object" || innerData.value.type === "array") {
|
|
3219
|
+
innerData.value.children = [];
|
|
3220
|
+
if (innerData.value.type === "array") {
|
|
3221
|
+
innerData.value.children[0] = {
|
|
3222
|
+
key: props.treeKey + "-1",
|
|
3223
|
+
name: "ITEMS",
|
|
3224
|
+
type: "string",
|
|
3225
|
+
value: "",
|
|
3226
|
+
chineseName: "",
|
|
3227
|
+
description: "",
|
|
3228
|
+
mock: ""
|
|
3229
|
+
};
|
|
3230
|
+
}
|
|
3231
|
+
} else {
|
|
3232
|
+
delete innerData.value.children;
|
|
3233
|
+
}
|
|
3234
|
+
};
|
|
3235
|
+
const handleConfirm = (parentData2, innerData2) => {
|
|
3236
|
+
const findIndex = parentData2.children.findIndex(
|
|
3237
|
+
(item) => item.key === innerData2.key
|
|
3238
|
+
);
|
|
3239
|
+
parentData2.children.splice(findIndex, 1);
|
|
3240
|
+
};
|
|
3241
|
+
const handleInput = () => {
|
|
3242
|
+
innerData.value.children = [];
|
|
3243
|
+
innerData.value.children[0] = {
|
|
3244
|
+
key: props.treeKey + "-1",
|
|
3245
|
+
name: addValue.value,
|
|
3246
|
+
type: "string",
|
|
3247
|
+
value: "",
|
|
3248
|
+
chineseName: "",
|
|
3249
|
+
description: "",
|
|
3250
|
+
mock: ""
|
|
3251
|
+
};
|
|
3252
|
+
addValue.value = "";
|
|
3253
|
+
};
|
|
3254
|
+
const handleAdd = (type, parentData2, innerData2) => {
|
|
3255
|
+
if (type === "next") {
|
|
3256
|
+
parentData2.children.push({
|
|
3257
|
+
key: `${parentData2.children.length + 1}`,
|
|
3258
|
+
name: "",
|
|
3259
|
+
type: "string",
|
|
3260
|
+
value: "",
|
|
3261
|
+
chineseName: "",
|
|
3262
|
+
description: "",
|
|
3263
|
+
mock: ""
|
|
3264
|
+
});
|
|
3265
|
+
} else {
|
|
3266
|
+
innerData2.children.push({
|
|
3267
|
+
key: props.treeKey + `${innerData2.children.length + 1}`,
|
|
3268
|
+
name: "",
|
|
3269
|
+
type: "string",
|
|
3270
|
+
value: "",
|
|
3271
|
+
chineseName: "",
|
|
3272
|
+
description: "",
|
|
3273
|
+
mock: ""
|
|
3274
|
+
});
|
|
3275
|
+
}
|
|
3276
|
+
};
|
|
3277
|
+
const handleClaimSelected = (item) => {
|
|
3278
|
+
const { type, parentData: parentData2, innerData: innerData2 } = item;
|
|
3279
|
+
handleAdd(type, parentData2, innerData2);
|
|
3280
|
+
};
|
|
3281
|
+
const handleRowChange = () => {
|
|
3282
|
+
emits("change");
|
|
3283
|
+
};
|
|
3284
|
+
watch(
|
|
3285
|
+
innerData,
|
|
3286
|
+
() => {
|
|
3287
|
+
emits("change");
|
|
3288
|
+
},
|
|
3289
|
+
{
|
|
3290
|
+
deep: true
|
|
3291
|
+
}
|
|
3292
|
+
);
|
|
3293
|
+
return (_ctx, _cache) => {
|
|
3294
|
+
const _component_ll_icon = resolveComponent("ll-icon");
|
|
3295
|
+
const _component_ll_input = resolveComponent("ll-input");
|
|
3296
|
+
const _component_a_col = resolveComponent("a-col");
|
|
3297
|
+
const _component_ll_select = resolveComponent("ll-select");
|
|
3298
|
+
const _component_ll_tooltip = resolveComponent("ll-tooltip");
|
|
3299
|
+
const _component_ll_dropdown = resolveComponent("ll-dropdown");
|
|
3300
|
+
const _component_a_popconfirm = resolveComponent("a-popconfirm");
|
|
3301
|
+
const _component_a_row = resolveComponent("a-row");
|
|
3302
|
+
return openBlock(), createElementBlock(
|
|
3303
|
+
Fragment,
|
|
3304
|
+
null,
|
|
3305
|
+
[
|
|
3306
|
+
createVNode(_component_a_row, {
|
|
3307
|
+
gutter: 20,
|
|
3308
|
+
class: normalizeClass(unref(bem).e("table-row"))
|
|
3309
|
+
}, {
|
|
3310
|
+
default: withCtx(() => [
|
|
3311
|
+
createVNode(_component_a_col, {
|
|
3312
|
+
style: { "display": "flex" },
|
|
3313
|
+
span: 7,
|
|
3314
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
3315
|
+
}, {
|
|
3316
|
+
default: withCtx(() => [
|
|
3317
|
+
createElementVNode(
|
|
3318
|
+
"p",
|
|
3319
|
+
{
|
|
3320
|
+
style: normalizeStyle({ width: 10 * props.layer + "px" })
|
|
3321
|
+
},
|
|
3322
|
+
null,
|
|
3323
|
+
4
|
|
3324
|
+
/* STYLE */
|
|
3325
|
+
),
|
|
3326
|
+
createElementVNode(
|
|
3327
|
+
"div",
|
|
3328
|
+
{
|
|
3329
|
+
style: { "margin-right": "30px" },
|
|
3330
|
+
class: normalizeClass(unref(bem).m("table-row-icon"))
|
|
3331
|
+
},
|
|
3332
|
+
[
|
|
3333
|
+
innerData.value.type === "object" || innerData.value.type === "array" ? (openBlock(), createElementBlock("span", {
|
|
3334
|
+
key: 0,
|
|
3335
|
+
style: { "width": "10px" },
|
|
3336
|
+
onClick: _cache[0] || (_cache[0] = ($event) => expanded.value = !expanded.value)
|
|
3337
|
+
}, [
|
|
3338
|
+
!expanded.value ? (openBlock(), createBlock(_component_ll_icon, {
|
|
3339
|
+
key: 0,
|
|
3340
|
+
style: { "font-size": "14px" },
|
|
3341
|
+
"icon-name": "icon-list-expand"
|
|
3342
|
+
})) : (openBlock(), createBlock(_component_ll_icon, {
|
|
3343
|
+
key: 1,
|
|
3344
|
+
style: { "font-size": "14px" },
|
|
3345
|
+
"icon-name": "icon-list-retract"
|
|
3346
|
+
}))
|
|
3347
|
+
])) : createCommentVNode("v-if", true)
|
|
3348
|
+
],
|
|
3349
|
+
2
|
|
3350
|
+
/* CLASS */
|
|
3351
|
+
),
|
|
3352
|
+
!props.parentData ? (openBlock(), createElementBlock(
|
|
3353
|
+
"div",
|
|
3354
|
+
{
|
|
3355
|
+
key: 0,
|
|
3356
|
+
class: normalizeClass(unref(bem).m("table-row-tag"))
|
|
3357
|
+
},
|
|
3358
|
+
"\u6839\u8282\u70B9",
|
|
3359
|
+
2
|
|
3360
|
+
/* CLASS */
|
|
3361
|
+
)) : (openBlock(), createElementBlock(
|
|
3362
|
+
Fragment,
|
|
3363
|
+
{ key: 1 },
|
|
3364
|
+
[
|
|
3365
|
+
props.parentData.type === "array" ? (openBlock(), createElementBlock(
|
|
3366
|
+
"div",
|
|
3367
|
+
{
|
|
3368
|
+
key: 0,
|
|
3369
|
+
class: normalizeClass(unref(bem).m("table-row-tag"))
|
|
3370
|
+
},
|
|
3371
|
+
" ITEMS ",
|
|
3372
|
+
2
|
|
3373
|
+
/* CLASS */
|
|
3374
|
+
)) : createCommentVNode("v-if", true),
|
|
3375
|
+
props.parentData.type === "object" ? (openBlock(), createBlock(_component_ll_input, {
|
|
3376
|
+
key: 1,
|
|
3377
|
+
value: innerData.value.name,
|
|
3378
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerData.value.name = $event),
|
|
3379
|
+
placeholder: "\u6DFB\u52A0\u5B57\u6BB5\u540D",
|
|
3380
|
+
bordered: false
|
|
3381
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true)
|
|
3382
|
+
],
|
|
3383
|
+
64
|
|
3384
|
+
/* STABLE_FRAGMENT */
|
|
3385
|
+
))
|
|
3386
|
+
]),
|
|
3387
|
+
_: 1
|
|
3388
|
+
/* STABLE */
|
|
3389
|
+
}, 8, ["class"]),
|
|
3390
|
+
createVNode(_component_a_col, {
|
|
3391
|
+
span: 3,
|
|
3392
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
3393
|
+
}, {
|
|
3394
|
+
default: withCtx(() => [
|
|
3395
|
+
createVNode(_component_ll_select, {
|
|
3396
|
+
value: innerData.value.type,
|
|
3397
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerData.value.type = $event),
|
|
3398
|
+
options: unref(jsonXmlTypeOptions),
|
|
3399
|
+
style: { "width": "100%" },
|
|
3400
|
+
onChange: handleChange
|
|
3401
|
+
}, null, 8, ["value", "options"])
|
|
3402
|
+
]),
|
|
3403
|
+
_: 1
|
|
3404
|
+
/* STABLE */
|
|
3405
|
+
}, 8, ["class"]),
|
|
3406
|
+
createVNode(_component_a_col, {
|
|
3407
|
+
span: 4,
|
|
3408
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
3409
|
+
}, {
|
|
3410
|
+
default: withCtx(() => [
|
|
3411
|
+
createVNode(ClickInput, {
|
|
3412
|
+
value: innerData.value.mock,
|
|
3413
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => innerData.value.mock = $event),
|
|
3414
|
+
placeholder: "Mock",
|
|
3415
|
+
disabled: innerData.value.type === "object",
|
|
3416
|
+
style: { "width": "100%" }
|
|
3417
|
+
}, null, 8, ["value", "disabled"])
|
|
3418
|
+
]),
|
|
3419
|
+
_: 1
|
|
3420
|
+
/* STABLE */
|
|
3421
|
+
}, 8, ["class"]),
|
|
3422
|
+
createVNode(_component_a_col, {
|
|
3423
|
+
span: 4,
|
|
3424
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
3425
|
+
}, {
|
|
3426
|
+
default: withCtx(() => [
|
|
3427
|
+
createVNode(_component_ll_input, {
|
|
3428
|
+
value: innerData.value.chineseName,
|
|
3429
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => innerData.value.chineseName = $event),
|
|
3430
|
+
placeholder: "\u4E2D\u6587\u540D",
|
|
3431
|
+
style: { "width": "100%" }
|
|
3432
|
+
}, null, 8, ["value"])
|
|
3433
|
+
]),
|
|
3434
|
+
_: 1
|
|
3435
|
+
/* STABLE */
|
|
3436
|
+
}, 8, ["class"]),
|
|
3437
|
+
createVNode(_component_a_col, {
|
|
3438
|
+
span: 4,
|
|
3439
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
3440
|
+
}, {
|
|
3441
|
+
default: withCtx(() => [
|
|
3442
|
+
createVNode(ClickInput, {
|
|
3443
|
+
value: innerData.value.description,
|
|
3444
|
+
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => innerData.value.description = $event),
|
|
3445
|
+
placeholder: "\u8BF4\u660E",
|
|
3446
|
+
style: { "width": "100%" }
|
|
3447
|
+
}, null, 8, ["value"])
|
|
3448
|
+
]),
|
|
3449
|
+
_: 1
|
|
3450
|
+
/* STABLE */
|
|
3451
|
+
}, 8, ["class"]),
|
|
3452
|
+
createVNode(_component_a_col, { span: 2 }, {
|
|
3453
|
+
default: withCtx(() => [
|
|
3454
|
+
createElementVNode(
|
|
3455
|
+
"div",
|
|
3456
|
+
{
|
|
3457
|
+
class: normalizeClass(unref(bem).e("table-operation"))
|
|
3458
|
+
},
|
|
3459
|
+
[
|
|
3460
|
+
props.parentData && props.parentData.type === "object" && innerData.value.type !== "object" || !props.parentData && innerData.value.type === "object" ? (openBlock(), createBlock(_component_ll_tooltip, {
|
|
3461
|
+
key: 0,
|
|
3462
|
+
tip: getTip(parentData.value, innerData.value) === "child" ? "\u6DFB\u52A0\u5B50\u8282\u70B9" : "\u6DFB\u52A0\u76F8\u90BB\u8282\u70B9"
|
|
3463
|
+
}, {
|
|
3464
|
+
default: withCtx(() => [
|
|
3465
|
+
createElementVNode(
|
|
3466
|
+
"a",
|
|
3467
|
+
{
|
|
3468
|
+
href: "javascript:;",
|
|
3469
|
+
class: normalizeClass(unref(bem).m("table-icon")),
|
|
3470
|
+
onClick: _cache[6] || (_cache[6] = ($event) => handleAdd(
|
|
3471
|
+
getTip(parentData.value, innerData.value),
|
|
3472
|
+
props.parentData,
|
|
3473
|
+
innerData.value
|
|
3474
|
+
))
|
|
3475
|
+
},
|
|
3476
|
+
[
|
|
3477
|
+
createVNode(_component_ll_icon, { "icon-name": "icon-list-add" })
|
|
3478
|
+
],
|
|
3479
|
+
2
|
|
3480
|
+
/* CLASS */
|
|
3481
|
+
)
|
|
3482
|
+
]),
|
|
3483
|
+
_: 1
|
|
3484
|
+
/* STABLE */
|
|
3485
|
+
}, 8, ["tip"])) : createCommentVNode("v-if", true),
|
|
3486
|
+
createVNode(_component_ll_dropdown, {
|
|
3487
|
+
"dropdown-items": customOverlay(props.parentData, innerData.value),
|
|
3488
|
+
placement: "bottomRight",
|
|
3489
|
+
onClaimSelected: handleClaimSelected
|
|
3490
|
+
}, {
|
|
3491
|
+
default: withCtx(() => [
|
|
3492
|
+
props.parentData && props.parentData.type === "object" && innerData.value.type === "object" ? (openBlock(), createElementBlock(
|
|
3493
|
+
"a",
|
|
3494
|
+
{
|
|
3495
|
+
key: 0,
|
|
3496
|
+
class: normalizeClass(unref(bem).m("table-icon")),
|
|
3497
|
+
href: "javascript:;"
|
|
3498
|
+
},
|
|
3499
|
+
[
|
|
3500
|
+
createVNode(_component_ll_icon, { "icon-name": "icon-list-add" })
|
|
3501
|
+
],
|
|
3502
|
+
2
|
|
3503
|
+
/* CLASS */
|
|
3504
|
+
)) : createCommentVNode("v-if", true)
|
|
3505
|
+
]),
|
|
3506
|
+
_: 1
|
|
3507
|
+
/* STABLE */
|
|
3508
|
+
}, 8, ["dropdown-items"]),
|
|
3509
|
+
props.parentData && props.parentData.type !== "array" ? (openBlock(), createBlock(_component_a_popconfirm, {
|
|
3510
|
+
key: 1,
|
|
3511
|
+
title: "\u4F60\u786E\u5B9A\u8981\u79FB\u9664\u5417\uFF1F",
|
|
3512
|
+
"ok-text": "\u786E\u8BA4",
|
|
3513
|
+
"cancel-text": "\u53D6\u6D88",
|
|
3514
|
+
placement: "topRight",
|
|
3515
|
+
"overlay-class-name": unref(bem).e("popconfirm"),
|
|
3516
|
+
onConfirm: _cache[7] || (_cache[7] = ($event) => handleConfirm(props.parentData, innerData.value))
|
|
3517
|
+
}, {
|
|
3518
|
+
default: withCtx(() => [
|
|
3519
|
+
createElementVNode(
|
|
3520
|
+
"a",
|
|
3521
|
+
{
|
|
3522
|
+
href: "javascript:;",
|
|
3523
|
+
class: normalizeClass(unref(bem).m("table-icon"))
|
|
3524
|
+
},
|
|
3525
|
+
[
|
|
3526
|
+
createVNode(_component_ll_icon, { "icon-name": "icon-remove" })
|
|
3527
|
+
],
|
|
3528
|
+
2
|
|
3529
|
+
/* CLASS */
|
|
3530
|
+
)
|
|
3531
|
+
]),
|
|
3532
|
+
_: 1
|
|
3533
|
+
/* STABLE */
|
|
3534
|
+
}, 8, ["overlay-class-name"])) : createCommentVNode("v-if", true)
|
|
3535
|
+
],
|
|
3536
|
+
2
|
|
3537
|
+
/* CLASS */
|
|
3538
|
+
)
|
|
3539
|
+
]),
|
|
3540
|
+
_: 1
|
|
3541
|
+
/* STABLE */
|
|
3542
|
+
})
|
|
3543
|
+
]),
|
|
3544
|
+
_: 1
|
|
3545
|
+
/* STABLE */
|
|
3546
|
+
}, 8, ["class"]),
|
|
3547
|
+
expanded.value ? (openBlock(), createElementBlock(
|
|
3548
|
+
Fragment,
|
|
3549
|
+
{ key: 0 },
|
|
3550
|
+
[
|
|
3551
|
+
innerData.value.type === "object" && innerData.value.children && innerData.value.children.length === 0 ? (openBlock(), createBlock(_component_a_row, {
|
|
3552
|
+
key: 0,
|
|
3553
|
+
gutter: 20,
|
|
3554
|
+
class: normalizeClass(unref(bem).e("table-row"))
|
|
3555
|
+
}, {
|
|
3556
|
+
default: withCtx(() => [
|
|
3557
|
+
createVNode(_component_a_col, {
|
|
3558
|
+
style: { "display": "flex" },
|
|
3559
|
+
span: 7,
|
|
3560
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
3561
|
+
}, {
|
|
3562
|
+
default: withCtx(() => [
|
|
3563
|
+
createElementVNode(
|
|
3564
|
+
"p",
|
|
3565
|
+
{
|
|
3566
|
+
style: normalizeStyle({ width: 10 * props.layer + "px" })
|
|
3567
|
+
},
|
|
3568
|
+
null,
|
|
3569
|
+
4
|
|
3570
|
+
/* STYLE */
|
|
3571
|
+
),
|
|
3572
|
+
createElementVNode(
|
|
3573
|
+
"div",
|
|
3574
|
+
{
|
|
3575
|
+
style: { "margin-right": "30px" },
|
|
3576
|
+
class: normalizeClass(unref(bem).m("table-row-icon"))
|
|
3577
|
+
},
|
|
3578
|
+
null,
|
|
3579
|
+
2
|
|
3580
|
+
/* CLASS */
|
|
3581
|
+
),
|
|
3582
|
+
createVNode(_component_ll_input, {
|
|
3583
|
+
value: addValue.value,
|
|
3584
|
+
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => addValue.value = $event),
|
|
3585
|
+
placeholder: "\u6DFB\u52A0\u5B57\u6BB5\u540D",
|
|
3586
|
+
bordered: false,
|
|
3587
|
+
onInput: handleInput
|
|
3588
|
+
}, null, 8, ["value"])
|
|
3589
|
+
]),
|
|
3590
|
+
_: 1
|
|
3591
|
+
/* STABLE */
|
|
3592
|
+
}, 8, ["class"])
|
|
3593
|
+
]),
|
|
3594
|
+
_: 1
|
|
3595
|
+
/* STABLE */
|
|
3596
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
3597
|
+
innerData.value.children && innerData.value.children.length > 0 ? (openBlock(true), createElementBlock(
|
|
3598
|
+
Fragment,
|
|
3599
|
+
{ key: 1 },
|
|
3600
|
+
renderList(innerData.value.children, (child, index) => {
|
|
3601
|
+
return openBlock(), createBlock(TableRow$1, {
|
|
3602
|
+
key: index,
|
|
3603
|
+
"parent-data": innerData.value,
|
|
3604
|
+
data: child,
|
|
3605
|
+
layer: props.layer + 1,
|
|
3606
|
+
"tree-key": props.treeKey + "-" + (index + 1),
|
|
3607
|
+
onChange: handleRowChange
|
|
3608
|
+
}, null, 8, ["parent-data", "data", "layer", "tree-key"]);
|
|
3609
|
+
}),
|
|
3610
|
+
128
|
|
3611
|
+
/* KEYED_FRAGMENT */
|
|
3612
|
+
)) : createCommentVNode("v-if", true)
|
|
3613
|
+
],
|
|
3614
|
+
64
|
|
3615
|
+
/* STABLE_FRAGMENT */
|
|
3616
|
+
)) : createCommentVNode("v-if", true)
|
|
3617
|
+
],
|
|
3618
|
+
64
|
|
3619
|
+
/* STABLE_FRAGMENT */
|
|
3620
|
+
);
|
|
3621
|
+
};
|
|
3622
|
+
}
|
|
3623
|
+
});
|
|
3624
|
+
|
|
3625
|
+
var TableRow$1 = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__file", "json-xml-table-row.vue"]]);
|
|
3626
|
+
|
|
3627
|
+
var _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
3628
|
+
...{ name: "LlJsonXmlTable" },
|
|
3629
|
+
__name: "json-xml-table",
|
|
3630
|
+
props: jsonXmlTableProps,
|
|
3631
|
+
emits: jsonXmlTableEmits,
|
|
3632
|
+
setup(__props, { emit: __emit }) {
|
|
3633
|
+
const bem = createNamespace("json-xml");
|
|
3634
|
+
const props = __props;
|
|
3635
|
+
const emits = __emit;
|
|
3636
|
+
const handleChange = (dataSource) => {
|
|
3637
|
+
emits("change", dataSource);
|
|
3638
|
+
};
|
|
3639
|
+
return (_ctx, _cache) => {
|
|
3640
|
+
const _component_a_col = resolveComponent("a-col");
|
|
3641
|
+
const _component_a_row = resolveComponent("a-row");
|
|
3642
|
+
return openBlock(), createElementBlock(
|
|
3643
|
+
"div",
|
|
3644
|
+
{
|
|
3645
|
+
class: normalizeClass(unref(bem).e("table"))
|
|
3646
|
+
},
|
|
3647
|
+
[
|
|
3648
|
+
createVNode(_component_a_row, {
|
|
3649
|
+
class: normalizeClass(unref(bem).m("table-header")),
|
|
3650
|
+
gutter: 20
|
|
3651
|
+
}, {
|
|
3652
|
+
default: withCtx(() => [
|
|
3653
|
+
createVNode(_component_a_col, {
|
|
3654
|
+
span: 7,
|
|
3655
|
+
style: { "padding-left": "60px" }
|
|
3656
|
+
}, {
|
|
3657
|
+
default: withCtx(() => [
|
|
3658
|
+
createTextVNode(" \u540D\u79F0 ")
|
|
3659
|
+
]),
|
|
3660
|
+
_: 1
|
|
3661
|
+
/* STABLE */
|
|
3662
|
+
}),
|
|
3663
|
+
createVNode(_component_a_col, { span: 3 }, {
|
|
3664
|
+
default: withCtx(() => [
|
|
3665
|
+
createTextVNode(" \u7C7B\u578B ")
|
|
3666
|
+
]),
|
|
3667
|
+
_: 1
|
|
3668
|
+
/* STABLE */
|
|
3669
|
+
}),
|
|
3670
|
+
createVNode(_component_a_col, { span: 4 }, {
|
|
3671
|
+
default: withCtx(() => [
|
|
3672
|
+
createTextVNode(" Mock ")
|
|
3673
|
+
]),
|
|
3674
|
+
_: 1
|
|
3675
|
+
/* STABLE */
|
|
3676
|
+
}),
|
|
3677
|
+
createVNode(_component_a_col, { span: 4 }, {
|
|
3678
|
+
default: withCtx(() => [
|
|
3679
|
+
createTextVNode(" \u4E2D\u6587\u540D ")
|
|
3680
|
+
]),
|
|
3681
|
+
_: 1
|
|
3682
|
+
/* STABLE */
|
|
3683
|
+
}),
|
|
3684
|
+
createVNode(_component_a_col, { span: 4 }, {
|
|
3685
|
+
default: withCtx(() => [
|
|
3686
|
+
createTextVNode(" \u8BF4\u660E ")
|
|
3687
|
+
]),
|
|
3688
|
+
_: 1
|
|
3689
|
+
/* STABLE */
|
|
3690
|
+
}),
|
|
3691
|
+
createVNode(_component_a_col, { span: 2 }, {
|
|
3692
|
+
default: withCtx(() => [
|
|
3693
|
+
createTextVNode(" \u64CD\u4F5C ")
|
|
3694
|
+
]),
|
|
3695
|
+
_: 1
|
|
3696
|
+
/* STABLE */
|
|
3697
|
+
})
|
|
3698
|
+
]),
|
|
3699
|
+
_: 1
|
|
3700
|
+
/* STABLE */
|
|
3701
|
+
}, 8, ["class"]),
|
|
3702
|
+
createElementVNode(
|
|
3703
|
+
"div",
|
|
3704
|
+
{
|
|
3705
|
+
class: normalizeClass(unref(bem).m("table-body"))
|
|
3706
|
+
},
|
|
3707
|
+
[
|
|
3708
|
+
(openBlock(true), createElementBlock(
|
|
3709
|
+
Fragment,
|
|
3710
|
+
null,
|
|
3711
|
+
renderList(props.dataSource, (item, index) => {
|
|
3712
|
+
return openBlock(), createBlock(TableRow$1, {
|
|
3713
|
+
key: index,
|
|
3714
|
+
data: item,
|
|
3715
|
+
"tree-key": (index + 1).toString(),
|
|
3716
|
+
onChange: _cache[0] || (_cache[0] = ($event) => handleChange(props.dataSource))
|
|
3717
|
+
}, null, 8, ["data", "tree-key"]);
|
|
3718
|
+
}),
|
|
3719
|
+
128
|
|
3720
|
+
/* KEYED_FRAGMENT */
|
|
3721
|
+
))
|
|
3722
|
+
],
|
|
3723
|
+
2
|
|
3724
|
+
/* CLASS */
|
|
3725
|
+
)
|
|
3726
|
+
],
|
|
3727
|
+
2
|
|
3728
|
+
/* CLASS */
|
|
3729
|
+
);
|
|
3730
|
+
};
|
|
3731
|
+
}
|
|
3732
|
+
});
|
|
3733
|
+
|
|
3734
|
+
var TreeTable = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__file", "json-xml-table.vue"]]);
|
|
3735
|
+
|
|
3736
|
+
const _hoisted_1$8 = { class: "flex" };
|
|
3737
|
+
var _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
3738
|
+
...{ name: "LlJsonXml" },
|
|
3739
|
+
__name: "json-xml",
|
|
3740
|
+
props: jsonXmlProps,
|
|
3741
|
+
emits: jsonXmlEmits,
|
|
3742
|
+
setup(__props, { emit: __emit }) {
|
|
3743
|
+
const props = __props;
|
|
3744
|
+
const emits = __emit;
|
|
3745
|
+
const bem = createNamespace("json-xml");
|
|
3746
|
+
const type = ref(DEFAULT_TYPE);
|
|
3747
|
+
const innerValue = ref(JSON.stringify(props.value));
|
|
3748
|
+
const dataSource = ref([
|
|
3749
|
+
{
|
|
3750
|
+
key: "1",
|
|
3751
|
+
name: "\u6839\u8282\u70B9",
|
|
3752
|
+
type: "object",
|
|
3753
|
+
value: "",
|
|
3754
|
+
chineseName: "",
|
|
3755
|
+
description: "",
|
|
3756
|
+
mock: "",
|
|
3757
|
+
children: []
|
|
3758
|
+
}
|
|
3759
|
+
]);
|
|
3760
|
+
const parseJson2Array = (json, parentKey = "1", parentType = "object") => {
|
|
3761
|
+
let num = 0;
|
|
3762
|
+
const result = [];
|
|
3763
|
+
for (const key in json) {
|
|
3764
|
+
num++;
|
|
3765
|
+
if (Object.prototype.hasOwnProperty.call(json, key)) {
|
|
3766
|
+
const element = json[key];
|
|
3767
|
+
if (typeof element === "object" || Array.isArray(element)) {
|
|
3768
|
+
const currentType = Array.isArray(element) ? "array" : "object";
|
|
3769
|
+
result.push({
|
|
3770
|
+
key: `${parentKey}-${num}`,
|
|
3771
|
+
name: parentType === "array" ? "ITEM" : key,
|
|
3772
|
+
type: currentType,
|
|
3773
|
+
value: parentType === "array" && currentType !== "object" ? element : "",
|
|
3774
|
+
chineseName: "",
|
|
3775
|
+
description: "",
|
|
3776
|
+
mock: "",
|
|
3777
|
+
children: parseJson2Array(element, `${parentKey}-${num}`, currentType)
|
|
3778
|
+
});
|
|
3779
|
+
} else {
|
|
3780
|
+
result.push({
|
|
3781
|
+
key: `${parentKey}-${num}`,
|
|
3782
|
+
name: parentType === "array" ? "ITEM" : key,
|
|
3783
|
+
type: typeof element,
|
|
3784
|
+
value: "",
|
|
3785
|
+
chineseName: "",
|
|
3786
|
+
description: "",
|
|
3787
|
+
mock: element
|
|
3788
|
+
});
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
return result;
|
|
3793
|
+
};
|
|
3794
|
+
const parseArray2Json = (data) => {
|
|
3795
|
+
const result = {};
|
|
3796
|
+
data.forEach((item) => {
|
|
3797
|
+
if (item.name) {
|
|
3798
|
+
if (item.type === "object" || item.type === "array") {
|
|
3799
|
+
if (item.children && item.children.length) {
|
|
3800
|
+
result[item.name] = parseArray2Json(item.children);
|
|
3801
|
+
}
|
|
3802
|
+
} else {
|
|
3803
|
+
result[item.name] = item.mock;
|
|
3804
|
+
}
|
|
3805
|
+
}
|
|
3806
|
+
});
|
|
3807
|
+
return result;
|
|
3808
|
+
};
|
|
3809
|
+
const handleTypeChange = (e) => {
|
|
3810
|
+
if (e === "json") {
|
|
3811
|
+
innerValue.value = JSON.stringify(parseArray2Json(dataSource.value));
|
|
3812
|
+
} else {
|
|
3813
|
+
try {
|
|
3814
|
+
const value = JSON.parse(innerValue.value);
|
|
3815
|
+
if (typeof value === "object") {
|
|
3816
|
+
dataSource.value = parseJson2Array(value);
|
|
3817
|
+
} else {
|
|
3818
|
+
dataSource.value = [
|
|
3819
|
+
{
|
|
3820
|
+
key: "1",
|
|
3821
|
+
name: "\u6839\u8282\u70B9",
|
|
3822
|
+
type: typeof value,
|
|
3823
|
+
value: "",
|
|
3824
|
+
chineseName: "",
|
|
3825
|
+
description: "",
|
|
3826
|
+
mock: value,
|
|
3827
|
+
children: []
|
|
3828
|
+
}
|
|
3829
|
+
];
|
|
3830
|
+
}
|
|
3831
|
+
} catch (error) {
|
|
3832
|
+
dataSource.value = [
|
|
3833
|
+
{
|
|
3834
|
+
key: "1",
|
|
3835
|
+
name: "\u6839\u8282\u70B9",
|
|
3836
|
+
type: typeof innerValue.value,
|
|
3837
|
+
value: "",
|
|
3838
|
+
chineseName: "",
|
|
3839
|
+
description: "",
|
|
3840
|
+
mock: innerValue.value,
|
|
3841
|
+
children: []
|
|
3842
|
+
}
|
|
3843
|
+
];
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
3846
|
+
};
|
|
3847
|
+
const handleChange = (arr) => {
|
|
3848
|
+
dataSource.value = arr;
|
|
3849
|
+
emits("update:value", parseArray2Json(arr));
|
|
3850
|
+
};
|
|
3851
|
+
watch(
|
|
3852
|
+
() => props.value,
|
|
3853
|
+
(n) => {
|
|
3854
|
+
if (!isEmpty(n)) {
|
|
3855
|
+
if (typeof n === "object") {
|
|
3856
|
+
innerValue.value = JSON.stringify(n);
|
|
3857
|
+
dataSource.value = parseJson2Array(props.value);
|
|
3858
|
+
} else {
|
|
3859
|
+
innerValue.value = n;
|
|
3860
|
+
dataSource.value = [
|
|
3861
|
+
{
|
|
3862
|
+
key: "1",
|
|
3863
|
+
name: "\u6839\u8282\u70B9",
|
|
3864
|
+
type: typeof props.value,
|
|
3865
|
+
value: "",
|
|
3866
|
+
chineseName: "",
|
|
3867
|
+
description: "",
|
|
3868
|
+
mock: n,
|
|
3869
|
+
children: []
|
|
3870
|
+
}
|
|
3871
|
+
];
|
|
3872
|
+
}
|
|
3873
|
+
} else {
|
|
3874
|
+
innerValue.value = "";
|
|
3875
|
+
dataSource.value = [
|
|
3876
|
+
{
|
|
3877
|
+
key: "1",
|
|
3878
|
+
name: "\u6839\u8282\u70B9",
|
|
3879
|
+
type: "object",
|
|
3880
|
+
value: "",
|
|
3881
|
+
chineseName: "",
|
|
3882
|
+
description: "",
|
|
3883
|
+
mock: "",
|
|
3884
|
+
children: []
|
|
3885
|
+
}
|
|
3886
|
+
];
|
|
3887
|
+
}
|
|
3888
|
+
console.log(dataSource.value, n);
|
|
3889
|
+
},
|
|
3890
|
+
{
|
|
3891
|
+
deep: true,
|
|
3892
|
+
immediate: true
|
|
3893
|
+
}
|
|
3894
|
+
);
|
|
3895
|
+
watch(innerValue, (n) => {
|
|
3896
|
+
try {
|
|
3897
|
+
const value = JSON.parse(n);
|
|
3898
|
+
if (typeof value === "object") {
|
|
3899
|
+
emits("update:value", value);
|
|
3900
|
+
} else {
|
|
3901
|
+
emits("update:value", value);
|
|
3902
|
+
}
|
|
3903
|
+
} catch (error) {
|
|
3904
|
+
emits("update:value", n);
|
|
3905
|
+
}
|
|
3906
|
+
});
|
|
3907
|
+
watch(
|
|
3908
|
+
() => dataSource.value,
|
|
3909
|
+
(n) => {
|
|
3910
|
+
console.log({ n });
|
|
3911
|
+
},
|
|
3912
|
+
{
|
|
3913
|
+
deep: true,
|
|
3914
|
+
immediate: true
|
|
3915
|
+
}
|
|
3916
|
+
);
|
|
3917
|
+
return (_ctx, _cache) => {
|
|
3918
|
+
const _component_ll_segmented = resolveComponent("ll-segmented");
|
|
3919
|
+
const _component_ll_button = resolveComponent("ll-button");
|
|
3920
|
+
const _component_ll_icon = resolveComponent("ll-icon");
|
|
3921
|
+
const _component_ll_dropdown = resolveComponent("ll-dropdown");
|
|
3922
|
+
const _component_ll_code_editor = resolveComponent("ll-code-editor");
|
|
3923
|
+
return openBlock(), createElementBlock(
|
|
3924
|
+
"div",
|
|
3925
|
+
{
|
|
3926
|
+
class: normalizeClass(unref(bem).b("json-xml"))
|
|
3927
|
+
},
|
|
3928
|
+
[
|
|
3929
|
+
createElementVNode(
|
|
3930
|
+
"div",
|
|
3931
|
+
{
|
|
3932
|
+
class: normalizeClass(unref(bem).e("header"))
|
|
3933
|
+
},
|
|
3934
|
+
[
|
|
3935
|
+
createVNode(_component_ll_segmented, {
|
|
3936
|
+
value: type.value,
|
|
3937
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => type.value = $event),
|
|
3938
|
+
size: "middle",
|
|
3939
|
+
options: unref(jsonXmlOptions),
|
|
3940
|
+
onChange: handleTypeChange
|
|
3941
|
+
}, {
|
|
3942
|
+
label: withCtx(({ payload }) => [
|
|
3943
|
+
createElementVNode(
|
|
3944
|
+
"div",
|
|
3945
|
+
null,
|
|
3946
|
+
toDisplayString(payload.title),
|
|
3947
|
+
1
|
|
3948
|
+
/* TEXT */
|
|
3949
|
+
)
|
|
3950
|
+
]),
|
|
3951
|
+
_: 1
|
|
3952
|
+
/* STABLE */
|
|
3953
|
+
}, 8, ["value", "options"]),
|
|
3954
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
3955
|
+
type.value === "json" ? (openBlock(), createElementBlock(
|
|
3956
|
+
Fragment,
|
|
3957
|
+
{ key: 0 },
|
|
3958
|
+
[
|
|
3959
|
+
createVNode(_component_ll_button, { type: "text" }, {
|
|
3960
|
+
default: withCtx(() => [
|
|
3961
|
+
createCommentVNode(" <ll-icon/> "),
|
|
3962
|
+
createTextVNode(" \u9884\u89C8 ")
|
|
3963
|
+
]),
|
|
3964
|
+
_: 1
|
|
3965
|
+
/* STABLE */
|
|
3966
|
+
}),
|
|
3967
|
+
createVNode(_component_ll_button, { type: "text" }, {
|
|
3968
|
+
default: withCtx(() => [
|
|
3969
|
+
createCommentVNode(" <ll-icon/> "),
|
|
3970
|
+
createTextVNode(" \u751F\u6210\u4EE3\u7801 ")
|
|
3971
|
+
]),
|
|
3972
|
+
_: 1
|
|
3973
|
+
/* STABLE */
|
|
3974
|
+
}),
|
|
3975
|
+
createVNode(_component_ll_button, { type: "text" }, {
|
|
3976
|
+
default: withCtx(() => [
|
|
3977
|
+
createCommentVNode(" <ll-icon/> "),
|
|
3978
|
+
createTextVNode(" JSON Schema ")
|
|
3979
|
+
]),
|
|
3980
|
+
_: 1
|
|
3981
|
+
/* STABLE */
|
|
3982
|
+
})
|
|
3983
|
+
],
|
|
3984
|
+
64
|
|
3985
|
+
/* STABLE_FRAGMENT */
|
|
3986
|
+
)) : (openBlock(), createElementBlock(
|
|
3987
|
+
Fragment,
|
|
3988
|
+
{ key: 1 },
|
|
3989
|
+
[
|
|
3990
|
+
createVNode(_component_ll_button, { type: "text" }, {
|
|
3991
|
+
default: withCtx(() => [
|
|
3992
|
+
createCommentVNode(" <ll-icon/> "),
|
|
3993
|
+
createTextVNode(" \u683C\u5F0F\u5316 ")
|
|
3994
|
+
]),
|
|
3995
|
+
_: 1
|
|
3996
|
+
/* STABLE */
|
|
3997
|
+
}),
|
|
3998
|
+
createVNode(_component_ll_button, { type: "text" }, {
|
|
3999
|
+
default: withCtx(() => [
|
|
4000
|
+
createCommentVNode(" <ll-icon/> "),
|
|
4001
|
+
createTextVNode(" \u751F\u6210\u4EE3\u7801 ")
|
|
4002
|
+
]),
|
|
4003
|
+
_: 1
|
|
4004
|
+
/* STABLE */
|
|
4005
|
+
}),
|
|
4006
|
+
createVNode(_component_ll_dropdown, {
|
|
4007
|
+
"dropdown-items": unref(customOverlay),
|
|
4008
|
+
placement: "bottomRight"
|
|
4009
|
+
}, {
|
|
4010
|
+
default: withCtx(() => [
|
|
4011
|
+
createVNode(_component_ll_icon, { "icon-name": "icon-line-arrow-down" })
|
|
4012
|
+
]),
|
|
4013
|
+
_: 1
|
|
4014
|
+
/* STABLE */
|
|
4015
|
+
}, 8, ["dropdown-items"])
|
|
4016
|
+
],
|
|
4017
|
+
64
|
|
4018
|
+
/* STABLE_FRAGMENT */
|
|
4019
|
+
))
|
|
4020
|
+
])
|
|
4021
|
+
],
|
|
4022
|
+
2
|
|
4023
|
+
/* CLASS */
|
|
4024
|
+
),
|
|
4025
|
+
createElementVNode(
|
|
2275
4026
|
"div",
|
|
2276
4027
|
{
|
|
2277
|
-
|
|
2278
|
-
class: normalizeClass(unref(bem).m("box"))
|
|
4028
|
+
class: normalizeClass(unref(bem).e("body"))
|
|
2279
4029
|
},
|
|
2280
4030
|
[
|
|
2281
|
-
(openBlock(
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
[
|
|
2292
|
-
createElementVNode(
|
|
2293
|
-
"span",
|
|
2294
|
-
{
|
|
2295
|
-
class: normalizeClass(unref(bem).m("label"))
|
|
2296
|
-
},
|
|
2297
|
-
toDisplayString(tag.label) + ":",
|
|
2298
|
-
3
|
|
2299
|
-
/* TEXT, CLASS */
|
|
2300
|
-
),
|
|
2301
|
-
createElementVNode(
|
|
2302
|
-
"span",
|
|
2303
|
-
{
|
|
2304
|
-
class: normalizeClass(unref(bem).m("value"))
|
|
2305
|
-
},
|
|
2306
|
-
toDisplayString(tag.showValue),
|
|
2307
|
-
3
|
|
2308
|
-
/* TEXT, CLASS */
|
|
2309
|
-
),
|
|
2310
|
-
createElementVNode("span", {
|
|
2311
|
-
class: normalizeClass(unref(bem).m("close")),
|
|
2312
|
-
onClick: ($event) => handleClean(tag)
|
|
2313
|
-
}, [
|
|
2314
|
-
createVNode(_component_ll_icon, {
|
|
2315
|
-
"icon-name": "icon-close2",
|
|
2316
|
-
color: "#909399",
|
|
2317
|
-
"class-name": unref(bem).m("icon")
|
|
2318
|
-
}, null, 8, ["class-name"])
|
|
2319
|
-
], 10, _hoisted_2$4)
|
|
2320
|
-
],
|
|
2321
|
-
2
|
|
2322
|
-
/* CLASS */
|
|
2323
|
-
);
|
|
2324
|
-
}),
|
|
2325
|
-
128
|
|
2326
|
-
/* KEYED_FRAGMENT */
|
|
2327
|
-
))
|
|
4031
|
+
type.value === "json" ? (openBlock(), createBlock(_component_ll_code_editor, {
|
|
4032
|
+
key: 0,
|
|
4033
|
+
value: innerValue.value,
|
|
4034
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
4035
|
+
language: "json"
|
|
4036
|
+
}, null, 8, ["value"])) : (openBlock(), createBlock(TreeTable, {
|
|
4037
|
+
key: 1,
|
|
4038
|
+
"data-source": dataSource.value,
|
|
4039
|
+
onChange: handleChange
|
|
4040
|
+
}, null, 8, ["data-source"]))
|
|
2328
4041
|
],
|
|
2329
4042
|
2
|
|
2330
4043
|
/* CLASS */
|
|
2331
|
-
)
|
|
2332
|
-
"div",
|
|
2333
|
-
{
|
|
2334
|
-
key: 1,
|
|
2335
|
-
class: normalizeClass(unref(bem).m("empty"))
|
|
2336
|
-
},
|
|
2337
|
-
_hoisted_4,
|
|
2338
|
-
2
|
|
2339
|
-
/* CLASS */
|
|
2340
|
-
))
|
|
4044
|
+
)
|
|
2341
4045
|
],
|
|
2342
4046
|
2
|
|
2343
4047
|
/* CLASS */
|
|
@@ -2346,96 +4050,234 @@ var _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
2346
4050
|
}
|
|
2347
4051
|
});
|
|
2348
4052
|
|
|
2349
|
-
var
|
|
4053
|
+
var JsonXml = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__file", "json-xml.vue"]]);
|
|
2350
4054
|
|
|
2351
|
-
|
|
2352
|
-
"
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
/* HOISTED */
|
|
2357
|
-
);
|
|
2358
|
-
var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
2359
|
-
...{ name: "LlAdvancedFiltering" },
|
|
2360
|
-
__name: "advanced-filtering",
|
|
2361
|
-
props: advancedFilteringProps,
|
|
2362
|
-
emits: advancedFilteringEmits,
|
|
2363
|
-
setup(__props, { emit: __emit }) {
|
|
4055
|
+
var _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
4056
|
+
...{ name: "LlParamsTableRow" },
|
|
4057
|
+
__name: "params-table-row",
|
|
4058
|
+
props: paramsTableRowProps,
|
|
4059
|
+
setup(__props) {
|
|
2364
4060
|
const props = __props;
|
|
2365
|
-
const
|
|
2366
|
-
const
|
|
2367
|
-
const
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
const handleHoverChange = (visible) => {
|
|
2371
|
-
if (showSelectBox.value)
|
|
2372
|
-
return;
|
|
2373
|
-
showValueBox.value = visible;
|
|
2374
|
-
};
|
|
2375
|
-
const handleClickChange = () => {
|
|
2376
|
-
showSelectBox.value = !showSelectBox.value;
|
|
2377
|
-
showValueBox.value = false;
|
|
4061
|
+
const bem = createNamespace("params-table");
|
|
4062
|
+
const innerData = ref(props.data);
|
|
4063
|
+
const handleDelete = (list, data) => {
|
|
4064
|
+
const index = list.findIndex((item) => item.name === data.name);
|
|
4065
|
+
list.splice(index, 1);
|
|
2378
4066
|
};
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
4067
|
+
return (_ctx, _cache) => {
|
|
4068
|
+
const _component_ll_input = resolveComponent("ll-input");
|
|
4069
|
+
const _component_ll_icon = resolveComponent("ll-icon");
|
|
4070
|
+
const _component_ll_select = resolveComponent("ll-select");
|
|
4071
|
+
const _component_ll_switch = resolveComponent("ll-switch");
|
|
4072
|
+
const _component_a_col = resolveComponent("a-col");
|
|
4073
|
+
const _component_a_popconfirm = resolveComponent("a-popconfirm");
|
|
4074
|
+
const _component_a_row = resolveComponent("a-row");
|
|
4075
|
+
return openBlock(), createElementBlock("div", null, [
|
|
4076
|
+
createVNode(_component_a_row, {
|
|
4077
|
+
gutter: 20,
|
|
4078
|
+
class: normalizeClass(unref(bem).e("table-row"))
|
|
4079
|
+
}, {
|
|
4080
|
+
default: withCtx(() => [
|
|
4081
|
+
(openBlock(true), createElementBlock(
|
|
4082
|
+
Fragment,
|
|
4083
|
+
null,
|
|
4084
|
+
renderList(props.columns, (col, index) => {
|
|
4085
|
+
return openBlock(), createBlock(_component_a_col, {
|
|
4086
|
+
key: index,
|
|
4087
|
+
span: col.span || 24 / props.columns.length,
|
|
4088
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
4089
|
+
}, {
|
|
4090
|
+
default: withCtx(() => [
|
|
4091
|
+
col.key === "name" ? (openBlock(), createBlock(_component_ll_input, {
|
|
4092
|
+
key: 0,
|
|
4093
|
+
value: innerData.value.name,
|
|
4094
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerData.value.name = $event),
|
|
4095
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
4096
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true),
|
|
4097
|
+
col.key === "required" ? (openBlock(), createElementBlock(
|
|
4098
|
+
"div",
|
|
4099
|
+
{
|
|
4100
|
+
key: 1,
|
|
4101
|
+
class: normalizeClass(unref(bem).m("required")),
|
|
4102
|
+
onClick: _cache[1] || (_cache[1] = ($event) => innerData.value.required = !innerData.value.required)
|
|
4103
|
+
},
|
|
4104
|
+
[
|
|
4105
|
+
withDirectives(createVNode(
|
|
4106
|
+
_component_ll_icon,
|
|
4107
|
+
{ "icon-name": "icon-radio-check" },
|
|
4108
|
+
null,
|
|
4109
|
+
512
|
|
4110
|
+
/* NEED_PATCH */
|
|
4111
|
+
), [
|
|
4112
|
+
[vShow, innerData.value.required]
|
|
4113
|
+
])
|
|
4114
|
+
],
|
|
4115
|
+
2
|
|
4116
|
+
/* CLASS */
|
|
4117
|
+
)) : createCommentVNode("v-if", true),
|
|
4118
|
+
col.key === "type" ? (openBlock(), createBlock(_component_ll_select, {
|
|
4119
|
+
key: 2,
|
|
4120
|
+
value: innerData.value.type,
|
|
4121
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerData.value.type = $event),
|
|
4122
|
+
options: props.options,
|
|
4123
|
+
style: { "width": "100%" }
|
|
4124
|
+
}, null, 8, ["value", "options"])) : createCommentVNode("v-if", true),
|
|
4125
|
+
col.key === "value" ? (openBlock(), createBlock(ClickInput, {
|
|
4126
|
+
key: 3,
|
|
4127
|
+
value: innerData.value.value,
|
|
4128
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => innerData.value.value = $event),
|
|
4129
|
+
type: "code",
|
|
4130
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
4131
|
+
style: { "width": "100%" }
|
|
4132
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true),
|
|
4133
|
+
col.key === "static" ? (openBlock(), createBlock(_component_ll_switch, {
|
|
4134
|
+
key: 4,
|
|
4135
|
+
value: innerData.value[col.key],
|
|
4136
|
+
"onUpdate:value": ($event) => innerData.value[col.key] = $event
|
|
4137
|
+
}, null, 8, ["value", "onUpdate:value"])) : createCommentVNode("v-if", true),
|
|
4138
|
+
col.key === "description" ? (openBlock(), createBlock(_component_ll_input, {
|
|
4139
|
+
key: 5,
|
|
4140
|
+
value: innerData.value[col.key],
|
|
4141
|
+
"onUpdate:value": ($event) => innerData.value[col.key] = $event,
|
|
4142
|
+
placeholder: col.placeholder || "\u8BF7\u8F93\u5165"
|
|
4143
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"])) : createCommentVNode("v-if", true),
|
|
4144
|
+
col.key === "contentType" ? (openBlock(), createBlock(_component_ll_select, {
|
|
4145
|
+
key: 6,
|
|
4146
|
+
value: innerData.value[col.key],
|
|
4147
|
+
"onUpdate:value": ($event) => innerData.value[col.key] = $event,
|
|
4148
|
+
placeholder: col.placeholder || "\u8BF7\u8F93\u5165"
|
|
4149
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"])) : createCommentVNode("v-if", true)
|
|
4150
|
+
]),
|
|
4151
|
+
_: 2
|
|
4152
|
+
/* DYNAMIC */
|
|
4153
|
+
}, 1032, ["span", "class"]);
|
|
4154
|
+
}),
|
|
4155
|
+
128
|
|
4156
|
+
/* KEYED_FRAGMENT */
|
|
4157
|
+
)),
|
|
4158
|
+
createVNode(_component_a_col, {
|
|
4159
|
+
span: 1,
|
|
4160
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
4161
|
+
}, {
|
|
4162
|
+
default: withCtx(() => [
|
|
4163
|
+
createVNode(_component_a_popconfirm, {
|
|
4164
|
+
title: "\u4F60\u786E\u5B9A\u8981\u79FB\u9664\u5417\uFF1F",
|
|
4165
|
+
"ok-text": "\u786E\u8BA4",
|
|
4166
|
+
"cancel-text": "\u53D6\u6D88",
|
|
4167
|
+
placement: "topRight",
|
|
4168
|
+
"overlay-class-name": unref(bem).e("popconfirm"),
|
|
4169
|
+
onConfirm: _cache[4] || (_cache[4] = ($event) => handleDelete(props.dataSource, innerData.value))
|
|
4170
|
+
}, {
|
|
4171
|
+
default: withCtx(() => [
|
|
4172
|
+
createElementVNode(
|
|
4173
|
+
"a",
|
|
4174
|
+
{
|
|
4175
|
+
href: "javascript:;",
|
|
4176
|
+
class: normalizeClass(unref(bem).m("table-icon"))
|
|
4177
|
+
},
|
|
4178
|
+
[
|
|
4179
|
+
createVNode(_component_ll_icon, { "icon-name": "icon-remove" })
|
|
4180
|
+
],
|
|
4181
|
+
2
|
|
4182
|
+
/* CLASS */
|
|
4183
|
+
)
|
|
4184
|
+
]),
|
|
4185
|
+
_: 1
|
|
4186
|
+
/* STABLE */
|
|
4187
|
+
}, 8, ["overlay-class-name"])
|
|
4188
|
+
]),
|
|
4189
|
+
_: 1
|
|
4190
|
+
/* STABLE */
|
|
4191
|
+
}, 8, ["class"])
|
|
4192
|
+
]),
|
|
4193
|
+
_: 1
|
|
4194
|
+
/* STABLE */
|
|
4195
|
+
}, 8, ["class"])
|
|
4196
|
+
]);
|
|
2382
4197
|
};
|
|
2383
|
-
|
|
2384
|
-
|
|
4198
|
+
}
|
|
4199
|
+
});
|
|
4200
|
+
|
|
4201
|
+
var TableRow = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__file", "params-table-row.vue"]]);
|
|
4202
|
+
|
|
4203
|
+
var _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
4204
|
+
...{ name: "LlParamsTable" },
|
|
4205
|
+
__name: "params-table",
|
|
4206
|
+
props: paramsTableProps,
|
|
4207
|
+
setup(__props) {
|
|
4208
|
+
const bem = createNamespace("params-table");
|
|
4209
|
+
const props = __props;
|
|
4210
|
+
const addData = ref("");
|
|
4211
|
+
const handleAdd = (dataSource) => {
|
|
4212
|
+
if (addData.value && dataSource.find((e) => e.name !== addData.value) || !dataSource.length) {
|
|
4213
|
+
if (!addData.value)
|
|
4214
|
+
return;
|
|
4215
|
+
dataSource.push({
|
|
4216
|
+
name: addData.value,
|
|
4217
|
+
required: false,
|
|
4218
|
+
value: "",
|
|
4219
|
+
static: false,
|
|
4220
|
+
description: "",
|
|
4221
|
+
contentType: ""
|
|
4222
|
+
});
|
|
4223
|
+
addData.value = "";
|
|
4224
|
+
}
|
|
2385
4225
|
};
|
|
2386
4226
|
watch(
|
|
2387
|
-
|
|
4227
|
+
() => props.dataSource,
|
|
2388
4228
|
(n) => {
|
|
2389
|
-
|
|
2390
|
-
emits("change", n);
|
|
4229
|
+
console.log({ n });
|
|
2391
4230
|
},
|
|
2392
4231
|
{
|
|
2393
4232
|
deep: true
|
|
2394
4233
|
}
|
|
2395
4234
|
);
|
|
2396
4235
|
return (_ctx, _cache) => {
|
|
2397
|
-
const
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
"
|
|
2409
|
-
|
|
2410
|
-
onClose: handleClose
|
|
2411
|
-
}, null, 8, ["value", "filter-columns", "form-options"])
|
|
2412
|
-
]),
|
|
2413
|
-
default: withCtx(() => [
|
|
2414
|
-
createVNode(_component_a_popover, {
|
|
2415
|
-
"overlay-class-name": unref(bem).b(),
|
|
2416
|
-
trigger: "hover",
|
|
2417
|
-
placement: "bottomRight",
|
|
2418
|
-
open: showValueBox.value,
|
|
2419
|
-
"overlay-style": props.overlayStyle,
|
|
2420
|
-
onOpenChange: handleHoverChange
|
|
4236
|
+
const _component_ll_tooltip = resolveComponent("ll-tooltip");
|
|
4237
|
+
const _component_a_col = resolveComponent("a-col");
|
|
4238
|
+
const _component_a_row = resolveComponent("a-row");
|
|
4239
|
+
const _component_ll_input = resolveComponent("ll-input");
|
|
4240
|
+
return openBlock(), createElementBlock(
|
|
4241
|
+
"div",
|
|
4242
|
+
{
|
|
4243
|
+
class: normalizeClass(unref(bem).b())
|
|
4244
|
+
},
|
|
4245
|
+
[
|
|
4246
|
+
createVNode(_component_a_row, {
|
|
4247
|
+
class: normalizeClass(unref(bem).m("table-header")),
|
|
4248
|
+
gutter: 20
|
|
2421
4249
|
}, {
|
|
2422
|
-
content: withCtx(() => [
|
|
2423
|
-
createVNode(AdvancedFilteringTags, {
|
|
2424
|
-
value: filterValue.value,
|
|
2425
|
-
"filter-columns": props.filterColumns,
|
|
2426
|
-
onChange: handleChange
|
|
2427
|
-
}, null, 8, ["value", "filter-columns"])
|
|
2428
|
-
]),
|
|
2429
4250
|
default: withCtx(() => [
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
4251
|
+
(openBlock(true), createElementBlock(
|
|
4252
|
+
Fragment,
|
|
4253
|
+
null,
|
|
4254
|
+
renderList(props.columns, (col, index) => {
|
|
4255
|
+
return openBlock(), createBlock(_component_a_col, {
|
|
4256
|
+
key: index,
|
|
4257
|
+
span: col.span,
|
|
4258
|
+
class: normalizeClass(unref(bem).e("table-header-col"))
|
|
4259
|
+
}, {
|
|
4260
|
+
default: withCtx(() => [
|
|
4261
|
+
createTextVNode(
|
|
4262
|
+
toDisplayString(col.title) + " ",
|
|
4263
|
+
1
|
|
4264
|
+
/* TEXT */
|
|
4265
|
+
),
|
|
4266
|
+
col.key === "static" ? (openBlock(), createBlock(_component_ll_tooltip, {
|
|
4267
|
+
key: 0,
|
|
4268
|
+
tip: "Content-Type \u5B57\u6BB5\u7528\u4E8E\u6307\u5B9A\u8BF7\u6C42\u90E8\u5206\u7684\u5A92\u4F53\u7C7B\u578B"
|
|
4269
|
+
})) : createCommentVNode("v-if", true)
|
|
4270
|
+
]),
|
|
4271
|
+
_: 2
|
|
4272
|
+
/* DYNAMIC */
|
|
4273
|
+
}, 1032, ["span", "class"]);
|
|
4274
|
+
}),
|
|
4275
|
+
128
|
|
4276
|
+
/* KEYED_FRAGMENT */
|
|
4277
|
+
)),
|
|
4278
|
+
createVNode(_component_a_col, { span: 1 }, {
|
|
2433
4279
|
default: withCtx(() => [
|
|
2434
|
-
|
|
2435
|
-
"icon-name": "icon-Screening",
|
|
2436
|
-
style: { "margin-right": "10px" }
|
|
2437
|
-
}),
|
|
2438
|
-
_hoisted_1$8
|
|
4280
|
+
createTextVNode(" \u64CD\u4F5C ")
|
|
2439
4281
|
]),
|
|
2440
4282
|
_: 1
|
|
2441
4283
|
/* STABLE */
|
|
@@ -2443,20 +4285,214 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
2443
4285
|
]),
|
|
2444
4286
|
_: 1
|
|
2445
4287
|
/* STABLE */
|
|
2446
|
-
}, 8, ["
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
4288
|
+
}, 8, ["class"]),
|
|
4289
|
+
createElementVNode(
|
|
4290
|
+
"div",
|
|
4291
|
+
{
|
|
4292
|
+
class: normalizeClass(unref(bem).m("table-body"))
|
|
4293
|
+
},
|
|
4294
|
+
[
|
|
4295
|
+
(openBlock(true), createElementBlock(
|
|
4296
|
+
Fragment,
|
|
4297
|
+
null,
|
|
4298
|
+
renderList(props.dataSource, (item, index) => {
|
|
4299
|
+
return openBlock(), createBlock(TableRow, {
|
|
4300
|
+
key: index,
|
|
4301
|
+
data: item,
|
|
4302
|
+
columns: props.columns,
|
|
4303
|
+
"data-source": props.dataSource
|
|
4304
|
+
}, null, 8, ["data", "columns", "data-source"]);
|
|
4305
|
+
}),
|
|
4306
|
+
128
|
|
4307
|
+
/* KEYED_FRAGMENT */
|
|
4308
|
+
)),
|
|
4309
|
+
createVNode(_component_a_row, {
|
|
4310
|
+
gutter: 20,
|
|
4311
|
+
class: normalizeClass(unref(bem).e("table-row"))
|
|
4312
|
+
}, {
|
|
4313
|
+
default: withCtx(() => [
|
|
4314
|
+
(openBlock(true), createElementBlock(
|
|
4315
|
+
Fragment,
|
|
4316
|
+
null,
|
|
4317
|
+
renderList(props.columns, (col, index) => {
|
|
4318
|
+
return openBlock(), createBlock(_component_a_col, {
|
|
4319
|
+
key: index,
|
|
4320
|
+
span: col.span || 24 / props.columns.length,
|
|
4321
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
4322
|
+
}, {
|
|
4323
|
+
default: withCtx(() => [
|
|
4324
|
+
col.key === "name" ? (openBlock(), createBlock(_component_ll_input, {
|
|
4325
|
+
key: 0,
|
|
4326
|
+
value: addData.value,
|
|
4327
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => addData.value = $event),
|
|
4328
|
+
placeholder: "\u6DFB\u52A0\u53C2\u6570",
|
|
4329
|
+
bordered: false,
|
|
4330
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => handleAdd(props.dataSource))
|
|
4331
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true)
|
|
4332
|
+
]),
|
|
4333
|
+
_: 2
|
|
4334
|
+
/* DYNAMIC */
|
|
4335
|
+
}, 1032, ["span", "class"]);
|
|
4336
|
+
}),
|
|
4337
|
+
128
|
|
4338
|
+
/* KEYED_FRAGMENT */
|
|
4339
|
+
))
|
|
4340
|
+
]),
|
|
4341
|
+
_: 1
|
|
4342
|
+
/* STABLE */
|
|
4343
|
+
}, 8, ["class"])
|
|
4344
|
+
],
|
|
4345
|
+
2
|
|
4346
|
+
/* CLASS */
|
|
4347
|
+
)
|
|
4348
|
+
],
|
|
4349
|
+
2
|
|
4350
|
+
/* CLASS */
|
|
4351
|
+
);
|
|
2451
4352
|
};
|
|
2452
4353
|
}
|
|
2453
4354
|
});
|
|
2454
4355
|
|
|
2455
|
-
var
|
|
4356
|
+
var paramsTable = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__file", "params-table.vue"]]);
|
|
2456
4357
|
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
4358
|
+
var _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
4359
|
+
...{ name: "LlApiComponent" },
|
|
4360
|
+
__name: "api-component",
|
|
4361
|
+
props: apiComponentProps,
|
|
4362
|
+
setup(__props) {
|
|
4363
|
+
const props = __props;
|
|
4364
|
+
const bem = createNamespace("api-component");
|
|
4365
|
+
const method = ref(props.method);
|
|
4366
|
+
const url = ref(props.url);
|
|
4367
|
+
const activeKey = ref("params");
|
|
4368
|
+
const bodyKey = ref("form-data");
|
|
4369
|
+
const requestParams = ref(props.requestParams);
|
|
4370
|
+
const headerParams = ref(props.headerParams);
|
|
4371
|
+
const bodyParams = reactive(props.bodyParams);
|
|
4372
|
+
const computedRequestList = computed(() => {
|
|
4373
|
+
if (method.value === "GET") {
|
|
4374
|
+
return requestList.filter((item) => item.key !== "body");
|
|
4375
|
+
}
|
|
4376
|
+
return requestList;
|
|
4377
|
+
});
|
|
4378
|
+
watch(
|
|
4379
|
+
requestParams,
|
|
4380
|
+
(n) => {
|
|
4381
|
+
console.log("requestParams", n);
|
|
4382
|
+
},
|
|
4383
|
+
{
|
|
4384
|
+
deep: true
|
|
4385
|
+
}
|
|
4386
|
+
);
|
|
4387
|
+
watch(
|
|
4388
|
+
bodyParams,
|
|
4389
|
+
(n) => {
|
|
4390
|
+
console.log("bodyParams", n);
|
|
4391
|
+
},
|
|
4392
|
+
{
|
|
4393
|
+
deep: true
|
|
4394
|
+
}
|
|
4395
|
+
);
|
|
4396
|
+
return (_ctx, _cache) => {
|
|
4397
|
+
const _component_ll_tabs_simple = resolveComponent("ll-tabs-simple");
|
|
4398
|
+
const _component_ll_code_editor = resolveComponent("ll-code-editor");
|
|
4399
|
+
const _component_ll_empty = resolveComponent("ll-empty");
|
|
4400
|
+
return openBlock(), createElementBlock(
|
|
4401
|
+
"div",
|
|
4402
|
+
{
|
|
4403
|
+
class: normalizeClass(unref(bem).b())
|
|
4404
|
+
},
|
|
4405
|
+
[
|
|
4406
|
+
createVNode(ApiUrl, {
|
|
4407
|
+
method: method.value,
|
|
4408
|
+
"onUpdate:method": _cache[0] || (_cache[0] = ($event) => method.value = $event),
|
|
4409
|
+
url: url.value,
|
|
4410
|
+
"onUpdate:url": _cache[1] || (_cache[1] = ($event) => url.value = $event),
|
|
4411
|
+
class: normalizeClass(unref(bem).m("header"))
|
|
4412
|
+
}, null, 8, ["method", "url", "class"]),
|
|
4413
|
+
createVNode(_component_ll_tabs_simple, {
|
|
4414
|
+
"active-key": activeKey.value,
|
|
4415
|
+
"onUpdate:activeKey": _cache[2] || (_cache[2] = ($event) => activeKey.value = $event),
|
|
4416
|
+
tabs: computedRequestList.value,
|
|
4417
|
+
class: normalizeClass(unref(bem).m("tab"))
|
|
4418
|
+
}, null, 8, ["active-key", "tabs", "class"]),
|
|
4419
|
+
withDirectives(createVNode(paramsTable, {
|
|
4420
|
+
columns: unref(paramsTableColumns),
|
|
4421
|
+
"data-source": requestParams.value
|
|
4422
|
+
}, null, 8, ["columns", "data-source"]), [
|
|
4423
|
+
[vShow, activeKey.value === "params"]
|
|
4424
|
+
]),
|
|
4425
|
+
withDirectives(createVNode(paramsTable, {
|
|
4426
|
+
columns: unref(headersTableColumns),
|
|
4427
|
+
"data-source": headerParams.value
|
|
4428
|
+
}, null, 8, ["columns", "data-source"]), [
|
|
4429
|
+
[vShow, activeKey.value === "headers"]
|
|
4430
|
+
]),
|
|
4431
|
+
withDirectives(createElementVNode(
|
|
4432
|
+
"div",
|
|
4433
|
+
null,
|
|
4434
|
+
[
|
|
4435
|
+
createVNode(_component_ll_tabs_simple, {
|
|
4436
|
+
"active-key": bodyKey.value,
|
|
4437
|
+
"onUpdate:activeKey": _cache[3] || (_cache[3] = ($event) => bodyKey.value = $event),
|
|
4438
|
+
tabs: unref(bodyList),
|
|
4439
|
+
class: normalizeClass(unref(bem).m("body-tab"))
|
|
4440
|
+
}, null, 8, ["active-key", "tabs", "class"]),
|
|
4441
|
+
withDirectives(createVNode(JsonXml, {
|
|
4442
|
+
value: bodyParams["json"],
|
|
4443
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => bodyParams["json"] = $event)
|
|
4444
|
+
}, null, 8, ["value"]), [
|
|
4445
|
+
[vShow, bodyKey.value === "json"]
|
|
4446
|
+
]),
|
|
4447
|
+
withDirectives(createVNode(JsonXml, {
|
|
4448
|
+
value: bodyParams["xml"],
|
|
4449
|
+
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => bodyParams["xml"] = $event)
|
|
4450
|
+
}, null, 8, ["value"]), [
|
|
4451
|
+
[vShow, bodyKey.value === "xml"]
|
|
4452
|
+
]),
|
|
4453
|
+
bodyKey.value === "raw" ? (openBlock(), createBlock(_component_ll_code_editor, {
|
|
4454
|
+
key: 0,
|
|
4455
|
+
value: bodyParams["raw"],
|
|
4456
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => bodyParams["raw"] = $event)
|
|
4457
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true),
|
|
4458
|
+
withDirectives(createVNode(paramsTable, {
|
|
4459
|
+
columns: unref(paramsTableColumns),
|
|
4460
|
+
"data-source": bodyParams["x-www-form-urlencoded"]
|
|
4461
|
+
}, null, 8, ["columns", "data-source"]), [
|
|
4462
|
+
[vShow, bodyKey.value === "x-www-form-urlencoded"]
|
|
4463
|
+
]),
|
|
4464
|
+
withDirectives(createVNode(paramsTable, {
|
|
4465
|
+
columns: unref(formdataTableColumns),
|
|
4466
|
+
"data-source": bodyParams["form-data"]
|
|
4467
|
+
}, null, 8, ["columns", "data-source"]), [
|
|
4468
|
+
[vShow, bodyKey.value === "form-data"]
|
|
4469
|
+
]),
|
|
4470
|
+
withDirectives(createVNode(
|
|
4471
|
+
_component_ll_empty,
|
|
4472
|
+
null,
|
|
4473
|
+
null,
|
|
4474
|
+
512
|
|
4475
|
+
/* NEED_PATCH */
|
|
4476
|
+
), [
|
|
4477
|
+
[vShow, bodyKey.value === "none"]
|
|
4478
|
+
])
|
|
4479
|
+
],
|
|
4480
|
+
512
|
|
4481
|
+
/* NEED_PATCH */
|
|
4482
|
+
), [
|
|
4483
|
+
[vShow, activeKey.value === "body"]
|
|
4484
|
+
])
|
|
4485
|
+
],
|
|
4486
|
+
2
|
|
4487
|
+
/* CLASS */
|
|
4488
|
+
);
|
|
4489
|
+
};
|
|
4490
|
+
}
|
|
4491
|
+
});
|
|
4492
|
+
|
|
4493
|
+
var ApiComponent = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__file", "api-component.vue"]]);
|
|
4494
|
+
|
|
4495
|
+
const LlApiComponent = withInstall(ApiComponent);
|
|
2460
4496
|
|
|
2461
4497
|
const avatarType = ["single", "multiple"];
|
|
2462
4498
|
const avatarProps = buildProps({
|
|
@@ -2504,7 +4540,7 @@ const avatarEmits = {
|
|
|
2504
4540
|
click: (item, index) => !!item || index
|
|
2505
4541
|
};
|
|
2506
4542
|
|
|
2507
|
-
var _sfc_main$
|
|
4543
|
+
var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
2508
4544
|
...{ name: "LlAvatar" },
|
|
2509
4545
|
__name: "avatar",
|
|
2510
4546
|
props: avatarProps,
|
|
@@ -2680,7 +4716,7 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
2680
4716
|
}
|
|
2681
4717
|
});
|
|
2682
4718
|
|
|
2683
|
-
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4719
|
+
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__file", "avatar.vue"]]);
|
|
2684
4720
|
|
|
2685
4721
|
const LlAvatar = withInstall(Avatar);
|
|
2686
4722
|
|
|
@@ -2706,7 +4742,7 @@ const buttonProps = buildProps({
|
|
|
2706
4742
|
});
|
|
2707
4743
|
|
|
2708
4744
|
const _hoisted_1$7 = { key: 0 };
|
|
2709
|
-
var _sfc_main$
|
|
4745
|
+
var _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
2710
4746
|
...{ name: "LlButton" },
|
|
2711
4747
|
__name: "button",
|
|
2712
4748
|
props: buttonProps,
|
|
@@ -2765,11 +4801,11 @@ var _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
2765
4801
|
}
|
|
2766
4802
|
});
|
|
2767
4803
|
|
|
2768
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4804
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__file", "button.vue"]]);
|
|
2769
4805
|
|
|
2770
4806
|
const LlButton = withInstall(Button);
|
|
2771
4807
|
|
|
2772
|
-
var _sfc_main$
|
|
4808
|
+
var _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
2773
4809
|
...{ name: "LlCascader" },
|
|
2774
4810
|
__name: "cascader",
|
|
2775
4811
|
setup(__props) {
|
|
@@ -2796,7 +4832,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
2796
4832
|
}
|
|
2797
4833
|
});
|
|
2798
4834
|
|
|
2799
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4835
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__file", "cascader.vue"]]);
|
|
2800
4836
|
|
|
2801
4837
|
const LlCascader = withInstall(Cascader);
|
|
2802
4838
|
|
|
@@ -2818,7 +4854,7 @@ const checkboxGroupProps = buildProps({
|
|
|
2818
4854
|
}
|
|
2819
4855
|
});
|
|
2820
4856
|
|
|
2821
|
-
var _sfc_main$
|
|
4857
|
+
var _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
2822
4858
|
...{ name: "LlCheckbox" },
|
|
2823
4859
|
__name: "checkbox",
|
|
2824
4860
|
props: checkboxProps,
|
|
@@ -2870,9 +4906,9 @@ var _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
2870
4906
|
}
|
|
2871
4907
|
});
|
|
2872
4908
|
|
|
2873
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4909
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__file", "checkbox.vue"]]);
|
|
2874
4910
|
|
|
2875
|
-
var _sfc_main$
|
|
4911
|
+
var _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
2876
4912
|
...{ name: "LlCheckboxGroup" },
|
|
2877
4913
|
__name: "checkbox-group",
|
|
2878
4914
|
props: checkboxGroupProps,
|
|
@@ -2941,7 +4977,7 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2941
4977
|
}
|
|
2942
4978
|
});
|
|
2943
4979
|
|
|
2944
|
-
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4980
|
+
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__file", "checkbox-group.vue"]]);
|
|
2945
4981
|
|
|
2946
4982
|
const LlCheckbox = withInstall(Checkbox);
|
|
2947
4983
|
const LlCheckboxGroup = withInstall(CheckboxGroup);
|
|
@@ -43855,7 +45891,7 @@ const codeThemeList = [
|
|
|
43855
45891
|
}
|
|
43856
45892
|
];
|
|
43857
45893
|
|
|
43858
|
-
var _sfc_main$
|
|
45894
|
+
var _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
43859
45895
|
...{ name: "LlCodeEditor" },
|
|
43860
45896
|
__name: "code-editor",
|
|
43861
45897
|
props: codeEditorProps,
|
|
@@ -44002,11 +46038,11 @@ var _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
44002
46038
|
}
|
|
44003
46039
|
});
|
|
44004
46040
|
|
|
44005
|
-
var CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46041
|
+
var CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__file", "code-editor.vue"]]);
|
|
44006
46042
|
|
|
44007
46043
|
const LlCodeEditor = withInstall(CodeEditor);
|
|
44008
46044
|
|
|
44009
|
-
var _sfc_main$
|
|
46045
|
+
var _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
44010
46046
|
...{
|
|
44011
46047
|
name: "LlConfigProvider"
|
|
44012
46048
|
},
|
|
@@ -44029,11 +46065,11 @@ var _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
44029
46065
|
}
|
|
44030
46066
|
});
|
|
44031
46067
|
|
|
44032
|
-
var ConfigProvider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46068
|
+
var ConfigProvider = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__file", "config-provider.vue"]]);
|
|
44033
46069
|
|
|
44034
46070
|
const LlConfigProvider = withInstall(ConfigProvider);
|
|
44035
46071
|
|
|
44036
|
-
var _sfc_main$
|
|
46072
|
+
var _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
44037
46073
|
...{ name: "LlDatePicker" },
|
|
44038
46074
|
__name: "date-picker",
|
|
44039
46075
|
setup(__props) {
|
|
@@ -44059,11 +46095,11 @@ var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
44059
46095
|
}
|
|
44060
46096
|
});
|
|
44061
46097
|
|
|
44062
|
-
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46098
|
+
var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__file", "date-picker.vue"]]);
|
|
44063
46099
|
|
|
44064
46100
|
const LlDatePicker = withInstall(DatePicker);
|
|
44065
46101
|
|
|
44066
|
-
var _sfc_main$
|
|
46102
|
+
var _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
44067
46103
|
...{ name: "LlDateRange" },
|
|
44068
46104
|
__name: "date-range",
|
|
44069
46105
|
setup(__props) {
|
|
@@ -44089,7 +46125,7 @@ var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
44089
46125
|
}
|
|
44090
46126
|
});
|
|
44091
46127
|
|
|
44092
|
-
var DateRange = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46128
|
+
var DateRange = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__file", "date-range.vue"]]);
|
|
44093
46129
|
|
|
44094
46130
|
const LlDateRange = withInstall(DateRange);
|
|
44095
46131
|
|
|
@@ -44104,7 +46140,7 @@ const descriptionsProps = buildProps({
|
|
|
44104
46140
|
}
|
|
44105
46141
|
});
|
|
44106
46142
|
|
|
44107
|
-
var _sfc_main$
|
|
46143
|
+
var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
44108
46144
|
...{ name: "LlDescriptions" },
|
|
44109
46145
|
__name: "descriptions",
|
|
44110
46146
|
props: descriptionsProps,
|
|
@@ -44179,7 +46215,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
44179
46215
|
}
|
|
44180
46216
|
});
|
|
44181
46217
|
|
|
44182
|
-
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46218
|
+
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__file", "descriptions.vue"]]);
|
|
44183
46219
|
|
|
44184
46220
|
const LlDescriptions = withInstall(Descriptions);
|
|
44185
46221
|
|
|
@@ -44194,7 +46230,7 @@ const descriptionsItemProps = buildProps({
|
|
|
44194
46230
|
}
|
|
44195
46231
|
});
|
|
44196
46232
|
|
|
44197
|
-
var _sfc_main$
|
|
46233
|
+
var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
44198
46234
|
...{ name: "LlDescriptionsItem" },
|
|
44199
46235
|
__name: "descriptions-item",
|
|
44200
46236
|
props: descriptionsItemProps,
|
|
@@ -44224,7 +46260,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
44224
46260
|
}
|
|
44225
46261
|
});
|
|
44226
46262
|
|
|
44227
|
-
var DescriptionsItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46263
|
+
var DescriptionsItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__file", "descriptions-item.vue"]]);
|
|
44228
46264
|
|
|
44229
46265
|
const LlDescriptionsItem = withInstall(DescriptionsItem);
|
|
44230
46266
|
|
|
@@ -44356,7 +46392,7 @@ const secondConfirmationProps = buildProps({
|
|
|
44356
46392
|
onCancel: Function
|
|
44357
46393
|
});
|
|
44358
46394
|
|
|
44359
|
-
var _sfc_main$
|
|
46395
|
+
var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
44360
46396
|
...{ name: "LlSecondConfirmation" },
|
|
44361
46397
|
__name: "second-confirmation",
|
|
44362
46398
|
props: secondConfirmationProps,
|
|
@@ -44434,7 +46470,7 @@ var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
44434
46470
|
}
|
|
44435
46471
|
});
|
|
44436
46472
|
|
|
44437
|
-
var SecondConfirmation = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46473
|
+
var SecondConfirmation = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__file", "second-confirmation.vue"]]);
|
|
44438
46474
|
|
|
44439
46475
|
const useSecondConfirmation = (options) => {
|
|
44440
46476
|
const { title, message, confirmText, cancelText, icon = null } = options;
|
|
@@ -44467,7 +46503,7 @@ const useSecondConfirmation = (options) => {
|
|
|
44467
46503
|
|
|
44468
46504
|
const LlSecondConfirmation = withInstall(SecondConfirmation);
|
|
44469
46505
|
|
|
44470
|
-
var _sfc_main$
|
|
46506
|
+
var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
44471
46507
|
...{ name: "LlDrawer" },
|
|
44472
46508
|
__name: "drawer",
|
|
44473
46509
|
props: drawerProps,
|
|
@@ -44625,7 +46661,7 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
44625
46661
|
}
|
|
44626
46662
|
});
|
|
44627
46663
|
|
|
44628
|
-
var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46664
|
+
var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__file", "drawer.vue"]]);
|
|
44629
46665
|
|
|
44630
46666
|
const LlDrawer = withInstall(Drawer);
|
|
44631
46667
|
|
|
@@ -44655,7 +46691,7 @@ const emptyProps = buildProps({
|
|
|
44655
46691
|
});
|
|
44656
46692
|
|
|
44657
46693
|
const _hoisted_1$6 = ["src"];
|
|
44658
|
-
var _sfc_main$
|
|
46694
|
+
var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
44659
46695
|
...{ name: "LlEmpty" },
|
|
44660
46696
|
__name: "empty",
|
|
44661
46697
|
props: emptyProps,
|
|
@@ -44714,7 +46750,7 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
44714
46750
|
}
|
|
44715
46751
|
});
|
|
44716
46752
|
|
|
44717
|
-
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46753
|
+
var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__file", "empty.vue"]]);
|
|
44718
46754
|
|
|
44719
46755
|
const LlEmpty = withInstall(Empty);
|
|
44720
46756
|
|
|
@@ -44779,7 +46815,7 @@ const formComponentProps = buildProps({
|
|
|
44779
46815
|
}
|
|
44780
46816
|
});
|
|
44781
46817
|
|
|
44782
|
-
var _sfc_main$
|
|
46818
|
+
var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
44783
46819
|
__name: "form-component",
|
|
44784
46820
|
props: formComponentProps,
|
|
44785
46821
|
setup(__props) {
|
|
@@ -44807,9 +46843,9 @@ var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
44807
46843
|
}
|
|
44808
46844
|
});
|
|
44809
46845
|
|
|
44810
|
-
var FormComponent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46846
|
+
var FormComponent = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__file", "form-component.vue"]]);
|
|
44811
46847
|
|
|
44812
|
-
var _sfc_main$
|
|
46848
|
+
var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
44813
46849
|
...{ name: "LlForm" },
|
|
44814
46850
|
__name: "form",
|
|
44815
46851
|
props: formProps,
|
|
@@ -45024,12 +47060,12 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
45024
47060
|
}
|
|
45025
47061
|
});
|
|
45026
47062
|
|
|
45027
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47063
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__file", "form.vue"]]);
|
|
45028
47064
|
|
|
45029
47065
|
const LlFormComponent = withInstall(FormComponent);
|
|
45030
47066
|
const LlForm = withInstall(Form);
|
|
45031
47067
|
|
|
45032
|
-
var _sfc_main$
|
|
47068
|
+
var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
45033
47069
|
...{ name: "LlFormItem" },
|
|
45034
47070
|
__name: "form-item",
|
|
45035
47071
|
setup(__props) {
|
|
@@ -45055,7 +47091,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
45055
47091
|
}
|
|
45056
47092
|
});
|
|
45057
47093
|
|
|
45058
|
-
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47094
|
+
var FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__file", "form-item.vue"]]);
|
|
45059
47095
|
|
|
45060
47096
|
const LlFormItem = withInstall(FormItem);
|
|
45061
47097
|
|
|
@@ -45083,7 +47119,7 @@ const iconProps = buildProps({
|
|
|
45083
47119
|
|
|
45084
47120
|
const _hoisted_1$5 = { "aria-hidden": "true" };
|
|
45085
47121
|
const _hoisted_2$3 = ["xlink:href"];
|
|
45086
|
-
var _sfc_main$
|
|
47122
|
+
var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
45087
47123
|
...{
|
|
45088
47124
|
name: "LlIcon"
|
|
45089
47125
|
},
|
|
@@ -45125,7 +47161,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
45125
47161
|
}
|
|
45126
47162
|
});
|
|
45127
47163
|
|
|
45128
|
-
var Icon$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47164
|
+
var Icon$1 = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__file", "icon.vue"]]);
|
|
45129
47165
|
|
|
45130
47166
|
const LlIcon = withInstall(Icon$1);
|
|
45131
47167
|
|
|
@@ -45190,7 +47226,7 @@ const iconBaseProps = buildProps({
|
|
|
45190
47226
|
}
|
|
45191
47227
|
});
|
|
45192
47228
|
|
|
45193
|
-
var _sfc_main$
|
|
47229
|
+
var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
45194
47230
|
...{
|
|
45195
47231
|
name: "LlIconBase"
|
|
45196
47232
|
},
|
|
@@ -45292,7 +47328,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
45292
47328
|
}
|
|
45293
47329
|
});
|
|
45294
47330
|
|
|
45295
|
-
var IconBase$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47331
|
+
var IconBase$1 = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__file", "icon-base.vue"]]);
|
|
45296
47332
|
|
|
45297
47333
|
const LlIconBase = withInstall(IconBase$1);
|
|
45298
47334
|
|
|
@@ -45350,7 +47386,7 @@ const iconPickerSearchEmits = {
|
|
|
45350
47386
|
handleModalVisible: (bool) => !!bool
|
|
45351
47387
|
};
|
|
45352
47388
|
|
|
45353
|
-
var _sfc_main$
|
|
47389
|
+
var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
45354
47390
|
...{
|
|
45355
47391
|
name: "LlIconPickerSearch"
|
|
45356
47392
|
},
|
|
@@ -45401,9 +47437,9 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
45401
47437
|
}
|
|
45402
47438
|
});
|
|
45403
47439
|
|
|
45404
|
-
var search = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47440
|
+
var search = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__file", "search.vue"]]);
|
|
45405
47441
|
|
|
45406
|
-
var _sfc_main$
|
|
47442
|
+
var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
45407
47443
|
...{
|
|
45408
47444
|
name: "LlIconPickerModal"
|
|
45409
47445
|
},
|
|
@@ -45552,9 +47588,9 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
45552
47588
|
}
|
|
45553
47589
|
});
|
|
45554
47590
|
|
|
45555
|
-
var modal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47591
|
+
var modal = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__file", "modal.vue"]]);
|
|
45556
47592
|
|
|
45557
|
-
var _sfc_main$
|
|
47593
|
+
var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
45558
47594
|
...{
|
|
45559
47595
|
name: "LlIconPicker"
|
|
45560
47596
|
},
|
|
@@ -45603,7 +47639,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
45603
47639
|
}
|
|
45604
47640
|
});
|
|
45605
47641
|
|
|
45606
|
-
var IconPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47642
|
+
var IconPicker = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__file", "icon-picker.vue"]]);
|
|
45607
47643
|
|
|
45608
47644
|
const LlIconPicker = withInstall(IconPicker);
|
|
45609
47645
|
|
|
@@ -45634,7 +47670,7 @@ const inputProps = buildProps({
|
|
|
45634
47670
|
}
|
|
45635
47671
|
});
|
|
45636
47672
|
|
|
45637
|
-
var _sfc_main$
|
|
47673
|
+
var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
45638
47674
|
...{ name: "LlInput" },
|
|
45639
47675
|
__name: "input",
|
|
45640
47676
|
props: inputProps,
|
|
@@ -45693,7 +47729,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
45693
47729
|
}
|
|
45694
47730
|
});
|
|
45695
47731
|
|
|
45696
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47732
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__file", "input.vue"]]);
|
|
45697
47733
|
|
|
45698
47734
|
const LlInput = withInstall(Input);
|
|
45699
47735
|
|
|
@@ -45770,7 +47806,7 @@ const integerDict = {
|
|
|
45770
47806
|
const _hoisted_1$4 = ["title"];
|
|
45771
47807
|
const _hoisted_2$2 = { key: 0 };
|
|
45772
47808
|
const _hoisted_3$1 = { key: 1 };
|
|
45773
|
-
var _sfc_main$
|
|
47809
|
+
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
45774
47810
|
...{ name: "LlInputNumber" },
|
|
45775
47811
|
__name: "input-number",
|
|
45776
47812
|
props: inputNumberProps,
|
|
@@ -45910,7 +47946,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
45910
47946
|
}
|
|
45911
47947
|
});
|
|
45912
47948
|
|
|
45913
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
47949
|
+
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__file", "input-number.vue"]]);
|
|
45914
47950
|
|
|
45915
47951
|
const LlInputNumber = withInstall(InputNumber);
|
|
45916
47952
|
|
|
@@ -46019,7 +48055,7 @@ const keyValueItemEmits = {
|
|
|
46019
48055
|
"update:value": (value) => !!value
|
|
46020
48056
|
};
|
|
46021
48057
|
|
|
46022
|
-
var _sfc_main$
|
|
48058
|
+
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
46023
48059
|
...{
|
|
46024
48060
|
name: "LlKeyValueItem"
|
|
46025
48061
|
},
|
|
@@ -46030,7 +48066,6 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
46030
48066
|
const props = __props;
|
|
46031
48067
|
const emits = __emit;
|
|
46032
48068
|
const attrs = useAttrs();
|
|
46033
|
-
console.log({ attrs });
|
|
46034
48069
|
const bem = createNamespace("key-value");
|
|
46035
48070
|
const innerValue = ref(props.value);
|
|
46036
48071
|
const getKeyType = computed(() => {
|
|
@@ -46259,9 +48294,9 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
46259
48294
|
}
|
|
46260
48295
|
});
|
|
46261
48296
|
|
|
46262
|
-
var keyValueItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48297
|
+
var keyValueItem = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "key-value-item.vue"]]);
|
|
46263
48298
|
|
|
46264
|
-
var _sfc_main$
|
|
48299
|
+
var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
46265
48300
|
...{ name: "LlKeyValue" },
|
|
46266
48301
|
__name: "key-value",
|
|
46267
48302
|
props: keyValueProps,
|
|
@@ -46388,7 +48423,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
46388
48423
|
}
|
|
46389
48424
|
});
|
|
46390
48425
|
|
|
46391
|
-
var KeyValue = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48426
|
+
var KeyValue = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__file", "key-value.vue"]]);
|
|
46392
48427
|
|
|
46393
48428
|
const LlKeyValue = withInstall(KeyValue);
|
|
46394
48429
|
|
|
@@ -46476,7 +48511,7 @@ const modalEmits = {
|
|
|
46476
48511
|
"update:open": () => true
|
|
46477
48512
|
};
|
|
46478
48513
|
|
|
46479
|
-
var _sfc_main$
|
|
48514
|
+
var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
46480
48515
|
...{ name: "LlModal" },
|
|
46481
48516
|
__name: "modal",
|
|
46482
48517
|
props: modalProps,
|
|
@@ -46489,9 +48524,15 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
46489
48524
|
const modal = ref();
|
|
46490
48525
|
const hasScroll = ref(false);
|
|
46491
48526
|
const symbolClass = ref(`ll-modal-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
46492
|
-
const getBindValue = computed(() =>
|
|
46493
|
-
|
|
46494
|
-
|
|
48527
|
+
const getBindValue = computed(() => {
|
|
48528
|
+
const result = {
|
|
48529
|
+
...omit({ ...attrs }, [...Object.keys(modalProps), "wrapClassName"])
|
|
48530
|
+
};
|
|
48531
|
+
if (props.showFooter === false) {
|
|
48532
|
+
result.footer = null;
|
|
48533
|
+
}
|
|
48534
|
+
return result;
|
|
48535
|
+
});
|
|
46495
48536
|
const handleCancel = () => {
|
|
46496
48537
|
emits("cancel");
|
|
46497
48538
|
emits("update:open");
|
|
@@ -46568,10 +48609,188 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
46568
48609
|
}
|
|
46569
48610
|
});
|
|
46570
48611
|
|
|
46571
|
-
var Modal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48612
|
+
var Modal = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__file", "modal.vue"]]);
|
|
46572
48613
|
|
|
46573
48614
|
const LlModal = withInstall(Modal);
|
|
46574
48615
|
|
|
48616
|
+
const numberRangeProps = buildProps({
|
|
48617
|
+
value: {
|
|
48618
|
+
type: definePropType(Array),
|
|
48619
|
+
default: () => []
|
|
48620
|
+
},
|
|
48621
|
+
min: Number,
|
|
48622
|
+
max: Number,
|
|
48623
|
+
precision: {
|
|
48624
|
+
type: definePropType(Number)
|
|
48625
|
+
},
|
|
48626
|
+
disabled: {
|
|
48627
|
+
type: Boolean,
|
|
48628
|
+
default: false
|
|
48629
|
+
},
|
|
48630
|
+
placeholder: {
|
|
48631
|
+
type: Array,
|
|
48632
|
+
default: () => ["\u6700\u5C0F\u503C", "\u6700\u5927\u503C"]
|
|
48633
|
+
}
|
|
48634
|
+
});
|
|
48635
|
+
const numberRangeEmits = {
|
|
48636
|
+
change: (value) => !!value,
|
|
48637
|
+
"update:value": (value) => !!value
|
|
48638
|
+
};
|
|
48639
|
+
|
|
48640
|
+
var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
48641
|
+
...{ name: "LlNumberRange" },
|
|
48642
|
+
__name: "number-range",
|
|
48643
|
+
props: numberRangeProps,
|
|
48644
|
+
emits: numberRangeEmits,
|
|
48645
|
+
setup(__props, { emit: __emit }) {
|
|
48646
|
+
const props = __props;
|
|
48647
|
+
const emits = __emit;
|
|
48648
|
+
const bem = createNamespace("number-range");
|
|
48649
|
+
const minValue = ref(null);
|
|
48650
|
+
const maxValue = ref(null);
|
|
48651
|
+
const { defaultSeed } = theme;
|
|
48652
|
+
const computedHeight = computed(() => {
|
|
48653
|
+
return `${defaultSeed.controlHeight}px`;
|
|
48654
|
+
});
|
|
48655
|
+
const setValue = () => {
|
|
48656
|
+
const arr = [minValue.value, maxValue.value];
|
|
48657
|
+
emits("change", arr);
|
|
48658
|
+
emits("update:value", arr);
|
|
48659
|
+
};
|
|
48660
|
+
const handleMinChange = (e) => {
|
|
48661
|
+
if (!!e || e.value === 0) {
|
|
48662
|
+
minValue.value = e;
|
|
48663
|
+
} else {
|
|
48664
|
+
minValue.value = null;
|
|
48665
|
+
}
|
|
48666
|
+
setValue();
|
|
48667
|
+
};
|
|
48668
|
+
const handleMaxChange = (e) => {
|
|
48669
|
+
if (!!e || e.value === 0) {
|
|
48670
|
+
maxValue.value = e;
|
|
48671
|
+
} else {
|
|
48672
|
+
minValue.value = null;
|
|
48673
|
+
}
|
|
48674
|
+
setValue();
|
|
48675
|
+
};
|
|
48676
|
+
const handleMaxBlur = () => {
|
|
48677
|
+
if (minValue.value || minValue.value === 0) {
|
|
48678
|
+
if (maxValue.value && maxValue.value < minValue.value) {
|
|
48679
|
+
maxValue.value = minValue.value;
|
|
48680
|
+
}
|
|
48681
|
+
}
|
|
48682
|
+
setValue();
|
|
48683
|
+
};
|
|
48684
|
+
const handleMinBlur = () => {
|
|
48685
|
+
if (maxValue.value || maxValue.value === 0) {
|
|
48686
|
+
if (minValue.value && minValue.value > maxValue.value) {
|
|
48687
|
+
minValue.value = maxValue.value;
|
|
48688
|
+
}
|
|
48689
|
+
}
|
|
48690
|
+
setValue();
|
|
48691
|
+
};
|
|
48692
|
+
watch(
|
|
48693
|
+
() => props.value,
|
|
48694
|
+
(n) => {
|
|
48695
|
+
if (n && n.length) {
|
|
48696
|
+
if (n[0] || n[0] === 0) {
|
|
48697
|
+
minValue.value = n[0];
|
|
48698
|
+
} else {
|
|
48699
|
+
minValue.value = null;
|
|
48700
|
+
}
|
|
48701
|
+
if (n[1] || n[1] === 0) {
|
|
48702
|
+
maxValue.value = n[1];
|
|
48703
|
+
} else {
|
|
48704
|
+
maxValue.value = null;
|
|
48705
|
+
}
|
|
48706
|
+
}
|
|
48707
|
+
}
|
|
48708
|
+
);
|
|
48709
|
+
return (_ctx, _cache) => {
|
|
48710
|
+
return openBlock(), createElementBlock(
|
|
48711
|
+
"div",
|
|
48712
|
+
{
|
|
48713
|
+
class: normalizeClass(unref(bem).b()),
|
|
48714
|
+
style: normalizeStyle({
|
|
48715
|
+
height: `${computedHeight.value}`
|
|
48716
|
+
})
|
|
48717
|
+
},
|
|
48718
|
+
[
|
|
48719
|
+
createElementVNode(
|
|
48720
|
+
"div",
|
|
48721
|
+
{
|
|
48722
|
+
class: normalizeClass(unref(bem).m("input"))
|
|
48723
|
+
},
|
|
48724
|
+
[
|
|
48725
|
+
createVNode(unref(LlInputNumber), {
|
|
48726
|
+
value: minValue.value,
|
|
48727
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => minValue.value = $event),
|
|
48728
|
+
placeholder: _ctx.placeholder[0],
|
|
48729
|
+
precision: props.precision,
|
|
48730
|
+
min: props.min,
|
|
48731
|
+
max: props.max,
|
|
48732
|
+
disabled: props.disabled,
|
|
48733
|
+
controls: false,
|
|
48734
|
+
bordered: false,
|
|
48735
|
+
style: { "width": "100%" },
|
|
48736
|
+
onChange: handleMinChange,
|
|
48737
|
+
onBlur: handleMinBlur
|
|
48738
|
+
}, null, 8, ["value", "placeholder", "precision", "min", "max", "disabled"])
|
|
48739
|
+
],
|
|
48740
|
+
2
|
|
48741
|
+
/* CLASS */
|
|
48742
|
+
),
|
|
48743
|
+
createCommentVNode(" \u5DE6\u8FB9InputNumber "),
|
|
48744
|
+
createElementVNode(
|
|
48745
|
+
"span",
|
|
48746
|
+
{
|
|
48747
|
+
class: normalizeClass(unref(bem).m("separator"))
|
|
48748
|
+
},
|
|
48749
|
+
[
|
|
48750
|
+
renderSlot(_ctx.$slots, "separator", {}, () => [
|
|
48751
|
+
createTextVNode(" - ")
|
|
48752
|
+
])
|
|
48753
|
+
],
|
|
48754
|
+
2
|
|
48755
|
+
/* CLASS */
|
|
48756
|
+
),
|
|
48757
|
+
createCommentVNode(" \u53F3\u8FB9InputNumber "),
|
|
48758
|
+
createElementVNode(
|
|
48759
|
+
"div",
|
|
48760
|
+
{
|
|
48761
|
+
class: normalizeClass(unref(bem).m("input"))
|
|
48762
|
+
},
|
|
48763
|
+
[
|
|
48764
|
+
createVNode(unref(LlInputNumber), {
|
|
48765
|
+
value: maxValue.value,
|
|
48766
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => maxValue.value = $event),
|
|
48767
|
+
placeholder: _ctx.placeholder[1],
|
|
48768
|
+
precision: props.precision,
|
|
48769
|
+
min: props.min,
|
|
48770
|
+
max: props.max,
|
|
48771
|
+
disabled: props.disabled,
|
|
48772
|
+
controls: false,
|
|
48773
|
+
bordered: false,
|
|
48774
|
+
style: { "width": "100%" },
|
|
48775
|
+
onChange: handleMaxChange,
|
|
48776
|
+
onBlur: handleMaxBlur
|
|
48777
|
+
}, null, 8, ["value", "placeholder", "precision", "min", "max", "disabled"])
|
|
48778
|
+
],
|
|
48779
|
+
2
|
|
48780
|
+
/* CLASS */
|
|
48781
|
+
)
|
|
48782
|
+
],
|
|
48783
|
+
6
|
|
48784
|
+
/* CLASS, STYLE */
|
|
48785
|
+
);
|
|
48786
|
+
};
|
|
48787
|
+
}
|
|
48788
|
+
});
|
|
48789
|
+
|
|
48790
|
+
var NumberRange = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__file", "number-range.vue"]]);
|
|
48791
|
+
|
|
48792
|
+
const LlNumberRange = withInstall(NumberRange);
|
|
48793
|
+
|
|
46575
48794
|
const operateIconProps = buildProps({
|
|
46576
48795
|
/**
|
|
46577
48796
|
* @description 监听dropdown是否打开和关闭
|
|
@@ -56695,6 +58914,9 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
56695
58914
|
})
|
|
56696
58915
|
])
|
|
56697
58916
|
]),
|
|
58917
|
+
expandedRowRender: withCtx((slots) => [
|
|
58918
|
+
renderSlot(_ctx.$slots, "expandedRowRender", normalizeProps(guardReactiveProps(slots)))
|
|
58919
|
+
]),
|
|
56698
58920
|
_: 3
|
|
56699
58921
|
/* FORWARDED */
|
|
56700
58922
|
}, 16, ["class", "columns", "data-source", "expanded-row-keys", "custom-row", "scroll", "onChange", "onExpandedRowsChange"]);
|
|
@@ -56832,6 +59054,9 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
56832
59054
|
emptyText: withCtx(() => [
|
|
56833
59055
|
renderSlot(_ctx.$slots, "emptyText")
|
|
56834
59056
|
]),
|
|
59057
|
+
expandedRowRender: withCtx((slots) => [
|
|
59058
|
+
renderSlot(_ctx.$slots, "expandedRowRender", normalizeProps(guardReactiveProps(slots)))
|
|
59059
|
+
]),
|
|
56835
59060
|
_: 3
|
|
56836
59061
|
/* FORWARDED */
|
|
56837
59062
|
},
|
|
@@ -63848,6 +66073,7 @@ var Components = [
|
|
|
63848
66073
|
LlAdvancedFiltering,
|
|
63849
66074
|
LlAdvancedFilteringParams,
|
|
63850
66075
|
LlAdvancedFilteringTags,
|
|
66076
|
+
LlApiComponent,
|
|
63851
66077
|
LlAvatar,
|
|
63852
66078
|
LlButton,
|
|
63853
66079
|
LlCascader,
|
|
@@ -63870,6 +66096,7 @@ var Components = [
|
|
|
63870
66096
|
LlInputNumber,
|
|
63871
66097
|
LlKeyValue,
|
|
63872
66098
|
LlModal,
|
|
66099
|
+
LlNumberRange,
|
|
63873
66100
|
LlOperateIcon,
|
|
63874
66101
|
LlOperateTree,
|
|
63875
66102
|
LlRadio,
|
|
@@ -63901,4 +66128,4 @@ var installer = makeInstaller([...Components]);
|
|
|
63901
66128
|
|
|
63902
66129
|
const install = installer.install;
|
|
63903
66130
|
|
|
63904
|
-
export { ILlUploadDragProps, ImenuSwitchType, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlAvatar, LlButton, LlCascader, LlCheckbox, LlCheckboxGroup, LlCodeEditor, LlConfigProvider, LlDatePicker, LlDateRange, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlDropdownButton, LlEmpty, LlForm, LlFormComponent, LlFormItem, LlIcon, LlIconBase, LlIconPicker, LlInput, LlInputNumber, LlKeyValue, LlModal, LlOperateIcon, LlOperateTree, LlRadio, LlRadioButton, LlRadioGroup, LlSecondConfirmation, LlSegmented, LlSelect, LlSelectGroup, LlSelectOptGroup, LlSelectOption, LlSpace, LlSteps, LlSwitch, LlTable, LlTabsSimple, LlTagGroup, LlTextarea, LlTimePicker, LlTimeRange, LlTooltip, LlTree, LlTreeSearch, LlUploadDrag, OperateTreeEmits, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, avatarEmits, avatarProps, avatarType, buttonProps, checkboxGroupProps, checkboxProps, checkedType, codeEditorEmits, codeEditorProps, codeThemeList, installer as default, defaultOptions, descriptionsItemProps, descriptionsProps, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownEmits, dropdownProps, emptyProps, formColumns, formComponentProps, formOptions, formProps, getKeyValueItem, iconBaseProps, iconPickerModalEmits, iconPickerModalProps, iconPickerProps, iconPickerSearchEmits, iconPickerSearchProps, iconProps, iconTypes, inputNumberEmits, inputNumberProps, inputProps, install, keyValueEmits, keyValueItemEmits, keyValueItemProps, keyValueProps, mainTableEmits, mainTableProps, menuSwitchRadioList, modalEmits, modalProps, operateIconEmits, operateIconProps, operateTreeEmits, operateTreeProps, placement, secondConfirmationProps, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectOptGroupProps, selectOptionProps, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleEmits, tabsSimpleProps, tagGroupEmits, tagGroupProps, tooltipProps, treeEmits, treeProps, treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, typeRules, url, useSecondConfirmation };
|
|
66131
|
+
export { DEFAULT_METHOD, DEFAULT_TYPE, ILlUploadDragProps, ImenuSwitchType, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlApiComponent, LlAvatar, LlButton, LlCascader, LlCheckbox, LlCheckboxGroup, LlCodeEditor, LlConfigProvider, LlDatePicker, LlDateRange, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlDropdownButton, LlEmpty, LlForm, LlFormComponent, LlFormItem, LlIcon, LlIconBase, LlIconPicker, LlInput, LlInputNumber, LlKeyValue, LlModal, LlNumberRange, LlOperateIcon, LlOperateTree, LlRadio, LlRadioButton, LlRadioGroup, LlSecondConfirmation, LlSegmented, LlSelect, LlSelectGroup, LlSelectOptGroup, LlSelectOption, LlSpace, LlSteps, LlSwitch, LlTable, LlTabsSimple, LlTagGroup, LlTextarea, LlTimePicker, LlTimeRange, LlTooltip, LlTree, LlTreeSearch, LlUploadDrag, OperateTreeEmits, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyList, buttonProps, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, customOverlay, installer as default, defaultOptions, descriptionsItemProps, descriptionsProps, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownEmits, dropdownProps, emptyProps, formColumns, formComponentProps, formOptions, formProps, formdataTableColumns, getKeyValueItem, headersTableColumns, iconBaseProps, iconPickerModalEmits, iconPickerModalProps, iconPickerProps, iconPickerSearchEmits, iconPickerSearchProps, iconProps, iconTypes, inputNumberEmits, inputNumberProps, inputProps, install, jsonTableColumns, jsonXmlEmits, jsonXmlOptions, jsonXmlProps, jsonXmlTableEmits, jsonXmlTableProps, jsonXmlTableRowEmits, jsonXmlTableRowProps, jsonXmlTypeOptions, keyValueEmits, keyValueItemEmits, keyValueItemProps, keyValueProps, mainTableEmits, mainTableProps, menuSwitchRadioList, methods, modalEmits, modalProps, numberRangeEmits, numberRangeProps, operateIconEmits, operateIconProps, operateTreeEmits, operateTreeProps, paramsOptions, paramsTableColumns, paramsTableEmits, paramsTableProps, paramsTableRowProps, placement, requestList, secondConfirmationProps, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectOptGroupProps, selectOptionProps, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleEmits, tabsSimpleProps, tagGroupEmits, tagGroupProps, tooltipProps, treeEmits, treeProps, treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, typeRules, url, useSecondConfirmation };
|