Handy_Cao 1 anno fa
parent
commit
8b8cab6595

+ 4 - 0
public/locales/en-US.json

@@ -4,6 +4,10 @@
         "slogan": "Digital Trading Platform\r\nModern Integrated Services"
     },
     "common": {
+        "pulling-text": "Pull down to refresh...",
+        "loosing-text": "Release to refresh...",
+        "loading-text": "In refresh...",
+        "success-text": "Refresh successfully",
         "nodatas": "No Datas",
         "baseinfo": "Base Info",
         "more": "More",

+ 4 - 0
public/locales/th-TH.json

@@ -4,6 +4,10 @@
         "slogan": "แพลตฟอร์มการซื้อขายดิจิทัล\r\nบริการครบวงจรที่ทันสมัย"
     },
     "common": {
+        "pulling-text": "ดึงลงมาแล้วรีเฟรช",
+        "loosing-text": "ปรับปรุงใหม่...",
+        "loading-text": "เรียกใหม่...",
+        "success-text": "ปรับปรุงใหม่",
         "nodatas": "ไม่มีข้อมูล",
         "baseinfo": "ข้อมูลพื้นฐาน",
         "more": "เพิ่มเติม",

+ 4 - 0
public/locales/zh-CN.json

@@ -4,6 +4,10 @@
         "slogan": "数字化交易平台\r\n现代化综合服务"
     },
     "common": {
+        "pulling-text": "下拉即可刷新...",
+        "loosing-text": "释放即可刷新...",
+        "loading-text": "刷新中...",
+        "success-text": "刷新成功",
         "nodatas": "暂无数据",
         "baseinfo": "基本信息",
         "more": "更多",

+ 4 - 0
public/locales/zh-TW.json

@@ -4,6 +4,10 @@
         "slogan": "數字化交易平臺\r\n現代化綜合服務"
     },
     "common": {
+        "pulling-text": "下拉即可刷新...",
+        "loosing-text": "釋放即可刷新...",
+        "loading-text": "刷新中...",
+        "success-text": "刷新成功",
         "nodatas": "暫無數據",
         "baseinfo": "基本信息",
         "more": "更多",

+ 2 - 1
src/packages/mobile/components/base/pull-refresh/index.vue

@@ -1,6 +1,7 @@
 <!-- 待优化 -->
 <template>
-    <PullRefresh class="app-pull-refresh" v-model="refreshing" @refresh="onRefresh">
+    <PullRefresh class="app-pull-refresh" v-model="refreshing" @refresh="onRefresh" :pulling-text="$t('common.pulling-text')" 
+        :loosing-text="$t('common.loosing-text')" :loading-text="$t('common.loading-text')" :success-text="$t('common.success-text')" >
         <slot name="header"></slot>
         <List ref="listRef" v-model:loading="showLoading" v-model:error="showError" :finished="finished"
             :immediate-check="immediateCheck" @load="onLoad">