123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <template>
- <div class="dialogItem">
- <p v-text="model"></p>
- <p v-text="value"></p>
- </div>
- </template>
- <script type="text/ecmascript-6">
- export default {
- name: 'dialogItem', // 弹窗单挑显示数据组件
- props: {
- model: {
- type: String,
- required: true,
- default: '键'
- },
- value: {
- type: String,
- required: true,
- default: '值'
- }
- },
- data() {
- return {};
- },
- methods: {}
- };
- </script>
- <style lang="stylus" rel="stylesheet/stylus" scoped>
- @import '~assets/main.styl';
- .m-size {
- font-size: 14px;
- color: #409EFF;
- line-height: 44px;
- }
- .dialogItem:hover {
- background #f5f5f5
- }
- .dialogItem {
- height 42px
- flex-x(flex-start)
- bor-top(#ddd)
- p {
- word(14px, black)
- flex: 1
- }
- }
- </style>
|