aoi-comp 1.0.7 → 1.0.9
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 +14 -1
- package/dist/{BufferResource-DFDBAnSq.js → BufferResource-o2LGGq1U.js} +2 -2
- package/dist/{CanvasPool-BsgAe0a6.js → CanvasPool-x1nSZDIx.js} +1 -1
- package/dist/{Geometry-aazo6sAf.js → Geometry-BM7su788.js} +3 -3
- package/dist/{RenderTargetSystem-CZF50Fmm.js → RenderTargetSystem-BNp9VOlY.js} +245 -245
- package/dist/{browserAll-DaWcejVe.js → browserAll-EL05LSIx.js} +11 -11
- package/dist/{canvasUtils-De2q5tyg.js → canvasUtils-C0wKvLC1.js} +1 -1
- package/dist/comps.js +19300 -16632
- package/dist/{getTextureBatchBindGroup-DQkuEaQe.js → getTextureBatchBindGroup-BFZcnSby.js} +1 -1
- package/dist/{hooks-CdZsOQlG.js → hooks-MstF8Y3K.js} +158 -158
- package/dist/hooks.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{init-DVx9p_OT.js → init-C4yLp8yD.js} +17 -17
- package/dist/{init-Dhh1Ipn5.js → init-CCTyMlTU.js} +16 -15
- package/dist/{packages-CZzUFKwt.js → packages-C9qBCygN.js} +475 -437
- package/dist/style.css +1 -1
- package/dist/utils.js +2 -2
- package/dist/webworkerAll-CytR-OcT.js +2 -0
- package/package.json +6 -6
- package/dist/webworkerAll-c3PtPRAK.js +0 -2
package/README.md
CHANGED
|
@@ -148,16 +148,29 @@ import { AoiInput, AoiTable, AoiView } from 'aoi-comp/comps';
|
|
|
148
148
|
|
|
149
149
|
```jsx
|
|
150
150
|
import { AoiInput, AoiNumber, AoiTable } from 'aoi-comp/comps';
|
|
151
|
+
import { formatTime } from 'aoi-comp/utils';
|
|
152
|
+
|
|
153
|
+
const data = [{ id: '1788164945005', name: '示例数据' }];
|
|
154
|
+
const columns = [
|
|
155
|
+
{
|
|
156
|
+
title: '时间',
|
|
157
|
+
dataIndex: 'id',
|
|
158
|
+
render: (value) => formatTime(Number(value)),
|
|
159
|
+
},
|
|
160
|
+
{ title: '名称', dataIndex: 'name' },
|
|
161
|
+
];
|
|
151
162
|
|
|
152
163
|
const Demo = () => (
|
|
153
164
|
<>
|
|
154
165
|
<AoiInput value="test" />
|
|
155
166
|
<AoiNumber value={8} max={10} />
|
|
156
|
-
<AoiTable rowKey="id" columns={
|
|
167
|
+
<AoiTable rowKey="id" columns={columns} data={data} total={data.length} />
|
|
157
168
|
</>
|
|
158
169
|
);
|
|
159
170
|
```
|
|
160
171
|
|
|
172
|
+
> 数据库的 `BIGINT` 字段可能以字符串返回。将毫秒时间戳传给 `formatTime` 前应先转换为数字,例如 `formatTime(Number(record.id))`。
|
|
173
|
+
|
|
161
174
|
#### 6. 使用 Hooks 和工具函数
|
|
162
175
|
|
|
163
176
|
Hooks 从 `aoi-comp/hooks` 导入:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as e, Z as t, n, nt as r, p as i, r as a } from "./Geometry-
|
|
2
|
-
import { k as o, w as s } from "./RenderTargetSystem-
|
|
1
|
+
import { R as e, Z as t, n, nt as r, p as i, r as a } from "./Geometry-BM7su788.js";
|
|
2
|
+
import { k as o, w as s } from "./RenderTargetSystem-BNp9VOlY.js";
|
|
3
3
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/localUniformBit.mjs
|
|
4
4
|
var c = {
|
|
5
5
|
name: "local-uniform-bit",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as e, b as t, q as n } from "./Geometry-
|
|
1
|
+
import { L as e, b as t, q as n } from "./Geometry-BM7su788.js";
|
|
2
2
|
var r = new class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
this._canvasPool = /* @__PURE__ */ Object.create(null), this.canvasOptions = e || {}, this.enableFullScreen = !1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gt as e, pt as t } from "./packages-C9qBCygN.js";
|
|
2
2
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/extensions/Extensions.mjs
|
|
3
3
|
var n = /* @__PURE__ */ ((e) => (e.Application = "application", e.WebGLPipes = "webgl-pipes", e.WebGLPipesAdaptor = "webgl-pipes-adaptor", e.WebGLSystem = "webgl-system", e.WebGPUPipes = "webgpu-pipes", e.WebGPUPipesAdaptor = "webgpu-pipes-adaptor", e.WebGPUSystem = "webgpu-system", e.CanvasSystem = "canvas-system", e.CanvasPipesAdaptor = "canvas-pipes-adaptor", e.CanvasPipes = "canvas-pipes", e.Asset = "asset", e.LoadParser = "load-parser", e.ResolveParser = "resolve-parser", e.CacheParser = "cache-parser", e.DetectionParser = "detection-parser", e.MaskEffect = "mask-effect", e.BlendMode = "blend-mode", e.TextureSource = "texture-source", e.TextureUploaderWebGL = "texture-uploader-webgl", e.TextureUploaderWebGPU = "texture-uploader-webgpu", e.Environment = "environment", e.ShapeBuilder = "shape-builder", e.Batcher = "batcher", e))(n || {}), r = (e) => {
|
|
4
4
|
if (typeof e == "function" || typeof e == "object" && e.extension) {
|
|
@@ -98,7 +98,7 @@ var n = /* @__PURE__ */ ((e) => (e.Application = "application", e.WebGLPipes = "
|
|
|
98
98
|
set y(e) {
|
|
99
99
|
this._y !== e && (this._y = e, this._observer._onUpdate(this));
|
|
100
100
|
}
|
|
101
|
-
}, s = (/* @__PURE__ */
|
|
101
|
+
}, s = (/* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
102
102
|
var n = Object.prototype.hasOwnProperty, r = "~";
|
|
103
103
|
function i() {}
|
|
104
104
|
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
|
|
@@ -3800,4 +3800,4 @@ var Fn = class extends s {
|
|
|
3800
3800
|
}
|
|
3801
3801
|
};
|
|
3802
3802
|
//#endregion
|
|
3803
|
-
export { C as $, lt as A, A as B, kt as C, pt as D, St as E, Ze as F, pe as G, _e as H, z as I, D as J, le as K, Je as L, V as M, B as N, H as O, et as P, ne as Q, R, At as S, wt as T, he as U, k as V, O as W, ae as X, T as Y, w as Z, Lt as _, bn as a, Nt as b, _n as c, gn as d, p as et, dn as f, K as g, Vt as h, An as i,
|
|
3803
|
+
export { C as $, lt as A, A as B, kt as C, pt as D, St as E, Ze as F, pe as G, _e as H, z as I, D as J, le as K, Je as L, V as M, B as N, H as O, et as P, ne as Q, R, At as S, wt as T, he as U, k as V, O as W, ae as X, T as Y, w as Z, Lt as _, bn as a, a as at, Nt as b, _n as c, gn as d, p as et, dn as f, K as g, Vt as h, An as i, n as it, ot as j, dt as k, Q as l, Qt as m, jn as n, s as nt, On as o, en as p, se as q, $ as r, o as rt, vn as s, Fn as t, d as tt, Z as u, G as v, Tt as w, jt as x, Pt as y, We as z };
|