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 +1 -1
- package/src/App.vue +1 -1
- package/src/components/data/XFormItem/index.vue +27 -3
- package/src/router/routes.ts +421 -421
- package/src/services/v3Api.ts +28 -5
- package/src/utils/mobileUtil.ts +72 -0
- package/src/utils/queryFormDefaultRangePicker.ts +57 -57
- package/src/views/component/XCellListView/index.vue +48 -21
- package/src/views/component/XFormGroupView/index.vue +82 -78
- package/src/views/component/XFormView/index.vue +42 -41
- package/src/views/user/my/comm/ModifyPassword.vue +5 -1
- package/src/views/user/my/index.vue +14 -12
package/package.json
CHANGED
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
|
-
|
|
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"
|