af-mobile-client-vue3 1.3.77 → 1.3.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.3.77",
4
+ "version": "1.3.79",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
package/src/App.vue CHANGED
@@ -47,7 +47,7 @@ const mode = computed(() => {
47
47
  <NavBar />
48
48
  <router-view v-slot="{ Component }">
49
49
  <section class="app-wrapper">
50
- <keep-alive :include="keepAliveRouteNames">
50
+ <keep-alive :include="keepAliveRouteNames" :max="5">
51
51
  <component :is="Component" :key="$route.fullPath" />
52
52
  </keep-alive>
53
53
  </section>
@@ -575,10 +575,34 @@ const readonly = computed(() => {
575
575
  })
576
576
  // 提示内容
577
577
  const placeholder = computed(() => {
578
- if (attr.addOrEdit === 'readonly' || mode === '预览')
578
+ if (attr.addOrEdit === 'readonly' || mode === '预览') {
579
579
  return '暂无内容 ~ '
580
+ }
580
581
  else
581
- return attr.placeholder ? attr.placeholder : `请选择${attr.name}`
582
+ if (attr.placeholder) {
583
+ return attr.placeholder
584
+ }
585
+ else {
586
+ switch (attr.type) {
587
+ case 'datePicker':
588
+ case 'timePicker':
589
+ case 'rangePicker':
590
+ case 'radio':
591
+ case 'select':
592
+ case 'treeSelect':
593
+ case 'area':
594
+ case 'citySelect':
595
+ case 'picker':
596
+ return `请选择${attr.name}`
597
+ case 'addressSearch':
598
+ case 'input':
599
+ case 'textarea':
600
+ case 'intervalPicker':
601
+ return `请输入${attr.name}`
602
+ default:
603
+ return `请选择${attr.name}`
604
+ }
605
+ }
582
606
  })
583
607
 
584
608
  const formatDate = date => `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`
@@ -1322,7 +1346,7 @@ function findOptionInTree(options, value) {
1322
1346
  @blur="() => formTypeCheck(attr, modelData as string)"
1323
1347
  >
1324
1348
  <VanButton
1325
- v-if="attr.inputOnAfterName && attr.inputOnAfterFunc && !attr.inputOnAfterName.includes('|')"
1349
+ v-if="!readonly && attr.inputOnAfterName && attr.inputOnAfterFunc && !attr.inputOnAfterName.includes('|')"
1326
1350
  class="action-btn"
1327
1351
  round
1328
1352
  type="primary"