jtxa-ui 1.0.0-beta.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.
@@ -0,0 +1,61 @@
1
+ import { defineAsyncComponent as l, ref as n, onMounted as u, onActivated as s, createElementBlock as f, createCommentVNode as p, openBlock as g, createVNode as v, unref as b } from "vue";
2
+ import { _ as h } from "./index-QYUH-_TJ.js";
3
+ const x = {
4
+ key: 0,
5
+ class: "jt-form-mttable-pc"
6
+ }, y = {
7
+ __name: "jt-form-mttable-pc",
8
+ props: {
9
+ page: {
10
+ type: Object,
11
+ required: !0
12
+ },
13
+ axios: {
14
+ type: Function,
15
+ required: !0
16
+ }
17
+ },
18
+ emits: ["update:modelValue"],
19
+ setup(e, { expose: r, emit: C }) {
20
+ const i = l({
21
+ loader: () => import("./index-QYUH-_TJ.js").then((a) => a.a),
22
+ loadingComponent: {
23
+ template: '<div class="mtt-loading">组件加载中...</div>'
24
+ },
25
+ errorComponent: {
26
+ template: '<div class="mtt-error">组件加载失败,请刷新页面重试</div>'
27
+ },
28
+ delay: 200,
29
+ timeout: 1e4
30
+ }), m = e, o = n(), t = n(!1);
31
+ u(() => {
32
+ t.value = !0;
33
+ }), s(() => {
34
+ t.value = !0;
35
+ });
36
+ function c() {
37
+ return Promise.resolve(m.page?.model || {});
38
+ }
39
+ function d() {
40
+ o.value;
41
+ }
42
+ return r({
43
+ validateForm: c,
44
+ reload: d
45
+ }), (a, P) => t.value ? (g(), f("div", x, [
46
+ v(b(i), {
47
+ ref_key: "mttRef",
48
+ ref: o,
49
+ subTable: !0,
50
+ compPath: e.page.compPath || e.page.path,
51
+ config: e.page.mttConfig || e.page.config || {},
52
+ mode: 0,
53
+ buttonWidth: e.page.buttonWidth || 270,
54
+ axios: e.axios
55
+ }, null, 8, ["compPath", "config", "buttonWidth", "axios"])
56
+ ])) : p("", !0);
57
+ }
58
+ }, _ = /* @__PURE__ */ h(y, [["__scopeId", "data-v-d4296f0a"]]);
59
+ export {
60
+ _ as default
61
+ };
@@ -0,0 +1,6 @@
1
+ import './jtxa-ui.css';
2
+ import { i as a } from "./index-QYUH-_TJ.js";
3
+ import "element-plus";
4
+ export {
5
+ a as default
6
+ };