Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"eslint-plugin-command": "^0.2.7"
},
"devDependencies": {
"@eslint/js": "^9.30.1",
"@eslint/js": "^9.31.0",
"@types/eslint": "^9.6.1",
"@typescript-eslint/eslint-plugin": "^8.36.0",
"@typescript-eslint/parser": "^8.36.0",
"eslint": "^9.30.1",
"eslint": "^9.31.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jsdoc": "^50.8.0",
Expand Down
2 changes: 1 addition & 1 deletion internal/ts-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"web.json"
],
"dependencies": {
"@types/node": "^22.16.2"
"@types/node": "^22.16.3"
},
"devDependencies": {
"vite": "^7.0.4"
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"sm-crypto": "^0.3.13",
"sortablejs": "^1.15.6",
"uuid": "^11.1.0",
"vue-data-ui": "^2.15.1",
"vue-data-ui": "^2.15.3",
"vue-i18n": "^11.1.9",
"vue-json-pretty": "^2.5.0",
"vue-router": "^4.5.1",
Expand Down Expand Up @@ -85,7 +85,7 @@
"@types/intro.js": "^5.1.5",
"@types/jsdom": "^21.1.7",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.16.2",
"@types/node": "^22.16.3",
"@types/nprogress": "^0.2.3",
"@types/qrcode": "^1.5.5",
"@types/qs": "^6.14.0",
Expand All @@ -102,7 +102,7 @@
"autoprefixer": "^10.4.21",
"cross-env": "^7.0.3",
"dotenv": "^16.6.1",
"eslint": "^9.30.1",
"eslint": "^9.31.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.5.1",
"eslint-plugin-vue": "^10.3.0",
Expand All @@ -118,7 +118,7 @@
"prettier": "^3.6.2",
"prettier-plugin-packagejson": "^2.5.18",
"rimraf": "^6.0.1",
"rollup": "^4.44.2",
"rollup": "^4.45.0",
"rollup-plugin-visualizer": "^5.14.0",
"stylelint": "^16.21.1",
"stylelint-config-standard": "^37.0.0",
Expand Down
152 changes: 76 additions & 76 deletions packages/nocode/core/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/nocode/core/index.mjs

Large diffs are not rendered by default.

38 changes: 22 additions & 16 deletions packages/nocode/core/index55.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
import { defineComponent as e, useTemplateRef as o, computed as t, watch as r, nextTick as i, createBlock as n, openBlock as a, unref as s, mergeProps as c, toHandlers as h } from "vue";
import { i as m, u as l, aw as f, ax as p } from "./index.js";
import { defineComponent as e, useTemplateRef as t, computed as o, watch as r, nextTick as s, createBlock as a, openBlock as i, unref as n, mergeProps as c, toHandlers as h } from "vue";
import { i as m, u as l, aw as f, ax as p, _ as d } from "./index.js";
import "ant-design-vue";
import "@mfish/core/hooks";
import "@vueuse/core";
import "@mfish/core/components/Icon";
import { throttle as d } from "lodash-es";
import { throttle as u } from "lodash-es";
import "@mfish/core/enums";
import "@mfish/core/utils/Is";
const u = e({ name: "MfScrollTable", __name: "index", props: { chart: { type: Object, required: true }, chartContain: { type: Object, required: true } }, setup(e2) {
const u2 = e2, { commonEvents: w, emitEvent: v } = m(u2.chart, void 0, ["rowClick"]), x = l(), C = o("scrollTableRef"), I = t(() => ({ ...u2.chart.options, ...u2.chart.data?.dataSet }));
function g(e3) {
const v = d(e({ name: "MfScrollTable", __name: "index", props: { chart: { type: Object, required: true }, chartContain: { type: Object, required: true } }, setup(e2) {
const d2 = e2, { commonEvents: v2, emitEvent: w } = m(d2.chart, void 0, ["rowClick"]), C = l(), I = t("scrollTableRef"), g = o(() => ({ ...d2.chart.options, ...d2.chart.data?.dataSet }));
function x(e3) {
if (e3.rowIndex >= 0) {
const o2 = p(u2.chart);
o2.length > e3.rowIndex && v("rowClick", o2[e3.rowIndex]);
const t2 = p(d2.chart);
t2.length > e3.rowIndex && w("rowClick", t2[e3.rowIndex]);
}
}
return r([() => u2.chartContain?.dropInfo?.width, () => u2.chartContain?.dropInfo?.height], d(() => {
C.value?.resize();
}, 100)), r([() => u2.chartContain?.show, () => u2.chart?.showHide?.show], (e3) => {
e3 && i(() => {
C.value?.resize();
r([() => d2.chartContain?.dropInfo?.width, () => d2.chartContain?.dropInfo?.height], u(() => {
I.value?.resize();
}, 100)), r([() => d2.chartContain?.show, () => d2.chart?.showHide?.show], (e3) => {
e3 && s(() => {
I.value?.resize();
});
}), (e3, o2) => (a(), n(s(f), c({ ref_key: "scrollTableRef", ref: C, theme: s(x).getTheme, config: I.value }, h(s(w)), { onRowClick: g }), null, 16, ["theme", "config"]));
} });
});
const b = o(() => {
if (d2.chart?.events?.emits && d2.chart.events.emits.length > 0) {
for (const e3 of d2.chart.events.emits) if ("rowClick" === e3) return "allow-pointer";
}
});
return (e3, t2) => (i(), a(n(f), c({ class: b.value, ref_key: "scrollTableRef", ref: I, theme: n(C).getTheme, config: g.value }, h(n(v2)), { onRowClick: x }), null, 16, ["class", "theme", "config"]));
} }), [["__scopeId", "data-v-d370b1e5"]]);
export {
u as default
v as default
};
53 changes: 29 additions & 24 deletions packages/nocode/core/index58.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,40 @@
import { defineComponent as t, useCssVars as o, computed as a, watch as e, createBlock as n, openBlock as r, unref as i, mergeProps as c, toHandlers as p } from "vue";
import { i as s, u as d } from "./index.js";
import { Table as l } from "ant-design-vue";
import { useDesign as h } from "@mfish/core/hooks";
import { ThemeEnum as u } from "@mfish/core/enums";
import { cloneDeep as C } from "lodash-es";
const m = t({ __name: "index", props: { chart: { type: Object, required: true }, chartContain: { type: Object, required: true } }, setup(t2) {
o((t3) => ({ "42a70f29": `${B.value}px`, "3990a42a": x.value, "0f71ca84": S.value, "09c0318d": I.value }));
const m2 = t2, { commonEvents: g, emitEvent: f } = s(m2.chart, void 0, ["rowClick"]), { prefixCls: v } = h("mf-table"), w = a(() => {
const t3 = C(m2.chart.options.tableInfo.columns);
if (t3 && t3.length > 0) for (let o2 = 0; o2 < t3.length; o2++) t3[o2] = { ...t3[o2], ...m2.chart.options.columns[o2] }, m2.chart.options.index && 0 === o2 && (t3[o2].customRender = ({ index: t4 }) => `${(m2.chart.data.pagination.current ?? 0) * m2.chart.data.pagination.pageSize + t4 + 1}`);
return { ...m2.chart.options.tableInfo, columns: t3, pagination: m2.chart.data?.pagination, dataSource: m2.chart.data?.dataSet };
}), B = a(() => {
let t3 = (m2.chartContain?.dropInfo.height - 64) / (m2.chart.data?.pagination?.pageSize + 1);
import { defineComponent as t, useCssVars as e, computed as o, watch as a, createBlock as n, openBlock as r, unref as i, mergeProps as c, toHandlers as s } from "vue";
import { i as p, u as l } from "./index.js";
import { Table as h } from "ant-design-vue";
import { useDesign as d } from "@mfish/core/hooks";
import { ThemeEnum as m } from "@mfish/core/enums";
import { cloneDeep as u } from "lodash-es";
const C = t({ __name: "index", props: { chart: { type: Object, required: true }, chartContain: { type: Object, required: true } }, setup(t2) {
e((t3) => ({ "74993c04": `${B.value}px`, "5934e2a0": x.value, "2500025f": S.value, "0c23db5c": I.value }));
const C2 = t2, { commonEvents: f, emitEvent: g } = p(C2.chart, void 0, ["rowClick"]), { prefixCls: v } = d("mf-table"), w = o(() => {
const t3 = u(C2.chart.options.tableInfo.columns);
if (t3 && t3.length > 0) for (let e2 = 0; e2 < t3.length; e2++) t3[e2] = { ...t3[e2], ...C2.chart.options.columns[e2] }, C2.chart.options.index && 0 === e2 && (t3[e2].customRender = ({ index: t4 }) => `${(C2.chart.data.pagination.current ?? 0) * C2.chart.data.pagination.pageSize + t4 + 1}`);
return { ...C2.chart.options.tableInfo, columns: t3, pagination: C2.chart.data?.pagination, dataSource: C2.chart.data?.dataSet };
}), B = o(() => {
let t3 = (C2.chartContain?.dropInfo.height - 64) / (C2.chart.data?.pagination?.pageSize + 1);
return (!t3 || t3 < 54.67) && (t3 = 54.67), t3;
}), F = d(), G = { headerBGC: "#303030", oddRowBGC: "#141414", evenRowBGC: "#1D1D1D" }, R = { headerBGC: "#F0F0F0", oddRowBGC: "#FFFFFF", evenRowBGC: "#FAFAFA" };
e(() => m2.chartContain?.dropInfo?.height, (t3) => {
}), F = l(), G = { headerBGC: "#303030", oddRowBGC: "#141414", evenRowBGC: "#1D1D1D" }, b = { headerBGC: "#F0F0F0", oddRowBGC: "#FFFFFF", evenRowBGC: "#FAFAFA" };
a(() => C2.chartContain?.dropInfo?.height, (t3) => {
if (t3) {
let o2 = (t3 - 64) / (F.getCurConfigComponent.chart.data?.pagination?.pageSize + 1);
(!o2 || o2 < 54.67) && (o2 = 54.67), F.getCurConfigComponent.chart.options?.tableInfo?.scroll?.y && (F.getCurConfigComponent.chart.options.tableInfo.scroll.y = t3 - 64 - o2);
let e2 = (t3 - 64) / (F.getCurConfigComponent.chart.data?.pagination?.pageSize + 1);
(!e2 || e2 < 54.67) && (e2 = 54.67), F.getCurConfigComponent.chart.options?.tableInfo?.scroll?.y && (F.getCurConfigComponent.chart.options.tableInfo.scroll.y = t3 - 64 - e2);
}
}), e(() => m2.chart?.data?.type, (t3) => {
}), a(() => C2.chart?.data?.type, (t3) => {
0 === t3 && (F.getCurConfigComponent.chart.data.pagination = { pageSize: F.getCurConfigComponent.chart.data?.pagination?.pageSize || 5 });
});
const b = a(() => F.getTheme === u.DARK ? G : R), x = a(() => m2.chart.options.headerBGC || b.value.headerBGC), S = a(() => m2.chart.options.evenRowBGC || b.value.evenRowBGC), I = a(() => m2.chart.options.oddRowBGC || b.value.oddRowBGC);
function y(t3) {
const R = o(() => F.getTheme === m.DARK ? G : b), x = o(() => C2.chart.options.headerBGC || R.value.headerBGC), S = o(() => C2.chart.options.evenRowBGC || R.value.evenRowBGC), I = o(() => C2.chart.options.oddRowBGC || R.value.oddRowBGC);
function k(t3) {
return { onClick: () => {
f("rowClick", t3);
g("rowClick", t3);
} };
}
return (t3, o2) => (r(), n(i(l), c({ class: i(v) }, w.value, p(i(g)), { "row-class-name": (t4, o3) => o3 % 2 == 1 ? "even-table-striped" : "odd-table-striped", "custom-row": y }), null, 16, ["class", "row-class-name"]));
const y = o(() => {
if (C2.chart?.events?.emits && C2.chart.events.emits.length > 0) {
for (const t3 of C2.chart.events.emits) if ("rowClick" === t3) return "allow-pointer";
}
});
return (t3, e2) => (r(), n(i(h), c({ class: [i(v), y.value] }, w.value, s(i(f)), { "row-class-name": (t4, e3) => e3 % 2 == 1 ? "even-table-striped" : "odd-table-striped", "custom-row": k }), null, 16, ["class", "row-class-name"]));
} });
export {
m as default
C as default
};
Loading