@gopowerteam/table-render 0.0.3 → 0.0.4
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/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.d.ts +3 -1
- package/dist/cjs/install.d.ts +3 -0
- package/dist/cjs/resolver.cjs +1 -0
- package/dist/cjs/resolver.d.ts +8 -0
- package/dist/cjs/table-render/index.d.ts +1072 -0
- package/dist/es/index.d.ts +3 -1
- package/dist/es/index.mjs +12 -4
- package/dist/es/install.d.ts +3 -0
- package/dist/es/resolver.d.ts +8 -0
- package/dist/es/resolver.mjs +17 -0
- package/dist/es/table-render/index.d.ts +1072 -0
- package/package.json +18 -14
package/dist/es/index.d.ts
CHANGED
package/dist/es/index.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { Button as Ye, Tag as Ar, Descriptions as Rr, DescriptionsItem as Or, Di
|
|
|
6
6
|
import { useModal as fr, ModalProvider as Pr } from "@gopowerteam/modal-render";
|
|
7
7
|
import Br from "dayjs";
|
|
8
8
|
import { FormRender as dr } from "@gopowerteam/form-render";
|
|
9
|
+
import { TableRenderResolver as ni } from "./resolver.mjs";
|
|
9
10
|
function Dr(X, at, s) {
|
|
10
11
|
const [C, ..._] = (at.index || at.key).split(".").reverse(), p = _.reverse().reduce((o, a) => o == null ? void 0 : o[a], X);
|
|
11
12
|
p[C] = s;
|
|
@@ -28,7 +29,7 @@ function Lr(X) {
|
|
|
28
29
|
...typeof at.form == "boolean" ? {} : at.form
|
|
29
30
|
}));
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
+
function Gn(X) {
|
|
32
33
|
const at = Ze(), s = Te();
|
|
33
34
|
function C() {
|
|
34
35
|
var p, o;
|
|
@@ -34069,7 +34070,7 @@ const $n = /* @__PURE__ */ Be({
|
|
|
34069
34070
|
function Hn(X) {
|
|
34070
34071
|
return !!X && (typeof X == "object" || typeof X == "function") && typeof X.then == "function";
|
|
34071
34072
|
}
|
|
34072
|
-
const
|
|
34073
|
+
const Vn = /* @__PURE__ */ Be({
|
|
34073
34074
|
props: {
|
|
34074
34075
|
// 数据主键
|
|
34075
34076
|
rowKey: {
|
|
@@ -34329,10 +34330,17 @@ function Jn(X) {
|
|
|
34329
34330
|
function Qn(X) {
|
|
34330
34331
|
return X;
|
|
34331
34332
|
}
|
|
34333
|
+
const ti = {
|
|
34334
|
+
install(X, at) {
|
|
34335
|
+
X.component("TableRender", Vn);
|
|
34336
|
+
}
|
|
34337
|
+
};
|
|
34332
34338
|
export {
|
|
34333
|
-
|
|
34339
|
+
Vn as TableRender,
|
|
34340
|
+
ni as TableRenderResolver,
|
|
34341
|
+
ti as default,
|
|
34334
34342
|
Jn as defineColumns,
|
|
34335
34343
|
Qn as defineTableLoad,
|
|
34336
34344
|
zr as useEvents,
|
|
34337
|
-
|
|
34345
|
+
Gn as useTable
|
|
34338
34346
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function t() {
|
|
2
|
+
return {
|
|
3
|
+
type: "component",
|
|
4
|
+
resolve: (e) => {
|
|
5
|
+
const r = "@gopowerteam/table-render";
|
|
6
|
+
if (e === "TableRender" || e === "table-render")
|
|
7
|
+
return {
|
|
8
|
+
name: "TableRender",
|
|
9
|
+
from: r,
|
|
10
|
+
sideEffects: [`${r}/dist/style.css`]
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
t as TableRenderResolver
|
|
17
|
+
};
|