financial.vue 477 B

123456789101112131415161718192021222324
  1. <template>
  2. <div>
  3. <el-input style="width: 100%;" :readonly="true" :value="value"></el-input>
  4. </div>
  5. </template>
  6. <script lang="ts">
  7. import { Component, Prop, Vue, Watch, Mixins } from "vue-property-decorator";
  8. @Component
  9. export default class Financial extends Vue {
  10. @Prop()
  11. propValue : any
  12. value : any = ''
  13. @Watch('propValue')
  14. propValueChange(v : any) {
  15. v === 0 ? this.value = '是' : this.value = '否';
  16. };
  17. created() {
  18. }
  19. }
  20. </script>
  21. <style>
  22. </style>