index.js 378 B

12345678910111213141516171819202122
  1. import { use } from '../utils';
  2. var _use = use('radio-group'),
  3. sfc = _use[0],
  4. bem = _use[1];
  5. export default sfc({
  6. props: {
  7. value: null,
  8. disabled: Boolean
  9. },
  10. watch: {
  11. value: function value(_value) {
  12. this.$emit('change', _value);
  13. }
  14. },
  15. render: function render(h) {
  16. return h("div", {
  17. "class": bem()
  18. }, [this.slots()]);
  19. }
  20. });