"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _locale = require("../../src/locale");
var _snippets = _interopRequireDefault(require("./snippets"));
var _default = exports["default"] = {
  snippets: _snippets["default"],
  componentName: 'Switch',
  "group": (0, _locale.t)('switch.key_5OZeHd1Vzjy4'),
  title: (0, _locale.t)('switch.key_idX1rDYz4H4X'),
  category: (0, _locale.t)('switch.key_yBxu49ZyDZa4'),
  props: [{
    name: 'defaultChecked',
    title: {
      label: (0, _locale.t)('switch.key_AisarpObGDNn'),
      tip: (0, _locale.t)('switch.key_Vrse3NiISDrN')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'checked',
    title: {
      label: (0, _locale.t)('switch.key_JXkLrzxaRmbn'),
      tip: (0, _locale.t)('switch.key_emN5gFEtLL2p')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter',
    supportVariable: true
  }, {
    name: 'autoFocus',
    title: {
      label: (0, _locale.t)('switch.key_qmRHxy4bOK7O'),
      tip: (0, _locale.t)('switch.key_LpfVTLnNcxyY')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'checkedChildren',
    title: {
      label: (0, _locale.t)('switch.key_auPEfFoUJ11S'),
      tip: (0, _locale.t)('switch.key_gODzvWpRpcE3')
    },
    propType: 'string',
    setter: 'StringSetter'
  }, {
    name: 'unCheckedChildren',
    title: {
      label: (0, _locale.t)('switch.key_3q5MlE5sxApO'),
      tip: (0, _locale.t)('switch.key_WUraU6FdWcHY')
    },
    propType: 'string',
    setter: 'StringSetter'
  }, {
    name: 'disabled',
    title: {
      label: (0, _locale.t)('switch.key_rLMx3s0fdGoO'),
      tip: (0, _locale.t)('switch.key_nZvXeza1cYam')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'loading',
    title: {
      label: (0, _locale.t)('switch.key_MD2voPQDn4y6'),
      tip: (0, _locale.t)('switch.key_95ETCSwHa9tQ')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'size',
    title: {
      label: (0, _locale.t)('switch.key_7qCmU3DDMVxa'),
      tip: (0, _locale.t)('switch.key_K9mQEGehnW5D')
    },
    propType: {
      type: 'oneOf',
      value: ['default', 'small']
    },
    setter: {
      componentName: 'RadioGroupSetter',
      props: {
        options: [{
          title: (0, _locale.t)('switch.key_htHGBn6WIzn7'),
          value: 'default'
        }, {
          title: (0, _locale.t)('switch.key_xsYy2U2dDA82'),
          value: 'small'
        }]
      }
    },
    defaultValue: 'default'
  }, {
    name: 'onChange',
    title: {
      label: (0, _locale.t)('switch.key_rmNwZE1mSvbj'),
      tip: (0, _locale.t)('switch.key_skwSGcjtELXg')
    },
    propType: 'func'
  }, {
    name: 'onClick',
    title: {
      label: (0, _locale.t)('switch.key_YacGYms5eHOP'),
      tip: (0, _locale.t)('switch.key_RZrvJTcYP5yd')
    },
    propType: 'func'
  }],
  configure: {
    supports: {
      style: true,
      events: false
    }
  }
};