Newer
Older
dcms_front / src / components / TableCell / tableCellRead.vue
StephanieGitHub on 29 Oct 2019 789 bytes ADD:新增全局组件 tableCellRead 只读表格项
<!--只读表格项-->
<template>
  <div class="tableCellReadOnly">
    {{ text }}
  </div>
</template>

<script>
export default {
  name: 'TableCellRead',
  props: {
    text: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped>
.tableCellReadOnly{
  -webkit-appearance: none;
  background-color: #FFFFFF;
  background-image: none;
  border-radius: 4px;
  border: 1px solid #DCDFE6;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #606266;
  display: inline-block;
  font-size: inherit;
  height: 40px;
  line-height: 40px;
  outline: none;
  padding: 0 15px;
  /*-webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);*/
  /*transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);*/
  width: 100%;
}
</style>