add 分页总数
This commit is contained in:
		
							parent
							
								
									e7e7aeda2d
								
							
						
					
					
						commit
						7b125d0216
					
				@ -26,7 +26,7 @@ const _hoisted_9 = {
 | 
			
		||||
  class: "layui-laypage-skip"
 | 
			
		||||
};
 | 
			
		||||
const _hoisted_10 = ["disabled"];
 | 
			
		||||
const _hoisted_11 = /* @__PURE__ */ createElementVNode("span", null, "\u517111\u6761", -1);
 | 
			
		||||
const _hoisted_11 = { key: 5 };
 | 
			
		||||
const __default__ = {
 | 
			
		||||
  name: "LayPage"
 | 
			
		||||
};
 | 
			
		||||
@ -44,7 +44,8 @@ const _sfc_main = defineComponent({
 | 
			
		||||
    showRefresh: { type: Boolean, default: false },
 | 
			
		||||
    pages: { default: 10 },
 | 
			
		||||
    limits: { default: () => [10, 20, 30, 40, 50] },
 | 
			
		||||
    modelValue: { default: 1 }
 | 
			
		||||
    modelValue: { default: 1 },
 | 
			
		||||
    count: null
 | 
			
		||||
  },
 | 
			
		||||
  emits: ["update:modelValue", "update:limit", "change"],
 | 
			
		||||
  setup(__props, { emit }) {
 | 
			
		||||
@ -202,7 +203,7 @@ const _sfc_main = defineComponent({
 | 
			
		||||
            disabled: currentPageShow.value > maxPage.value || currentPageShow.value == currentPage.value
 | 
			
		||||
          }, toDisplayString(unref(t)("page.confirm")), 9, _hoisted_10)
 | 
			
		||||
        ])) : createCommentVNode("", true),
 | 
			
		||||
        _hoisted_11
 | 
			
		||||
        props.count ? (openBlock(), createElementBlock("span", _hoisted_11, "\u5171" + toDisplayString(props.count) + "\u6761", 1)) : createCommentVNode("", true)
 | 
			
		||||
      ]);
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -18614,7 +18614,7 @@ const _hoisted_9$7 = {
 | 
			
		||||
  class: "layui-laypage-skip"
 | 
			
		||||
};
 | 
			
		||||
const _hoisted_10$7 = ["disabled"];
 | 
			
		||||
const _hoisted_11$7 = /* @__PURE__ */ createElementVNode("span", null, "\u517111\u6761", -1);
 | 
			
		||||
const _hoisted_11$7 = { key: 5 };
 | 
			
		||||
const __default__$D = {
 | 
			
		||||
  name: "LayPage"
 | 
			
		||||
};
 | 
			
		||||
@ -18632,7 +18632,8 @@ const _sfc_main$F = defineComponent({
 | 
			
		||||
    showRefresh: { type: Boolean, default: false },
 | 
			
		||||
    pages: { default: 10 },
 | 
			
		||||
    limits: { default: () => [10, 20, 30, 40, 50] },
 | 
			
		||||
    modelValue: { default: 1 }
 | 
			
		||||
    modelValue: { default: 1 },
 | 
			
		||||
    count: null
 | 
			
		||||
  },
 | 
			
		||||
  emits: ["update:modelValue", "update:limit", "change"],
 | 
			
		||||
  setup(__props, { emit }) {
 | 
			
		||||
@ -18790,7 +18791,7 @@ const _sfc_main$F = defineComponent({
 | 
			
		||||
            disabled: currentPageShow.value > maxPage.value || currentPageShow.value == currentPage.value
 | 
			
		||||
          }, toDisplayString$1(unref(t)("page.confirm")), 9, _hoisted_10$7)
 | 
			
		||||
        ])) : createCommentVNode("", true),
 | 
			
		||||
        _hoisted_11$7
 | 
			
		||||
        props.count ? (openBlock(), createElementBlock("span", _hoisted_11$7, "\u5171" + toDisplayString$1(props.count) + "\u6761", 1)) : createCommentVNode("", true)
 | 
			
		||||
      ]);
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -22,6 +22,7 @@ export interface PageProps {
 | 
			
		||||
  pages?: number;
 | 
			
		||||
  limits?: number[];
 | 
			
		||||
  modelValue?: number;
 | 
			
		||||
  count?: number;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const props = withDefaults(defineProps<PageProps>(), {
 | 
			
		||||
@ -223,6 +224,6 @@ watch(
 | 
			
		||||
        {{ t("page.confirm") }}
 | 
			
		||||
      </button>
 | 
			
		||||
    </span>
 | 
			
		||||
    <span>共11条</span>
 | 
			
		||||
    <span v-if="props.count">共{{props.count}}条</span>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user