text: 'use strict';
  
  exports.__esModule = true;
  
  var _create = require('../utils/create');
  
  var _create2 = _interopRequireDefault(_create);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  exports.default = (0, _create2.default)({
    render: function render() {
      var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "van-switch", class: [{
          'van-switch--on': _vm.value,
          'van-switch--disabled': _vm.disabled
        }], style: _vm.style, on: { "click": _vm.onClick } }, [_c('div', { staticClass: "van-switch__node" }, [_vm.loading ? _c('loading', { staticClass: "van-switch__loading" }) : _vm._e()], 1)]);
    },
  
    name: 'switch',
  
    props: {
      value: Boolean,
      loading: Boolean,
      disabled: Boolean,
      size: {
        type: String,
        default: '30px'
      }
    },
  
    computed: {
      style: function style() {
        return {
          fontSize: this.size
        };
      }
    },
  
    methods: {
      onClick: function onClick() {
        if (!this.disabled && !this.loading) {
          this.$emit('input', !this.value);
          this.$emit('change', !this.value);
        }
      }
    }
  });