123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 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';
- 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';
- 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';
- import { u as useState } from './state-_I5XcLqc.mjs';
- import { _ as _export_sfc } from './server.mjs';
- const _sfc_main = {
- __name: "Pagination",
- __ssrInlineRender: true,
- emits: ["sendData"],
- setup(__props, { emit: __emit }) {
- const emit = __emit;
- let page = useState("page", () => 1);
- let change = (value) => {
- page.value = value;
- console.log(page.value);
- const data = { value: page.value };
- emit("sendData", data);
- };
- return (_ctx, _push, _parent, _attrs) => {
- _push(`<div${ssrRenderAttrs(mergeProps({ class: "pagination" }, _attrs))} data-v-af778036>`);
- _push(ssrRenderComponent(unref(ElPagination), {
- size: "small",
- background: "",
- layout: "prev, pager, next",
- total: 40,
- class: "mt-4",
- "prev-text": "\u4E0A\u4E00\u9875",
- "next-text": "\u4E0B\u4E00\u9875",
- onChange: unref(change)
- }, null, _parent));
- _push(`</div>`);
- };
- }
- };
- const _sfc_setup = _sfc_main.setup;
- _sfc_main.setup = (props, ctx) => {
- const ssrContext = useSSRContext();
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/home/Pagination.vue");
- return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
- };
- const __nuxt_component_3 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-af778036"]]);
- export { __nuxt_component_3 as _ };
- //# sourceMappingURL=Pagination-BIcfmSVd.mjs.map
|