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-07-29 17:12:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3103c75e289752caf5b586acd743425912ddf465
3103c75e
1 parent
c7a69f75
fix 头部没有图片显示修复
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
src/App.vue
src/views/index.vue
src/App.vue
View file @
3103c75
...
...
@@ -2,17 +2,17 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-2
7 15:57:16
* @LastEditTime: 2024-07-2
9 17:10:25
* @FilePath: /data-table/src/App.vue
* @Description:
-->
<template>
<van-row v-if="is_pc">
<van-col span="2
2" offset="1
">
<
!-- <
van-row v-if="is_pc">
<van-col span="2
4
">
<router-view></router-view>
</van-col>
</van-row>
<router-view
v-else
></router-view>
</van-row>
-->
<router-view></router-view>
</template>
<script setup>
...
...
@@ -259,7 +259,7 @@ body {
#app {
min-height: calc(100vh);
max-width: 800px;
//
max-width: 800px;
position: relative;
}
...
...
src/views/index.vue
View file @
3103c75
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-2
8 18:58:31
* @LastEditTime: 2024-07-2
9 17:11:14
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
<template>
<van-notice-bar v-if="formSetting.sjsj_is_count_down" left-icon="volume-o" :text="notice_text" scrollable
mode="closeable" />
<div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem', overflow: 'auto', minWidth: (is_pc && model !== 'preview') ? '40rem' : '' }">
<!-- <div class="table-box" :style="{ margin: is_pc ? '1rem 0' : '1rem' }"> -->
<div class="table-box">
<template v-if="PHeader.visible && page_type === 'add'">
<van-image v-if="PHeader.type === 'image' && PHeader.cover" width="100%" :src="PHeader.cover + '?imageView2/0/w/2000'" fit="cover" />
<template v-if="PHeader.type === 'carousel'">
...
...
@@ -743,6 +744,10 @@ onMounted(async () => {
// 审核操作列表数据
approval_actions.value = formSetting.value.flow_node_action_list?.map((item) => { return { name: item.btnText, id: item.id, parent_nodes: item.parent_nodes } });
}, 1000);
const width = $('body').width();
// 固定表单宽度
$('.table-box').css('width', (width - 30) + 'px');
});
// 打开轮询用户是否关注
...
...
@@ -1225,6 +1230,8 @@ const onSubmit = async (values) => {
.table-box {
background-color: #ffffff;
padding-bottom: 1rem;
overflow: auto;
margin: 1rem 0;
}
.wrapper {
...
...
Please
register
or
login
to post a comment