@jzg223/design-runtime 0.0.0-stage → 0.0.1
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/CHANGELOG.md +176 -0
- package/README.md +275 -2
- package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/api.js +149 -0
- package/dist/comb/design-comb.vue.js +7 -0
- package/dist/comb/design-comb2.vue.js +591 -0
- package/dist/compat.js +74 -0
- package/dist/components/ApiSwitch.vue.js +7 -0
- package/dist/components/ApiSwitch2.vue.js +98 -0
- package/dist/components/design-debug/dev-mode-toggle.vue.js +7 -0
- package/dist/components/design-debug/dev-mode-toggle2.vue.js +41 -0
- package/dist/components/design-debug/dev-mode.js +45 -0
- package/dist/components/design-debug/dev-state-button.vue.js +7 -0
- package/dist/components/design-debug/dev-state-button2.vue.js +447 -0
- package/dist/components/design-debug/expr-eval.js +81 -0
- package/dist/components/design-shared/host-api.js +47 -0
- package/dist/components/design-shared/popup-host.js +11 -0
- package/dist/components/design-table/design-table-inner.vue.js +7 -0
- package/dist/components/design-table/design-table-inner2.vue.js +39 -0
- package/dist/components/design-table/design-table.vue.js +7 -0
- package/dist/components/design-table/design-table2.vue.js +937 -0
- package/dist/components/design-table/row-actions/delete-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/delete-action2.vue.js +42 -0
- package/dist/components/design-table/row-actions/edit-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/edit-action2.vue.js +145 -0
- package/dist/components/design-table/row-actions/index.js +36 -0
- package/dist/components/design-table/row-actions/modal-comb-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/modal-comb-action2.vue.js +66 -0
- package/dist/components/design-table/row-actions/modal-custom-action.vue.js +7 -0
- package/dist/components/design-table/row-actions/modal-custom-action2.vue.js +105 -0
- package/dist/components/design-table/row-actions/modal-form-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/modal-form-action2.vue.js +82 -0
- package/dist/components/design-table/row-actions/modal-table-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/modal-table-action2.vue.js +67 -0
- package/dist/components/design-table/row-actions/modal-tree-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/modal-tree-action2.vue.js +70 -0
- package/dist/components/design-table/row-actions/navigate-comb-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/navigate-comb-action2.vue.js +47 -0
- package/dist/components/design-table/row-actions/navigate-form-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/navigate-form-action2.vue.js +47 -0
- package/dist/components/design-table/row-actions/navigate-table-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/navigate-table-action2.vue.js +47 -0
- package/dist/components/design-table/row-actions/navigate-tree-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/navigate-tree-action2.vue.js +47 -0
- package/dist/components/design-table/row-actions/other-action.vue.js +4 -0
- package/dist/components/design-table/row-actions/other-action2.vue.js +44 -0
- package/dist/components/design-tools/add-tool.vue.js +4 -0
- package/dist/components/design-tools/add-tool2.vue.js +136 -0
- package/dist/components/design-tools/command-executor.js +135 -0
- package/dist/components/design-tools/export-tool.vue.js +4 -0
- package/dist/components/design-tools/export-tool2.vue.js +46 -0
- package/dist/components/design-tools/import-tool.vue.js +4 -0
- package/dist/components/design-tools/import-tool2.vue.js +101 -0
- package/dist/components/design-tools/index.js +36 -0
- package/dist/components/design-tools/modal-comb-tool.vue.js +4 -0
- package/dist/components/design-tools/modal-comb-tool2.vue.js +56 -0
- package/dist/components/design-tools/modal-form-tool.vue.js +4 -0
- package/dist/components/design-tools/modal-form-tool2.vue.js +66 -0
- package/dist/components/design-tools/modal-hcm-tool.vue.js +7 -0
- package/dist/components/design-tools/modal-hcm-tool2.vue.js +85 -0
- package/dist/components/design-tools/modal-table-tool.vue.js +4 -0
- package/dist/components/design-tools/modal-table-tool2.vue.js +54 -0
- package/dist/components/design-tools/modal-tree-tool.vue.js +4 -0
- package/dist/components/design-tools/modal-tree-tool2.vue.js +57 -0
- package/dist/components/design-tools/navigate-comb-tool.vue.js +4 -0
- package/dist/components/design-tools/navigate-comb-tool2.vue.js +34 -0
- package/dist/components/design-tools/navigate-form-tool.vue.js +4 -0
- package/dist/components/design-tools/navigate-form-tool2.vue.js +34 -0
- package/dist/components/design-tools/navigate-table-tool.vue.js +4 -0
- package/dist/components/design-tools/navigate-table-tool2.vue.js +33 -0
- package/dist/components/design-tools/other-tool.vue.js +4 -0
- package/dist/components/design-tools/other-tool2.vue.js +34 -0
- package/dist/components/flow-status-cell/flow-status-cell.vue.js +7 -0
- package/dist/components/flow-status-cell/flow-status-cell2.vue.js +124 -0
- package/dist/flow.js +22 -0
- package/dist/form/cell-condition.js +122 -0
- package/dist/form/derived-express.js +34 -0
- package/dist/form/design-form-inner.vue.js +7 -0
- package/dist/form/design-form-inner2.vue.js +449 -0
- package/dist/form/design-form.vue.js +7 -0
- package/dist/form/design-form2.vue.js +681 -0
- package/dist/form/fields/checkbox-field.vue.js +88 -0
- package/dist/form/fields/checkbox-field2.vue.js +4 -0
- package/dist/form/fields/custom-field.vue.js +36 -0
- package/dist/form/fields/custom-field2.vue.js +4 -0
- package/dist/form/fields/date-field.vue.js +64 -0
- package/dist/form/fields/date-field2.vue.js +4 -0
- package/dist/form/fields/embedded-list-field.vue.js +7 -0
- package/dist/form/fields/embedded-list-field2.vue.js +437 -0
- package/dist/form/fields/file-field.vue.js +88 -0
- package/dist/form/fields/file-field2.vue.js +4 -0
- package/dist/form/fields/image-field.vue.js +90 -0
- package/dist/form/fields/image-field2.vue.js +4 -0
- package/dist/form/fields/index.js +106 -0
- package/dist/form/fields/month-field.vue.js +51 -0
- package/dist/form/fields/month-field2.vue.js +4 -0
- package/dist/form/fields/org-select-field.vue.js +7 -0
- package/dist/form/fields/org-select-field2.vue.js +187 -0
- package/dist/form/fields/orgs-select-field.vue.js +182 -0
- package/dist/form/fields/orgs-select-field2.vue.js +4 -0
- package/dist/form/fields/radio-field.vue.js +91 -0
- package/dist/form/fields/radio-field2.vue.js +4 -0
- package/dist/form/fields/select-field.vue.js +7 -0
- package/dist/form/fields/select-field2.vue.js +317 -0
- package/dist/form/fields/splitline-field.vue.js +7 -0
- package/dist/form/fields/splitline-field2.vue.js +50 -0
- package/dist/form/fields/switch-field.vue.js +32 -0
- package/dist/form/fields/switch-field2.vue.js +4 -0
- package/dist/form/fields/text-field.vue.js +78 -0
- package/dist/form/fields/text-field2.vue.js +4 -0
- package/dist/form/fields/time-field.vue.js +50 -0
- package/dist/form/fields/time-field2.vue.js +4 -0
- package/dist/form/fields/tree-field.vue.js +157 -0
- package/dist/form/fields/tree-field2.vue.js +4 -0
- package/dist/form/number-precision.js +18 -0
- package/dist/form/transformer.js +162 -0
- package/dist/host.js +76 -0
- package/dist/http.js +19 -0
- package/dist/index.js +166 -0
- package/dist/mapping.js +44 -0
- package/dist/org/dept-api.js +30 -0
- package/dist/org/dept-tree-source.js +53 -0
- package/dist/org/dept-tree.js +122 -0
- package/dist/registry.js +77 -0
- package/dist/search/design-search.vue.js +7 -0
- package/dist/search/design-search2.vue.js +232 -0
- package/dist/search/transformer.js +115 -0
- package/dist/style.css +1220 -0
- package/dist/table/data.js +18 -0
- package/dist/table/load-gate.js +19 -0
- package/dist/table/query-body.js +59 -0
- package/dist/table/query-dedupe.js +54 -0
- package/dist/table/query-search.js +9 -0
- package/dist/table/row-action-mapping.js +34 -0
- package/dist/table/transformer.js +328 -0
- package/dist/tree/design-tree.vue.js +7 -0
- package/dist/tree/design-tree2.vue.js +783 -0
- package/dist/types/api.d.ts +83 -0
- package/dist/types/comb/design-comb.vue.d.ts +38 -0
- package/dist/types/compat.d.ts +46 -0
- package/dist/types/components/ApiSwitch.vue.d.ts +31 -0
- package/dist/types/components/design-debug/dev-mode-toggle.vue.d.ts +2 -0
- package/dist/types/components/design-debug/dev-mode.d.ts +8 -0
- package/dist/types/components/design-debug/dev-state-button.vue.d.ts +55 -0
- package/dist/types/components/design-debug/expr-eval.d.ts +55 -0
- package/dist/types/components/design-shared/host-api.d.ts +60 -0
- package/dist/types/components/design-shared/popup-host.d.ts +13 -0
- package/dist/types/components/design-table/design-table-inner.vue.d.ts +19 -0
- package/dist/types/components/design-table/design-table.vue.d.ts +70 -0
- package/dist/types/components/design-table/row-actions/delete-action.vue.d.ts +12 -0
- package/dist/types/components/design-table/row-actions/edit-action.vue.d.ts +14 -0
- package/dist/types/components/design-table/row-actions/index.d.ts +25 -0
- package/dist/types/components/design-table/row-actions/modal-comb-action.vue.d.ts +10 -0
- package/dist/types/components/design-table/row-actions/modal-custom-action.vue.d.ts +15 -0
- package/dist/types/components/design-table/row-actions/modal-form-action.vue.d.ts +10 -0
- package/dist/types/components/design-table/row-actions/modal-table-action.vue.d.ts +10 -0
- package/dist/types/components/design-table/row-actions/modal-tree-action.vue.d.ts +10 -0
- package/dist/types/components/design-table/row-actions/navigate-comb-action.vue.d.ts +10 -0
- package/dist/types/components/design-table/row-actions/navigate-form-action.vue.d.ts +10 -0
- package/dist/types/components/design-table/row-actions/navigate-table-action.vue.d.ts +10 -0
- package/dist/types/components/design-table/row-actions/navigate-tree-action.vue.d.ts +10 -0
- package/dist/types/components/design-table/row-actions/other-action.vue.d.ts +14 -0
- package/dist/types/components/design-tools/add-tool.vue.d.ts +23 -0
- package/dist/types/components/design-tools/command-executor.d.ts +80 -0
- package/dist/types/components/design-tools/export-tool.vue.d.ts +9 -0
- package/dist/types/components/design-tools/import-tool.vue.d.ts +14 -0
- package/dist/types/components/design-tools/index.d.ts +23 -0
- package/dist/types/components/design-tools/modal-comb-tool.vue.d.ts +12 -0
- package/dist/types/components/design-tools/modal-form-tool.vue.d.ts +12 -0
- package/dist/types/components/design-tools/modal-hcm-tool.vue.d.ts +23 -0
- package/dist/types/components/design-tools/modal-table-tool.vue.d.ts +12 -0
- package/dist/types/components/design-tools/modal-tree-tool.vue.d.ts +12 -0
- package/dist/types/components/design-tools/navigate-comb-tool.vue.d.ts +12 -0
- package/dist/types/components/design-tools/navigate-form-tool.vue.d.ts +11 -0
- package/dist/types/components/design-tools/navigate-table-tool.vue.d.ts +12 -0
- package/dist/types/components/design-tools/other-tool.vue.d.ts +16 -0
- package/dist/types/components/flow-status-cell/flow-status-cell.vue.d.ts +14 -0
- package/dist/types/components/index.d.ts +33 -0
- package/dist/types/flow.d.ts +50 -0
- package/dist/types/form/cell-condition.d.ts +35 -0
- package/dist/types/form/derived-express.d.ts +28 -0
- package/dist/types/form/design-form-inner.vue.d.ts +55 -0
- package/dist/types/form/design-form.vue.d.ts +96 -0
- package/dist/types/form/fields/checkbox-field.vue.d.ts +14 -0
- package/dist/types/form/fields/custom-field.vue.d.ts +22 -0
- package/dist/types/form/fields/date-field.vue.d.ts +12 -0
- package/dist/types/form/fields/embedded-list-field.vue.d.ts +26 -0
- package/dist/types/form/fields/file-field.vue.d.ts +12 -0
- package/dist/types/form/fields/image-field.vue.d.ts +12 -0
- package/dist/types/form/fields/index.d.ts +34 -0
- package/dist/types/form/fields/month-field.vue.d.ts +12 -0
- package/dist/types/form/fields/org-select-field.vue.d.ts +14 -0
- package/dist/types/form/fields/orgs-select-field.vue.d.ts +12 -0
- package/dist/types/form/fields/radio-field.vue.d.ts +14 -0
- package/dist/types/form/fields/select-field.vue.d.ts +14 -0
- package/dist/types/form/fields/splitline-field.vue.d.ts +7 -0
- package/dist/types/form/fields/switch-field.vue.d.ts +12 -0
- package/dist/types/form/fields/text-field.vue.d.ts +12 -0
- package/dist/types/form/fields/time-field.vue.d.ts +12 -0
- package/dist/types/form/fields/tree-field.vue.d.ts +12 -0
- package/dist/types/form/number-precision.d.ts +15 -0
- package/dist/types/form/transformer.d.ts +27 -0
- package/dist/types/host.d.ts +182 -0
- package/dist/types/http.d.ts +59 -0
- package/dist/types/index.d.ts +41 -0
- package/dist/types/mapping.d.ts +39 -0
- package/dist/types/org/dept-api.d.ts +12 -0
- package/dist/types/org/dept-tree-source.d.ts +15 -0
- package/dist/types/org/dept-tree.d.ts +62 -0
- package/dist/types/registry.d.ts +79 -0
- package/dist/types/search/design-search.vue.d.ts +46 -0
- package/dist/types/search/transformer.d.ts +36 -0
- package/dist/types/table/data.d.ts +30 -0
- package/dist/types/table/index.d.ts +20 -0
- package/dist/types/table/load-gate.d.ts +24 -0
- package/dist/types/table/query-body.d.ts +46 -0
- package/dist/types/table/query-dedupe.d.ts +42 -0
- package/dist/types/table/query-search.d.ts +21 -0
- package/dist/types/table/row-action-mapping.d.ts +36 -0
- package/dist/types/table/transformer.d.ts +59 -0
- package/dist/types/tree/design-tree.vue.d.ts +33 -0
- package/dist/types/types.d.ts +525 -0
- package/dist/types/utils/default-value.d.ts +16 -0
- package/dist/types/utils/download.d.ts +9 -0
- package/dist/types/utils/popup-width.d.ts +21 -0
- package/dist/utils/default-value.js +38 -0
- package/dist/utils/download.js +19 -0
- package/dist/utils/popup-width.js +19 -0
- package/package.json +73 -4
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const IDENTIFIER_RE = /^[A-Za-z_$][\w$]*$/;
|
|
2
|
+
function isValidScopeKey(key) {
|
|
3
|
+
return IDENTIFIER_RE.test(key);
|
|
4
|
+
}
|
|
5
|
+
function buildExprScope(state, exprScope) {
|
|
6
|
+
if (exprScope) return { ...exprScope };
|
|
7
|
+
const stateObj = state ?? {};
|
|
8
|
+
return { params: stateObj.extraParams ?? stateObj.routeParams ?? {} };
|
|
9
|
+
}
|
|
10
|
+
function listScopeKeys(scope) {
|
|
11
|
+
return Object.keys(scope).filter(isValidScopeKey);
|
|
12
|
+
}
|
|
13
|
+
function scopeKeyTip(key, value, labels) {
|
|
14
|
+
const label = labels == null ? void 0 : labels[key];
|
|
15
|
+
const preview = previewScopeValue(value);
|
|
16
|
+
return label ? `${label} —— ${preview}` : preview;
|
|
17
|
+
}
|
|
18
|
+
function typeOf(value) {
|
|
19
|
+
return value === null ? "null" : Array.isArray(value) ? "array" : typeof value;
|
|
20
|
+
}
|
|
21
|
+
function describeValue(value) {
|
|
22
|
+
const type = typeOf(value);
|
|
23
|
+
const empty = value === void 0 || value === null;
|
|
24
|
+
let text;
|
|
25
|
+
try {
|
|
26
|
+
if (value === void 0) {
|
|
27
|
+
text = "undefined";
|
|
28
|
+
} else if (typeof value === "string") {
|
|
29
|
+
text = JSON.stringify(value);
|
|
30
|
+
} else if (typeof value === "object") {
|
|
31
|
+
text = JSON.stringify(value, null, 2);
|
|
32
|
+
} else {
|
|
33
|
+
text = String(value);
|
|
34
|
+
}
|
|
35
|
+
} catch (err) {
|
|
36
|
+
text = `[序列化失败] ${(err == null ? void 0 : err.message) ?? err}`;
|
|
37
|
+
}
|
|
38
|
+
return { ok: true, type, text, empty };
|
|
39
|
+
}
|
|
40
|
+
function evalExpression(expr, scope) {
|
|
41
|
+
const source = expr == null ? void 0 : expr.trim();
|
|
42
|
+
if (!source) return null;
|
|
43
|
+
const keys = listScopeKeys(scope);
|
|
44
|
+
try {
|
|
45
|
+
const fn = new Function(...keys, `return (${source});`);
|
|
46
|
+
return describeValue(fn(...keys.map((key) => scope[key])));
|
|
47
|
+
} catch (err) {
|
|
48
|
+
return {
|
|
49
|
+
ok: false,
|
|
50
|
+
type: "-",
|
|
51
|
+
text: "",
|
|
52
|
+
empty: false,
|
|
53
|
+
error: (err == null ? void 0 : err.message) ?? String(err)
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function previewScopeValue(value) {
|
|
58
|
+
const type = typeOf(value);
|
|
59
|
+
if (value === null || value === void 0) return type;
|
|
60
|
+
if (typeof value === "object") {
|
|
61
|
+
const keys = Object.keys(value);
|
|
62
|
+
const head = keys.slice(0, 8).join(", ");
|
|
63
|
+
return `${type}(${keys.length}) { ${head}${keys.length > 8 ? ", …" : ""} }`;
|
|
64
|
+
}
|
|
65
|
+
return `${type}: ${String(value)}`;
|
|
66
|
+
}
|
|
67
|
+
function appendScopeKey(expression, key) {
|
|
68
|
+
const cur = (expression ?? "").trimEnd();
|
|
69
|
+
if (!cur) return key;
|
|
70
|
+
return `${cur}${cur.endsWith(".") ? "" : " "}${key}`;
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
appendScopeKey,
|
|
74
|
+
buildExprScope,
|
|
75
|
+
describeValue,
|
|
76
|
+
evalExpression,
|
|
77
|
+
isValidScopeKey,
|
|
78
|
+
listScopeKeys,
|
|
79
|
+
previewScopeValue,
|
|
80
|
+
scopeKeyTip
|
|
81
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { message } from "antdv-next";
|
|
2
|
+
import { requireHttp, getDesignHost } from "../../host.js";
|
|
3
|
+
function hostRequest(config) {
|
|
4
|
+
const method = String(config.method ?? "GET").toUpperCase();
|
|
5
|
+
if (method === "POST") {
|
|
6
|
+
return requireHttp().post(config.url, config.data ?? {}, {
|
|
7
|
+
params: config.params
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
return requireHttp().get(config.url, { params: config.params });
|
|
11
|
+
}
|
|
12
|
+
function platformMessage() {
|
|
13
|
+
const injected = getDesignHost().message;
|
|
14
|
+
if (injected) {
|
|
15
|
+
return {
|
|
16
|
+
error: (msg) => injected.error(msg),
|
|
17
|
+
loading: (content) => {
|
|
18
|
+
var _a;
|
|
19
|
+
return ((_a = injected.loading) == null ? void 0 : _a.call(injected, content)) ?? (() => {
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
success: (msg) => injected.success(msg),
|
|
23
|
+
warning: (msg) => injected.warning(msg)
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
error: (msg) => message.error(msg),
|
|
28
|
+
loading: (content) => {
|
|
29
|
+
const hide = message.loading({ content, duration: 0 });
|
|
30
|
+
return () => hide == null ? void 0 : hide();
|
|
31
|
+
},
|
|
32
|
+
success: (msg) => message.success(msg),
|
|
33
|
+
warning: (msg) => message.warning(msg)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function buildHostApi(extra) {
|
|
37
|
+
return {
|
|
38
|
+
message: platformMessage(),
|
|
39
|
+
request: hostRequest,
|
|
40
|
+
...extra ?? {}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
buildHostApi,
|
|
45
|
+
hostRequest,
|
|
46
|
+
platformMessage
|
|
47
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { inject } from "vue";
|
|
2
|
+
const DESIGN_POPUP_HOST_KEY = Symbol(
|
|
3
|
+
"design-popup-host"
|
|
4
|
+
);
|
|
5
|
+
function usePopupHost(defaultHost = "vben") {
|
|
6
|
+
return inject(DESIGN_POPUP_HOST_KEY, defaultHost);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
DESIGN_POPUP_HOST_KEY,
|
|
10
|
+
usePopupHost
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./design-table-inner2.vue.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const designTableInner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e9102e0c"]]);
|
|
5
|
+
export {
|
|
6
|
+
designTableInner as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, unref, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import { requireVxeGrid } from "../../host.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
...{ name: "DesignTableInner" },
|
|
5
|
+
__name: "design-table-inner",
|
|
6
|
+
props: {
|
|
7
|
+
formOptions: {},
|
|
8
|
+
gridOptions: {},
|
|
9
|
+
tableTitle: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props, { expose: __expose }) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const [BasicTable, gridApi] = requireVxeGrid()({
|
|
14
|
+
formOptions: props.formOptions,
|
|
15
|
+
gridOptions: props.gridOptions
|
|
16
|
+
});
|
|
17
|
+
__expose({ gridApi });
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(BasicTable)), {
|
|
20
|
+
class: "dr-table-inner",
|
|
21
|
+
"form-options": props.formOptions,
|
|
22
|
+
"grid-options": props.gridOptions,
|
|
23
|
+
"table-title": __props.tableTitle
|
|
24
|
+
}, createSlots({ _: 2 }, [
|
|
25
|
+
renderList(_ctx.$slots, (_, slotName) => {
|
|
26
|
+
return {
|
|
27
|
+
name: slotName,
|
|
28
|
+
fn: withCtx((slotProps) => [
|
|
29
|
+
renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotProps)), void 0, true)
|
|
30
|
+
])
|
|
31
|
+
};
|
|
32
|
+
})
|
|
33
|
+
]), 1032, ["form-options", "grid-options", "table-title"]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
_sfc_main as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from "./design-table2.vue.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const DesignTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cd209f75"]]);
|
|
5
|
+
export {
|
|
6
|
+
DesignTable as default
|
|
7
|
+
};
|