完成订单相关UI
This commit is contained in:
@@ -12,6 +12,10 @@ defineProps({
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
onClick: {
|
||||
type: Function,
|
||||
default: null,
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -19,8 +23,8 @@ defineProps({
|
||||
<view class="user-item" :style="customStyle">
|
||||
<text>{{ title }}</text>
|
||||
<view>
|
||||
<text>{{ value }}</text>
|
||||
<button>
|
||||
<slot></slot>
|
||||
<button v-if="onClick !== null" @click="onClick">
|
||||
<image src="../static/enter.png" mode="widthFix" />
|
||||
</button>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user