zjf
2023-02-24 2126cd24b8a0174ac0597340917c0a4595f72254
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
  <el-input
    v-model="dataValue"
    :type="type"
    :disabled="disabled"
    @input="valueChange"/>
</template>
<script type="text/javascript">
import stringMixin from './stringMixin'
 
export default {
  name: 'XhInput', // 新建 input
  components: {},
  mixins: [stringMixin],
  props: {},
  data () {
    return {}
  },
  computed: {
    type () {
      if (this.item && this.item.form_type === 'password') {
        return this.item.form_type
      } else {
        return 'text'
      }
    }
  },
  watch: {},
  mounted () {
    console.log('123')
  },
  methods: {}
}
</script>
<style lang="less" scoped>
</style>