ll-plus 2.3.7 → 2.3.9

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.
Files changed (155) hide show
  1. package/es/components/api-component/index.d.ts +416 -174
  2. package/es/components/api-component/index.mjs +1 -0
  3. package/es/components/api-component/index.mjs.map +1 -1
  4. package/es/components/api-component/src/api-component.vue.d.ts +416 -174
  5. package/es/components/api-component/src/api-component.vue2.mjs +14 -65
  6. package/es/components/api-component/src/api-component.vue2.mjs.map +1 -1
  7. package/es/components/api-component/src/components/api-url.vue.d.ts +12 -38
  8. package/es/components/api-component/src/components/body-component.vue.d.ts +393 -0
  9. package/es/components/api-component/src/components/body-component.vue.mjs +8 -0
  10. package/es/components/api-component/src/components/body-component.vue.mjs.map +1 -0
  11. package/es/components/api-component/src/components/body-component.vue2.mjs +126 -0
  12. package/es/components/api-component/src/components/body-component.vue2.mjs.map +1 -0
  13. package/es/components/api-component/src/components/json-xml-table-row.vue.d.ts +5 -2
  14. package/es/components/api-component/src/components/json-xml-table-row.vue2.mjs +10 -4
  15. package/es/components/api-component/src/components/json-xml-table-row.vue2.mjs.map +1 -1
  16. package/es/components/api-component/src/components/json-xml-table.vue.d.ts +14 -1
  17. package/es/components/api-component/src/components/json-xml-table.vue2.mjs +16 -5
  18. package/es/components/api-component/src/components/json-xml-table.vue2.mjs.map +1 -1
  19. package/es/components/api-component/src/components/json-xml.vue.d.ts +19 -2
  20. package/es/components/api-component/src/components/json-xml.vue2.mjs +18 -22
  21. package/es/components/api-component/src/components/json-xml.vue2.mjs.map +1 -1
  22. package/es/components/api-component/src/config/api-component.d.ts +8 -12
  23. package/es/components/api-component/src/config/api-component.mjs +4 -6
  24. package/es/components/api-component/src/config/api-component.mjs.map +1 -1
  25. package/es/components/api-component/src/config/api-url.d.ts +4 -6
  26. package/es/components/api-component/src/config/api-url.mjs +4 -6
  27. package/es/components/api-component/src/config/api-url.mjs.map +1 -1
  28. package/es/components/api-component/src/config/body.d.ts +19 -0
  29. package/es/components/api-component/src/config/body.mjs +30 -0
  30. package/es/components/api-component/src/config/body.mjs.map +1 -0
  31. package/es/components/api-component/src/config/index.d.ts +1 -0
  32. package/es/components/api-component/src/config/index.mjs +1 -0
  33. package/es/components/api-component/src/config/index.mjs.map +1 -1
  34. package/es/components/api-component/src/config/json-xml.d.ts +9 -1
  35. package/es/components/api-component/src/config/json-xml.mjs +12 -1
  36. package/es/components/api-component/src/config/json-xml.mjs.map +1 -1
  37. package/es/components/code-editor/index.d.ts +6 -6
  38. package/es/components/code-editor/src/code-editor.vue.d.ts +6 -6
  39. package/es/components/code-editor/src/config/code-editor.d.ts +2 -2
  40. package/es/components/code-editor/src/config/code-editor.mjs +1 -1
  41. package/es/components/code-editor/src/config/code-editor.mjs.map +1 -1
  42. package/es/components/index.mjs +1 -0
  43. package/es/components/index.mjs.map +1 -1
  44. package/es/components/operate-icon/index.d.ts +1 -1
  45. package/es/components/operate-icon/src/operate-icon.vue.d.ts +1 -1
  46. package/es/components/tabs-simple/index.d.ts +4 -0
  47. package/es/components/tabs-simple/src/tabs-simple.d.ts +1 -0
  48. package/es/components/tabs-simple/src/tabs-simple.mjs +4 -0
  49. package/es/components/tabs-simple/src/tabs-simple.mjs.map +1 -1
  50. package/es/components/tabs-simple/src/tabs-simple.vue.d.ts +4 -0
  51. package/es/components/tabs-simple/src/tabs-simple.vue2.mjs +5 -1
  52. package/es/components/tabs-simple/src/tabs-simple.vue2.mjs.map +1 -1
  53. package/es/components/upload-image/index.d.ts +5 -0
  54. package/es/components/upload-image/src/upload-image.d.ts +1 -0
  55. package/es/components/upload-image/src/upload-image.mjs +4 -0
  56. package/es/components/upload-image/src/upload-image.mjs.map +1 -1
  57. package/es/components/upload-image/src/upload-image.vue.d.ts +5 -0
  58. package/es/components/upload-image/src/upload-image.vue2.mjs +56 -44
  59. package/es/components/upload-image/src/upload-image.vue2.mjs.map +1 -1
  60. package/es/index.mjs +1 -0
  61. package/es/index.mjs.map +1 -1
  62. package/index.full.js +607 -475
  63. package/index.full.min.js +25 -23
  64. package/index.full.min.js.map +1 -1
  65. package/index.full.min.mjs +24 -22
  66. package/index.full.min.mjs.map +1 -1
  67. package/index.full.mjs +607 -477
  68. package/lib/components/api-component/index.d.ts +416 -174
  69. package/lib/components/api-component/index.js +3 -0
  70. package/lib/components/api-component/index.js.map +1 -1
  71. package/lib/components/api-component/src/api-component.vue.d.ts +416 -174
  72. package/lib/components/api-component/src/api-component.vue2.js +11 -62
  73. package/lib/components/api-component/src/api-component.vue2.js.map +1 -1
  74. package/lib/components/api-component/src/components/api-url.vue.d.ts +12 -38
  75. package/lib/components/api-component/src/components/body-component.vue.d.ts +393 -0
  76. package/lib/components/api-component/src/components/body-component.vue.js +12 -0
  77. package/lib/components/api-component/src/components/body-component.vue.js.map +1 -0
  78. package/lib/components/api-component/src/components/body-component.vue2.js +130 -0
  79. package/lib/components/api-component/src/components/body-component.vue2.js.map +1 -0
  80. package/lib/components/api-component/src/components/json-xml-table-row.vue.d.ts +5 -2
  81. package/lib/components/api-component/src/components/json-xml-table-row.vue2.js +10 -4
  82. package/lib/components/api-component/src/components/json-xml-table-row.vue2.js.map +1 -1
  83. package/lib/components/api-component/src/components/json-xml-table.vue.d.ts +14 -1
  84. package/lib/components/api-component/src/components/json-xml-table.vue2.js +15 -4
  85. package/lib/components/api-component/src/components/json-xml-table.vue2.js.map +1 -1
  86. package/lib/components/api-component/src/components/json-xml.vue.d.ts +19 -2
  87. package/lib/components/api-component/src/components/json-xml.vue2.js +18 -22
  88. package/lib/components/api-component/src/components/json-xml.vue2.js.map +1 -1
  89. package/lib/components/api-component/src/config/api-component.d.ts +8 -12
  90. package/lib/components/api-component/src/config/api-component.js +4 -6
  91. package/lib/components/api-component/src/config/api-component.js.map +1 -1
  92. package/lib/components/api-component/src/config/api-url.d.ts +4 -6
  93. package/lib/components/api-component/src/config/api-url.js +4 -6
  94. package/lib/components/api-component/src/config/api-url.js.map +1 -1
  95. package/lib/components/api-component/src/config/body.d.ts +19 -0
  96. package/lib/components/api-component/src/config/body.js +33 -0
  97. package/lib/components/api-component/src/config/body.js.map +1 -0
  98. package/lib/components/api-component/src/config/index.d.ts +1 -0
  99. package/lib/components/api-component/src/config/index.js +3 -0
  100. package/lib/components/api-component/src/config/index.js.map +1 -1
  101. package/lib/components/api-component/src/config/json-xml.d.ts +9 -1
  102. package/lib/components/api-component/src/config/json-xml.js +12 -1
  103. package/lib/components/api-component/src/config/json-xml.js.map +1 -1
  104. package/lib/components/code-editor/index.d.ts +6 -6
  105. package/lib/components/code-editor/src/code-editor.vue.d.ts +6 -6
  106. package/lib/components/code-editor/src/config/code-editor.d.ts +2 -2
  107. package/lib/components/code-editor/src/config/code-editor.js +1 -1
  108. package/lib/components/code-editor/src/config/code-editor.js.map +1 -1
  109. package/lib/components/index.js +3 -0
  110. package/lib/components/index.js.map +1 -1
  111. package/lib/components/operate-icon/index.d.ts +1 -1
  112. package/lib/components/operate-icon/src/operate-icon.vue.d.ts +1 -1
  113. package/lib/components/tabs-simple/index.d.ts +4 -0
  114. package/lib/components/tabs-simple/src/tabs-simple.d.ts +1 -0
  115. package/lib/components/tabs-simple/src/tabs-simple.js +4 -0
  116. package/lib/components/tabs-simple/src/tabs-simple.js.map +1 -1
  117. package/lib/components/tabs-simple/src/tabs-simple.vue.d.ts +4 -0
  118. package/lib/components/tabs-simple/src/tabs-simple.vue2.js +5 -1
  119. package/lib/components/tabs-simple/src/tabs-simple.vue2.js.map +1 -1
  120. package/lib/components/upload-image/index.d.ts +5 -0
  121. package/lib/components/upload-image/src/upload-image.d.ts +1 -0
  122. package/lib/components/upload-image/src/upload-image.js +4 -0
  123. package/lib/components/upload-image/src/upload-image.js.map +1 -1
  124. package/lib/components/upload-image/src/upload-image.vue.d.ts +5 -0
  125. package/lib/components/upload-image/src/upload-image.vue2.js +55 -43
  126. package/lib/components/upload-image/src/upload-image.vue2.js.map +1 -1
  127. package/lib/index.js +3 -0
  128. package/lib/index.js.map +1 -1
  129. package/package.json +1 -1
  130. package/theme-chalk/css/api-component.css +1 -1
  131. package/theme-chalk/css/index.css +1 -1
  132. package/theme-chalk/css/tabs-simple.css +1 -1
  133. package/types/packages/components/api-component/index.d.ts +416 -174
  134. package/types/packages/components/api-component/src/api-component.vue.d.ts +416 -174
  135. package/types/packages/components/api-component/src/components/api-url.vue.d.ts +12 -38
  136. package/types/packages/components/api-component/src/components/body-component.vue.d.ts +393 -0
  137. package/types/packages/components/api-component/src/components/json-xml-table-row.vue.d.ts +5 -2
  138. package/types/packages/components/api-component/src/components/json-xml-table.vue.d.ts +14 -1
  139. package/types/packages/components/api-component/src/components/json-xml.vue.d.ts +19 -2
  140. package/types/packages/components/api-component/src/config/api-component.d.ts +8 -12
  141. package/types/packages/components/api-component/src/config/api-url.d.ts +4 -6
  142. package/types/packages/components/api-component/src/config/body.d.ts +19 -0
  143. package/types/packages/components/api-component/src/config/index.d.ts +1 -0
  144. package/types/packages/components/api-component/src/config/json-xml.d.ts +9 -1
  145. package/types/packages/components/code-editor/index.d.ts +6 -6
  146. package/types/packages/components/code-editor/src/code-editor.vue.d.ts +6 -6
  147. package/types/packages/components/code-editor/src/config/code-editor.d.ts +2 -2
  148. package/types/packages/components/operate-icon/index.d.ts +1 -1
  149. package/types/packages/components/operate-icon/src/operate-icon.vue.d.ts +1 -1
  150. package/types/packages/components/tabs-simple/index.d.ts +4 -0
  151. package/types/packages/components/tabs-simple/src/tabs-simple.d.ts +1 -0
  152. package/types/packages/components/tabs-simple/src/tabs-simple.vue.d.ts +4 -0
  153. package/types/packages/components/upload-image/index.d.ts +5 -0
  154. package/types/packages/components/upload-image/src/upload-image.d.ts +1 -0
  155. package/types/packages/components/upload-image/src/upload-image.vue.d.ts +5 -0
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, inject, computed, useAttrs, mergeProps, normalizeStyle, withDirectives, vShow, provide, normalizeProps, guardReactiveProps, renderSlot, createSlots, onBeforeUnmount, onMounted, createApp, nextTick, reactive, resolveDynamicComponent, getCurrentInstance, h, isRef, toRef, onUnmounted, toRefs } from 'vue';
1
+ import require$$0, { warn, defineComponent, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createVNode, createElementVNode, createElementBlock, createTextVNode, createCommentVNode, watchEffect, Fragment, renderList, toDisplayString, withModifiers, inject, computed, useAttrs, mergeProps, withDirectives, vShow, normalizeStyle, provide, normalizeProps, guardReactiveProps, renderSlot, createSlots, onBeforeUnmount, onMounted, createApp, nextTick, reactive, resolveDynamicComponent, getCurrentInstance, h, isRef, toRef, onUnmounted, toRefs } from 'vue';
2
2
  import { Form as Form$1, Button as Button$1, Cascader as Cascader$1, Checkbox as Checkbox$1, Row, Col, DatePicker as DatePicker$1, RangePicker, theme, Drawer as Drawer$1, InputNumber as InputNumber$1, RadioGroup as RadioGroup$1, Radio as Radio$1, CheckboxGroup as CheckboxGroup$1, Select as Select$1, Tabs, TabPane, InputSearch, FormItem as FormItem$1, Input as Input$1, Modal as Modal$1, RadioButton as RadioButton$1, Segmented as Segmented$1, SelectOption as SelectOption$1, SelectOptGroup as SelectOptGroup$1, Steps as Steps$1, Switch as Switch$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
  import require$$1$1 from 'fs';
@@ -1723,7 +1723,7 @@ const _hoisted_1$l = /* @__PURE__ */ createElementVNode(
1723
1723
  const _hoisted_2$d = [
1724
1724
  _hoisted_1$l
1725
1725
  ];
1726
- var _sfc_main$1i = /* @__PURE__ */ defineComponent({
1726
+ var _sfc_main$1j = /* @__PURE__ */ defineComponent({
1727
1727
  ...{ name: "LlAdvancedFilteringParams" },
1728
1728
  __name: "advanced-filtering-params",
1729
1729
  props: advancedFilteringParamsProps,
@@ -1835,7 +1835,7 @@ var _export_sfc = (sfc, props) => {
1835
1835
  return target;
1836
1836
  };
1837
1837
 
1838
- var AdvancedFilteringParams = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__file", "advanced-filtering-params.vue"]]);
1838
+ var AdvancedFilteringParams = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__file", "advanced-filtering-params.vue"]]);
1839
1839
 
1840
1840
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1841
1841
 
@@ -2180,7 +2180,7 @@ const _hoisted_3$9 = /* @__PURE__ */ createElementVNode(
2180
2180
  const _hoisted_4$7 = [
2181
2181
  _hoisted_3$9
2182
2182
  ];
2183
- var _sfc_main$1h = /* @__PURE__ */ defineComponent({
2183
+ var _sfc_main$1i = /* @__PURE__ */ defineComponent({
2184
2184
  ...{ name: "LlAdvancedFilteringTags" },
2185
2185
  __name: "advanced-filtering-tags",
2186
2186
  props: advancedFilteringProps,
@@ -2397,7 +2397,7 @@ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
2397
2397
  }
2398
2398
  });
2399
2399
 
2400
- var AdvancedFilteringTags = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__file", "advanced-filtering-tags.vue"]]);
2400
+ var AdvancedFilteringTags = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__file", "advanced-filtering-tags.vue"]]);
2401
2401
 
2402
2402
  const _hoisted_1$j = /* @__PURE__ */ createElementVNode(
2403
2403
  "span",
@@ -2406,7 +2406,7 @@ const _hoisted_1$j = /* @__PURE__ */ createElementVNode(
2406
2406
  -1
2407
2407
  /* HOISTED */
2408
2408
  );
2409
- var _sfc_main$1g = /* @__PURE__ */ defineComponent({
2409
+ var _sfc_main$1h = /* @__PURE__ */ defineComponent({
2410
2410
  ...{ name: "LlAdvancedFiltering" },
2411
2411
  __name: "advanced-filtering",
2412
2412
  props: advancedFilteringProps,
@@ -2503,7 +2503,7 @@ var _sfc_main$1g = /* @__PURE__ */ defineComponent({
2503
2503
  }
2504
2504
  });
2505
2505
 
2506
- var AdvancedFiltering = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__file", "advanced-filtering.vue"]]);
2506
+ var AdvancedFiltering = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__file", "advanced-filtering.vue"]]);
2507
2507
 
2508
2508
  const LlAdvancedFiltering = withInstall(AdvancedFiltering);
2509
2509
  const LlAdvancedFilteringParams = withInstall(AdvancedFilteringParams);
@@ -2559,12 +2559,10 @@ const apiComponentProps = buildProps({
2559
2559
  requestParams: [],
2560
2560
  headerParams: [],
2561
2561
  bodyParams: {
2562
- none: null,
2563
- "form-data": [],
2564
- json: [],
2565
- xml: [],
2566
- raw: "",
2567
- "x-www-form-urlencoded": []
2562
+ type: "none",
2563
+ parameters: [],
2564
+ jsonSchema: [],
2565
+ description: ""
2568
2566
  }
2569
2567
  })
2570
2568
  },
@@ -2646,12 +2644,10 @@ const apiUrlProps = buildProps({
2646
2644
  requestParams: [],
2647
2645
  headerParams: [],
2648
2646
  bodyParams: {
2649
- none: null,
2650
- "form-data": [],
2651
- json: [],
2652
- xml: [],
2653
- raw: "",
2654
- "x-www-form-urlencoded": []
2647
+ type: "none",
2648
+ parameters: [],
2649
+ jsonSchema: [],
2650
+ description: ""
2655
2651
  }
2656
2652
  })
2657
2653
  }
@@ -2804,6 +2800,10 @@ const jsonXmlProps = buildProps({
2804
2800
  type: Object,
2805
2801
  default: () => {
2806
2802
  }
2803
+ },
2804
+ type: {
2805
+ type: definePropType(String),
2806
+ default: "json"
2807
2807
  }
2808
2808
  });
2809
2809
  const jsonXmlEmits = {
@@ -2813,6 +2813,9 @@ const jsonXmlTableProps = buildProps({
2813
2813
  dataSource: {
2814
2814
  type: definePropType(Array),
2815
2815
  default: () => []
2816
+ },
2817
+ type: {
2818
+ type: definePropType(String)
2816
2819
  }
2817
2820
  });
2818
2821
  const jsonXmlTableEmits = {
@@ -2824,6 +2827,10 @@ const jsonXmlTableRowProps = buildProps({
2824
2827
  default: () => {
2825
2828
  }
2826
2829
  },
2830
+ list: {
2831
+ type: definePropType(Array),
2832
+ default: () => []
2833
+ },
2827
2834
  parentData: {
2828
2835
  type: definePropType(Object),
2829
2836
  default: () => null
@@ -2838,7 +2845,7 @@ const jsonXmlTableRowProps = buildProps({
2838
2845
  }
2839
2846
  });
2840
2847
  const jsonXmlTableRowEmits = {
2841
- change: () => true
2848
+ change: (val) => !!val
2842
2849
  };
2843
2850
 
2844
2851
  const paramsOptions = [
@@ -3025,7 +3032,29 @@ const formdataTableColumns = [
3025
3032
  }
3026
3033
  ];
3027
3034
 
3028
- var _sfc_main$1f = /* @__PURE__ */ defineComponent({
3035
+ const bodyProps = buildProps({
3036
+ value: {
3037
+ type: definePropType(Object),
3038
+ default: () => ({
3039
+ url: "",
3040
+ method: DEFAULT_METHOD,
3041
+ requestParams: [],
3042
+ headerParams: [],
3043
+ bodyParams: {
3044
+ type: "none",
3045
+ parameters: [],
3046
+ jsonSchema: [],
3047
+ description: ""
3048
+ }
3049
+ })
3050
+ }
3051
+ });
3052
+ const bodyEmits = {
3053
+ "update:value": (params) => !!params,
3054
+ change: (params) => !!params
3055
+ };
3056
+
3057
+ var _sfc_main$1g = /* @__PURE__ */ defineComponent({
3029
3058
  __name: "api-url",
3030
3059
  props: apiUrlProps,
3031
3060
  emits: apiUrlEmits,
@@ -3077,7 +3106,7 @@ var _sfc_main$1f = /* @__PURE__ */ defineComponent({
3077
3106
  }
3078
3107
  });
3079
3108
 
3080
- var ApiUrl = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__file", "api-url.vue"]]);
3109
+ var ApiUrl = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__file", "api-url.vue"]]);
3081
3110
 
3082
3111
  const _hoisted_1$i = /* @__PURE__ */ createElementVNode(
3083
3112
  "a",
@@ -3086,7 +3115,7 @@ const _hoisted_1$i = /* @__PURE__ */ createElementVNode(
3086
3115
  -1
3087
3116
  /* HOISTED */
3088
3117
  );
3089
- var _sfc_main$1e = /* @__PURE__ */ defineComponent({
3118
+ var _sfc_main$1f = /* @__PURE__ */ defineComponent({
3090
3119
  ...{ name: "LlBatchEditing" },
3091
3120
  __name: "batch-editing",
3092
3121
  props: batchEditingProps,
@@ -3170,9 +3199,9 @@ var _sfc_main$1e = /* @__PURE__ */ defineComponent({
3170
3199
  }
3171
3200
  });
3172
3201
 
3173
- var batchEditing = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__file", "batch-editing.vue"]]);
3202
+ var batchEditing = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__file", "batch-editing.vue"]]);
3174
3203
 
3175
- var _sfc_main$1d = /* @__PURE__ */ defineComponent({
3204
+ var _sfc_main$1e = /* @__PURE__ */ defineComponent({
3176
3205
  ...{ name: "LlApiModal" },
3177
3206
  __name: "api-modal",
3178
3207
  props: apiModalProps,
@@ -3232,9 +3261,9 @@ var _sfc_main$1d = /* @__PURE__ */ defineComponent({
3232
3261
  }
3233
3262
  });
3234
3263
 
3235
- var ApiModal = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__file", "api-modal.vue"]]);
3264
+ var ApiModal = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__file", "api-modal.vue"]]);
3236
3265
 
3237
- var _sfc_main$1c = /* @__PURE__ */ defineComponent({
3266
+ var _sfc_main$1d = /* @__PURE__ */ defineComponent({
3238
3267
  ...{ name: "LlClickInput" },
3239
3268
  __name: "click-input",
3240
3269
  props: clickInputProps,
@@ -3300,9 +3329,343 @@ var _sfc_main$1c = /* @__PURE__ */ defineComponent({
3300
3329
  }
3301
3330
  });
3302
3331
 
3303
- var ClickInput = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__file", "click-input.vue"]]);
3332
+ var ClickInput = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__file", "click-input.vue"]]);
3333
+
3334
+ var _sfc_main$1c = /* @__PURE__ */ defineComponent({
3335
+ ...{ name: "LlParamsTableRow" },
3336
+ __name: "params-table-row",
3337
+ props: paramsTableRowProps,
3338
+ setup(__props) {
3339
+ const props = __props;
3340
+ const bem = createNamespace("params-table");
3341
+ const disabled = inject("disabled");
3342
+ const innerData = ref(props.data);
3343
+ const handleDelete = (list, data) => {
3344
+ const index = list.findIndex((item) => item.name === data.name);
3345
+ list.splice(index, 1);
3346
+ };
3347
+ return (_ctx, _cache) => {
3348
+ const _component_ll_input = resolveComponent("ll-input");
3349
+ const _component_ll_icon = resolveComponent("ll-icon");
3350
+ const _component_ll_button = resolveComponent("ll-button");
3351
+ const _component_ll_select = resolveComponent("ll-select");
3352
+ const _component_ll_switch = resolveComponent("ll-switch");
3353
+ const _component_a_auto_complete = resolveComponent("a-auto-complete");
3354
+ const _component_a_col = resolveComponent("a-col");
3355
+ const _component_a_row = resolveComponent("a-row");
3356
+ const _component_a_popconfirm = resolveComponent("a-popconfirm");
3357
+ return openBlock(), createElementBlock("div", null, [
3358
+ createVNode(_component_a_row, {
3359
+ gutter: 20,
3360
+ class: normalizeClass(unref(bem).e("table-row"))
3361
+ }, {
3362
+ default: withCtx(() => [
3363
+ createVNode(_component_a_col, { span: 22 }, {
3364
+ default: withCtx(() => [
3365
+ createVNode(_component_a_row, { gutter: 20 }, {
3366
+ default: withCtx(() => [
3367
+ (openBlock(true), createElementBlock(
3368
+ Fragment,
3369
+ null,
3370
+ renderList(props.columns, (col, index) => {
3371
+ return openBlock(), createBlock(_component_a_col, {
3372
+ key: index,
3373
+ span: col.span || 24 / props.columns.length,
3374
+ class: normalizeClass(unref(bem).e("table-col"))
3375
+ }, {
3376
+ default: withCtx(() => [
3377
+ col.key === "name" ? (openBlock(), createBlock(_component_ll_input, {
3378
+ key: 0,
3379
+ value: innerData.value.name,
3380
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerData.value.name = $event),
3381
+ disabled: unref(disabled),
3382
+ placeholder: "\u8BF7\u8F93\u5165"
3383
+ }, null, 8, ["value", "disabled"])) : createCommentVNode("v-if", true),
3384
+ col.key === "required" ? (openBlock(), createBlock(_component_ll_button, {
3385
+ key: 1,
3386
+ type: "link",
3387
+ disabled: unref(disabled),
3388
+ class: normalizeClass(`${unref(bem).m("required")} ${innerData.value.required ? unref(bem).is("required") : ""}`),
3389
+ onClick: _cache[1] || (_cache[1] = ($event) => innerData.value.required = !innerData.value.required)
3390
+ }, {
3391
+ default: withCtx(() => [
3392
+ withDirectives(createVNode(
3393
+ _component_ll_icon,
3394
+ { "icon-name": "icon-radio-check" },
3395
+ null,
3396
+ 512
3397
+ /* NEED_PATCH */
3398
+ ), [
3399
+ [vShow, innerData.value.required]
3400
+ ])
3401
+ ]),
3402
+ _: 1
3403
+ /* STABLE */
3404
+ }, 8, ["disabled", "class"])) : createCommentVNode("v-if", true),
3405
+ col.key === "type" ? (openBlock(), createBlock(_component_ll_select, {
3406
+ key: 2,
3407
+ value: innerData.value.type,
3408
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerData.value.type = $event),
3409
+ options: unref(paramsOptions),
3410
+ disabled: unref(disabled),
3411
+ placeholder: "\u8BF7\u9009\u62E9",
3412
+ style: { "width": "100%" }
3413
+ }, null, 8, ["value", "options", "disabled"])) : createCommentVNode("v-if", true),
3414
+ col.key === "value" ? (openBlock(), createBlock(ClickInput, {
3415
+ key: 3,
3416
+ value: innerData.value.value,
3417
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => innerData.value.value = $event),
3418
+ type: "code",
3419
+ placeholder: "\u8BF7\u8F93\u5165",
3420
+ style: { "width": "100%" }
3421
+ }, null, 8, ["value"])) : createCommentVNode("v-if", true),
3422
+ col.key === "static" ? (openBlock(), createBlock(_component_ll_switch, {
3423
+ key: 4,
3424
+ checked: innerData.value[col.key],
3425
+ "onUpdate:checked": ($event) => innerData.value[col.key] = $event,
3426
+ disabled: unref(disabled)
3427
+ }, null, 8, ["checked", "onUpdate:checked", "disabled"])) : createCommentVNode("v-if", true),
3428
+ col.key === "description" ? (openBlock(), createBlock(_component_ll_input, {
3429
+ key: 5,
3430
+ value: innerData.value[col.key],
3431
+ "onUpdate:value": ($event) => innerData.value[col.key] = $event,
3432
+ placeholder: col.placeholder || "\u8BF7\u8F93\u5165",
3433
+ disabled: unref(disabled)
3434
+ }, null, 8, ["value", "onUpdate:value", "placeholder", "disabled"])) : createCommentVNode("v-if", true),
3435
+ col.key === "contentType" ? (openBlock(), createBlock(_component_a_auto_complete, {
3436
+ key: 6,
3437
+ value: innerData.value[col.key],
3438
+ "onUpdate:value": ($event) => innerData.value[col.key] = $event,
3439
+ disabled: unref(disabled),
3440
+ options: unref(contentTypeOptions),
3441
+ placeholder: col.placeholder || "\u8BF7\u8F93\u5165"
3442
+ }, null, 8, ["value", "onUpdate:value", "disabled", "options", "placeholder"])) : createCommentVNode("v-if", true)
3443
+ ]),
3444
+ _: 2
3445
+ /* DYNAMIC */
3446
+ }, 1032, ["span", "class"]);
3447
+ }),
3448
+ 128
3449
+ /* KEYED_FRAGMENT */
3450
+ ))
3451
+ ]),
3452
+ _: 1
3453
+ /* STABLE */
3454
+ })
3455
+ ]),
3456
+ _: 1
3457
+ /* STABLE */
3458
+ }),
3459
+ createVNode(_component_a_col, {
3460
+ span: 2,
3461
+ class: normalizeClass(unref(bem).e("table-col"))
3462
+ }, {
3463
+ default: withCtx(() => [
3464
+ createVNode(_component_a_popconfirm, {
3465
+ title: "\u4F60\u786E\u5B9A\u8981\u79FB\u9664\u5417\uFF1F",
3466
+ "ok-text": "\u786E\u8BA4",
3467
+ "cancel-text": "\u53D6\u6D88",
3468
+ placement: "topRight",
3469
+ disabled: unref(disabled),
3470
+ "overlay-class-name": unref(bem).e("popconfirm"),
3471
+ onConfirm: _cache[4] || (_cache[4] = ($event) => handleDelete(props.dataSource, innerData.value))
3472
+ }, {
3473
+ default: withCtx(() => [
3474
+ createVNode(_component_ll_button, {
3475
+ type: "link",
3476
+ disabled: unref(disabled)
3477
+ }, {
3478
+ default: withCtx(() => [
3479
+ createVNode(_component_ll_icon, { "icon-name": "icon-remove" })
3480
+ ]),
3481
+ _: 1
3482
+ /* STABLE */
3483
+ }, 8, ["disabled"])
3484
+ ]),
3485
+ _: 1
3486
+ /* STABLE */
3487
+ }, 8, ["disabled", "overlay-class-name"])
3488
+ ]),
3489
+ _: 1
3490
+ /* STABLE */
3491
+ }, 8, ["class"])
3492
+ ]),
3493
+ _: 1
3494
+ /* STABLE */
3495
+ }, 8, ["class"])
3496
+ ]);
3497
+ };
3498
+ }
3499
+ });
3500
+
3501
+ var TableRow$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__file", "params-table-row.vue"]]);
3304
3502
 
3305
3503
  var _sfc_main$1b = /* @__PURE__ */ defineComponent({
3504
+ ...{ name: "LlParamsTable" },
3505
+ __name: "params-table",
3506
+ props: paramsTableProps,
3507
+ setup(__props) {
3508
+ const bem = createNamespace("params-table");
3509
+ const props = __props;
3510
+ const disabled = inject("disabled");
3511
+ const addData = ref("");
3512
+ const handleAdd = (dataSource) => {
3513
+ if (addData.value && dataSource.find((e) => e.name !== addData.value) || !dataSource.length) {
3514
+ if (!addData.value)
3515
+ return;
3516
+ dataSource.push({
3517
+ name: addData.value,
3518
+ required: false,
3519
+ value: "",
3520
+ static: false,
3521
+ description: "",
3522
+ contentType: ""
3523
+ });
3524
+ addData.value = "";
3525
+ }
3526
+ };
3527
+ return (_ctx, _cache) => {
3528
+ const _component_ll_tooltip = resolveComponent("ll-tooltip");
3529
+ const _component_a_col = resolveComponent("a-col");
3530
+ const _component_a_row = resolveComponent("a-row");
3531
+ const _component_ll_input = resolveComponent("ll-input");
3532
+ return openBlock(), createElementBlock(
3533
+ "div",
3534
+ {
3535
+ class: normalizeClass(unref(bem).b())
3536
+ },
3537
+ [
3538
+ createVNode(_component_a_row, {
3539
+ class: normalizeClass(unref(bem).m("table-header")),
3540
+ gutter: 20
3541
+ }, {
3542
+ default: withCtx(() => [
3543
+ createVNode(_component_a_col, { span: 22 }, {
3544
+ default: withCtx(() => [
3545
+ createVNode(_component_a_row, { gutter: 20 }, {
3546
+ default: withCtx(() => [
3547
+ (openBlock(true), createElementBlock(
3548
+ Fragment,
3549
+ null,
3550
+ renderList(props.columns, (col, index) => {
3551
+ return openBlock(), createBlock(_component_a_col, {
3552
+ key: index,
3553
+ span: col.span,
3554
+ class: normalizeClass(unref(bem).e("table-header-col"))
3555
+ }, {
3556
+ default: withCtx(() => [
3557
+ createElementVNode(
3558
+ "span",
3559
+ null,
3560
+ toDisplayString(col.title),
3561
+ 1
3562
+ /* TEXT */
3563
+ ),
3564
+ col.key === "static" ? (openBlock(), createBlock(_component_ll_tooltip, {
3565
+ key: 0,
3566
+ tip: "Content-Type \u5B57\u6BB5\u7528\u4E8E\u6307\u5B9A\u8BF7\u6C42\u90E8\u5206\u7684\u5A92\u4F53\u7C7B\u578B"
3567
+ })) : createCommentVNode("v-if", true)
3568
+ ]),
3569
+ _: 2
3570
+ /* DYNAMIC */
3571
+ }, 1032, ["span", "class"]);
3572
+ }),
3573
+ 128
3574
+ /* KEYED_FRAGMENT */
3575
+ ))
3576
+ ]),
3577
+ _: 1
3578
+ /* STABLE */
3579
+ })
3580
+ ]),
3581
+ _: 1
3582
+ /* STABLE */
3583
+ }),
3584
+ createVNode(_component_a_col, {
3585
+ class: normalizeClass(unref(bem).e("table-header-col")),
3586
+ span: 2
3587
+ }, {
3588
+ default: withCtx(() => [
3589
+ createTextVNode(" \u64CD\u4F5C ")
3590
+ ]),
3591
+ _: 1
3592
+ /* STABLE */
3593
+ }, 8, ["class"])
3594
+ ]),
3595
+ _: 1
3596
+ /* STABLE */
3597
+ }, 8, ["class"]),
3598
+ createElementVNode(
3599
+ "div",
3600
+ {
3601
+ class: normalizeClass(unref(bem).m("table-body"))
3602
+ },
3603
+ [
3604
+ (openBlock(true), createElementBlock(
3605
+ Fragment,
3606
+ null,
3607
+ renderList(props.dataSource, (item, index) => {
3608
+ return openBlock(), createBlock(TableRow$1, {
3609
+ key: index,
3610
+ data: item,
3611
+ columns: props.columns,
3612
+ "data-source": props.dataSource
3613
+ }, null, 8, ["data", "columns", "data-source"]);
3614
+ }),
3615
+ 128
3616
+ /* KEYED_FRAGMENT */
3617
+ )),
3618
+ createVNode(_component_a_row, {
3619
+ gutter: 20,
3620
+ class: normalizeClass(unref(bem).e("table-row"))
3621
+ }, {
3622
+ default: withCtx(() => [
3623
+ (openBlock(true), createElementBlock(
3624
+ Fragment,
3625
+ null,
3626
+ renderList(props.columns, (col, index) => {
3627
+ return openBlock(), createBlock(_component_a_col, {
3628
+ key: index,
3629
+ span: col.span || 24 / props.columns.length,
3630
+ class: normalizeClass(unref(bem).e("table-col"))
3631
+ }, {
3632
+ default: withCtx(() => [
3633
+ col.key === "name" ? (openBlock(), createBlock(_component_ll_input, {
3634
+ key: 0,
3635
+ value: addData.value,
3636
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => addData.value = $event),
3637
+ placeholder: "\u6DFB\u52A0\u53C2\u6570",
3638
+ disabled: unref(disabled),
3639
+ bordered: false,
3640
+ onBlur: _cache[1] || (_cache[1] = ($event) => handleAdd(props.dataSource))
3641
+ }, null, 8, ["value", "disabled"])) : createCommentVNode("v-if", true)
3642
+ ]),
3643
+ _: 2
3644
+ /* DYNAMIC */
3645
+ }, 1032, ["span", "class"]);
3646
+ }),
3647
+ 128
3648
+ /* KEYED_FRAGMENT */
3649
+ ))
3650
+ ]),
3651
+ _: 1
3652
+ /* STABLE */
3653
+ }, 8, ["class"])
3654
+ ],
3655
+ 2
3656
+ /* CLASS */
3657
+ )
3658
+ ],
3659
+ 2
3660
+ /* CLASS */
3661
+ );
3662
+ };
3663
+ }
3664
+ });
3665
+
3666
+ var paramsTable = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__file", "params-table.vue"]]);
3667
+
3668
+ var _sfc_main$1a = /* @__PURE__ */ defineComponent({
3306
3669
  ...{ name: "LlJsonXmlTableRow" },
3307
3670
  __name: "json-xml-table-row",
3308
3671
  props: jsonXmlTableRowProps,
@@ -3402,13 +3765,18 @@ var _sfc_main$1b = /* @__PURE__ */ defineComponent({
3402
3765
  const { type, parentData: parentData2, innerData: innerData2 } = item;
3403
3766
  handleAdd(type, parentData2, innerData2);
3404
3767
  };
3405
- const handleRowChange = () => {
3406
- emits("change");
3768
+ const handleRowChange = (child) => {
3769
+ if (innerData.value.children) {
3770
+ const index = innerData.value.children.findIndex(
3771
+ (item) => item.key === child.key
3772
+ );
3773
+ innerData.value.children[index] = child;
3774
+ }
3407
3775
  };
3408
3776
  watch(
3409
3777
  innerData,
3410
3778
  () => {
3411
- emits("change");
3779
+ emits("change", innerData.value);
3412
3780
  },
3413
3781
  {
3414
3782
  deep: true
@@ -3732,14 +4100,15 @@ var _sfc_main$1b = /* @__PURE__ */ defineComponent({
3732
4100
  Fragment,
3733
4101
  { key: 1 },
3734
4102
  renderList(innerData.value.children, (child, index) => {
3735
- return openBlock(), createBlock(TableRow$1, {
4103
+ return openBlock(), createBlock(TableRow, {
3736
4104
  key: index,
3737
4105
  "parent-data": innerData.value,
4106
+ list: innerData.value.children,
3738
4107
  data: child,
3739
4108
  layer: props.layer + 1,
3740
4109
  "tree-key": props.treeKey + "-" + (index + 1),
3741
4110
  onChange: handleRowChange
3742
- }, null, 8, ["parent-data", "data", "layer", "tree-key"]);
4111
+ }, null, 8, ["parent-data", "list", "data", "layer", "tree-key"]);
3743
4112
  }),
3744
4113
  128
3745
4114
  /* KEYED_FRAGMENT */
@@ -3756,9 +4125,9 @@ var _sfc_main$1b = /* @__PURE__ */ defineComponent({
3756
4125
  }
3757
4126
  });
3758
4127
 
3759
- var TableRow$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__file", "json-xml-table-row.vue"]]);
4128
+ var TableRow = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__file", "json-xml-table-row.vue"]]);
3760
4129
 
3761
- var _sfc_main$1a = /* @__PURE__ */ defineComponent({
4130
+ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
3762
4131
  ...{ name: "LlJsonXmlTable" },
3763
4132
  __name: "json-xml-table",
3764
4133
  props: jsonXmlTableProps,
@@ -3767,8 +4136,8 @@ var _sfc_main$1a = /* @__PURE__ */ defineComponent({
3767
4136
  const bem = createNamespace("json-xml");
3768
4137
  const props = __props;
3769
4138
  const emits = __emit;
3770
- const handleChange = (dataSource) => {
3771
- emits("change", dataSource);
4139
+ const handleChange = (child) => {
4140
+ emits("change", [child]);
3772
4141
  };
3773
4142
  return (_ctx, _cache) => {
3774
4143
  const _component_a_col = resolveComponent("a-col");
@@ -3779,6 +4148,16 @@ var _sfc_main$1a = /* @__PURE__ */ defineComponent({
3779
4148
  class: normalizeClass(unref(bem).e("table"))
3780
4149
  },
3781
4150
  [
4151
+ props.type === "xml" ? (openBlock(), createElementBlock(
4152
+ "div",
4153
+ {
4154
+ key: 0,
4155
+ class: normalizeClass(unref(bem).m("xml"))
4156
+ },
4157
+ toDisplayString('<?xml version="1.0" encoding="UTF-8"?>'),
4158
+ 2
4159
+ /* CLASS */
4160
+ )) : createCommentVNode("v-if", true),
3782
4161
  createVNode(_component_a_row, {
3783
4162
  class: normalizeClass(unref(bem).m("table-header")),
3784
4163
  gutter: 20
@@ -3843,12 +4222,13 @@ var _sfc_main$1a = /* @__PURE__ */ defineComponent({
3843
4222
  Fragment,
3844
4223
  null,
3845
4224
  renderList(props.dataSource, (item, index) => {
3846
- return openBlock(), createBlock(TableRow$1, {
4225
+ return openBlock(), createBlock(TableRow, {
3847
4226
  key: index,
4227
+ list: props.dataSource,
3848
4228
  data: item,
3849
4229
  "tree-key": (index + 1).toString(),
3850
- onChange: _cache[0] || (_cache[0] = ($event) => handleChange(props.dataSource))
3851
- }, null, 8, ["data", "tree-key"]);
4230
+ onChange: handleChange
4231
+ }, null, 8, ["list", "data", "tree-key"]);
3852
4232
  }),
3853
4233
  128
3854
4234
  /* KEYED_FRAGMENT */
@@ -3865,10 +4245,10 @@ var _sfc_main$1a = /* @__PURE__ */ defineComponent({
3865
4245
  }
3866
4246
  });
3867
4247
 
3868
- var TreeTable = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__file", "json-xml-table.vue"]]);
4248
+ var TreeTable = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__file", "json-xml-table.vue"]]);
3869
4249
 
3870
4250
  const _hoisted_1$h = { class: "flex" };
3871
- var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4251
+ var _sfc_main$18 = /* @__PURE__ */ defineComponent({
3872
4252
  ...{ name: "LlJsonXml" },
3873
4253
  __name: "json-xml",
3874
4254
  props: jsonXmlProps,
@@ -4020,7 +4400,6 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4020
4400
  }
4021
4401
  ];
4022
4402
  }
4023
- console.log(dataSource.value, n);
4024
4403
  },
4025
4404
  {
4026
4405
  deep: true,
@@ -4039,16 +4418,6 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4039
4418
  emits("update:value", n);
4040
4419
  }
4041
4420
  });
4042
- watch(
4043
- () => dataSource.value,
4044
- (n) => {
4045
- console.log({ n });
4046
- },
4047
- {
4048
- deep: true,
4049
- immediate: true
4050
- }
4051
- );
4052
4421
  return (_ctx, _cache) => {
4053
4422
  const _component_ll_segmented = resolveComponent("ll-segmented");
4054
4423
  const _component_ll_button = resolveComponent("ll-button");
@@ -4092,8 +4461,8 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4092
4461
  { key: 0 },
4093
4462
  [
4094
4463
  createVNode(_component_ll_button, {
4095
- disabled: unref(disabled),
4096
- type: "text"
4464
+ type: "link",
4465
+ disabled: unref(disabled)
4097
4466
  }, {
4098
4467
  default: withCtx(() => [
4099
4468
  createCommentVNode(" <ll-icon/> "),
@@ -4103,8 +4472,8 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4103
4472
  /* STABLE */
4104
4473
  }, 8, ["disabled"]),
4105
4474
  createVNode(_component_ll_button, {
4106
- disabled: unref(disabled),
4107
- type: "text"
4475
+ type: "link",
4476
+ disabled: unref(disabled)
4108
4477
  }, {
4109
4478
  default: withCtx(() => [
4110
4479
  createCommentVNode(" <ll-icon/> "),
@@ -4114,8 +4483,8 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4114
4483
  /* STABLE */
4115
4484
  }, 8, ["disabled"]),
4116
4485
  createVNode(_component_ll_button, {
4117
- disabled: unref(disabled),
4118
- type: "text"
4486
+ type: "link",
4487
+ disabled: unref(disabled)
4119
4488
  }, {
4120
4489
  default: withCtx(() => [
4121
4490
  createCommentVNode(" <ll-icon/> "),
@@ -4132,8 +4501,8 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4132
4501
  { key: 1 },
4133
4502
  [
4134
4503
  createVNode(_component_ll_button, {
4135
- disabled: unref(disabled),
4136
- type: "text"
4504
+ type: "link",
4505
+ disabled: unref(disabled)
4137
4506
  }, {
4138
4507
  default: withCtx(() => [
4139
4508
  createCommentVNode(" <ll-icon/> "),
@@ -4143,8 +4512,8 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4143
4512
  /* STABLE */
4144
4513
  }, 8, ["disabled"]),
4145
4514
  createVNode(_component_ll_button, {
4146
- disabled: unref(disabled),
4147
- type: "text"
4515
+ type: "link",
4516
+ disabled: unref(disabled)
4148
4517
  }, {
4149
4518
  default: withCtx(() => [
4150
4519
  createCommentVNode(" <ll-icon/> "),
@@ -4184,12 +4553,19 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4184
4553
  value: innerValue.value,
4185
4554
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
4186
4555
  disabled: unref(disabled),
4556
+ style: { "height": "200px" },
4557
+ options: {
4558
+ minimap: {
4559
+ enabled: false
4560
+ }
4561
+ },
4187
4562
  language: "json"
4188
4563
  }, null, 8, ["value", "disabled"])) : (openBlock(), createBlock(TreeTable, {
4189
4564
  key: 1,
4565
+ type: props.type,
4190
4566
  "data-source": dataSource.value,
4191
4567
  onChange: handleChange
4192
- }, null, 8, ["data-source"]))
4568
+ }, null, 8, ["type", "data-source"]))
4193
4569
  ],
4194
4570
  2
4195
4571
  /* CLASS */
@@ -4202,328 +4578,109 @@ var _sfc_main$19 = /* @__PURE__ */ defineComponent({
4202
4578
  }
4203
4579
  });
4204
4580
 
4205
- var JsonXml = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__file", "json-xml.vue"]]);
4206
-
4207
- var _sfc_main$18 = /* @__PURE__ */ defineComponent({
4208
- ...{ name: "LlParamsTableRow" },
4209
- __name: "params-table-row",
4210
- props: paramsTableRowProps,
4211
- setup(__props) {
4212
- const props = __props;
4213
- const bem = createNamespace("params-table");
4214
- const disabled = inject("disabled");
4215
- const innerData = ref(props.data);
4216
- const handleDelete = (list, data) => {
4217
- const index = list.findIndex((item) => item.name === data.name);
4218
- list.splice(index, 1);
4219
- };
4220
- return (_ctx, _cache) => {
4221
- const _component_ll_input = resolveComponent("ll-input");
4222
- const _component_ll_icon = resolveComponent("ll-icon");
4223
- const _component_ll_button = resolveComponent("ll-button");
4224
- const _component_ll_select = resolveComponent("ll-select");
4225
- const _component_ll_switch = resolveComponent("ll-switch");
4226
- const _component_a_auto_complete = resolveComponent("a-auto-complete");
4227
- const _component_a_col = resolveComponent("a-col");
4228
- const _component_a_row = resolveComponent("a-row");
4229
- const _component_a_popconfirm = resolveComponent("a-popconfirm");
4230
- return openBlock(), createElementBlock("div", null, [
4231
- createVNode(_component_a_row, {
4232
- gutter: 20,
4233
- class: normalizeClass(unref(bem).e("table-row"))
4234
- }, {
4235
- default: withCtx(() => [
4236
- createVNode(_component_a_col, { span: 22 }, {
4237
- default: withCtx(() => [
4238
- createVNode(_component_a_row, { gutter: 20 }, {
4239
- default: withCtx(() => [
4240
- (openBlock(true), createElementBlock(
4241
- Fragment,
4242
- null,
4243
- renderList(props.columns, (col, index) => {
4244
- return openBlock(), createBlock(_component_a_col, {
4245
- key: index,
4246
- span: col.span || 24 / props.columns.length,
4247
- class: normalizeClass(unref(bem).e("table-col"))
4248
- }, {
4249
- default: withCtx(() => [
4250
- col.key === "name" ? (openBlock(), createBlock(_component_ll_input, {
4251
- key: 0,
4252
- value: innerData.value.name,
4253
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerData.value.name = $event),
4254
- disabled: unref(disabled),
4255
- placeholder: "\u8BF7\u8F93\u5165"
4256
- }, null, 8, ["value", "disabled"])) : createCommentVNode("v-if", true),
4257
- col.key === "required" ? (openBlock(), createBlock(_component_ll_button, {
4258
- key: 1,
4259
- type: "link",
4260
- disabled: unref(disabled),
4261
- class: normalizeClass(`${unref(bem).m("required")} ${innerData.value.required ? unref(bem).is("required") : ""}`),
4262
- onClick: _cache[1] || (_cache[1] = ($event) => innerData.value.required = !innerData.value.required)
4263
- }, {
4264
- default: withCtx(() => [
4265
- withDirectives(createVNode(
4266
- _component_ll_icon,
4267
- { "icon-name": "icon-radio-check" },
4268
- null,
4269
- 512
4270
- /* NEED_PATCH */
4271
- ), [
4272
- [vShow, innerData.value.required]
4273
- ])
4274
- ]),
4275
- _: 1
4276
- /* STABLE */
4277
- }, 8, ["disabled", "class"])) : createCommentVNode("v-if", true),
4278
- col.key === "type" ? (openBlock(), createBlock(_component_ll_select, {
4279
- key: 2,
4280
- value: innerData.value.type,
4281
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerData.value.type = $event),
4282
- options: unref(paramsOptions),
4283
- disabled: unref(disabled),
4284
- placeholder: "\u8BF7\u9009\u62E9",
4285
- style: { "width": "100%" }
4286
- }, null, 8, ["value", "options", "disabled"])) : createCommentVNode("v-if", true),
4287
- col.key === "value" ? (openBlock(), createBlock(ClickInput, {
4288
- key: 3,
4289
- value: innerData.value.value,
4290
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => innerData.value.value = $event),
4291
- type: "code",
4292
- placeholder: "\u8BF7\u8F93\u5165",
4293
- style: { "width": "100%" }
4294
- }, null, 8, ["value"])) : createCommentVNode("v-if", true),
4295
- col.key === "static" ? (openBlock(), createBlock(_component_ll_switch, {
4296
- key: 4,
4297
- checked: innerData.value[col.key],
4298
- "onUpdate:checked": ($event) => innerData.value[col.key] = $event,
4299
- disabled: unref(disabled)
4300
- }, null, 8, ["checked", "onUpdate:checked", "disabled"])) : createCommentVNode("v-if", true),
4301
- col.key === "description" ? (openBlock(), createBlock(_component_ll_input, {
4302
- key: 5,
4303
- value: innerData.value[col.key],
4304
- "onUpdate:value": ($event) => innerData.value[col.key] = $event,
4305
- placeholder: col.placeholder || "\u8BF7\u8F93\u5165",
4306
- disabled: unref(disabled)
4307
- }, null, 8, ["value", "onUpdate:value", "placeholder", "disabled"])) : createCommentVNode("v-if", true),
4308
- col.key === "contentType" ? (openBlock(), createBlock(_component_a_auto_complete, {
4309
- key: 6,
4310
- value: innerData.value[col.key],
4311
- "onUpdate:value": ($event) => innerData.value[col.key] = $event,
4312
- disabled: unref(disabled),
4313
- options: unref(contentTypeOptions),
4314
- placeholder: col.placeholder || "\u8BF7\u8F93\u5165"
4315
- }, null, 8, ["value", "onUpdate:value", "disabled", "options", "placeholder"])) : createCommentVNode("v-if", true)
4316
- ]),
4317
- _: 2
4318
- /* DYNAMIC */
4319
- }, 1032, ["span", "class"]);
4320
- }),
4321
- 128
4322
- /* KEYED_FRAGMENT */
4323
- ))
4324
- ]),
4325
- _: 1
4326
- /* STABLE */
4327
- })
4328
- ]),
4329
- _: 1
4330
- /* STABLE */
4331
- }),
4332
- createVNode(_component_a_col, {
4333
- span: 2,
4334
- class: normalizeClass(unref(bem).e("table-col"))
4335
- }, {
4336
- default: withCtx(() => [
4337
- createVNode(_component_a_popconfirm, {
4338
- title: "\u4F60\u786E\u5B9A\u8981\u79FB\u9664\u5417\uFF1F",
4339
- "ok-text": "\u786E\u8BA4",
4340
- "cancel-text": "\u53D6\u6D88",
4341
- placement: "topRight",
4342
- disabled: unref(disabled),
4343
- "overlay-class-name": unref(bem).e("popconfirm"),
4344
- onConfirm: _cache[4] || (_cache[4] = ($event) => handleDelete(props.dataSource, innerData.value))
4345
- }, {
4346
- default: withCtx(() => [
4347
- createVNode(_component_ll_button, {
4348
- type: "link",
4349
- disabled: unref(disabled)
4350
- }, {
4351
- default: withCtx(() => [
4352
- createVNode(_component_ll_icon, { "icon-name": "icon-remove" })
4353
- ]),
4354
- _: 1
4355
- /* STABLE */
4356
- }, 8, ["disabled"])
4357
- ]),
4358
- _: 1
4359
- /* STABLE */
4360
- }, 8, ["disabled", "overlay-class-name"])
4361
- ]),
4362
- _: 1
4363
- /* STABLE */
4364
- }, 8, ["class"])
4365
- ]),
4366
- _: 1
4367
- /* STABLE */
4368
- }, 8, ["class"])
4369
- ]);
4370
- };
4371
- }
4372
- });
4373
-
4374
- var TableRow = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__file", "params-table-row.vue"]]);
4581
+ var JsonXml = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__file", "json-xml.vue"]]);
4375
4582
 
4376
4583
  var _sfc_main$17 = /* @__PURE__ */ defineComponent({
4377
- ...{ name: "LlParamsTable" },
4378
- __name: "params-table",
4379
- props: paramsTableProps,
4380
- setup(__props) {
4381
- const bem = createNamespace("params-table");
4584
+ ...{ name: "BodyComponent" },
4585
+ __name: "body-component",
4586
+ props: bodyProps,
4587
+ emits: bodyEmits,
4588
+ setup(__props, { emit: __emit }) {
4382
4589
  const props = __props;
4590
+ const emits = __emit;
4591
+ const bem = createNamespace("api-component");
4383
4592
  const disabled = inject("disabled");
4384
- const addData = ref("");
4385
- const handleAdd = (dataSource) => {
4386
- if (addData.value && dataSource.find((e) => e.name !== addData.value) || !dataSource.length) {
4387
- if (!addData.value)
4388
- return;
4389
- dataSource.push({
4390
- name: addData.value,
4391
- required: false,
4392
- value: "",
4393
- static: false,
4394
- description: "",
4395
- contentType: ""
4396
- });
4397
- addData.value = "";
4593
+ const bodyKey = ref(props.value.bodyParams.type);
4594
+ const parameters = ref(
4595
+ props.value.bodyParams.parameters
4596
+ );
4597
+ const jsonSchema = ref(
4598
+ props.value.bodyParams.jsonSchema
4599
+ );
4600
+ const description = ref(
4601
+ props.value.bodyParams.description
4602
+ );
4603
+ const handleChange = (e) => {
4604
+ if (e === "none") {
4605
+ parameters.value = [];
4398
4606
  }
4399
4607
  };
4608
+ watch([parameters, jsonSchema, description], () => {
4609
+ const obj = {
4610
+ ...props.value,
4611
+ bodyParams: {
4612
+ type: bodyKey.value,
4613
+ parameters: parameters.value,
4614
+ jsonSchema: jsonSchema.value,
4615
+ description: description.value
4616
+ }
4617
+ };
4618
+ emits("change", obj);
4619
+ emits("update:value", obj);
4620
+ });
4400
4621
  return (_ctx, _cache) => {
4401
- const _component_ll_tooltip = resolveComponent("ll-tooltip");
4402
- const _component_a_col = resolveComponent("a-col");
4403
- const _component_a_row = resolveComponent("a-row");
4404
- const _component_ll_input = resolveComponent("ll-input");
4622
+ const _component_ll_tabs_simple = resolveComponent("ll-tabs-simple");
4623
+ const _component_ll_code_editor = resolveComponent("ll-code-editor");
4405
4624
  return openBlock(), createElementBlock(
4406
4625
  "div",
4407
4626
  {
4408
- class: normalizeClass(unref(bem).b())
4627
+ class: normalizeClass(unref(bem).m("body"))
4409
4628
  },
4410
4629
  [
4411
- createVNode(_component_a_row, {
4412
- class: normalizeClass(unref(bem).m("table-header")),
4413
- gutter: 20
4414
- }, {
4415
- default: withCtx(() => [
4416
- createVNode(_component_a_col, { span: 22 }, {
4417
- default: withCtx(() => [
4418
- createVNode(_component_a_row, { gutter: 20 }, {
4419
- default: withCtx(() => [
4420
- (openBlock(true), createElementBlock(
4421
- Fragment,
4422
- null,
4423
- renderList(props.columns, (col, index) => {
4424
- return openBlock(), createBlock(_component_a_col, {
4425
- key: index,
4426
- span: col.span,
4427
- class: normalizeClass(unref(bem).e("table-header-col"))
4428
- }, {
4429
- default: withCtx(() => [
4430
- createElementVNode(
4431
- "span",
4432
- null,
4433
- toDisplayString(col.title),
4434
- 1
4435
- /* TEXT */
4436
- ),
4437
- col.key === "static" ? (openBlock(), createBlock(_component_ll_tooltip, {
4438
- key: 0,
4439
- tip: "Content-Type \u5B57\u6BB5\u7528\u4E8E\u6307\u5B9A\u8BF7\u6C42\u90E8\u5206\u7684\u5A92\u4F53\u7C7B\u578B"
4440
- })) : createCommentVNode("v-if", true)
4441
- ]),
4442
- _: 2
4443
- /* DYNAMIC */
4444
- }, 1032, ["span", "class"]);
4445
- }),
4446
- 128
4447
- /* KEYED_FRAGMENT */
4448
- ))
4449
- ]),
4450
- _: 1
4451
- /* STABLE */
4452
- })
4453
- ]),
4454
- _: 1
4455
- /* STABLE */
4456
- }),
4457
- createVNode(_component_a_col, {
4458
- class: normalizeClass(unref(bem).e("table-header-col")),
4459
- span: 2
4460
- }, {
4461
- default: withCtx(() => [
4462
- createTextVNode(" \u64CD\u4F5C ")
4463
- ]),
4464
- _: 1
4465
- /* STABLE */
4466
- }, 8, ["class"])
4467
- ]),
4468
- _: 1
4469
- /* STABLE */
4470
- }, 8, ["class"]),
4630
+ createVNode(_component_ll_tabs_simple, {
4631
+ "active-key": bodyKey.value,
4632
+ "onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => bodyKey.value = $event),
4633
+ tabs: unref(bodyList),
4634
+ class: normalizeClass(unref(bem).m("body-tab")),
4635
+ disabled: unref(disabled),
4636
+ onChange: handleChange
4637
+ }, null, 8, ["active-key", "tabs", "class", "disabled"]),
4471
4638
  createElementVNode(
4472
4639
  "div",
4473
4640
  {
4474
- class: normalizeClass(unref(bem).m("table-body"))
4641
+ class: normalizeClass(unref(bem).m("body-container"))
4475
4642
  },
4476
4643
  [
4477
- (openBlock(true), createElementBlock(
4478
- Fragment,
4479
- null,
4480
- renderList(props.dataSource, (item, index) => {
4481
- return openBlock(), createBlock(TableRow, {
4482
- key: index,
4483
- data: item,
4484
- columns: props.columns,
4485
- "data-source": props.dataSource
4486
- }, null, 8, ["data", "columns", "data-source"]);
4487
- }),
4488
- 128
4489
- /* KEYED_FRAGMENT */
4490
- )),
4491
- createVNode(_component_a_row, {
4492
- gutter: 20,
4493
- class: normalizeClass(unref(bem).e("table-row"))
4494
- }, {
4495
- default: withCtx(() => [
4496
- (openBlock(true), createElementBlock(
4497
- Fragment,
4498
- null,
4499
- renderList(props.columns, (col, index) => {
4500
- return openBlock(), createBlock(_component_a_col, {
4501
- key: index,
4502
- span: col.span || 24 / props.columns.length,
4503
- class: normalizeClass(unref(bem).e("table-col"))
4504
- }, {
4505
- default: withCtx(() => [
4506
- col.key === "name" ? (openBlock(), createBlock(_component_ll_input, {
4507
- key: 0,
4508
- value: addData.value,
4509
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => addData.value = $event),
4510
- placeholder: "\u6DFB\u52A0\u53C2\u6570",
4511
- disabled: unref(disabled),
4512
- bordered: false,
4513
- onBlur: _cache[1] || (_cache[1] = ($event) => handleAdd(props.dataSource))
4514
- }, null, 8, ["value", "disabled"])) : createCommentVNode("v-if", true)
4515
- ]),
4516
- _: 2
4517
- /* DYNAMIC */
4518
- }, 1032, ["span", "class"]);
4519
- }),
4520
- 128
4521
- /* KEYED_FRAGMENT */
4522
- ))
4523
- ]),
4524
- _: 1
4525
- /* STABLE */
4526
- }, 8, ["class"])
4644
+ bodyKey.value === "json" ? (openBlock(), createBlock(JsonXml, {
4645
+ key: 0,
4646
+ value: jsonSchema.value,
4647
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => jsonSchema.value = $event),
4648
+ type: bodyKey.value
4649
+ }, null, 8, ["value", "type"])) : createCommentVNode("v-if", true),
4650
+ bodyKey.value === "xml" ? (openBlock(), createBlock(JsonXml, {
4651
+ key: 1,
4652
+ value: jsonSchema.value,
4653
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => jsonSchema.value = $event),
4654
+ type: bodyKey.value
4655
+ }, null, 8, ["value", "type"])) : createCommentVNode("v-if", true),
4656
+ bodyKey.value === "raw" ? (openBlock(), createBlock(_component_ll_code_editor, {
4657
+ key: 2,
4658
+ value: description.value,
4659
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => description.value = $event)
4660
+ }, null, 8, ["value"])) : createCommentVNode("v-if", true),
4661
+ bodyKey.value === "x-www-form-urlencoded" ? (openBlock(), createBlock(paramsTable, {
4662
+ key: 3,
4663
+ columns: unref(paramsTableColumns),
4664
+ "data-source": parameters.value
4665
+ }, null, 8, ["columns", "data-source"])) : createCommentVNode("v-if", true),
4666
+ bodyKey.value === "form-data" ? (openBlock(), createBlock(paramsTable, {
4667
+ key: 4,
4668
+ columns: unref(formdataTableColumns),
4669
+ "data-source": parameters.value
4670
+ }, null, 8, ["columns", "data-source"])) : createCommentVNode("v-if", true),
4671
+ bodyKey.value === "none" ? (openBlock(), createElementBlock(
4672
+ "div",
4673
+ {
4674
+ key: 5,
4675
+ class: normalizeClass(unref(bem).e("none"))
4676
+ },
4677
+ [
4678
+ createCommentVNode(" <ll-empty>\n <template #title> \u8BE5\u8BF7\u6C42\u6CA1\u6709 Body \u4F53 </template>\n </ll-empty> "),
4679
+ createTextVNode(" \u8BE5\u8BF7\u6C42\u6CA1\u6709 Body \u4F53 ")
4680
+ ],
4681
+ 2
4682
+ /* CLASS */
4683
+ )) : createCommentVNode("v-if", true)
4527
4684
  ],
4528
4685
  2
4529
4686
  /* CLASS */
@@ -4536,7 +4693,7 @@ var _sfc_main$17 = /* @__PURE__ */ defineComponent({
4536
4693
  }
4537
4694
  });
4538
4695
 
4539
- var paramsTable = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__file", "params-table.vue"]]);
4696
+ var BodyComponent = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__file", "body-component.vue"]]);
4540
4697
 
4541
4698
  var _sfc_main$16 = /* @__PURE__ */ defineComponent({
4542
4699
  ...{ name: "LlApiComponent" },
@@ -4551,7 +4708,6 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
4551
4708
  const formItemContext = Form$1.useInjectFormItemContext();
4552
4709
  const form = ref();
4553
4710
  const activeKey = ref("params");
4554
- const bodyKey = ref("form-data");
4555
4711
  const computedRules = computed(() => props.isValid ? props.rules : {});
4556
4712
  provide("disabled", props.disabled);
4557
4713
  const httpModel = ref(props.value);
@@ -4563,12 +4719,12 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
4563
4719
  });
4564
4720
  const { resetFields, validate, validateInfos } = useForm(
4565
4721
  httpModel,
4566
- computedRules.value,
4567
- {
4568
- onValidate: (...args) => {
4569
- console.log("onValidate", args);
4570
- }
4571
- }
4722
+ computedRules.value
4723
+ // {
4724
+ // onValidate: (...args) => {
4725
+ // console.log('onValidate', args)
4726
+ // }
4727
+ // }
4572
4728
  );
4573
4729
  const handleChange = (params) => {
4574
4730
  httpModel.value.method = params.method;
@@ -4605,8 +4761,6 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
4605
4761
  return (_ctx, _cache) => {
4606
4762
  const _component_ll_form_item = resolveComponent("ll-form-item");
4607
4763
  const _component_ll_tabs_simple = resolveComponent("ll-tabs-simple");
4608
- const _component_ll_code_editor = resolveComponent("ll-code-editor");
4609
- const _component_ll_empty = resolveComponent("ll-empty");
4610
4764
  const _component_a_form = resolveComponent("a-form");
4611
4765
  return openBlock(), createElementBlock(
4612
4766
  "div",
@@ -4658,58 +4812,10 @@ var _sfc_main$16 = /* @__PURE__ */ defineComponent({
4658
4812
  }, null, 8, ["columns", "data-source"]), [
4659
4813
  [vShow, activeKey.value === "headers"]
4660
4814
  ]),
4661
- withDirectives(createElementVNode(
4662
- "div",
4663
- null,
4664
- [
4665
- createVNode(_component_ll_tabs_simple, {
4666
- "active-key": bodyKey.value,
4667
- "onUpdate:activeKey": _cache[2] || (_cache[2] = ($event) => bodyKey.value = $event),
4668
- tabs: unref(bodyList),
4669
- class: normalizeClass(unref(bem).m("body-tab"))
4670
- }, null, 8, ["active-key", "tabs", "class"]),
4671
- withDirectives(createVNode(JsonXml, {
4672
- value: httpModel.value.bodyParams["json"],
4673
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => httpModel.value.bodyParams["json"] = $event)
4674
- }, null, 8, ["value"]), [
4675
- [vShow, bodyKey.value === "json"]
4676
- ]),
4677
- withDirectives(createVNode(JsonXml, {
4678
- value: httpModel.value.bodyParams["xml"],
4679
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => httpModel.value.bodyParams["xml"] = $event)
4680
- }, null, 8, ["value"]), [
4681
- [vShow, bodyKey.value === "xml"]
4682
- ]),
4683
- bodyKey.value === "raw" ? (openBlock(), createBlock(_component_ll_code_editor, {
4684
- key: 0,
4685
- value: httpModel.value.bodyParams["raw"],
4686
- "onUpdate:value": _cache[5] || (_cache[5] = ($event) => httpModel.value.bodyParams["raw"] = $event)
4687
- }, null, 8, ["value"])) : createCommentVNode("v-if", true),
4688
- withDirectives(createVNode(paramsTable, {
4689
- columns: unref(paramsTableColumns),
4690
- "data-source": httpModel.value.bodyParams["x-www-form-urlencoded"]
4691
- }, null, 8, ["columns", "data-source"]), [
4692
- [vShow, bodyKey.value === "x-www-form-urlencoded"]
4693
- ]),
4694
- withDirectives(createVNode(paramsTable, {
4695
- columns: unref(formdataTableColumns),
4696
- "data-source": httpModel.value.bodyParams["form-data"]
4697
- }, null, 8, ["columns", "data-source"]), [
4698
- [vShow, bodyKey.value === "form-data"]
4699
- ]),
4700
- withDirectives(createVNode(
4701
- _component_ll_empty,
4702
- null,
4703
- null,
4704
- 512
4705
- /* NEED_PATCH */
4706
- ), [
4707
- [vShow, bodyKey.value === "none"]
4708
- ])
4709
- ],
4710
- 512
4711
- /* NEED_PATCH */
4712
- ), [
4815
+ withDirectives(createVNode(BodyComponent, {
4816
+ value: httpModel.value,
4817
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => httpModel.value = $event)
4818
+ }, null, 8, ["value"]), [
4713
4819
  [vShow, activeKey.value === "body"]
4714
4820
  ])
4715
4821
  ]),
@@ -5266,7 +5372,7 @@ const codeEditorProps = buildProps({
5266
5372
  },
5267
5373
  disabled: {
5268
5374
  type: Boolean,
5269
- default: false
5375
+ default: () => false
5270
5376
  },
5271
5377
  width: {
5272
5378
  type: [String, Number],
@@ -69641,6 +69747,10 @@ const tabsSimpleProps = buildProps({
69641
69747
  },
69642
69748
  activeKey: {
69643
69749
  type: definePropType(String)
69750
+ },
69751
+ disabled: {
69752
+ type: Boolean,
69753
+ default: () => false
69644
69754
  }
69645
69755
  });
69646
69756
  const tabsSimpleEmits = {
@@ -69659,6 +69769,8 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
69659
69769
  const emits = __emit;
69660
69770
  const bem = createNamespace("tabs-simple");
69661
69771
  const handleClick = (tab) => {
69772
+ if (props.disabled)
69773
+ return;
69662
69774
  emits("update:activeKey", tab.key);
69663
69775
  emits("change", tab.key);
69664
69776
  };
@@ -69677,7 +69789,9 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
69677
69789
  key: tab.key,
69678
69790
  class: normalizeClass([
69679
69791
  unref(bem).e("tabpane"),
69680
- tab.key === props.activeKey ? unref(bem).is("actived") : ""
69792
+ tab.key === props.activeKey ? unref(bem).is("actived") : "",
69793
+ props.disabled ? unref(bem).is("disabled") : "",
69794
+ tab.key === props.activeKey && props.disabled ? unref(bem).is("actived_disabled") : ""
69681
69795
  ]),
69682
69796
  onClick: ($event) => handleClick(tab)
69683
69797
  }, [
@@ -76617,6 +76731,10 @@ const uploadImageProps = buildProps({
76617
76731
  type: definePropType([String, Array]),
76618
76732
  default: []
76619
76733
  },
76734
+ imgLoading: {
76735
+ type: Boolean,
76736
+ default: false
76737
+ },
76620
76738
  iconName: {
76621
76739
  type: String,
76622
76740
  default: "icon-add"
@@ -76659,6 +76777,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
76659
76777
  props: uploadImageProps,
76660
76778
  emits: uploadImageEmits,
76661
76779
  setup(__props, { emit: __emit }) {
76780
+ const loading = ref(false);
76662
76781
  const props = __props;
76663
76782
  const emits = __emit;
76664
76783
  const bem = createNamespace("upload-image");
@@ -76696,6 +76815,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
76696
76815
  return isType && isSize && props.beforeUpload?.(file, FileList);
76697
76816
  };
76698
76817
  const customRequest = async (res) => {
76818
+ loading.value = true;
76699
76819
  const fileUrl = await fileToBase64(res.file);
76700
76820
  props.maxCount === 1 ? innerValue.value = [fileUrl] : innerValue.value.push(fileUrl);
76701
76821
  try {
@@ -76736,6 +76856,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
76736
76856
  return (_ctx, _cache) => {
76737
76857
  const _component_ll_icon = resolveComponent("ll-icon");
76738
76858
  const _component_a_image = resolveComponent("a-image");
76859
+ const _component_a_spin = resolveComponent("a-spin");
76739
76860
  const _component_a_upload = resolveComponent("a-upload");
76740
76861
  const _component_a_image_preview_group = resolveComponent("a-image-preview-group");
76741
76862
  return openBlock(), createElementBlock(
@@ -76764,53 +76885,62 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
76764
76885
  "list-type": "picture-card"
76765
76886
  }), {
76766
76887
  default: withCtx(() => [
76767
- innerValue.value.length > 0 ? (openBlock(), createBlock(_component_a_image, {
76768
- key: 0,
76769
- preview: { visible: false },
76770
- width: 100,
76771
- height: 100,
76772
- src: innerValue.value[0],
76773
- style: {
76774
- objectFit: "contain"
76775
- }
76888
+ createVNode(_component_a_spin, {
76889
+ size: "small",
76890
+ spinning: props.imgLoading
76776
76891
  }, {
76777
- previewMask: withCtx(() => [
76778
- createElementVNode(
76779
- "div",
76780
- {
76781
- class: normalizeClass(unref(bem).m("preview-mask"))
76782
- },
76783
- [
76784
- createElementVNode("a", {
76785
- href: "javascript:;",
76786
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => imageVisible.value = true, ["stop"]))
76787
- }, [
76788
- createVNode(_component_ll_icon, {
76789
- "icon-name": `icon-pwd-look`,
76790
- class: normalizeClass(unref(bem).e("image-icon"))
76791
- }, null, 8, ["class"])
76792
- ]),
76793
- createElementVNode("a", {
76794
- href: "javascript:;",
76795
- onClick: withModifiers(handleRemoveImage, ["stop"])
76796
- }, [
76797
- createVNode(_component_ll_icon, {
76798
- "icon-name": `icon-delete`,
76799
- class: normalizeClass(unref(bem).e("image-icon"))
76800
- }, null, 8, ["class"])
76801
- ])
76802
- ],
76803
- 2
76804
- /* CLASS */
76805
- )
76892
+ default: withCtx(() => [
76893
+ innerValue.value.length > 0 ? (openBlock(), createBlock(_component_a_image, {
76894
+ key: 0,
76895
+ preview: { visible: false },
76896
+ width: 100,
76897
+ height: 100,
76898
+ src: innerValue.value[0],
76899
+ style: {
76900
+ objectFit: "contain"
76901
+ }
76902
+ }, {
76903
+ previewMask: withCtx(() => [
76904
+ createElementVNode(
76905
+ "div",
76906
+ {
76907
+ class: normalizeClass(unref(bem).m("preview-mask"))
76908
+ },
76909
+ [
76910
+ createElementVNode("a", {
76911
+ href: "javascript:;",
76912
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => imageVisible.value = true, ["stop"]))
76913
+ }, [
76914
+ createVNode(_component_ll_icon, {
76915
+ "icon-name": `icon-pwd-look`,
76916
+ class: normalizeClass(unref(bem).e("image-icon"))
76917
+ }, null, 8, ["class"])
76918
+ ]),
76919
+ createElementVNode("a", {
76920
+ href: "javascript:;",
76921
+ onClick: withModifiers(handleRemoveImage, ["stop"])
76922
+ }, [
76923
+ createVNode(_component_ll_icon, {
76924
+ "icon-name": `icon-delete`,
76925
+ class: normalizeClass(unref(bem).e("image-icon"))
76926
+ }, null, 8, ["class"])
76927
+ ])
76928
+ ],
76929
+ 2
76930
+ /* CLASS */
76931
+ )
76932
+ ]),
76933
+ _: 1
76934
+ /* STABLE */
76935
+ }, 8, ["src"])) : (openBlock(), createBlock(_component_ll_icon, {
76936
+ key: 1,
76937
+ "icon-name": props.iconName,
76938
+ style: { "font-size": "30px" }
76939
+ }, null, 8, ["icon-name"]))
76806
76940
  ]),
76807
76941
  _: 1
76808
76942
  /* STABLE */
76809
- }, 8, ["src"])) : (openBlock(), createBlock(_component_ll_icon, {
76810
- key: 1,
76811
- "icon-name": props.iconName,
76812
- style: { "font-size": "30px" }
76813
- }, null, 8, ["icon-name"]))
76943
+ }, 8, ["spinning"])
76814
76944
  ]),
76815
76945
  _: 1
76816
76946
  /* STABLE */
@@ -77056,4 +77186,4 @@ var installer = makeInstaller([...Components]);
77056
77186
 
77057
77187
  const install = installer.install;
77058
77188
 
77059
- 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, LlEasyCron, 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, LlUploadImage, LlUriInput, OperateTreeEmits, TypeEnum, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, apiComponentEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, apiUrlProps, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyList, buttonProps, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, contentTypeOptions, customOverlay, dateUtil, installer as default, defaultOptions, descriptionsItemProps, descriptionsProps, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownEmits, dropdownProps, easyCronEmits, easyCronProps, emptyProps, formColumns, formComponentProps, formOptions, formProps, formatToDate, formatToDateTime, formdataTableColumns, getHttpMethodUri, getKeyValueItem, headersTableColumns, httpUriOptions, 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, uploadImageEmits, uploadImageProps, uriInputEmits, uriInputProps, url, useSecondConfirmation, useTabEmits, useTabProps, useTabSetup };
77189
+ 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, LlEasyCron, 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, LlUploadImage, LlUriInput, OperateTreeEmits, TypeEnum, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, apiComponentEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, apiUrlProps, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyEmits, bodyList, bodyProps, buttonProps, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, contentTypeOptions, customOverlay, dateUtil, installer as default, defaultOptions, descriptionsItemProps, descriptionsProps, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownEmits, dropdownProps, easyCronEmits, easyCronProps, emptyProps, formColumns, formComponentProps, formOptions, formProps, formatToDate, formatToDateTime, formdataTableColumns, getHttpMethodUri, getKeyValueItem, headersTableColumns, httpUriOptions, 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, uploadImageEmits, uploadImageProps, uriInputEmits, uriInputProps, url, useSecondConfirmation, useTabEmits, useTabProps, useTabSetup };