mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-07 00:52:57 +08:00
增加app模板和代码生成
This commit is contained in:
39
x_admin_app/components/LoadMore/LoadMore.vue
Normal file
39
x_admin_app/components/LoadMore/LoadMore.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<uv-load-more
|
||||
:status="props.status"
|
||||
:loading-text="props.loadingText"
|
||||
:loadmore-text="props.loadmoreText"
|
||||
:nomore-text="props.nomoreText"
|
||||
@loadmore="loadmore"
|
||||
/>
|
||||
</template>
|
||||
<script setup>
|
||||
import { onReady, onPullDownRefresh, onReachBottom } from "@dcloudio/uni-app";
|
||||
|
||||
import { ref, defineEmits,defineModel } from "vue";
|
||||
|
||||
var pager = defineModel();
|
||||
|
||||
const emits = defineEmits(["loadmore"]);
|
||||
const props = defineProps({
|
||||
status: {
|
||||
type: String,
|
||||
default: "loadmore",
|
||||
},
|
||||
loadingText: {
|
||||
type: String,
|
||||
default: "努力加载中",
|
||||
},
|
||||
loadmoreText: {
|
||||
type: String,
|
||||
default: "轻轻上拉",
|
||||
},
|
||||
nomoreText: {
|
||||
type: String,
|
||||
default: "实在没有了",
|
||||
},
|
||||
});
|
||||
function loadmore(e) {
|
||||
emits("loadmore", e);
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user