Pagination-BIcfmSVd.mjs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { useSSRContext, mergeProps, unref } from 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs';
  2. import { ssrRenderAttrs, ssrRenderComponent } from 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs';
  3. import { ElPagination } from 'file://D:/%E5%BC%A0%E6%96%87%E9%9D%991/zwj/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs';
  4. import { u as useState } from './state-_I5XcLqc.mjs';
  5. import { _ as _export_sfc } from './server.mjs';
  6. const _sfc_main = {
  7. __name: "Pagination",
  8. __ssrInlineRender: true,
  9. emits: ["sendData"],
  10. setup(__props, { emit: __emit }) {
  11. const emit = __emit;
  12. let page = useState("page", () => 1);
  13. let change = (value) => {
  14. page.value = value;
  15. console.log(page.value);
  16. const data = { value: page.value };
  17. emit("sendData", data);
  18. };
  19. return (_ctx, _push, _parent, _attrs) => {
  20. _push(`<div${ssrRenderAttrs(mergeProps({ class: "pagination" }, _attrs))} data-v-af778036>`);
  21. _push(ssrRenderComponent(unref(ElPagination), {
  22. size: "small",
  23. background: "",
  24. layout: "prev, pager, next",
  25. total: 40,
  26. class: "mt-4",
  27. "prev-text": "\u4E0A\u4E00\u9875",
  28. "next-text": "\u4E0B\u4E00\u9875",
  29. onChange: unref(change)
  30. }, null, _parent));
  31. _push(`</div>`);
  32. };
  33. }
  34. };
  35. const _sfc_setup = _sfc_main.setup;
  36. _sfc_main.setup = (props, ctx) => {
  37. const ssrContext = useSSRContext();
  38. (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/home/Pagination.vue");
  39. return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
  40. };
  41. const __nuxt_component_3 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-af778036"]]);
  42. export { __nuxt_component_3 as _ };
  43. //# sourceMappingURL=Pagination-BIcfmSVd.mjs.map