张卓
2022-09-20 5aead44ba1be31db948dfd8362c2bfcbedbbce29
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
37
38
39
40
41
<template>
<df-item :formitem="formitem">
  <a-radio-group v-bind="widgetAttrs">
    <a-radio v-for="(item,index) in formitem.listSource"
      :key="index" :value="item.value"
      v-if="!formitem.ui.button"
      >
      {{ item.label }}
    </a-radio>
    <a-radio-button v-for="(item,index) in formitem.listSource"
      :key="index" :value="item.value"
      v-if="formitem.ui.button">
      {{ item.label }}
    </a-radio-button>
  </a-radio-group>
</df-item>
</template>
 
<style lang="less">
 
</style>
 
<script  lang="ts">
import { Component, Prop, Vue, Mixins } from 'vue-property-decorator';
import { State, Mutation, namespace } from 'vuex-class';
 
import { DFSchema } from './../schema/DfSchema';
 
import DyFormitemWapper from './../DyFormitemWapper.vue';
 
import DyFormMixin, { IDyFormMixin } from '@/components/dynamicform/dyformitemMixin';
 
@Component({
    components: {
      'df-item': DyFormitemWapper,
    },
})
export default class RadioWidget extends  Mixins<IDyFormMixin>(DyFormMixin) {
 
}
</script>