1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view class="layout-row">
- <u-row
- justify="space-between"
- gutter="10">
- <u-col span="4">
- <view class="demo-layout">{{rowTitle?rowTitle:""}}</view>
- </u-col>
- <u-col span="8">
- <view class="demo-layout">{{rowValue?rowValue:""}}</view>
- </u-col>
- </u-row>
- </view>
- </template>
- <script>
- export default{
- data(){
- return{
- // rowTitle:"存放地点",
- // rowValue:"222"
- }
- },
- props: {
- rowTitle: { // 接收父组件传入值
- type: String || "",
- default: ""
- },
- rowValue: { // 接收父组件传入值
- type: String || "",
- default: ""
- },
- }
- }
- </script>
- <style lang="scss">
- .layout-row{
- border-top: 1rpx solid #d6d7d9;
- padding: 20rpx 0 ;
- }
- .demo-layout {
- height: 25px;
- box-sizing: border-box;
- // padding: 0 10rpx;
- }
- </style>
|