Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-08-12 18:16:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6ef71cc0a4a27f1439dfd5e695c9441bfc136421
6ef71cc0
1 parent
b62690a6
只读字段显示优化
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
src/components/FileUploaderField/index.vue
src/components/FileUploaderField/index.vue
View file @
6ef71cc
<!--
* @Date: 2022-08-31 16:16:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-0
7-29 14:10:48
* @LastEditTime: 2024-0
8-12 18:12:00
* @FilePath: /data-table/src/components/FileUploaderField/index.vue
* @Description: 文件上传控件
-->
<template>
<div v-if="HideShow" class="file-uploader-field">
<div class="label">
<span v-if="item.component_props.required"> *</span>
{{ item.component_props.label }}
<span v-if="item.component_props.disabled_show"><van-icon name="closed-eye" /></span>
<span v-if="item.component_props.required" style="color: red"> *</span>
<span :class="[ReadonlyShow ? 'readonly-show' : '']">{{ item.component_props.label }}</span>
</div>
<div
v-if="item.component_props.note"
...
...
@@ -105,6 +106,10 @@ const props = defineProps({
const HideShow = computed(() => {
return !props.item.component_props.disabled
})
// 只读显示-流程模式
const ReadonlyShow = computed(() => {
return $route.query.page_type === 'flow' && !props.item.component_props.readonly;
});
const emit = defineEmits(["active"]);
const show_empty = ref(false);
const default_file = ref(props.item.component_props.default);
...
...
@@ -435,10 +440,6 @@ defineExpose({ validFileUploader });
padding: 1rem 1rem 0 1rem;
font-size: 0.9rem;
font-weight: bold;
span {
color: red;
}
}
.type-text {
...
...
Please
register
or
login
to post a comment