邃芒智像相册
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
679 B

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var component_1 = require("../common/component");
  4. var relation_1 = require("../common/relation");
  5. (0, component_1.VantComponent)({
  6. field: true,
  7. relation: (0, relation_1.useChildren)('radio'),
  8. props: {
  9. value: {
  10. type: null,
  11. observer: 'updateChildren',
  12. },
  13. direction: String,
  14. disabled: {
  15. type: Boolean,
  16. observer: 'updateChildren',
  17. },
  18. },
  19. methods: {
  20. updateChildren: function () {
  21. this.children.forEach(function (child) { return child.updateFromParent(); });
  22. },
  23. },
  24. });