keli-ui 0.1.1 → 0.2.0
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/README.md +5 -5
- package/dist/keli-ui.css +1 -1
- package/dist/keli-ui.js +414 -131
- package/dist/keli-ui.umd.cjs +1 -1
- package/dist/types/packages/FormComponents/FormTableSelect/FormTableSelect.vue.d.ts +2 -0
- package/dist/types/packages/FormComponents/FormTableSelect/index.d.ts +2 -0
- package/dist/types/packages/FormComponents/FormTableSelectAsync/FormTableSelectAsyncClient.vue.d.ts +2 -0
- package/dist/types/packages/FormComponents/FormTableSelectAsync/index.d.ts +2 -0
- package/dist/types/packages/FormComponents/{FormSelectAsync/hooks → hook}/selectAsync.hook.d.ts +1 -1
- package/dist/types/packages/index.d.ts +3 -1
- package/dist/types/packages/types/formFrame.d.ts +56 -0
- package/package.json +67 -67
package/dist/keli-ui.js
CHANGED
|
@@ -36174,7 +36174,7 @@ const mergeObjects = (queryData, typeData) => {
|
|
|
36174
36174
|
return mergedObj;
|
|
36175
36175
|
};
|
|
36176
36176
|
const _hoisted_1$e = { style: { "width": "100%", "text-align": "right" } };
|
|
36177
|
-
const _sfc_main$
|
|
36177
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
36178
36178
|
__name: "QueryBarClient",
|
|
36179
36179
|
props: {
|
|
36180
36180
|
frame: {
|
|
@@ -36358,7 +36358,7 @@ async function useButtonExec(data, button, rowIndex) {
|
|
|
36358
36358
|
button.webFunction(data, button.params, rowIndex);
|
|
36359
36359
|
}
|
|
36360
36360
|
}
|
|
36361
|
-
const _sfc_main$
|
|
36361
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
36362
36362
|
__name: "ToolBarClient",
|
|
36363
36363
|
props: {
|
|
36364
36364
|
toolButtons: {
|
|
@@ -36401,7 +36401,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
36401
36401
|
}
|
|
36402
36402
|
return target;
|
|
36403
36403
|
};
|
|
36404
|
-
const ToolBarClient = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36404
|
+
const ToolBarClient = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-f6d35839"]]);
|
|
36405
36405
|
const _hoisted_1$d = { class: "ke-table-render-client" };
|
|
36406
36406
|
const _hoisted_2$9 = {
|
|
36407
36407
|
key: 1,
|
|
@@ -36411,7 +36411,7 @@ const _hoisted_3$6 = {
|
|
|
36411
36411
|
key: 2,
|
|
36412
36412
|
class: "ke-pagination-div"
|
|
36413
36413
|
};
|
|
36414
|
-
const _sfc_main$
|
|
36414
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
36415
36415
|
__name: "TableRenderClient",
|
|
36416
36416
|
props: /* @__PURE__ */ mergeModels({
|
|
36417
36417
|
tableId: {
|
|
@@ -36579,7 +36579,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
36579
36579
|
const _component_el_button = resolveComponent("el-button");
|
|
36580
36580
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
36581
36581
|
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
36582
|
-
__props.queryConfig && __props.queryConfig.length > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
36582
|
+
__props.queryConfig && __props.queryConfig.length > 0 ? (openBlock(), createBlock(_sfc_main$G, {
|
|
36583
36583
|
key: 0,
|
|
36584
36584
|
frame: __props.queryConfig,
|
|
36585
36585
|
class: "ke-query-bar-client",
|
|
@@ -36694,17 +36694,17 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
36694
36694
|
"onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => pagination.value.pageSize = $event),
|
|
36695
36695
|
total: __props.tablePagination.total || __props.tableData.length,
|
|
36696
36696
|
background: "",
|
|
36697
|
-
layout: "total, prev, pager, next, jumper",
|
|
36697
|
+
layout: pagination.value.pageSize > 0 ? "total, prev, pager, next, jumper" : "total",
|
|
36698
36698
|
size: "small",
|
|
36699
36699
|
onCurrentChange: paginationChange
|
|
36700
|
-
}, null, 8, ["current-page", "page-size", "total"])
|
|
36700
|
+
}, null, 8, ["current-page", "page-size", "total", "layout"])
|
|
36701
36701
|
])) : createCommentVNode("", true)
|
|
36702
36702
|
]);
|
|
36703
36703
|
};
|
|
36704
36704
|
}
|
|
36705
36705
|
});
|
|
36706
36706
|
const _hoisted_1$c = { style: { "margin": "16px" } };
|
|
36707
|
-
const _sfc_main$
|
|
36707
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
36708
36708
|
__name: "QueryBarMobile",
|
|
36709
36709
|
props: {
|
|
36710
36710
|
frame: {
|
|
@@ -36834,7 +36834,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
36834
36834
|
}
|
|
36835
36835
|
});
|
|
36836
36836
|
const _hoisted_1$b = { class: "button-container" };
|
|
36837
|
-
const _sfc_main$
|
|
36837
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
36838
36838
|
__name: "ToolBarMobile",
|
|
36839
36839
|
props: {
|
|
36840
36840
|
toolButtons: {
|
|
@@ -36897,7 +36897,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
36897
36897
|
};
|
|
36898
36898
|
}
|
|
36899
36899
|
});
|
|
36900
|
-
const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36900
|
+
const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-e1dda3e2"]]);
|
|
36901
36901
|
const customFormatter = (options) => {
|
|
36902
36902
|
if (isEmpty(options.cellValue) || isEmpty(options.tabObj))
|
|
36903
36903
|
return options.cellValue;
|
|
@@ -36923,7 +36923,7 @@ const _hoisted_5$2 = {
|
|
|
36923
36923
|
key: 0,
|
|
36924
36924
|
class: "pagination-div"
|
|
36925
36925
|
};
|
|
36926
|
-
const _sfc_main$
|
|
36926
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
36927
36927
|
__name: "TableRenderMobile",
|
|
36928
36928
|
props: /* @__PURE__ */ mergeModels({
|
|
36929
36929
|
tableId: {
|
|
@@ -37052,7 +37052,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
37052
37052
|
const _directive_loading = resolveDirective("loading");
|
|
37053
37053
|
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
37054
37054
|
createElementVNode("div", _hoisted_2$8, [
|
|
37055
|
-
createVNode(_sfc_main$
|
|
37055
|
+
createVNode(_sfc_main$D, {
|
|
37056
37056
|
frame: __props.queryConfig,
|
|
37057
37057
|
onQueryClick: queryClick
|
|
37058
37058
|
}, null, 8, ["frame"])
|
|
@@ -37148,8 +37148,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
37148
37148
|
};
|
|
37149
37149
|
}
|
|
37150
37150
|
});
|
|
37151
|
-
const TableRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37152
|
-
const KeTableRender = isMobileDevice.value ? TableRenderMobile : _sfc_main$
|
|
37151
|
+
const TableRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-8d24642d"]]);
|
|
37152
|
+
const KeTableRender = isMobileDevice.value ? TableRenderMobile : _sfc_main$E;
|
|
37153
37153
|
KeTableRender.install = (app) => {
|
|
37154
37154
|
app.component(KeTableRender.__name, KeTableRender);
|
|
37155
37155
|
};
|
|
@@ -37163,7 +37163,7 @@ const _hoisted_4$2 = ["src"];
|
|
|
37163
37163
|
const _hoisted_5$1 = { class: "title-wrapper" };
|
|
37164
37164
|
const _hoisted_6$1 = { class: "title-text" };
|
|
37165
37165
|
const _hoisted_7 = { class: "pagination-div" };
|
|
37166
|
-
const _sfc_main$
|
|
37166
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
37167
37167
|
__name: "TableCardRenderClient",
|
|
37168
37168
|
props: /* @__PURE__ */ mergeModels({
|
|
37169
37169
|
tableId: {
|
|
@@ -37417,14 +37417,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
37417
37417
|
};
|
|
37418
37418
|
}
|
|
37419
37419
|
});
|
|
37420
|
-
const TableCardRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37420
|
+
const TableCardRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-8a376fa7"]]);
|
|
37421
37421
|
const _hoisted_1$8 = { class: "table-render-mobile" };
|
|
37422
37422
|
const _hoisted_2$6 = { class: "table-render-mobile-search" };
|
|
37423
37423
|
const _hoisted_3$3 = { class: "table-tool-button" };
|
|
37424
37424
|
const _hoisted_4$1 = { class: "table-render-mobile-content" };
|
|
37425
37425
|
const _hoisted_5 = ["src"];
|
|
37426
37426
|
const _hoisted_6 = { class: "pagination-div" };
|
|
37427
|
-
const _sfc_main$
|
|
37427
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
37428
37428
|
__name: "TableCardRenderMobile",
|
|
37429
37429
|
props: /* @__PURE__ */ mergeModels({
|
|
37430
37430
|
tableId: {
|
|
@@ -37658,7 +37658,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
37658
37658
|
};
|
|
37659
37659
|
}
|
|
37660
37660
|
});
|
|
37661
|
-
const TableCardRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37661
|
+
const TableCardRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-2e3c5fe2"]]);
|
|
37662
37662
|
const KeTableCardRender = isMobileDevice.value ? TableCardRenderMobile : TableCardRenderClient;
|
|
37663
37663
|
KeTableCardRender.install = (app) => {
|
|
37664
37664
|
app.component(KeTableCardRender.__name, KeTableCardRender);
|
|
@@ -37668,7 +37668,7 @@ const _hoisted_2$5 = {
|
|
|
37668
37668
|
key: 1,
|
|
37669
37669
|
class: "table-tool-button"
|
|
37670
37670
|
};
|
|
37671
|
-
const _sfc_main$
|
|
37671
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
37672
37672
|
__name: "TableTreeRender",
|
|
37673
37673
|
props: {
|
|
37674
37674
|
tableId: {
|
|
@@ -37869,13 +37869,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
37869
37869
|
};
|
|
37870
37870
|
}
|
|
37871
37871
|
});
|
|
37872
|
-
const KeTableTreeRender = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
37872
|
+
const KeTableTreeRender = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-b06f3a94"]]);
|
|
37873
37873
|
KeTableTreeRender.install = (app) => {
|
|
37874
37874
|
app.component(KeTableTreeRender.__name, KeTableTreeRender);
|
|
37875
37875
|
};
|
|
37876
37876
|
const _hoisted_1$6 = { class: "table-check-box-async" };
|
|
37877
37877
|
const _hoisted_2$4 = { class: "dialog-header" };
|
|
37878
|
-
const _sfc_main$
|
|
37878
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
37879
37879
|
__name: "TableCheckBoxAsync",
|
|
37880
37880
|
props: /* @__PURE__ */ mergeModels({
|
|
37881
37881
|
value: {
|
|
@@ -38028,12 +38028,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
38028
38028
|
};
|
|
38029
38029
|
}
|
|
38030
38030
|
});
|
|
38031
|
-
const KeTableCheckBoxAsync = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38031
|
+
const KeTableCheckBoxAsync = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-843c7943"]]);
|
|
38032
38032
|
KeTableCheckBoxAsync.install = (app) => {
|
|
38033
38033
|
app.component(KeTableCheckBoxAsync.__name, KeTableCheckBoxAsync);
|
|
38034
38034
|
};
|
|
38035
38035
|
const _hoisted_1$5 = { style: { "margin": "4px 0 0", "text-align": "right" } };
|
|
38036
|
-
const _sfc_main$
|
|
38036
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
38037
38037
|
__name: "TableInput",
|
|
38038
38038
|
props: /* @__PURE__ */ mergeModels({
|
|
38039
38039
|
value: {
|
|
@@ -38146,10 +38146,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
38146
38146
|
};
|
|
38147
38147
|
}
|
|
38148
38148
|
});
|
|
38149
|
-
const KeTableInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38149
|
+
const KeTableInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-45577ce0"]]);
|
|
38150
38150
|
const _hoisted_1$4 = { style: { "width": "100%" } };
|
|
38151
38151
|
const _hoisted_2$3 = { style: { "margin": "4px 0 0", "text-align": "right" } };
|
|
38152
|
-
const _sfc_main$
|
|
38152
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
38153
38153
|
__name: "TableInputNumber",
|
|
38154
38154
|
props: /* @__PURE__ */ mergeModels({
|
|
38155
38155
|
value: {
|
|
@@ -38266,11 +38266,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
38266
38266
|
};
|
|
38267
38267
|
}
|
|
38268
38268
|
});
|
|
38269
|
-
const KeTableInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38269
|
+
const KeTableInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-b622e1f6"]]);
|
|
38270
38270
|
KeTableInputNumber.install = (app) => {
|
|
38271
38271
|
app.component(KeTableInputNumber.__name, KeTableInputNumber);
|
|
38272
38272
|
};
|
|
38273
|
-
const _sfc_main$
|
|
38273
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
38274
38274
|
__name: "TableSelect",
|
|
38275
38275
|
props: {
|
|
38276
38276
|
value: {
|
|
@@ -38349,10 +38349,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
38349
38349
|
};
|
|
38350
38350
|
}
|
|
38351
38351
|
});
|
|
38352
|
-
_sfc_main$
|
|
38353
|
-
app.component(_sfc_main$
|
|
38352
|
+
_sfc_main$u.install = (app) => {
|
|
38353
|
+
app.component(_sfc_main$u.__name, _sfc_main$u);
|
|
38354
38354
|
};
|
|
38355
|
-
const _sfc_main$
|
|
38355
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
38356
38356
|
__name: "TableSelectAsync",
|
|
38357
38357
|
props: /* @__PURE__ */ mergeModels({
|
|
38358
38358
|
value: {
|
|
@@ -38416,10 +38416,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
38416
38416
|
};
|
|
38417
38417
|
}
|
|
38418
38418
|
});
|
|
38419
|
-
_sfc_main$
|
|
38420
|
-
app.component(_sfc_main$
|
|
38419
|
+
_sfc_main$t.install = (app) => {
|
|
38420
|
+
app.component(_sfc_main$t.__name, _sfc_main$t);
|
|
38421
38421
|
};
|
|
38422
|
-
const _sfc_main$
|
|
38422
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
38423
38423
|
__name: "TableSwitch",
|
|
38424
38424
|
props: /* @__PURE__ */ mergeModels({
|
|
38425
38425
|
value: {
|
|
@@ -38462,14 +38462,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
38462
38462
|
};
|
|
38463
38463
|
}
|
|
38464
38464
|
});
|
|
38465
|
-
_sfc_main$
|
|
38466
|
-
app.component(_sfc_main$
|
|
38465
|
+
_sfc_main$s.install = (app) => {
|
|
38466
|
+
app.component(_sfc_main$s.__name, _sfc_main$s);
|
|
38467
38467
|
};
|
|
38468
|
-
const KeliQueryBar = isMobileDevice.value ? _sfc_main$
|
|
38468
|
+
const KeliQueryBar = isMobileDevice.value ? _sfc_main$D : _sfc_main$G;
|
|
38469
38469
|
KeliQueryBar.install = (app) => {
|
|
38470
38470
|
app.component(KeliQueryBar.__name, KeliQueryBar);
|
|
38471
38471
|
};
|
|
38472
|
-
const _sfc_main$
|
|
38472
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
38473
38473
|
__name: "QueryDateTimeClient",
|
|
38474
38474
|
props: /* @__PURE__ */ mergeModels({
|
|
38475
38475
|
value: {
|
|
@@ -38534,10 +38534,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
38534
38534
|
};
|
|
38535
38535
|
}
|
|
38536
38536
|
});
|
|
38537
|
-
_sfc_main$
|
|
38538
|
-
app.component(_sfc_main$
|
|
38537
|
+
_sfc_main$r.install = (app) => {
|
|
38538
|
+
app.component(_sfc_main$r.__name, _sfc_main$r);
|
|
38539
38539
|
};
|
|
38540
|
-
const _sfc_main$
|
|
38540
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
38541
38541
|
__name: "QueryInput",
|
|
38542
38542
|
props: /* @__PURE__ */ mergeModels({
|
|
38543
38543
|
value: {
|
|
@@ -38567,10 +38567,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
38567
38567
|
};
|
|
38568
38568
|
}
|
|
38569
38569
|
});
|
|
38570
|
-
_sfc_main$
|
|
38571
|
-
app.component(_sfc_main$
|
|
38570
|
+
_sfc_main$q.install = (app) => {
|
|
38571
|
+
app.component(_sfc_main$q.__name, _sfc_main$q);
|
|
38572
38572
|
};
|
|
38573
|
-
const _sfc_main$
|
|
38573
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
38574
38574
|
__name: "QueryInputLike",
|
|
38575
38575
|
props: /* @__PURE__ */ mergeModels({
|
|
38576
38576
|
value: {
|
|
@@ -38600,10 +38600,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
38600
38600
|
};
|
|
38601
38601
|
}
|
|
38602
38602
|
});
|
|
38603
|
-
_sfc_main$
|
|
38604
|
-
app.component(_sfc_main$
|
|
38603
|
+
_sfc_main$p.install = (app) => {
|
|
38604
|
+
app.component(_sfc_main$p.__name, _sfc_main$p);
|
|
38605
38605
|
};
|
|
38606
|
-
const _sfc_main$
|
|
38606
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
38607
38607
|
__name: "QuerySelectClient",
|
|
38608
38608
|
props: /* @__PURE__ */ mergeModels({
|
|
38609
38609
|
value: {
|
|
@@ -38656,11 +38656,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
38656
38656
|
};
|
|
38657
38657
|
}
|
|
38658
38658
|
});
|
|
38659
|
-
const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38659
|
+
const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-042e4267"]]);
|
|
38660
38660
|
KeliQuerySelect.install = (app) => {
|
|
38661
38661
|
app.component(KeliQuerySelect.__name, KeliQuerySelect);
|
|
38662
38662
|
};
|
|
38663
|
-
const _sfc_main$
|
|
38663
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
38664
38664
|
__name: "ToolBarProxy",
|
|
38665
38665
|
props: {
|
|
38666
38666
|
toolButtons: {
|
|
@@ -38678,10 +38678,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
38678
38678
|
};
|
|
38679
38679
|
}
|
|
38680
38680
|
});
|
|
38681
|
-
_sfc_main$
|
|
38682
|
-
app.component(_sfc_main$
|
|
38681
|
+
_sfc_main$n.install = (app) => {
|
|
38682
|
+
app.component(_sfc_main$n.__name, _sfc_main$n);
|
|
38683
38683
|
};
|
|
38684
|
-
const _sfc_main$
|
|
38684
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
38685
38685
|
__name: "FormCascaderAsync",
|
|
38686
38686
|
props: /* @__PURE__ */ mergeModels({
|
|
38687
38687
|
value: {
|
|
@@ -38764,11 +38764,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
38764
38764
|
};
|
|
38765
38765
|
}
|
|
38766
38766
|
});
|
|
38767
|
-
_sfc_main$
|
|
38768
|
-
app.component(_sfc_main$
|
|
38767
|
+
_sfc_main$m.install = (app) => {
|
|
38768
|
+
app.component(_sfc_main$m.__name, _sfc_main$m);
|
|
38769
38769
|
};
|
|
38770
38770
|
const isLoadFail = false;
|
|
38771
|
-
const _sfc_main$
|
|
38771
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
38772
38772
|
__name: "FormCheckBoxAsync",
|
|
38773
38773
|
props: /* @__PURE__ */ mergeModels({
|
|
38774
38774
|
value: {
|
|
@@ -38878,13 +38878,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
38878
38878
|
};
|
|
38879
38879
|
}
|
|
38880
38880
|
});
|
|
38881
|
-
_sfc_main$
|
|
38882
|
-
app.component(_sfc_main$
|
|
38881
|
+
_sfc_main$l.install = (app) => {
|
|
38882
|
+
app.component(_sfc_main$l.__name, _sfc_main$l);
|
|
38883
38883
|
};
|
|
38884
38884
|
const _hoisted_1$3 = { class: "dateCell" };
|
|
38885
38885
|
const _hoisted_2$2 = { class: "solar_calendar" };
|
|
38886
38886
|
const _hoisted_3$2 = { class: "lunar_calendar" };
|
|
38887
|
-
const _sfc_main$
|
|
38887
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
38888
38888
|
__name: "FormDatePickerClient",
|
|
38889
38889
|
props: /* @__PURE__ */ mergeModels({
|
|
38890
38890
|
value: {
|
|
@@ -38946,8 +38946,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
38946
38946
|
};
|
|
38947
38947
|
}
|
|
38948
38948
|
});
|
|
38949
|
-
const FormDatePickerClient = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
38950
|
-
const _sfc_main$
|
|
38949
|
+
const FormDatePickerClient = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-217412ff"]]);
|
|
38950
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
38951
38951
|
__name: "FormDatePickerMobile",
|
|
38952
38952
|
props: /* @__PURE__ */ mergeModels({
|
|
38953
38953
|
value: {
|
|
@@ -39030,11 +39030,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
39030
39030
|
};
|
|
39031
39031
|
}
|
|
39032
39032
|
});
|
|
39033
|
-
const KeFormDatePicker = isMobileDevice.value ? _sfc_main$
|
|
39033
|
+
const KeFormDatePicker = isMobileDevice.value ? _sfc_main$j : FormDatePickerClient;
|
|
39034
39034
|
KeFormDatePicker.install = (app) => {
|
|
39035
39035
|
app.component(KeFormDatePicker.__name, KeFormDatePicker);
|
|
39036
39036
|
};
|
|
39037
|
-
const _sfc_main$
|
|
39037
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
39038
39038
|
__name: "FormDivider",
|
|
39039
39039
|
props: {
|
|
39040
39040
|
fieldName: {
|
|
@@ -39066,13 +39066,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
39066
39066
|
};
|
|
39067
39067
|
}
|
|
39068
39068
|
});
|
|
39069
|
-
_sfc_main$
|
|
39070
|
-
app.component(_sfc_main$
|
|
39069
|
+
_sfc_main$i.install = (app) => {
|
|
39070
|
+
app.component(_sfc_main$i.__name, _sfc_main$i);
|
|
39071
39071
|
};
|
|
39072
39072
|
const _hoisted_1$2 = { class: "dateCell" };
|
|
39073
39073
|
const _hoisted_2$1 = { class: "solar_calendar" };
|
|
39074
39074
|
const _hoisted_3$1 = { class: "lunar_calendar" };
|
|
39075
|
-
const _sfc_main$
|
|
39075
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
39076
39076
|
__name: "FormDateTimePickerClient",
|
|
39077
39077
|
props: /* @__PURE__ */ mergeModels({
|
|
39078
39078
|
value: {
|
|
@@ -39175,8 +39175,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
39175
39175
|
};
|
|
39176
39176
|
}
|
|
39177
39177
|
});
|
|
39178
|
-
const FormDateTimePickerClient = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
39179
|
-
const _sfc_main$
|
|
39178
|
+
const FormDateTimePickerClient = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-125ec4c5"]]);
|
|
39179
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
39180
39180
|
__name: "FormDateTimePickerMobile",
|
|
39181
39181
|
props: /* @__PURE__ */ mergeModels({
|
|
39182
39182
|
value: {
|
|
@@ -39276,7 +39276,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
39276
39276
|
};
|
|
39277
39277
|
}
|
|
39278
39278
|
});
|
|
39279
|
-
const KeFormDateTimePicker = isMobileDevice.value ? _sfc_main$
|
|
39279
|
+
const KeFormDateTimePicker = isMobileDevice.value ? _sfc_main$g : FormDateTimePickerClient;
|
|
39280
39280
|
KeFormDateTimePicker.install = (app) => {
|
|
39281
39281
|
app.component(KeFormDateTimePicker.__name, KeFormDateTimePicker);
|
|
39282
39282
|
};
|
|
@@ -40875,7 +40875,7 @@ const ct = [
|
|
|
40875
40875
|
};
|
|
40876
40876
|
}
|
|
40877
40877
|
});
|
|
40878
|
-
const _sfc_main$
|
|
40878
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
40879
40879
|
__name: "FormDynamicTable",
|
|
40880
40880
|
props: {
|
|
40881
40881
|
value: {
|
|
@@ -41119,10 +41119,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
41119
41119
|
};
|
|
41120
41120
|
}
|
|
41121
41121
|
});
|
|
41122
|
-
_sfc_main$
|
|
41123
|
-
app.component(_sfc_main$
|
|
41122
|
+
_sfc_main$f.install = (app) => {
|
|
41123
|
+
app.component(_sfc_main$f.__name, _sfc_main$f);
|
|
41124
41124
|
};
|
|
41125
|
-
const _sfc_main$
|
|
41125
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
41126
41126
|
__name: "FormInput",
|
|
41127
41127
|
props: /* @__PURE__ */ mergeModels({
|
|
41128
41128
|
value: {
|
|
@@ -41166,19 +41166,26 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
41166
41166
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
41167
41167
|
placeholder: (_a = props.detail) == null ? void 0 : _a.placeholder
|
|
41168
41168
|
}, ((_b = props.detail) == null ? void 0 : _b.componentParams) ? props.detail.componentParams : {}, { onChange: change }), createSlots({ _: 2 }, [
|
|
41169
|
-
__props.detail.componentParams && __props.detail.componentParams.
|
|
41170
|
-
name: "
|
|
41169
|
+
__props.detail.componentParams && __props.detail.componentParams.prepend ? {
|
|
41170
|
+
name: "prepend",
|
|
41171
41171
|
fn: withCtx(() => [
|
|
41172
|
-
createElementVNode("span", null, toDisplayString(__props.detail.componentParams.
|
|
41172
|
+
createElementVNode("span", null, toDisplayString(__props.detail.componentParams.prepend), 1)
|
|
41173
41173
|
]),
|
|
41174
41174
|
key: "0"
|
|
41175
|
+
} : void 0,
|
|
41176
|
+
__props.detail.componentParams && __props.detail.componentParams.append ? {
|
|
41177
|
+
name: "append",
|
|
41178
|
+
fn: withCtx(() => [
|
|
41179
|
+
createElementVNode("span", null, toDisplayString(__props.detail.componentParams.append), 1)
|
|
41180
|
+
]),
|
|
41181
|
+
key: "1"
|
|
41175
41182
|
} : void 0
|
|
41176
41183
|
]), 1040, ["modelValue", "placeholder"]);
|
|
41177
41184
|
};
|
|
41178
41185
|
}
|
|
41179
41186
|
});
|
|
41180
|
-
_sfc_main$
|
|
41181
|
-
app.component(_sfc_main$
|
|
41187
|
+
_sfc_main$e.install = (app) => {
|
|
41188
|
+
app.component(_sfc_main$e.__name, _sfc_main$e);
|
|
41182
41189
|
};
|
|
41183
41190
|
const useMittHook = (fieldName, mittId) => {
|
|
41184
41191
|
if (!mittId) {
|
|
@@ -41205,7 +41212,7 @@ const useMittHook = (fieldName, mittId) => {
|
|
|
41205
41212
|
};
|
|
41206
41213
|
return { registerMitt, offMitt };
|
|
41207
41214
|
};
|
|
41208
|
-
const _sfc_main$
|
|
41215
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
41209
41216
|
__name: "FormInputNumber",
|
|
41210
41217
|
props: /* @__PURE__ */ mergeModels({
|
|
41211
41218
|
value: {
|
|
@@ -41267,22 +41274,29 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
41267
41274
|
placeholder: __props.detail.placeholder,
|
|
41268
41275
|
class: "full"
|
|
41269
41276
|
}, props.detail.componentParams ? props.detail.componentParams : {}, { onChange: handleChange }), createSlots({ _: 2 }, [
|
|
41277
|
+
__props.detail.componentParams && __props.detail.componentParams.prefix ? {
|
|
41278
|
+
name: "prefix",
|
|
41279
|
+
fn: withCtx(() => [
|
|
41280
|
+
createElementVNode("span", null, toDisplayString(__props.detail.componentParams.prefix), 1)
|
|
41281
|
+
]),
|
|
41282
|
+
key: "0"
|
|
41283
|
+
} : void 0,
|
|
41270
41284
|
__props.detail.componentParams && __props.detail.componentParams.suffix ? {
|
|
41271
41285
|
name: "suffix",
|
|
41272
41286
|
fn: withCtx(() => [
|
|
41273
41287
|
createElementVNode("span", null, toDisplayString(__props.detail.componentParams.suffix), 1)
|
|
41274
41288
|
]),
|
|
41275
|
-
key: "
|
|
41289
|
+
key: "1"
|
|
41276
41290
|
} : void 0
|
|
41277
41291
|
]), 1040, ["modelValue", "placeholder"]);
|
|
41278
41292
|
};
|
|
41279
41293
|
}
|
|
41280
41294
|
});
|
|
41281
|
-
const KeFormInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
41295
|
+
const KeFormInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-135b7749"]]);
|
|
41282
41296
|
KeFormInputNumber.install = (app) => {
|
|
41283
41297
|
app.component(KeFormInputNumber.__name, KeFormInputNumber);
|
|
41284
41298
|
};
|
|
41285
|
-
const _sfc_main$
|
|
41299
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
41286
41300
|
__name: "FormRadio",
|
|
41287
41301
|
props: /* @__PURE__ */ mergeModels({
|
|
41288
41302
|
value: {
|
|
@@ -41330,8 +41344,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
41330
41344
|
};
|
|
41331
41345
|
}
|
|
41332
41346
|
});
|
|
41333
|
-
_sfc_main$
|
|
41334
|
-
app.component(_sfc_main$
|
|
41347
|
+
_sfc_main$c.install = (app) => {
|
|
41348
|
+
app.component(_sfc_main$c.__name, _sfc_main$c);
|
|
41335
41349
|
};
|
|
41336
41350
|
const QuestionSVG = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1735202912040'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4284'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M517.119%20954.878c244.589%200%20442.879-198.289%20442.879-442.879%200-244.594-198.289-442.879-442.879-442.879C272.524%2069.12%2074.24%20267.404%2074.24%20511.999%2074.24%20756.588%20272.524%20954.878%20517.119%20954.878L517.119%20954.878zM517.119%20891.608c-209.654%200-379.612-169.955-379.612-379.609s169.957-379.612%20379.612-379.612%20379.609%20169.957%20379.609%20379.612S726.773%20891.608%20517.119%20891.608L517.119%20891.608zM523.949%20243.992c-54.662%200-97.177%2016.705-127.547%2050.112-30.367%2031.885-44.795%2074.402-44.795%20127.547l59.98%200c0-37.202%208.35-66.052%2025.055-87.31%2018.222-25.055%2046.312-37.202%2084.272-37.202%2031.885%200%2056.945%208.352%2074.405%2026.572%2016.705%2016.702%2025.81%2040.24%2025.81%2070.607%200%2021.26-7.59%2041-22.775%2059.98-4.55%206.072-13.665%2015.185-25.81%2027.33-41%2036.445-66.055%2065.295-76.685%2088.075-9.11%2018.98-13.665%2040.995-13.665%2066.05l0%2017.465%2060.735%200%200-17.465c0-20.5%204.56-38.725%2014.43-55.425%207.59-13.665%2018.98-27.335%2035.68-41.755%2033.405-29.612%2053.91-49.352%2061.5-58.462%2018.98-25.055%2028.85-54.665%2028.85-88.83%200-45.552-14.425-81.235-42.515-107.05C611.258%20256.902%20572.544%20243.992%20523.949%20243.992L523.949%20243.992zM512.564%20706.363c-12.907%200-23.535%203.795-32.647%2012.905-9.11%208.345-12.905%2018.98-12.905%2031.885s3.795%2023.54%2012.905%2032.65c9.112%208.345%2019.74%2012.905%2032.647%2012.905%2012.91%200%2023.535-4.56%2032.645-12.905%209.11-8.355%2013.665-18.985%2013.665-32.65%200-12.905-4.555-23.54-12.905-31.885C536.859%20710.158%20525.474%20706.363%20512.564%20706.363L512.564%20706.363z'%20fill='%23272636'%20p-id='4285'%3e%3c/path%3e%3c/svg%3e";
|
|
41337
41351
|
const useFormatToTree = (params) => {
|
|
@@ -41481,7 +41495,7 @@ const _hoisted_1$1 = { class: "label-question" };
|
|
|
41481
41495
|
const _hoisted_2 = ["src"];
|
|
41482
41496
|
const _hoisted_3 = { class: "label-question" };
|
|
41483
41497
|
const _hoisted_4 = ["src"];
|
|
41484
|
-
const _sfc_main$
|
|
41498
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
41485
41499
|
__name: "FormRenderClient",
|
|
41486
41500
|
props: /* @__PURE__ */ mergeModels({
|
|
41487
41501
|
isLoading: {
|
|
@@ -41837,9 +41851,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
41837
41851
|
};
|
|
41838
41852
|
}
|
|
41839
41853
|
});
|
|
41840
|
-
const FormRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
41854
|
+
const FormRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-30b23a37"]]);
|
|
41841
41855
|
const _hoisted_1 = { class: "van-doc-demo-block__title" };
|
|
41842
|
-
const _sfc_main$
|
|
41856
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
41843
41857
|
__name: "FormRenderMobile",
|
|
41844
41858
|
props: /* @__PURE__ */ mergeModels({
|
|
41845
41859
|
isLoading: {
|
|
@@ -42081,12 +42095,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
42081
42095
|
};
|
|
42082
42096
|
}
|
|
42083
42097
|
});
|
|
42084
|
-
const FormRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
42098
|
+
const FormRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-a2d7c19f"]]);
|
|
42085
42099
|
const KeFormRender = isMobileDevice.value ? FormRenderMobile : FormRenderClient;
|
|
42086
42100
|
KeFormRender.install = (app) => {
|
|
42087
42101
|
app.component(KeFormRender.__name, KeFormRender);
|
|
42088
42102
|
};
|
|
42089
|
-
const _sfc_main$
|
|
42103
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
42090
42104
|
__name: "FormSelectClient",
|
|
42091
42105
|
props: /* @__PURE__ */ mergeModels({
|
|
42092
42106
|
value: {
|
|
@@ -42140,9 +42154,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
42140
42154
|
return openBlock(), createBlock(_component_el_select, mergeProps({
|
|
42141
42155
|
modelValue: valueRef.value,
|
|
42142
42156
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
|
|
42143
|
-
multiple: (_a =
|
|
42144
|
-
placeholder:
|
|
42145
|
-
},
|
|
42157
|
+
multiple: (_a = __props.detail) == null ? void 0 : _a.multiple,
|
|
42158
|
+
placeholder: __props.detail.placeholder
|
|
42159
|
+
}, __props.detail.componentParams ? __props.detail.componentParams : {}, {
|
|
42146
42160
|
clearable: "",
|
|
42147
42161
|
onChange: handleChange
|
|
42148
42162
|
}), {
|
|
@@ -42164,7 +42178,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
42164
42178
|
};
|
|
42165
42179
|
}
|
|
42166
42180
|
});
|
|
42167
|
-
const _sfc_main$
|
|
42181
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
42168
42182
|
__name: "FormSelectMobile",
|
|
42169
42183
|
props: /* @__PURE__ */ mergeModels({
|
|
42170
42184
|
value: {
|
|
@@ -42356,7 +42370,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
42356
42370
|
};
|
|
42357
42371
|
}
|
|
42358
42372
|
});
|
|
42359
|
-
const KeFormSelect = isMobileDevice.value ? _sfc_main$
|
|
42373
|
+
const KeFormSelect = isMobileDevice.value ? _sfc_main$8 : _sfc_main$9;
|
|
42360
42374
|
KeFormSelect.install = (app) => {
|
|
42361
42375
|
app.component(KeFormSelect.__name, KeFormSelect);
|
|
42362
42376
|
};
|
|
@@ -42471,7 +42485,7 @@ const useSelectAsync = (params) => {
|
|
|
42471
42485
|
offMitt
|
|
42472
42486
|
};
|
|
42473
42487
|
};
|
|
42474
|
-
const _sfc_main$
|
|
42488
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
42475
42489
|
__name: "FormSelectAsyncClient",
|
|
42476
42490
|
props: /* @__PURE__ */ mergeModels({
|
|
42477
42491
|
value: {
|
|
@@ -42554,7 +42568,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
42554
42568
|
};
|
|
42555
42569
|
}
|
|
42556
42570
|
});
|
|
42557
|
-
const _sfc_main$
|
|
42571
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
42558
42572
|
__name: "FormSelectAsyncMobile",
|
|
42559
42573
|
props: /* @__PURE__ */ mergeModels({
|
|
42560
42574
|
value: {
|
|
@@ -42705,11 +42719,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
42705
42719
|
};
|
|
42706
42720
|
}
|
|
42707
42721
|
});
|
|
42708
|
-
const KeFormSelectAsync = isMobileDevice.value ? _sfc_main$
|
|
42722
|
+
const KeFormSelectAsync = isMobileDevice.value ? _sfc_main$6 : _sfc_main$7;
|
|
42709
42723
|
KeFormSelectAsync.install = (app) => {
|
|
42710
42724
|
app.component(KeFormSelectAsync.__name, KeFormSelectAsync);
|
|
42711
42725
|
};
|
|
42712
|
-
const _sfc_main$
|
|
42726
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
42713
42727
|
__name: "FormSelectRemote",
|
|
42714
42728
|
props: /* @__PURE__ */ mergeModels({
|
|
42715
42729
|
value: {
|
|
@@ -42823,10 +42837,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
42823
42837
|
};
|
|
42824
42838
|
}
|
|
42825
42839
|
});
|
|
42826
|
-
_sfc_main$
|
|
42827
|
-
app.component(_sfc_main$
|
|
42840
|
+
_sfc_main$5.install = (app) => {
|
|
42841
|
+
app.component(_sfc_main$5.__name, _sfc_main$5);
|
|
42828
42842
|
};
|
|
42829
|
-
const _sfc_main$
|
|
42843
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
42830
42844
|
__name: "FormSwitch",
|
|
42831
42845
|
props: /* @__PURE__ */ mergeModels({
|
|
42832
42846
|
value: {
|
|
@@ -42881,9 +42895,274 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
42881
42895
|
};
|
|
42882
42896
|
}
|
|
42883
42897
|
});
|
|
42884
|
-
_sfc_main$
|
|
42885
|
-
app.component(_sfc_main$
|
|
42898
|
+
_sfc_main$4.install = (app) => {
|
|
42899
|
+
app.component(_sfc_main$4.__name, _sfc_main$4);
|
|
42886
42900
|
};
|
|
42901
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
42902
|
+
__name: "FormTableSelect",
|
|
42903
|
+
props: /* @__PURE__ */ mergeModels({
|
|
42904
|
+
value: {
|
|
42905
|
+
required: false,
|
|
42906
|
+
default: () => {
|
|
42907
|
+
return void 0;
|
|
42908
|
+
}
|
|
42909
|
+
},
|
|
42910
|
+
detail: {
|
|
42911
|
+
required: true,
|
|
42912
|
+
type: Object
|
|
42913
|
+
},
|
|
42914
|
+
mittId: {
|
|
42915
|
+
type: null,
|
|
42916
|
+
required: false,
|
|
42917
|
+
default: () => null
|
|
42918
|
+
}
|
|
42919
|
+
}, {
|
|
42920
|
+
"value": {},
|
|
42921
|
+
"valueModifiers": {}
|
|
42922
|
+
}),
|
|
42923
|
+
emits: /* @__PURE__ */ mergeModels([
|
|
42924
|
+
"getComponentValue",
|
|
42925
|
+
"valueChange"
|
|
42926
|
+
], ["update:value"]),
|
|
42927
|
+
setup(__props, { emit: __emit }) {
|
|
42928
|
+
const props = __props;
|
|
42929
|
+
const emits = __emit;
|
|
42930
|
+
const { registerMitt, offMitt } = useMittHook(props.detail.field, props.mittId);
|
|
42931
|
+
const valueRef = useModel(__props, "value");
|
|
42932
|
+
const handleChange = () => {
|
|
42933
|
+
var _a, _b, _c, _d;
|
|
42934
|
+
if (((_a = props.detail) == null ? void 0 : _a.noticeField) && ((_b = props.detail) == null ? void 0 : _b.noticeField.length) > 0) {
|
|
42935
|
+
emits(
|
|
42936
|
+
"valueChange",
|
|
42937
|
+
(_c = props.detail) == null ? void 0 : _c.noticeField,
|
|
42938
|
+
(_d = props.detail) == null ? void 0 : _d.field,
|
|
42939
|
+
valueRef
|
|
42940
|
+
);
|
|
42941
|
+
}
|
|
42942
|
+
};
|
|
42943
|
+
const multipleClear = async () => {
|
|
42944
|
+
var _a;
|
|
42945
|
+
await sleep(0.1);
|
|
42946
|
+
if ((props.detail.multiple || ((_a = props.detail.componentParams) == null ? void 0 : _a.mode) === "tags") && valueRef.value === null) {
|
|
42947
|
+
valueRef.value = [];
|
|
42948
|
+
}
|
|
42949
|
+
};
|
|
42950
|
+
const receiveBroadcasts = (eventData) => {
|
|
42951
|
+
console.log("Receive event data", eventData);
|
|
42952
|
+
};
|
|
42953
|
+
onMounted(() => {
|
|
42954
|
+
registerMitt(receiveBroadcasts);
|
|
42955
|
+
multipleClear();
|
|
42956
|
+
});
|
|
42957
|
+
onUnmounted(() => {
|
|
42958
|
+
offMitt();
|
|
42959
|
+
});
|
|
42960
|
+
return (_ctx, _cache) => {
|
|
42961
|
+
var _a;
|
|
42962
|
+
const _component_el_col = resolveComponent("el-col");
|
|
42963
|
+
const _component_el_row = resolveComponent("el-row");
|
|
42964
|
+
const _component_el_option = resolveComponent("el-option");
|
|
42965
|
+
const _component_el_select = resolveComponent("el-select");
|
|
42966
|
+
return openBlock(), createBlock(_component_el_select, mergeProps({
|
|
42967
|
+
modelValue: valueRef.value,
|
|
42968
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
|
|
42969
|
+
multiple: (_a = props.detail) == null ? void 0 : _a.multiple,
|
|
42970
|
+
placeholder: props.detail.placeholder
|
|
42971
|
+
}, props.detail.componentParams ? props.detail.componentParams : {}, {
|
|
42972
|
+
clearable: "",
|
|
42973
|
+
onChange: handleChange
|
|
42974
|
+
}), {
|
|
42975
|
+
header: withCtx(() => [
|
|
42976
|
+
createVNode(_component_el_row, null, {
|
|
42977
|
+
default: withCtx(() => {
|
|
42978
|
+
var _a2;
|
|
42979
|
+
return [
|
|
42980
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.detail.componentParams) == null ? void 0 : _a2.optionSlots, (item) => {
|
|
42981
|
+
return openBlock(), createBlock(_component_el_col, {
|
|
42982
|
+
key: item.field,
|
|
42983
|
+
span: item.span
|
|
42984
|
+
}, {
|
|
42985
|
+
default: withCtx(() => [
|
|
42986
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
42987
|
+
]),
|
|
42988
|
+
_: 2
|
|
42989
|
+
}, 1032, ["span"]);
|
|
42990
|
+
}), 128))
|
|
42991
|
+
];
|
|
42992
|
+
}),
|
|
42993
|
+
_: 1
|
|
42994
|
+
})
|
|
42995
|
+
]),
|
|
42996
|
+
default: withCtx(() => {
|
|
42997
|
+
var _a2;
|
|
42998
|
+
return [
|
|
42999
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = props.detail) == null ? void 0 : _a2.options, (item) => {
|
|
43000
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
43001
|
+
key: item[__props.detail.componentParams.keyField],
|
|
43002
|
+
disabled: item.disabled === true,
|
|
43003
|
+
label: item[__props.detail.componentParams.labelField],
|
|
43004
|
+
value: item[__props.detail.componentParams.valueField]
|
|
43005
|
+
}, {
|
|
43006
|
+
default: withCtx(() => [
|
|
43007
|
+
createVNode(_component_el_row, null, {
|
|
43008
|
+
default: withCtx(() => {
|
|
43009
|
+
var _a3;
|
|
43010
|
+
return [
|
|
43011
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail.componentParams) == null ? void 0 : _a3.optionSlots, (optionSlot) => {
|
|
43012
|
+
return openBlock(), createBlock(_component_el_col, {
|
|
43013
|
+
key: optionSlot.field,
|
|
43014
|
+
span: optionSlot.span
|
|
43015
|
+
}, {
|
|
43016
|
+
default: withCtx(() => [
|
|
43017
|
+
createTextVNode(toDisplayString(item[optionSlot.field]), 1)
|
|
43018
|
+
]),
|
|
43019
|
+
_: 2
|
|
43020
|
+
}, 1032, ["span"]);
|
|
43021
|
+
}), 128))
|
|
43022
|
+
];
|
|
43023
|
+
}),
|
|
43024
|
+
_: 2
|
|
43025
|
+
}, 1024)
|
|
43026
|
+
]),
|
|
43027
|
+
_: 2
|
|
43028
|
+
}, 1032, ["disabled", "label", "value"]);
|
|
43029
|
+
}), 128))
|
|
43030
|
+
];
|
|
43031
|
+
}),
|
|
43032
|
+
_: 1
|
|
43033
|
+
}, 16, ["modelValue", "multiple", "placeholder"]);
|
|
43034
|
+
};
|
|
43035
|
+
}
|
|
43036
|
+
});
|
|
43037
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
43038
|
+
__name: "FormTableSelectAsyncClient",
|
|
43039
|
+
props: /* @__PURE__ */ mergeModels({
|
|
43040
|
+
value: {
|
|
43041
|
+
required: false,
|
|
43042
|
+
default: () => {
|
|
43043
|
+
return null;
|
|
43044
|
+
}
|
|
43045
|
+
},
|
|
43046
|
+
detail: {
|
|
43047
|
+
required: true,
|
|
43048
|
+
type: Object
|
|
43049
|
+
},
|
|
43050
|
+
fieldTitle: {
|
|
43051
|
+
required: true,
|
|
43052
|
+
type: String
|
|
43053
|
+
},
|
|
43054
|
+
mittId: {
|
|
43055
|
+
type: null,
|
|
43056
|
+
required: false,
|
|
43057
|
+
default: () => null
|
|
43058
|
+
}
|
|
43059
|
+
}, {
|
|
43060
|
+
"value": {},
|
|
43061
|
+
"valueModifiers": {}
|
|
43062
|
+
}),
|
|
43063
|
+
emits: /* @__PURE__ */ mergeModels(["update:value", "getComponentValue", "valueChange", "setShow"], ["update:value"]),
|
|
43064
|
+
setup(__props, { emit: __emit }) {
|
|
43065
|
+
const props = __props;
|
|
43066
|
+
const emits = __emit;
|
|
43067
|
+
const valueRef = useModel(__props, "value");
|
|
43068
|
+
const {
|
|
43069
|
+
loading,
|
|
43070
|
+
getOptions,
|
|
43071
|
+
optionsData,
|
|
43072
|
+
handleChange,
|
|
43073
|
+
init,
|
|
43074
|
+
registerMitt,
|
|
43075
|
+
offMitt
|
|
43076
|
+
} = useSelectAsync({
|
|
43077
|
+
emits,
|
|
43078
|
+
props,
|
|
43079
|
+
valueRef
|
|
43080
|
+
});
|
|
43081
|
+
onMounted(() => {
|
|
43082
|
+
init();
|
|
43083
|
+
registerMitt();
|
|
43084
|
+
});
|
|
43085
|
+
onUnmounted(() => {
|
|
43086
|
+
offMitt();
|
|
43087
|
+
});
|
|
43088
|
+
return (_ctx, _cache) => {
|
|
43089
|
+
var _a;
|
|
43090
|
+
const _component_el_col = resolveComponent("el-col");
|
|
43091
|
+
const _component_el_row = resolveComponent("el-row");
|
|
43092
|
+
const _component_el_option = resolveComponent("el-option");
|
|
43093
|
+
const _component_el_select = resolveComponent("el-select");
|
|
43094
|
+
const _directive_loading = resolveDirective("loading");
|
|
43095
|
+
return withDirectives((openBlock(), createBlock(_component_el_select, mergeProps({
|
|
43096
|
+
modelValue: valueRef.value,
|
|
43097
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
|
|
43098
|
+
multiple: __props.detail.multiple
|
|
43099
|
+
}, __props.detail.componentParams ? __props.detail.componentParams : {}, {
|
|
43100
|
+
loading: unref(loading),
|
|
43101
|
+
placeholder: (_a = __props.detail) == null ? void 0 : _a.placeholder,
|
|
43102
|
+
onChange: unref(handleChange),
|
|
43103
|
+
onFocus: unref(getOptions)
|
|
43104
|
+
}), {
|
|
43105
|
+
header: withCtx(() => [
|
|
43106
|
+
createVNode(_component_el_row, null, {
|
|
43107
|
+
default: withCtx(() => {
|
|
43108
|
+
var _a2;
|
|
43109
|
+
return [
|
|
43110
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.detail.componentParams) == null ? void 0 : _a2.optionSlots, (item) => {
|
|
43111
|
+
return openBlock(), createBlock(_component_el_col, {
|
|
43112
|
+
key: item.field,
|
|
43113
|
+
span: item.span
|
|
43114
|
+
}, {
|
|
43115
|
+
default: withCtx(() => [
|
|
43116
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
43117
|
+
]),
|
|
43118
|
+
_: 2
|
|
43119
|
+
}, 1032, ["span"]);
|
|
43120
|
+
}), 128))
|
|
43121
|
+
];
|
|
43122
|
+
}),
|
|
43123
|
+
_: 1
|
|
43124
|
+
})
|
|
43125
|
+
]),
|
|
43126
|
+
default: withCtx(() => [
|
|
43127
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(optionsData), (item) => {
|
|
43128
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
43129
|
+
key: item[__props.detail.componentParams.keyField],
|
|
43130
|
+
disabled: item.disabled === true,
|
|
43131
|
+
label: item[__props.detail.componentParams.labelField],
|
|
43132
|
+
value: item[__props.detail.componentParams.valueField]
|
|
43133
|
+
}, {
|
|
43134
|
+
default: withCtx(() => [
|
|
43135
|
+
createVNode(_component_el_row, null, {
|
|
43136
|
+
default: withCtx(() => {
|
|
43137
|
+
var _a2;
|
|
43138
|
+
return [
|
|
43139
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.detail.componentParams) == null ? void 0 : _a2.optionSlots, (optionSlot) => {
|
|
43140
|
+
return openBlock(), createBlock(_component_el_col, {
|
|
43141
|
+
key: optionSlot.field,
|
|
43142
|
+
span: optionSlot.span
|
|
43143
|
+
}, {
|
|
43144
|
+
default: withCtx(() => [
|
|
43145
|
+
createTextVNode(toDisplayString(item[optionSlot.field]), 1)
|
|
43146
|
+
]),
|
|
43147
|
+
_: 2
|
|
43148
|
+
}, 1032, ["span"]);
|
|
43149
|
+
}), 128))
|
|
43150
|
+
];
|
|
43151
|
+
}),
|
|
43152
|
+
_: 2
|
|
43153
|
+
}, 1024)
|
|
43154
|
+
]),
|
|
43155
|
+
_: 2
|
|
43156
|
+
}, 1032, ["disabled", "label", "value"]);
|
|
43157
|
+
}), 128))
|
|
43158
|
+
]),
|
|
43159
|
+
_: 1
|
|
43160
|
+
}, 16, ["modelValue", "multiple", "loading", "placeholder", "onChange", "onFocus"])), [
|
|
43161
|
+
[_directive_loading, unref(loading)]
|
|
43162
|
+
]);
|
|
43163
|
+
};
|
|
43164
|
+
}
|
|
43165
|
+
});
|
|
42887
43166
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
42888
43167
|
__name: "FormText",
|
|
42889
43168
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -80973,29 +81252,31 @@ const components = [
|
|
|
80973
81252
|
{ name: "KeTableCheckBoxAsync", component: KeTableCheckBoxAsync },
|
|
80974
81253
|
{ name: "KeTableInput", component: KeTableInput },
|
|
80975
81254
|
{ name: "KeTableInputNumber", component: KeTableInputNumber },
|
|
80976
|
-
{ name: "KeTableSelect", component: _sfc_main$
|
|
80977
|
-
{ name: "KeTableSelectAsync", component: _sfc_main$
|
|
80978
|
-
{ name: "KeTableSwitch", component: _sfc_main$
|
|
81255
|
+
{ name: "KeTableSelect", component: _sfc_main$u },
|
|
81256
|
+
{ name: "KeTableSelectAsync", component: _sfc_main$t },
|
|
81257
|
+
{ name: "KeTableSwitch", component: _sfc_main$s },
|
|
80979
81258
|
{ name: "KeQueryBar", component: KeliQueryBar },
|
|
80980
|
-
{ name: "KeQueryDateTime", component: _sfc_main$
|
|
80981
|
-
{ name: "KeQueryInput", component: _sfc_main$
|
|
80982
|
-
{ name: "KeQueryInputLike", component: _sfc_main$
|
|
81259
|
+
{ name: "KeQueryDateTime", component: _sfc_main$r },
|
|
81260
|
+
{ name: "KeQueryInput", component: _sfc_main$q },
|
|
81261
|
+
{ name: "KeQueryInputLike", component: _sfc_main$p },
|
|
80983
81262
|
{ name: "KeQuerySelect", component: KeliQuerySelect },
|
|
80984
|
-
{ name: "KeToolBar", component: _sfc_main$
|
|
80985
|
-
{ name: "KeFormCascaderAsync", component: _sfc_main$
|
|
80986
|
-
{ name: "KeFormCheckBoxAsync", component: _sfc_main$
|
|
81263
|
+
{ name: "KeToolBar", component: _sfc_main$n },
|
|
81264
|
+
{ name: "KeFormCascaderAsync", component: _sfc_main$m },
|
|
81265
|
+
{ name: "KeFormCheckBoxAsync", component: _sfc_main$l },
|
|
80987
81266
|
{ name: "KeFormDatePicker", component: KeFormDatePicker },
|
|
80988
81267
|
{ name: "KeFormDateTimePicker", component: KeFormDateTimePicker },
|
|
80989
|
-
{ name: "KeFormDivider", component: _sfc_main$
|
|
80990
|
-
{ name: "KeFormDynamicTable", component: _sfc_main$
|
|
80991
|
-
{ name: "KeFormInput", component: _sfc_main$
|
|
81268
|
+
{ name: "KeFormDivider", component: _sfc_main$i },
|
|
81269
|
+
{ name: "KeFormDynamicTable", component: _sfc_main$f },
|
|
81270
|
+
{ name: "KeFormInput", component: _sfc_main$e },
|
|
80992
81271
|
{ name: "KeFormInputNumber", component: KeFormInputNumber },
|
|
80993
|
-
{ name: "KeFormRadio", component: _sfc_main$
|
|
81272
|
+
{ name: "KeFormRadio", component: _sfc_main$c },
|
|
80994
81273
|
{ name: "KeFormRender", component: KeFormRender },
|
|
80995
81274
|
{ name: "KeFormSelect", component: KeFormSelect },
|
|
80996
81275
|
{ name: "KeFormSelectAsync", component: KeFormSelectAsync },
|
|
80997
|
-
{ name: "KeFormSelectRemote", component: _sfc_main$
|
|
80998
|
-
{ name: "KeFormSwitch", component: _sfc_main$
|
|
81276
|
+
{ name: "KeFormSelectRemote", component: _sfc_main$5 },
|
|
81277
|
+
{ name: "KeFormSwitch", component: _sfc_main$4 },
|
|
81278
|
+
{ name: "KeFormTableSelect", component: _sfc_main$3 },
|
|
81279
|
+
{ name: "FormTableSelectAsync", component: _sfc_main$2 },
|
|
80999
81280
|
{ name: "KeFormText", component: _sfc_main$1 },
|
|
81000
81281
|
{ name: "KeFormTextArea", component: _sfc_main }
|
|
81001
81282
|
];
|
|
@@ -81011,38 +81292,40 @@ const index = {
|
|
|
81011
81292
|
export {
|
|
81012
81293
|
Colgroup,
|
|
81013
81294
|
Column,
|
|
81295
|
+
_sfc_main$2 as FormTableSelectAsync,
|
|
81014
81296
|
Grid,
|
|
81015
|
-
_sfc_main$
|
|
81016
|
-
_sfc_main$
|
|
81297
|
+
_sfc_main$m as KeFormCascaderAsync,
|
|
81298
|
+
_sfc_main$l as KeFormCheckBoxAsync,
|
|
81017
81299
|
KeFormDatePicker,
|
|
81018
81300
|
KeFormDateTimePicker,
|
|
81019
|
-
_sfc_main$
|
|
81020
|
-
_sfc_main$
|
|
81021
|
-
_sfc_main$
|
|
81301
|
+
_sfc_main$i as KeFormDivider,
|
|
81302
|
+
_sfc_main$f as KeFormDynamicTable,
|
|
81303
|
+
_sfc_main$e as KeFormInput,
|
|
81022
81304
|
KeFormInputNumber,
|
|
81023
|
-
_sfc_main$
|
|
81305
|
+
_sfc_main$c as KeFormRadio,
|
|
81024
81306
|
KeFormRender,
|
|
81025
81307
|
KeFormSelect,
|
|
81026
81308
|
KeFormSelectAsync,
|
|
81027
|
-
_sfc_main$
|
|
81028
|
-
_sfc_main$
|
|
81309
|
+
_sfc_main$5 as KeFormSelectRemote,
|
|
81310
|
+
_sfc_main$4 as KeFormSwitch,
|
|
81311
|
+
_sfc_main$3 as KeFormTableSelect,
|
|
81029
81312
|
_sfc_main$1 as KeFormText,
|
|
81030
81313
|
_sfc_main as KeFormTextArea,
|
|
81031
81314
|
KeliQueryBar as KeQueryBar,
|
|
81032
|
-
_sfc_main$
|
|
81033
|
-
_sfc_main$
|
|
81034
|
-
_sfc_main$
|
|
81315
|
+
_sfc_main$r as KeQueryDateTime,
|
|
81316
|
+
_sfc_main$q as KeQueryInput,
|
|
81317
|
+
_sfc_main$p as KeQueryInputLike,
|
|
81035
81318
|
KeliQuerySelect as KeQuerySelect,
|
|
81036
81319
|
KeTableCardRender,
|
|
81037
81320
|
KeTableCheckBoxAsync,
|
|
81038
81321
|
KeTableInput,
|
|
81039
81322
|
KeTableInputNumber,
|
|
81040
81323
|
KeTableRender,
|
|
81041
|
-
_sfc_main$
|
|
81042
|
-
_sfc_main$
|
|
81043
|
-
_sfc_main$
|
|
81324
|
+
_sfc_main$u as KeTableSelect,
|
|
81325
|
+
_sfc_main$t as KeTableSelectAsync,
|
|
81326
|
+
_sfc_main$s as KeTableSwitch,
|
|
81044
81327
|
KeTableTreeRender,
|
|
81045
|
-
_sfc_main$
|
|
81328
|
+
_sfc_main$n as KeToolBar,
|
|
81046
81329
|
Table,
|
|
81047
81330
|
Toolbar,
|
|
81048
81331
|
VXETable,
|