UNPKG

element-ui

Version:

A Component Library for Vue.js.

224 lines (181 loc) 4.78 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/dist/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(184); /***/ }, /***/ 184: /***/ function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; var _radio = __webpack_require__(185); var _radio2 = _interopRequireDefault(_radio); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* istanbul ignore next */ _radio2.default.install = function (Vue) { Vue.component('el-radio', _radio2.default); }; exports.default = _radio2.default; /***/ }, /***/ 185: /***/ function(module, exports, __webpack_require__) { var __vue_exports__, __vue_options__ var __vue_styles__ = {} /* script */ __vue_exports__ = __webpack_require__(186) /* template */ var __vue_template__ = __webpack_require__(187) __vue_options__ = __vue_exports__ = __vue_exports__ || {} if ( typeof __vue_exports__.default === "object" || typeof __vue_exports__.default === "function" ) { __vue_options__ = __vue_exports__ = __vue_exports__.default } if (typeof __vue_options__ === "function") { __vue_options__ = __vue_options__.options } __vue_options__.render = __vue_template__.render __vue_options__.staticRenderFns = __vue_template__.staticRenderFns module.exports = __vue_exports__ /***/ }, /***/ 186: /***/ function(module, exports) { 'use strict'; exports.__esModule = true; // // // // // // // // // // // // // // // // // // // // // // // // // exports.default = { name: 'ElRadio', props: { value: [String, Number], label: { type: [String, Number], required: true }, disabled: Boolean, name: String }, data: function data() { return { focus: false }; }, computed: { _value: { get: function get() { return this.value !== undefined ? this.value : this.$parent.value; }, set: function set(newValue) { if (this.value !== undefined) { this.$emit('input', newValue); } else { this.$parent.$emit('input', newValue); } } } } }; /***/ }, /***/ 187: /***/ function(module, exports) { module.exports={render:function (){var _vm=this; return _vm._h('label', { staticClass: "el-radio" }, [_vm._h('span', { staticClass: "el-radio__input" }, [_vm._h('span', { staticClass: "el-radio__inner", class: { 'is-disabled': _vm.disabled, 'is-checked': _vm._value === _vm.label, 'is-focus': _vm.focus } }), _vm._h('input', { directives: [{ name: "model", rawName: "v-model", value: (_vm._value), expression: "_value" }], staticClass: "el-radio__original", attrs: { "type": "radio", "name": _vm.name, "disabled": _vm.disabled }, domProps: { "value": _vm.label, "checked": _vm._q(_vm._value, _vm.label) }, on: { "focus": function($event) { _vm.focus = true }, "blur": function($event) { _vm.focus = false }, "change": function($event) { _vm._value = _vm.label } } })]), _vm._h('span', { staticClass: "el-radio__label" }, [_vm._t("default"), (!_vm.$slots.default) ? [_vm._s(_vm.label)] : _vm._e()])]) },staticRenderFns: []} /***/ } /******/ });