提交 4d6d6910 编写于 作者: H hdx

element-draw: 提取重复 style 为 class

上级 66611b51
<template> <template>
<!-- #ifdef APP --> <!-- #ifdef APP -->
<scroll-view style="flex: 1"> <scroll-view class="page-scroll-view">
<!-- #endif --> <!-- #endif -->
<view> <view>
<view id="draw-text-view" style="width: 750rpx;height: 550rpx; background-color: lightgray;margin: 30rpx 0rpx;"></view> <view class="drawing" id="draw-text-view"></view>
<view id="draw-line-view" style="width: 750rpx;height: 550rpx; background-color: lightgray;margin: 30rpx 0rpx;"></view> <view class="drawing" id="draw-line-view"></view>
<view id="draw-circle-view" style="width: 750rpx;height: 550rpx; background-color: lightgray;margin: 30rpx 0rpx;"></view> <view class="drawing" id="draw-circle-view"></view>
<view id="draw-dash-line" style="width: 750rpx;height: 550rpx; background-color: lightgray;margin: 30rpx 0rpx;"></view> <view class="drawing" id="draw-dash-line"></view>
<view id="draw-house" style="width: 750rpx;height: 550rpx; background-color: lightgray;margin: 30rpx 0rpx;"></view> <view class="drawing" id="draw-house"></view>
<view id="draw-style" style="width: 750rpx;height: 550rpx; background-color: lightgray;margin: 30rpx 0rpx;"></view> <view class="drawing" id="draw-style"></view>
<view id="draw-odd" style="width: 750rpx;height: 550rpx; background-color: lightgray;margin: 30rpx 0rpx;"></view> <view class="drawing" id="draw-odd"></view>
<view id="draw-arcto" style="width: 750rpx;height: 550rpx; background-color: lightgray;margin: 30rpx 0rpx;"></view> <view class="drawing" id="draw-arcto"></view>
</view> </view>
<!-- #ifdef APP --> <!-- #ifdef APP -->
</scroll-view> </scroll-view>
<!-- #endif --> <!-- #endif -->
</template> </template>
<script lang="uts"> <script>
var y = 160 var y = 160
export default { export default {
data() { data() {
...@@ -308,5 +308,9 @@ ...@@ -308,5 +308,9 @@
</script> </script>
<style> <style>
.drawing {
height: 275px;
background-color: lightgray;
margin-bottom: 15px;
}
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册