提交 f80c80d2 编写于 作者: H hdx

canvas(context): 调整样式

上级 e8202669
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<page-head :title="title"></page-head> <page-head :title="title"></page-head>
<canvas class="canvas-element" canvas-id="canvas" id="canvas"></canvas> <canvas class="canvas-element" canvas-id="canvas" id="canvas"></canvas>
<scroll-view class="scroll-view" :scroll-y="true"> <scroll-view class="scroll-view" :scroll-y="true">
<view class="grid-list"> <view class="grid-view">
<view class="grid-item" v-for="(name, index) in names" :key="index"> <view class="grid-item" v-for="(name, index) in names" :key="index">
<button class="canvas-button" @click="handleCanvasButton(name)">{{name}}</button> <button class="canvas-drawing-button" @click="handleCanvasButton(name)">{{name}}</button>
</view> </view>
</view> </view>
<button class="canvas-drawing-button" @click="toTempFilePath" type="primary">toTempFilePath</button> <button class="btn-to-image" @click="toTempFilePath" type="primary">toTempFilePath</button>
</scroll-view> </scroll-view>
</view> </view>
</template> </template>
...@@ -434,6 +434,7 @@ ...@@ -434,6 +434,7 @@
.scroll-view { .scroll-view {
flex: 1; flex: 1;
padding-bottom: 50px;
} }
.canvas-element { .canvas-element {
...@@ -442,16 +443,18 @@ ...@@ -442,16 +443,18 @@
background-color: #ffffff; background-color: #ffffff;
} }
.grid-list { .grid-view {
padding: 15px; padding: 10px;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
box-sizing: border-box;
} }
.grid-item { .grid-item {
box-sizing: border-box;
width: 50%; width: 50%;
padding: 5px; padding: 5px;
} }
.btn-to-image {
margin: 10px;
}
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册