DefaultDetail.vue 916 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div>
  3. <div class="panelRow">
  4. <div>{{ i18n['label'] }}:</div>
  5. <el-input
  6. style="width: 90%; font-size: 12px"
  7. :disabled="readOnly"
  8. :value="model.label"
  9. placeholder="请输入标题"
  10. @input="
  11. (value) => {
  12. onChange('label', value)
  13. }
  14. "
  15. />
  16. </div>
  17. <div class="panelRow">
  18. <el-checkbox
  19. @change="(value) => onChange('hideIcon', value)"
  20. :disabled="readOnly"
  21. :value="!!model.hideIcon"
  22. >{{ i18n['hideIcon'] }}</el-checkbox
  23. >
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. export default {
  29. inject: ['i18n'],
  30. props: {
  31. model: {
  32. type:Object,
  33. default: ()=>({}),
  34. },
  35. onChange: {
  36. type: Function,
  37. default: ()=>{}
  38. },
  39. readOnly:{
  40. type: Boolean,
  41. default: false,
  42. }
  43. },
  44. }
  45. </script>