s-list-layout.js 939 B

1234567891011121314151617181920212223242526272829303132
  1. import { ref as n, reactive as r, resolveComponent as p, openBlock as _, createBlock as m } from "vue";
  2. import { dc as f } from "./index2.js";
  3. function d(s, t) {
  4. const e = window.$utils.env.VITE_APP_PORTAL_SERVER_NAME;
  5. return window.$utils.http({
  6. url: `/${e}/position/page?${f.stringify(t)}`,
  7. data: s
  8. });
  9. }
  10. const b = /* @__PURE__ */ Object.assign({ name: "TplListLayout" }, {
  11. __name: "s-list-layout",
  12. setup(s) {
  13. window.useI18n("template");
  14. const t = n([]), e = n([]), l = r({}), a = n(!1), i = (o = {}) => d(l, o), u = () => {
  15. };
  16. return (o, v) => {
  17. const c = p("s-list-layout", !0);
  18. return _(), m(c, {
  19. ref: "layout",
  20. buttons: t.value,
  21. onReset: u,
  22. columns: e.value,
  23. loadData: i,
  24. isSelection: a.value,
  25. title: o.$l("基础列表")
  26. }, null, 8, ["buttons", "columns", "isSelection", "title"]);
  27. };
  28. }
  29. });
  30. export {
  31. b as default
  32. };