index.js 301 B

1234567891011121314151617181920
  1. import { use } from '../utils';
  2. const [sfc, bem] = use('radio-group');
  3. export default sfc({
  4. props: {
  5. value: null,
  6. disabled: Boolean
  7. },
  8. watch: {
  9. value(value) {
  10. this.$emit('change', value);
  11. }
  12. },
  13. render(h) {
  14. return <div class={bem()}>{this.slots()}</div>;
  15. }
  16. });