|
@@ -7,13 +7,13 @@
|
|
|
<div
|
|
<div
|
|
|
class="table-box"
|
|
class="table-box"
|
|
|
:style="{
|
|
:style="{
|
|
|
- width: data.property.width + 'px',
|
|
|
|
|
|
|
+ width: isMobile ? '100%' : data.property.width + 'px',
|
|
|
height: data.property.height + 'px',
|
|
height: data.property.height + 'px',
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
<table
|
|
<table
|
|
|
:style="{
|
|
:style="{
|
|
|
- width: table_width + 'px',
|
|
|
|
|
|
|
+ width: isMobile ? '100%' : table_width + 'px',
|
|
|
height: data.property.height + 'px',
|
|
height: data.property.height + 'px',
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
@@ -240,6 +240,12 @@ export default {
|
|
|
name: 'TablePreview',
|
|
name: 'TablePreview',
|
|
|
components: { SoundRecordBox, WriteDialog },
|
|
components: { SoundRecordBox, WriteDialog },
|
|
|
mixins: [PreviewMixin],
|
|
mixins: [PreviewMixin],
|
|
|
|
|
+ props: {
|
|
|
|
|
+ isMobile: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
data: getTableData(),
|
|
data: getTableData(),
|