ll-plus 2.3.5 → 2.3.7
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 +2 -0
- package/es/component.mjs.map +1 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs +0 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs.map +1 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.mjs +0 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.mjs.map +1 -1
- package/es/components/api-component/index.d.ts +282 -85
- package/es/components/api-component/index.mjs +1 -1
- package/es/components/api-component/src/api-component.vue.d.ts +283 -85
- package/es/components/api-component/src/api-component.vue2.mjs +148 -90
- package/es/components/api-component/src/api-component.vue2.mjs.map +1 -1
- package/es/components/api-component/src/components/api-url.vue.d.ts +113 -45
- package/es/components/api-component/src/components/api-url.vue2.mjs +24 -17
- package/es/components/api-component/src/components/api-url.vue2.mjs.map +1 -1
- package/es/components/api-component/src/components/params-table-row.vue2.mjs +95 -83
- package/es/components/api-component/src/components/params-table-row.vue2.mjs.map +1 -1
- package/es/components/api-component/src/components/params-table.vue2.mjs +43 -28
- package/es/components/api-component/src/components/params-table.vue2.mjs.map +1 -1
- package/es/components/api-component/src/config/api-component.d.ts +53 -12
- package/es/components/api-component/src/config/api-component.mjs +35 -23
- package/es/components/api-component/src/config/api-component.mjs.map +1 -1
- package/es/components/api-component/src/config/api-url.d.ts +19 -3
- package/es/components/api-component/src/config/api-url.mjs +27 -3
- package/es/components/api-component/src/config/api-url.mjs.map +1 -1
- package/es/components/api-component/src/config/index.mjs +1 -1
- package/es/components/api-component/src/config/table.mjs +1 -1
- package/es/components/api-component/src/config/table.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +3 -1
- package/es/components/index.mjs.map +1 -1
- package/es/components/table/src/components/main-table.vue2.mjs +1 -7
- package/es/components/table/src/components/main-table.vue2.mjs.map +1 -1
- package/es/components/tag-group/src/tag-group.vue2.mjs +0 -1
- package/es/components/tag-group/src/tag-group.vue2.mjs.map +1 -1
- package/es/components/tree-search/index.d.ts +15 -4
- package/es/components/tree-search/src/components/header-search.vue.d.ts +2 -3
- package/es/components/tree-search/src/components/header-search.vue2.mjs +4 -6
- package/es/components/tree-search/src/components/header-search.vue2.mjs.map +1 -1
- package/es/components/tree-search/src/config/tree-search.d.ts +6 -0
- package/es/components/tree-search/src/config/tree-search.mjs +6 -0
- package/es/components/tree-search/src/config/tree-search.mjs.map +1 -1
- package/es/components/tree-search/src/tree-search.vue.d.ts +15 -4
- package/es/components/tree-search/src/tree-search.vue2.mjs +2 -4
- package/es/components/tree-search/src/tree-search.vue2.mjs.map +1 -1
- package/es/components/upload-image/index.d.ts +130 -0
- package/es/components/upload-image/index.mjs +10 -0
- package/es/components/upload-image/index.mjs.map +1 -0
- package/es/components/upload-image/src/upload-image.d.ts +40 -0
- package/es/components/upload-image/src/upload-image.mjs +46 -0
- package/es/components/upload-image/src/upload-image.mjs.map +1 -0
- package/es/components/upload-image/src/upload-image.vue.d.ts +125 -0
- package/es/components/upload-image/src/upload-image.vue.mjs +8 -0
- package/es/components/upload-image/src/upload-image.vue.mjs.map +1 -0
- package/es/components/upload-image/src/upload-image.vue2.mjs +220 -0
- package/es/components/upload-image/src/upload-image.vue2.mjs.map +1 -0
- package/es/index.mjs +3 -1
- package/es/index.mjs.map +1 -1
- package/es/utils/file.d.ts +7 -0
- package/es/utils/file.mjs +23 -0
- package/es/utils/file.mjs.map +1 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +1 -0
- package/es/utils/index.mjs.map +1 -1
- package/index.full.js +858 -464
- package/index.full.min.js +18 -18
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +24 -24
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +857 -467
- package/lib/component.js +4 -2
- package/lib/component.js.map +1 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js +0 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js.map +1 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.js +0 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.js.map +1 -1
- package/lib/components/api-component/index.d.ts +282 -85
- package/lib/components/api-component/index.js +1 -0
- package/lib/components/api-component/index.js.map +1 -1
- package/lib/components/api-component/src/api-component.vue.d.ts +283 -85
- package/lib/components/api-component/src/api-component.vue2.js +147 -89
- package/lib/components/api-component/src/api-component.vue2.js.map +1 -1
- package/lib/components/api-component/src/components/api-url.vue.d.ts +113 -45
- package/lib/components/api-component/src/components/api-url.vue2.js +23 -16
- package/lib/components/api-component/src/components/api-url.vue2.js.map +1 -1
- package/lib/components/api-component/src/components/params-table-row.vue2.js +95 -83
- package/lib/components/api-component/src/components/params-table-row.vue2.js.map +1 -1
- package/lib/components/api-component/src/components/params-table.vue2.js +43 -28
- package/lib/components/api-component/src/components/params-table.vue2.js.map +1 -1
- package/lib/components/api-component/src/config/api-component.d.ts +53 -12
- package/lib/components/api-component/src/config/api-component.js +35 -23
- package/lib/components/api-component/src/config/api-component.js.map +1 -1
- package/lib/components/api-component/src/config/api-url.d.ts +19 -3
- package/lib/components/api-component/src/config/api-url.js +27 -2
- package/lib/components/api-component/src/config/api-url.js.map +1 -1
- package/lib/components/api-component/src/config/index.js +1 -0
- package/lib/components/api-component/src/config/index.js.map +1 -1
- package/lib/components/api-component/src/config/table.js +1 -1
- package/lib/components/api-component/src/config/table.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +8 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/table/src/components/main-table.vue2.js +1 -7
- package/lib/components/table/src/components/main-table.vue2.js.map +1 -1
- package/lib/components/tag-group/src/tag-group.vue2.js +0 -1
- package/lib/components/tag-group/src/tag-group.vue2.js.map +1 -1
- package/lib/components/tree-search/index.d.ts +15 -4
- package/lib/components/tree-search/src/components/header-search.vue.d.ts +2 -3
- package/lib/components/tree-search/src/components/header-search.vue2.js +3 -5
- package/lib/components/tree-search/src/components/header-search.vue2.js.map +1 -1
- package/lib/components/tree-search/src/config/tree-search.d.ts +6 -0
- package/lib/components/tree-search/src/config/tree-search.js +6 -0
- package/lib/components/tree-search/src/config/tree-search.js.map +1 -1
- package/lib/components/tree-search/src/tree-search.vue.d.ts +15 -4
- package/lib/components/tree-search/src/tree-search.vue2.js +2 -4
- package/lib/components/tree-search/src/tree-search.vue2.js.map +1 -1
- package/lib/components/upload-image/index.d.ts +130 -0
- package/lib/components/upload-image/index.js +17 -0
- package/lib/components/upload-image/index.js.map +1 -0
- package/lib/components/upload-image/src/upload-image.d.ts +40 -0
- package/lib/components/upload-image/src/upload-image.js +49 -0
- package/lib/components/upload-image/src/upload-image.js.map +1 -0
- package/lib/components/upload-image/src/upload-image.vue.d.ts +125 -0
- package/lib/components/upload-image/src/upload-image.vue.js +12 -0
- package/lib/components/upload-image/src/upload-image.vue.js.map +1 -0
- package/lib/components/upload-image/src/upload-image.vue2.js +224 -0
- package/lib/components/upload-image/src/upload-image.vue2.js.map +1 -0
- package/lib/index.js +8 -2
- package/lib/index.js.map +1 -1
- package/lib/utils/file.d.ts +7 -0
- package/lib/utils/file.js +26 -0
- package/lib/utils/file.js.map +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +3 -0
- package/lib/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/css/api-component.css +1 -1
- package/theme-chalk/css/easy-cron.css +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/upload-image.css +1 -0
- package/types/packages/components/api-component/index.d.ts +282 -85
- package/types/packages/components/api-component/src/api-component.vue.d.ts +283 -85
- package/types/packages/components/api-component/src/components/api-url.vue.d.ts +113 -45
- package/types/packages/components/api-component/src/config/api-component.d.ts +53 -12
- package/types/packages/components/api-component/src/config/api-url.d.ts +19 -3
- package/types/packages/components/index.d.ts +1 -0
- package/types/packages/components/tree-search/index.d.ts +15 -4
- package/types/packages/components/tree-search/src/components/header-search.vue.d.ts +2 -3
- package/types/packages/components/tree-search/src/config/tree-search.d.ts +6 -0
- package/types/packages/components/tree-search/src/tree-search.vue.d.ts +15 -4
- package/types/packages/components/upload-image/index.d.ts +130 -0
- package/types/packages/components/upload-image/src/upload-image.d.ts +40 -0
- package/types/packages/components/upload-image/src/upload-image.vue.d.ts +125 -0
- package/types/packages/utils/file.d.ts +7 -0
- package/types/packages/utils/index.d.ts +1 -0
|
@@ -27,98 +27,110 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
const _component_ll_switch = resolveComponent("ll-switch");
|
|
28
28
|
const _component_a_auto_complete = resolveComponent("a-auto-complete");
|
|
29
29
|
const _component_a_col = resolveComponent("a-col");
|
|
30
|
-
const _component_a_popconfirm = resolveComponent("a-popconfirm");
|
|
31
30
|
const _component_a_row = resolveComponent("a-row");
|
|
31
|
+
const _component_a_popconfirm = resolveComponent("a-popconfirm");
|
|
32
32
|
return openBlock(), createElementBlock("div", null, [
|
|
33
33
|
createVNode(_component_a_row, {
|
|
34
34
|
gutter: 20,
|
|
35
35
|
class: normalizeClass(unref(bem).e("table-row"))
|
|
36
36
|
}, {
|
|
37
37
|
default: withCtx(() => [
|
|
38
|
-
(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
renderList(props.columns, (col, index) => {
|
|
42
|
-
return openBlock(), createBlock(_component_a_col, {
|
|
43
|
-
key: index,
|
|
44
|
-
span: col.span || 24 / props.columns.length,
|
|
45
|
-
class: normalizeClass(unref(bem).e("table-col"))
|
|
46
|
-
}, {
|
|
38
|
+
createVNode(_component_a_col, { span: 22 }, {
|
|
39
|
+
default: withCtx(() => [
|
|
40
|
+
createVNode(_component_a_row, { gutter: 20 }, {
|
|
47
41
|
default: withCtx(() => [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
42
|
+
(openBlock(true), createElementBlock(
|
|
43
|
+
Fragment,
|
|
44
|
+
null,
|
|
45
|
+
renderList(props.columns, (col, index) => {
|
|
46
|
+
return openBlock(), createBlock(_component_a_col, {
|
|
47
|
+
key: index,
|
|
48
|
+
span: col.span || 24 / props.columns.length,
|
|
49
|
+
class: normalizeClass(unref(bem).e("table-col"))
|
|
50
|
+
}, {
|
|
51
|
+
default: withCtx(() => [
|
|
52
|
+
col.key === "name" ? (openBlock(), createBlock(_component_ll_input, {
|
|
53
|
+
key: 0,
|
|
54
|
+
value: innerData.value.name,
|
|
55
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerData.value.name = $event),
|
|
56
|
+
disabled: unref(disabled),
|
|
57
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
58
|
+
}, null, 8, ["value", "disabled"])) : createCommentVNode("v-if", true),
|
|
59
|
+
col.key === "required" ? (openBlock(), createBlock(_component_ll_button, {
|
|
60
|
+
key: 1,
|
|
61
|
+
type: "link",
|
|
62
|
+
disabled: unref(disabled),
|
|
63
|
+
class: normalizeClass(`${unref(bem).m("required")} ${innerData.value.required ? unref(bem).is("required") : ""}`),
|
|
64
|
+
onClick: _cache[1] || (_cache[1] = ($event) => innerData.value.required = !innerData.value.required)
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
withDirectives(createVNode(
|
|
68
|
+
_component_ll_icon,
|
|
69
|
+
{ "icon-name": "icon-radio-check" },
|
|
70
|
+
null,
|
|
71
|
+
512
|
|
72
|
+
/* NEED_PATCH */
|
|
73
|
+
), [
|
|
74
|
+
[vShow, innerData.value.required]
|
|
75
|
+
])
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
/* STABLE */
|
|
79
|
+
}, 8, ["disabled", "class"])) : createCommentVNode("v-if", true),
|
|
80
|
+
col.key === "type" ? (openBlock(), createBlock(_component_ll_select, {
|
|
81
|
+
key: 2,
|
|
82
|
+
value: innerData.value.type,
|
|
83
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerData.value.type = $event),
|
|
84
|
+
options: unref(paramsOptions),
|
|
85
|
+
disabled: unref(disabled),
|
|
86
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
87
|
+
style: { "width": "100%" }
|
|
88
|
+
}, null, 8, ["value", "options", "disabled"])) : createCommentVNode("v-if", true),
|
|
89
|
+
col.key === "value" ? (openBlock(), createBlock(ClickInput, {
|
|
90
|
+
key: 3,
|
|
91
|
+
value: innerData.value.value,
|
|
92
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => innerData.value.value = $event),
|
|
93
|
+
type: "code",
|
|
94
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
95
|
+
style: { "width": "100%" }
|
|
96
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true),
|
|
97
|
+
col.key === "static" ? (openBlock(), createBlock(_component_ll_switch, {
|
|
98
|
+
key: 4,
|
|
99
|
+
checked: innerData.value[col.key],
|
|
100
|
+
"onUpdate:checked": ($event) => innerData.value[col.key] = $event,
|
|
101
|
+
disabled: unref(disabled)
|
|
102
|
+
}, null, 8, ["checked", "onUpdate:checked", "disabled"])) : createCommentVNode("v-if", true),
|
|
103
|
+
col.key === "description" ? (openBlock(), createBlock(_component_ll_input, {
|
|
104
|
+
key: 5,
|
|
105
|
+
value: innerData.value[col.key],
|
|
106
|
+
"onUpdate:value": ($event) => innerData.value[col.key] = $event,
|
|
107
|
+
placeholder: col.placeholder || "\u8BF7\u8F93\u5165",
|
|
108
|
+
disabled: unref(disabled)
|
|
109
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder", "disabled"])) : createCommentVNode("v-if", true),
|
|
110
|
+
col.key === "contentType" ? (openBlock(), createBlock(_component_a_auto_complete, {
|
|
111
|
+
key: 6,
|
|
112
|
+
value: innerData.value[col.key],
|
|
113
|
+
"onUpdate:value": ($event) => innerData.value[col.key] = $event,
|
|
114
|
+
disabled: unref(disabled),
|
|
115
|
+
options: unref(contentTypeOptions),
|
|
116
|
+
placeholder: col.placeholder || "\u8BF7\u8F93\u5165"
|
|
117
|
+
}, null, 8, ["value", "onUpdate:value", "disabled", "options", "placeholder"])) : createCommentVNode("v-if", true)
|
|
118
|
+
]),
|
|
119
|
+
_: 2
|
|
120
|
+
/* DYNAMIC */
|
|
121
|
+
}, 1032, ["span", "class"]);
|
|
122
|
+
}),
|
|
123
|
+
128
|
|
124
|
+
/* KEYED_FRAGMENT */
|
|
125
|
+
))
|
|
114
126
|
]),
|
|
115
|
-
_:
|
|
116
|
-
/*
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
/*
|
|
121
|
-
)
|
|
127
|
+
_: 1
|
|
128
|
+
/* STABLE */
|
|
129
|
+
})
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
/* STABLE */
|
|
133
|
+
}),
|
|
122
134
|
createVNode(_component_a_col, {
|
|
123
135
|
span: 2,
|
|
124
136
|
class: normalizeClass(unref(bem).e("table-col"))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"params-table-row.vue2.mjs","sources":["../../../../../../packages/components/api-component/src/components/params-table-row.vue"],"sourcesContent":["<template>\n <div>\n <a-row :gutter=\"20\" :class=\"bem.e('table-row')\">\n <a-col\n v-for=\"(col, index) in props.columns\"\n
|
|
1
|
+
{"version":3,"file":"params-table-row.vue2.mjs","sources":["../../../../../../packages/components/api-component/src/components/params-table-row.vue"],"sourcesContent":["<template>\n <div>\n <a-row :gutter=\"20\" :class=\"bem.e('table-row')\">\n <a-col :span=\"22\">\n <a-row :gutter=\"20\">\n <a-col\n v-for=\"(col, index) in props.columns\"\n :key=\"index\"\n :span=\"col.span || 24 / props.columns.length\"\n :class=\"bem.e('table-col')\"\n >\n <template v-if=\"col.key === 'name'\">\n <ll-input\n v-model:value=\"innerData.name\"\n :disabled=\"disabled\"\n placeholder=\"请输入\"\n />\n </template>\n <template v-if=\"col.key === 'required'\">\n <ll-button\n type=\"link\"\n :disabled=\"disabled\"\n :class=\"`${bem.m('required')} ${\n innerData.required ? bem.is('required') : ''\n }`\"\n @click=\"innerData.required = !innerData.required\"\n >\n <ll-icon\n v-show=\"innerData.required\"\n icon-name=\"icon-radio-check\"\n />\n </ll-button>\n </template>\n\n <template v-if=\"col.key === 'type'\">\n <ll-select\n v-model:value=\"innerData.type\"\n :options=\"paramsOptions\"\n :disabled=\"disabled\"\n placeholder=\"请选择\"\n style=\"width: 100%\"\n />\n </template>\n <template v-if=\"col.key === 'value'\">\n <click-input\n v-model:value=\"innerData.value\"\n type=\"code\"\n placeholder=\"请输入\"\n style=\"width: 100%\"\n />\n </template>\n <template v-if=\"col.key === 'static'\">\n <ll-switch\n v-model:checked=\"innerData[col.key]\"\n :disabled=\"disabled\"\n />\n </template>\n\n <template v-if=\"col.key === 'description'\">\n <ll-input\n v-model:value=\"innerData[col.key]\"\n :placeholder=\"col.placeholder || '请输入'\"\n :disabled=\"disabled\"\n />\n </template>\n <template v-if=\"col.key === 'contentType'\">\n <a-auto-complete\n v-model:value=\"innerData[col.key]\"\n :disabled=\"disabled\"\n :options=\"contentTypeOptions\"\n :placeholder=\"col.placeholder || '请输入'\"\n />\n </template>\n </a-col>\n </a-row>\n </a-col>\n <a-col :span=\"2\" :class=\"bem.e('table-col')\">\n <a-popconfirm\n title=\"你确定要移除吗?\"\n ok-text=\"确认\"\n cancel-text=\"取消\"\n placement=\"topRight\"\n :disabled=\"disabled\"\n :overlay-class-name=\"bem.e('popconfirm')\"\n @confirm=\"handleDelete(props.dataSource, innerData)\"\n >\n <ll-button type=\"link\" :disabled=\"disabled\">\n <ll-icon icon-name=\"icon-remove\" />\n </ll-button>\n </a-popconfirm>\n </a-col>\n </a-row>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, inject } from 'vue'\n// paramsTableRowEmits\nimport {\n paramsTableRowProps,\n paramsOptions,\n contentTypeOptions\n} from '../config'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport ClickInput from './click-input.vue'\n\ndefineOptions({ name: 'LlParamsTableRow' })\n\nconst props = defineProps(paramsTableRowProps)\n\n// const emits = defineEmits(paramsTableRowEmits)\n\nconst bem = createNamespace('params-table')\n\nconst disabled = inject('disabled')\n\nconst innerData = ref(props.data)\n\nconst handleDelete = (list, data) => {\n const index = list.findIndex(item => item.name === data.name)\n list.splice(index, 1)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;AA8GA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAId,IAAM,MAAA,GAAA,GAAM,gBAAgB,cAAc,CAAA,CAAA;AAE1C,IAAM,MAAA,QAAA,GAAW,OAAO,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,SAAA,GAAY,GAAI,CAAA,KAAA,CAAM,IAAI,CAAA,CAAA;AAEhC,IAAM,MAAA,YAAA,GAAe,CAAC,IAAA,EAAM,IAAS,KAAA;AACnC,MAAA,MAAM,QAAQ,IAAK,CAAA,SAAA,CAAU,UAAQ,IAAK,CAAA,IAAA,KAAS,KAAK,IAAI,CAAA,CAAA;AAC5D,MAAK,IAAA,CAAA,MAAA,CAAO,OAAO,CAAC,CAAA,CAAA;AAAA,KACtB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -46,42 +46,57 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
gutter: 20
|
|
47
47
|
}, {
|
|
48
48
|
default: withCtx(() => [
|
|
49
|
-
(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
renderList(props.columns, (col, index) => {
|
|
53
|
-
return openBlock(), createBlock(_component_a_col, {
|
|
54
|
-
key: index,
|
|
55
|
-
span: col.span,
|
|
56
|
-
class: normalizeClass(unref(bem).e("table-header-col"))
|
|
57
|
-
}, {
|
|
49
|
+
createVNode(_component_a_col, { span: 22 }, {
|
|
50
|
+
default: withCtx(() => [
|
|
51
|
+
createVNode(_component_a_row, { gutter: 20 }, {
|
|
58
52
|
default: withCtx(() => [
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
(openBlock(true), createElementBlock(
|
|
54
|
+
Fragment,
|
|
61
55
|
null,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
renderList(props.columns, (col, index) => {
|
|
57
|
+
return openBlock(), createBlock(_component_a_col, {
|
|
58
|
+
key: index,
|
|
59
|
+
span: col.span,
|
|
60
|
+
class: normalizeClass(unref(bem).e("table-header-col"))
|
|
61
|
+
}, {
|
|
62
|
+
default: withCtx(() => [
|
|
63
|
+
createElementVNode(
|
|
64
|
+
"span",
|
|
65
|
+
null,
|
|
66
|
+
toDisplayString(col.title),
|
|
67
|
+
1
|
|
68
|
+
/* TEXT */
|
|
69
|
+
),
|
|
70
|
+
col.key === "static" ? (openBlock(), createBlock(_component_ll_tooltip, {
|
|
71
|
+
key: 0,
|
|
72
|
+
tip: "Content-Type \u5B57\u6BB5\u7528\u4E8E\u6307\u5B9A\u8BF7\u6C42\u90E8\u5206\u7684\u5A92\u4F53\u7C7B\u578B"
|
|
73
|
+
})) : createCommentVNode("v-if", true)
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
/* DYNAMIC */
|
|
77
|
+
}, 1032, ["span", "class"]);
|
|
78
|
+
}),
|
|
79
|
+
128
|
|
80
|
+
/* KEYED_FRAGMENT */
|
|
81
|
+
))
|
|
70
82
|
]),
|
|
71
|
-
_:
|
|
72
|
-
/*
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/*
|
|
77
|
-
)
|
|
78
|
-
createVNode(_component_a_col, {
|
|
83
|
+
_: 1
|
|
84
|
+
/* STABLE */
|
|
85
|
+
})
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
/* STABLE */
|
|
89
|
+
}),
|
|
90
|
+
createVNode(_component_a_col, {
|
|
91
|
+
class: normalizeClass(unref(bem).e("table-header-col")),
|
|
92
|
+
span: 2
|
|
93
|
+
}, {
|
|
79
94
|
default: withCtx(() => [
|
|
80
95
|
createTextVNode(" \u64CD\u4F5C ")
|
|
81
96
|
]),
|
|
82
97
|
_: 1
|
|
83
98
|
/* STABLE */
|
|
84
|
-
})
|
|
99
|
+
}, 8, ["class"])
|
|
85
100
|
]),
|
|
86
101
|
_: 1
|
|
87
102
|
/* STABLE */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"params-table.vue2.mjs","sources":["../../../../../../packages/components/api-component/src/components/params-table.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-row :class=\"bem.m('table-header')\" :gutter=\"20\">\n <a-col\n v-for=\"(col, index) in props.columns\"\n
|
|
1
|
+
{"version":3,"file":"params-table.vue2.mjs","sources":["../../../../../../packages/components/api-component/src/components/params-table.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-row :class=\"bem.m('table-header')\" :gutter=\"20\">\n <a-col :span=\"22\">\n <a-row :gutter=\"20\">\n <a-col\n v-for=\"(col, index) in props.columns\"\n :key=\"index\"\n :span=\"col.span\"\n :class=\"bem.e('table-header-col')\"\n >\n <span>{{ col.title }}</span>\n <ll-tooltip\n v-if=\"col.key === 'static'\"\n tip=\"Content-Type 字段用于指定请求部分的媒体类型\"\n />\n </a-col>\n </a-row>\n </a-col>\n\n <a-col :class=\"bem.e('table-header-col')\" :span=\"2\"> 操作 </a-col>\n </a-row>\n <div :class=\"bem.m('table-body')\">\n <table-row\n v-for=\"(item, index) in props.dataSource\"\n :key=\"index\"\n :data=\"item\"\n :columns=\"props.columns\"\n :data-source=\"props.dataSource\"\n />\n <a-row :gutter=\"20\" :class=\"bem.e('table-row')\">\n <a-col\n v-for=\"(col, index) in props.columns\"\n :key=\"index\"\n :span=\"col.span || 24 / props.columns.length\"\n :class=\"bem.e('table-col')\"\n >\n <template v-if=\"col.key === 'name'\">\n <ll-input\n v-model:value=\"addData\"\n placeholder=\"添加参数\"\n :disabled=\"disabled\"\n :bordered=\"false\"\n @blur=\"handleAdd(props.dataSource)\"\n />\n </template>\n </a-col>\n </a-row>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, inject } from 'vue'\n\nimport { paramsTableProps } from '../config'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport TableRow from './params-table-row.vue'\n\ndefineOptions({ name: 'LlParamsTable' })\n\nconst bem = createNamespace('params-table')\n\nconst props = defineProps(paramsTableProps)\n\nconst disabled = inject('disabled')\n\nconst addData = ref('')\n\nconst handleAdd = dataSource => {\n if (\n (addData.value && dataSource.find(e => e.name !== addData.value)) ||\n !dataSource.length\n ) {\n if (!addData.value) return\n dataSource.push({\n name: addData.value,\n required: false,\n value: '',\n static: false,\n description: '',\n contentType: ''\n })\n addData.value = ''\n }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;AA+DA,IAAM,MAAA,GAAA,GAAM,gBAAgB,cAAc,CAAA,CAAA;AAE1C,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,QAAA,GAAW,OAAO,UAAU,CAAA,CAAA;AAElC,IAAM,MAAA,OAAA,GAAU,IAAI,EAAE,CAAA,CAAA;AAEtB,IAAA,MAAM,YAAY,CAAc,UAAA,KAAA;AAC9B,MAAA,IACG,OAAQ,CAAA,KAAA,IAAS,UAAW,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,CAAA,CAAE,IAAS,KAAA,OAAA,CAAQ,KAAK,CAAA,IAC/D,CAAC,UAAA,CAAW,MACZ,EAAA;AACA,QAAA,IAAI,CAAC,OAAQ,CAAA,KAAA;AAAO,UAAA,OAAA;AACpB,QAAA,UAAA,CAAW,IAAK,CAAA;AAAA,UACd,MAAM,OAAQ,CAAA,KAAA;AAAA,UACd,QAAU,EAAA,KAAA;AAAA,UACV,KAAO,EAAA,EAAA;AAAA,UACP,MAAQ,EAAA,KAAA;AAAA,UACR,WAAa,EAAA,EAAA;AAAA,UACb,WAAa,EAAA,EAAA;AAAA,SACd,CAAA,CAAA;AACD,QAAA,OAAA,CAAQ,KAAQ,GAAA,EAAA,CAAA;AAAA,OAClB;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
import type ApiComponent from '../api-component.vue';
|
|
3
|
+
import type { IJsonXmlItem } from './';
|
|
3
4
|
export type IMethod = 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
4
5
|
export type IValueType = 'string' | 'integer' | 'boolean' | 'number' | 'array' | null | any;
|
|
5
6
|
export interface IParam {
|
|
@@ -30,23 +31,63 @@ export interface IApiParams {
|
|
|
30
31
|
headerParams?: IParam[];
|
|
31
32
|
bodyParams?: Record<string, any>;
|
|
32
33
|
}
|
|
34
|
+
export type BodyParams = {
|
|
35
|
+
none: null;
|
|
36
|
+
'form-data': IParam[];
|
|
37
|
+
json: IJsonXmlItem[];
|
|
38
|
+
xml: IJsonXmlItem[];
|
|
39
|
+
raw: string;
|
|
40
|
+
'x-www-form-urlencoded': IParam[];
|
|
41
|
+
};
|
|
42
|
+
export type HttpModel = {
|
|
43
|
+
url: string;
|
|
44
|
+
method: IMethod;
|
|
45
|
+
requestParams: IParam[];
|
|
46
|
+
headerParams: IParam[];
|
|
47
|
+
bodyParams: BodyParams;
|
|
48
|
+
};
|
|
33
49
|
export declare const apiComponentProps: {
|
|
34
|
-
readonly
|
|
50
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => HttpModel) | (() => HttpModel) | ((new (...args: any[]) => HttpModel) | (() => HttpModel))[], unknown, unknown, () => {
|
|
51
|
+
url: string;
|
|
52
|
+
method: string;
|
|
53
|
+
requestParams: never[];
|
|
54
|
+
headerParams: never[];
|
|
55
|
+
bodyParams: {
|
|
56
|
+
none: null;
|
|
57
|
+
'form-data': never[];
|
|
58
|
+
json: never[];
|
|
59
|
+
xml: never[];
|
|
60
|
+
raw: string;
|
|
61
|
+
'x-www-form-urlencoded': never[];
|
|
62
|
+
};
|
|
63
|
+
}, boolean>;
|
|
35
64
|
readonly disabled: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
65
|
+
readonly isValid: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
66
|
+
readonly rules: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
67
|
+
[k: string]: import("ant-design-vue/es/form").RuleObject | import("ant-design-vue/es/form").RuleObject[];
|
|
68
|
+
}) | (() => {
|
|
69
|
+
[k: string]: import("ant-design-vue/es/form").RuleObject | import("ant-design-vue/es/form").RuleObject[];
|
|
70
|
+
} | undefined) | ((new (...args: any[]) => {
|
|
71
|
+
[k: string]: import("ant-design-vue/es/form").RuleObject | import("ant-design-vue/es/form").RuleObject[];
|
|
72
|
+
}) | (() => {
|
|
73
|
+
[k: string]: import("ant-design-vue/es/form").RuleObject | import("ant-design-vue/es/form").RuleObject[];
|
|
74
|
+
} | undefined))[], unknown, unknown, () => {
|
|
75
|
+
url: ({
|
|
76
|
+
required: boolean;
|
|
77
|
+
trigger: string;
|
|
78
|
+
message: string;
|
|
79
|
+
pattern?: undefined;
|
|
80
|
+
} | {
|
|
81
|
+
trigger: string;
|
|
82
|
+
pattern: RegExp;
|
|
83
|
+
message: string;
|
|
84
|
+
required?: undefined;
|
|
85
|
+
})[];
|
|
46
86
|
}, boolean>;
|
|
47
87
|
};
|
|
48
88
|
export declare const apiComponentEmits: {
|
|
49
|
-
change: (value:
|
|
89
|
+
change: (value: HttpModel) => boolean;
|
|
90
|
+
'update:value': (value: HttpModel) => boolean;
|
|
50
91
|
};
|
|
51
92
|
export type ApiComponentProps = ExtractPropTypes<typeof apiComponentProps>;
|
|
52
93
|
export type ApiComponentEmits = typeof apiComponentEmits;
|
|
@@ -44,40 +44,52 @@ const bodyList = [
|
|
|
44
44
|
}
|
|
45
45
|
];
|
|
46
46
|
const apiComponentProps = buildProps({
|
|
47
|
-
|
|
48
|
-
type:
|
|
49
|
-
default:
|
|
47
|
+
value: {
|
|
48
|
+
type: definePropType(Object),
|
|
49
|
+
default: () => ({
|
|
50
|
+
url: "",
|
|
51
|
+
method: DEFAULT_METHOD,
|
|
52
|
+
requestParams: [],
|
|
53
|
+
headerParams: [],
|
|
54
|
+
bodyParams: {
|
|
55
|
+
none: null,
|
|
56
|
+
"form-data": [],
|
|
57
|
+
json: [],
|
|
58
|
+
xml: [],
|
|
59
|
+
raw: "",
|
|
60
|
+
"x-www-form-urlencoded": []
|
|
61
|
+
}
|
|
62
|
+
})
|
|
50
63
|
},
|
|
51
64
|
disabled: {
|
|
52
65
|
type: Boolean,
|
|
53
66
|
default: false
|
|
54
67
|
},
|
|
55
|
-
|
|
56
|
-
type:
|
|
57
|
-
default:
|
|
58
|
-
},
|
|
59
|
-
requestParams: {
|
|
60
|
-
type: definePropType(Array),
|
|
61
|
-
default: () => []
|
|
62
|
-
},
|
|
63
|
-
headerParams: {
|
|
64
|
-
type: definePropType(Array),
|
|
65
|
-
default: () => []
|
|
68
|
+
isValid: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
66
71
|
},
|
|
67
|
-
|
|
68
|
-
type: Object,
|
|
72
|
+
rules: {
|
|
73
|
+
type: definePropType(Object),
|
|
69
74
|
default: () => ({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
url: [
|
|
76
|
+
{
|
|
77
|
+
required: true,
|
|
78
|
+
trigger: "blur",
|
|
79
|
+
message: "\u8BF7\u8F93\u5165url"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
trigger: "change",
|
|
83
|
+
pattern: /^(http|https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([\/\w .-]*)*\/?$/,
|
|
84
|
+
message: "\u8F93\u5165url\u683C\u5F0F\u9519\u8BEF"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
76
87
|
})
|
|
77
88
|
}
|
|
78
89
|
});
|
|
79
90
|
const apiComponentEmits = {
|
|
80
|
-
change: (value) => !!value
|
|
91
|
+
change: (value) => !!value,
|
|
92
|
+
"update:value": (value) => !!value
|
|
81
93
|
};
|
|
82
94
|
|
|
83
95
|
export { DEFAULT_METHOD, apiComponentEmits, apiComponentProps, bodyList, requestList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-component.mjs","sources":["../../../../../../packages/components/api-component/src/config/api-component.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nimport type ApiComponent from '../api-component.vue'\n\nexport type IMethod = 'GET' | 'POST' | 'PUT' | 'DELETE'\n\nexport type IValueType =\n | 'string'\n | 'integer'\n | 'boolean'\n | 'number'\n | 'array'\n | null\n | any\n\nexport interface IParam {\n required?: boolean\n name?: string\n value?: string\n type?: IValueType\n static?: boolean\n contentType?: string\n description?: string\n chineseName?: string\n children?: IParam[]\n [key: string]: any\n}\n\nexport const DEFAULT_METHOD = 'GET'\n\nexport const requestList = [\n {\n key: 'params',\n name: '请求参数'\n },\n {\n key: 'body',\n name: '请求报文体'\n },\n {\n key: 'headers',\n name: '请求头'\n }\n]\n\nexport const bodyList = [\n {\n key: 'none',\n name: 'none'\n },\n {\n key: 'form-data',\n name: 'form-data'\n },\n {\n key: 'x-www-form-urlencoded',\n name: 'x-www-form-urlencoded'\n },\n {\n key: 'json',\n name: 'json'\n },\n {\n key: 'xml',\n name: 'xml'\n },\n {\n key: 'raw',\n name: 'raw'\n }\n]\n\nexport interface IApiParams {\n url?: string\n method?: IMethod\n requestParams?: IParam[]\n headerParams?: IParam[]\n bodyParams?: Record<string, any>\n}\n\
|
|
1
|
+
{"version":3,"file":"api-component.mjs","sources":["../../../../../../packages/components/api-component/src/config/api-component.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nimport type ApiComponent from '../api-component.vue'\n\nimport type { FormProps } from 'ant-design-vue'\n\nimport type { IJsonXmlItem } from './'\n\nexport type IMethod = 'GET' | 'POST' | 'PUT' | 'DELETE'\n\nexport type IValueType =\n | 'string'\n | 'integer'\n | 'boolean'\n | 'number'\n | 'array'\n | null\n | any\n\nexport interface IParam {\n required?: boolean\n name?: string\n value?: string\n type?: IValueType\n static?: boolean\n contentType?: string\n description?: string\n chineseName?: string\n children?: IParam[]\n [key: string]: any\n}\n\nexport const DEFAULT_METHOD = 'GET'\n\nexport const requestList = [\n {\n key: 'params',\n name: '请求参数'\n },\n {\n key: 'body',\n name: '请求报文体'\n },\n {\n key: 'headers',\n name: '请求头'\n }\n]\n\nexport const bodyList = [\n {\n key: 'none',\n name: 'none'\n },\n {\n key: 'form-data',\n name: 'form-data'\n },\n {\n key: 'x-www-form-urlencoded',\n name: 'x-www-form-urlencoded'\n },\n {\n key: 'json',\n name: 'json'\n },\n {\n key: 'xml',\n name: 'xml'\n },\n {\n key: 'raw',\n name: 'raw'\n }\n]\n\nexport interface IApiParams {\n url?: string\n method?: IMethod\n requestParams?: IParam[]\n headerParams?: IParam[]\n bodyParams?: Record<string, any>\n}\n\n// export const httpModel = buildProps({\n// url: {\n// type: String,\n// default: ''\n// },\n// method: {\n// type: definePropType<IMethod>(String),\n// default: DEFAULT_METHOD\n// },\n// requestParams: {\n// type: definePropType<IParam[]>(Array),\n// default: () => [] as IParam[]\n// },\n// headerParams: {\n// type: definePropType<IParam[]>(Array),\n// default: () => [] as IParam[]\n// },\n// bodyParams: {\n// type: Object,\n// default: () => ({\n// none: null,\n// 'form-data': [],\n// json: [],\n// xml: [],\n// raw: '',\n// 'x-www-form-urlencoded': []\n// })\n// }\n// } as const)\n\n// export type HttpModel = ExtractPropTypes<typeof httpModel>\nexport type BodyParams = {\n none: null\n 'form-data': IParam[]\n json: IJsonXmlItem[]\n xml: IJsonXmlItem[]\n raw: string\n 'x-www-form-urlencoded': IParam[]\n}\n\nexport type HttpModel = {\n url: string\n method: IMethod\n requestParams: IParam[]\n headerParams: IParam[]\n bodyParams: BodyParams\n}\n\nexport const apiComponentProps = buildProps({\n value: {\n type: definePropType<HttpModel>(Object),\n default: () => ({\n url: '',\n method: DEFAULT_METHOD,\n requestParams: [],\n headerParams: [],\n bodyParams: {\n none: null,\n 'form-data': [],\n json: [],\n xml: [],\n raw: '',\n 'x-www-form-urlencoded': []\n }\n })\n },\n disabled: {\n type: Boolean,\n default: false\n },\n isValid: {\n type: Boolean,\n default: false\n },\n rules: {\n type: definePropType<FormProps['rules']>(Object),\n default: () => ({\n url: [\n {\n required: true,\n trigger: 'blur',\n message: '请输入url'\n },\n {\n trigger: 'change',\n pattern:\n /^(http|https?:\\/\\/)?([\\da-z.-]+)\\.([a-z.]{2,6})([\\/\\w .-]*)*\\/?$/,\n message: '输入url格式错误'\n }\n ]\n })\n }\n} as const)\n\nexport const apiComponentEmits = {\n change: (value: HttpModel) => !!value,\n 'update:value': (value: HttpModel) => !!value\n}\n// props\nexport type ApiComponentProps = ExtractPropTypes<typeof apiComponentProps>\n\n// emits\nexport type ApiComponentEmits = typeof apiComponentEmits\n\n// instance\nexport type ApiComponentInstance = InstanceType<typeof ApiComponent>\n"],"names":[],"mappings":";;;;AAkCO,MAAM,cAAiB,GAAA,MAAA;AAEvB,MAAM,WAAc,GAAA;AAAA,EACzB;AAAA,IACE,GAAK,EAAA,QAAA;AAAA,IACL,IAAM,EAAA,0BAAA;AAAA,GACR;AAAA,EACA;AAAA,IACE,GAAK,EAAA,MAAA;AAAA,IACL,IAAM,EAAA,gCAAA;AAAA,GACR;AAAA,EACA;AAAA,IACE,GAAK,EAAA,SAAA;AAAA,IACL,IAAM,EAAA,oBAAA;AAAA,GACR;AACF,EAAA;AAEO,MAAM,QAAW,GAAA;AAAA,EACtB;AAAA,IACE,GAAK,EAAA,MAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA;AAAA,IACE,GAAK,EAAA,WAAA;AAAA,IACL,IAAM,EAAA,WAAA;AAAA,GACR;AAAA,EACA;AAAA,IACE,GAAK,EAAA,uBAAA;AAAA,IACL,IAAM,EAAA,uBAAA;AAAA,GACR;AAAA,EACA;AAAA,IACE,GAAK,EAAA,MAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA;AAAA,IACE,GAAK,EAAA,KAAA;AAAA,IACL,IAAM,EAAA,KAAA;AAAA,GACR;AAAA,EACA;AAAA,IACE,GAAK,EAAA,KAAA;AAAA,IACL,IAAM,EAAA,KAAA;AAAA,GACR;AACF,EAAA;AA0DO,MAAM,oBAAoB,UAAW,CAAA;AAAA,EAC1C,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAA0B,MAAM,CAAA;AAAA,IACtC,SAAS,OAAO;AAAA,MACd,GAAK,EAAA,EAAA;AAAA,MACL,MAAQ,EAAA,cAAA;AAAA,MACR,eAAe,EAAC;AAAA,MAChB,cAAc,EAAC;AAAA,MACf,UAAY,EAAA;AAAA,QACV,IAAM,EAAA,IAAA;AAAA,QACN,aAAa,EAAC;AAAA,QACd,MAAM,EAAC;AAAA,QACP,KAAK,EAAC;AAAA,QACN,GAAK,EAAA,EAAA;AAAA,QACL,yBAAyB,EAAC;AAAA,OAC5B;AAAA,KACF,CAAA;AAAA,GACF;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAAmC,MAAM,CAAA;AAAA,IAC/C,SAAS,OAAO;AAAA,MACd,GAAK,EAAA;AAAA,QACH;AAAA,UACE,QAAU,EAAA,IAAA;AAAA,UACV,OAAS,EAAA,MAAA;AAAA,UACT,OAAS,EAAA,uBAAA;AAAA,SACX;AAAA,QACA;AAAA,UACE,OAAS,EAAA,QAAA;AAAA,UACT,OACE,EAAA,kEAAA;AAAA,UACF,OAAS,EAAA,yCAAA;AAAA,SACX;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAU,EAAA;AAEH,MAAM,iBAAoB,GAAA;AAAA,EAC/B,MAAQ,EAAA,CAAC,KAAqB,KAAA,CAAC,CAAC,KAAA;AAAA,EAChC,cAAgB,EAAA,CAAC,KAAqB,KAAA,CAAC,CAAC,KAAA;AAC1C;;;;"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type HttpModel } from './';
|
|
2
2
|
export declare const methods: {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
5
|
}[];
|
|
6
|
+
export declare const apiUrlProps: {
|
|
7
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => HttpModel) | (() => HttpModel) | ((new (...args: any[]) => HttpModel) | (() => HttpModel))[], unknown, unknown, () => {
|
|
8
|
+
url: string;
|
|
9
|
+
method: string;
|
|
10
|
+
requestParams: never[];
|
|
11
|
+
headerParams: never[];
|
|
12
|
+
bodyParams: {
|
|
13
|
+
none: null;
|
|
14
|
+
'form-data': never[];
|
|
15
|
+
json: never[];
|
|
16
|
+
xml: never[];
|
|
17
|
+
raw: string;
|
|
18
|
+
'x-www-form-urlencoded': never[];
|
|
19
|
+
};
|
|
20
|
+
}, boolean>;
|
|
21
|
+
};
|
|
6
22
|
export declare const apiUrlEmits: {
|
|
7
|
-
|
|
8
|
-
|
|
23
|
+
'update:value': (params: HttpModel) => boolean;
|
|
24
|
+
change: (params: HttpModel) => boolean;
|
|
9
25
|
};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import '../../../../utils/index.mjs';
|
|
2
|
+
import './index.mjs';
|
|
3
|
+
import { buildProps, definePropType } from '../../../../utils/props/runtime.mjs';
|
|
4
|
+
import { DEFAULT_METHOD } from './api-component.mjs';
|
|
5
|
+
|
|
1
6
|
"use strict";
|
|
2
7
|
const methods = [
|
|
3
8
|
{
|
|
@@ -17,10 +22,29 @@ const methods = [
|
|
|
17
22
|
value: "DELETE"
|
|
18
23
|
}
|
|
19
24
|
];
|
|
25
|
+
const apiUrlProps = buildProps({
|
|
26
|
+
value: {
|
|
27
|
+
type: definePropType(Object),
|
|
28
|
+
default: () => ({
|
|
29
|
+
url: "",
|
|
30
|
+
method: DEFAULT_METHOD,
|
|
31
|
+
requestParams: [],
|
|
32
|
+
headerParams: [],
|
|
33
|
+
bodyParams: {
|
|
34
|
+
none: null,
|
|
35
|
+
"form-data": [],
|
|
36
|
+
json: [],
|
|
37
|
+
xml: [],
|
|
38
|
+
raw: "",
|
|
39
|
+
"x-www-form-urlencoded": []
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
});
|
|
20
44
|
const apiUrlEmits = {
|
|
21
|
-
|
|
22
|
-
|
|
45
|
+
"update:value": (params) => !!params,
|
|
46
|
+
change: (params) => !!params
|
|
23
47
|
};
|
|
24
48
|
|
|
25
|
-
export { apiUrlEmits, methods };
|
|
49
|
+
export { apiUrlEmits, apiUrlProps, methods };
|
|
26
50
|
//# sourceMappingURL=api-url.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-url.mjs","sources":["../../../../../../packages/components/api-component/src/config/api-url.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"api-url.mjs","sources":["../../../../../../packages/components/api-component/src/config/api-url.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport { type HttpModel, DEFAULT_METHOD } from './'\n\nexport const methods = [\n {\n label: 'GET',\n value: 'GET'\n },\n {\n label: 'POST',\n value: 'POST'\n },\n {\n label: 'PUT',\n value: 'PUT'\n },\n {\n label: 'DELETE',\n value: 'DELETE'\n }\n]\n\nexport const apiUrlProps = buildProps({\n value: {\n type: definePropType<HttpModel>(Object),\n default: () => ({\n url: '',\n method: DEFAULT_METHOD,\n requestParams: [],\n headerParams: [],\n bodyParams: {\n none: null,\n 'form-data': [],\n json: [],\n xml: [],\n raw: '',\n 'x-www-form-urlencoded': []\n }\n })\n }\n} as const)\n\nexport const apiUrlEmits = {\n 'update:value': (params: HttpModel) => !!params,\n change: (params: HttpModel) => !!params\n}\n"],"names":[],"mappings":";;;;;;AAIO,MAAM,OAAU,GAAA;AAAA,EACrB;AAAA,IACE,KAAO,EAAA,KAAA;AAAA,IACP,KAAO,EAAA,KAAA;AAAA,GACT;AAAA,EACA;AAAA,IACE,KAAO,EAAA,MAAA;AAAA,IACP,KAAO,EAAA,MAAA;AAAA,GACT;AAAA,EACA;AAAA,IACE,KAAO,EAAA,KAAA;AAAA,IACP,KAAO,EAAA,KAAA;AAAA,GACT;AAAA,EACA;AAAA,IACE,KAAO,EAAA,QAAA;AAAA,IACP,KAAO,EAAA,QAAA;AAAA,GACT;AACF,EAAA;AAEO,MAAM,cAAc,UAAW,CAAA;AAAA,EACpC,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAA0B,MAAM,CAAA;AAAA,IACtC,SAAS,OAAO;AAAA,MACd,GAAK,EAAA,EAAA;AAAA,MACL,MAAQ,EAAA,cAAA;AAAA,MACR,eAAe,EAAC;AAAA,MAChB,cAAc,EAAC;AAAA,MACf,UAAY,EAAA;AAAA,QACV,IAAM,EAAA,IAAA;AAAA,QACN,aAAa,EAAC;AAAA,QACd,MAAM,EAAC;AAAA,QACP,KAAK,EAAC;AAAA,QACN,GAAK,EAAA,EAAA;AAAA,QACL,yBAAyB,EAAC;AAAA,OAC5B;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAU,EAAA;AAEH,MAAM,WAAc,GAAA;AAAA,EACzB,cAAgB,EAAA,CAAC,MAAsB,KAAA,CAAC,CAAC,MAAA;AAAA,EACzC,MAAQ,EAAA,CAAC,MAAsB,KAAA,CAAC,CAAC,MAAA;AACnC;;;;"}
|