Commit 4e23a755 by jianshuqin

优化:组件功能

parent 5912ff6f
...@@ -138,6 +138,11 @@ ...@@ -138,6 +138,11 @@
{{ item.prop ? item_value : item.name }} {{ item.prop ? item_value : item.name }}
</template> </template>
</el-link> </el-link>
<el-image v-else-if="item.type == 'image'"
style="width: 100px; height: 100px"
fit="fill"
v-bind:src="item_value">
</el-image>
<el-upload ref="upload" class="el-upload" <el-upload ref="upload" class="el-upload"
v-else-if="item.type == 'file'" v-else-if="item.type == 'file'"
v-bind:action="item.action" v-bind:action="item.action"
...@@ -219,7 +224,7 @@ ...@@ -219,7 +224,7 @@
</template> </template>
<template v-else-if="/[y|Y|m|M|d|h|H|s|S]+/.test(item.format)"> <template v-else-if="/[y|Y|m|M|d|h|H|s|S]+/.test(item.format)">
{{ new Date(item_value).format(item.format) }} {{ new Date(item_value).format(item.format) }}
</template> </template>
</template> </template>
</template> </template>
<template v-else> <template v-else>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment