|
@@ -8,21 +8,17 @@
|
|
|
class="table-box"
|
|
class="table-box"
|
|
|
:style="{
|
|
:style="{
|
|
|
width: isMobile ? '100%' : data.property.width + 'px',
|
|
width: isMobile ? '100%' : data.property.width + 'px',
|
|
|
-
|
|
|
|
|
- height: data.property.height + 'px',
|
|
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<table
|
|
<table
|
|
|
:style="{
|
|
:style="{
|
|
|
- width: isMobile ? '100%' : table_width + 'px',
|
|
|
|
|
-
|
|
|
|
|
- height: data.property.height + 'px',
|
|
|
|
|
|
|
+ width: '100%',
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
<col v-for="(item, i) in data.col_width" :key="`col-${i}`" :style="{ width: `${item.value}px` }" />
|
|
<col v-for="(item, i) in data.col_width" :key="`col-${i}`" :style="{ width: `${item.value}px` }" />
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
- <tr v-for="(row, i) in data.option_list" :key="`tr-${i}`">
|
|
|
|
|
|
|
+ <tr v-for="(row, i) in data.option_list" :key="`tr-${i}`" :style="{ height: data.property.height + 'px' }">
|
|
|
<template v-for="(col, j) in row">
|
|
<template v-for="(col, j) in row">
|
|
|
<td
|
|
<td
|
|
|
:key="col.mark"
|
|
:key="col.mark"
|
|
@@ -53,6 +49,7 @@
|
|
|
: data.styles.bgColor
|
|
: data.styles.bgColor
|
|
|
? data.styles.bgColor
|
|
? data.styles.bgColor
|
|
|
: '',
|
|
: '',
|
|
|
|
|
+ height: data.property.height + 'px',
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<div :style="[tdStyle, computedRichStyle(col.content)]" class="cell-wrap">
|
|
<div :style="[tdStyle, computedRichStyle(col.content)]" class="cell-wrap">
|
|
@@ -245,13 +242,13 @@
|
|
|
>
|
|
>
|
|
|
<table
|
|
<table
|
|
|
:style="{
|
|
:style="{
|
|
|
- width: isMobile ? '100%' : table_width + 'px',
|
|
|
|
|
|
|
+ width: '100%',
|
|
|
|
|
|
|
|
height: data.property.height + 'px',
|
|
height: data.property.height + 'px',
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<colgroup>
|
|
<colgroup>
|
|
|
- <col v-for="(item, i) in data.col_width" :key="`col-${i}`" :style="{ width: `${item.value}px` }" />
|
|
|
|
|
|
|
+ <col v-for="(item, i) in data.col_width" :key="`col-${i}`" :style="{ width: `${item.value}%` }" />
|
|
|
</colgroup>
|
|
</colgroup>
|
|
|
<tr v-for="(row, i) in data.option_list" :key="`tr-${i}`">
|
|
<tr v-for="(row, i) in data.option_list" :key="`tr-${i}`">
|
|
|
<template v-for="(col, j) in row">
|
|
<template v-for="(col, j) in row">
|