You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
529 B

1 year ago
<template>
<view class="center" style="margin: 5rpx;">
<view :class="statusStyle(status)">
</view>
</view>
</template>
<script>
import {
getInventoryStatusStyle,
} from '@/common/directory.js';
export default {
data() {
return {
};
},
// 此处定义传入的数据
props: {
status: {
type: String,
default: "1"
},
},
methods: {
statusStyle: function(val) {
return getInventoryStatusStyle(val);
},
}
}
</script>
<style lang="scss">
</style>
<style>
</style>