UNPKG

element-ui

Version:

A Component Library for Vue.js.

196 lines (155 loc) 4.85 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__(188); /***/ }, /***/ 188: /***/ function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; var _radioButton = __webpack_require__(189); var _radioButton2 = _interopRequireDefault(_radioButton); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* istanbul ignore next */ _radioButton2.default.install = function (Vue) { Vue.component(_radioButton2.default.name, _radioButton2.default); }; exports.default = _radioButton2.default; /***/ }, /***/ 189: /***/ function(module, exports, __webpack_require__) { var __vue_exports__, __vue_options__ var __vue_styles__ = {} /* script */ __vue_exports__ = __webpack_require__(190) /* template */ var __vue_template__ = __webpack_require__(191) __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__ /***/ }, /***/ 190: /***/ function(module, exports) { 'use strict'; exports.__esModule = true; exports.default = { name: 'ElRadioButton', props: { label: {}, disabled: Boolean, name: String }, computed: { value: { get: function get() { return this._radioGroup.value; }, set: function set(value) { this._radioGroup.$emit('input', value); } }, _radioGroup: function _radioGroup() { var parent = this.$parent; while (parent) { if (parent.$options.componentName !== 'ElRadioGroup') { parent = parent.$parent; } else { return parent; } } return false; }, activeStyle: function activeStyle() { return { backgroundColor: this._radioGroup.fill, borderColor: this._radioGroup.fill, color: this._radioGroup.textColor }; }, size: function size() { return this._radioGroup.size; } } }; /***/ }, /***/ 191: /***/ function(module, exports) { module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._c; return _h('label', { staticClass: "el-radio-button", class: [ _vm.size ? 'el-radio-button--' + _vm.size : '', { 'is-active': _vm.value === _vm.label } ] }, [_h('input', { directives: [{ name: "model", rawName: "v-model", value: (_vm.value), expression: "value" }], staticClass: "el-radio-button__orig-radio", attrs: { "type": "radio", "name": _vm.name, "disabled": _vm.disabled }, domProps: { "value": _vm.label, "checked": _vm._q(_vm.value, _vm.label) }, on: { "change": function($event) { _vm.value = _vm.label } } }), _h('span', { staticClass: "el-radio-button__inner", style: (_vm.value === _vm.label ? _vm.activeStyle : null) }, [_vm._t("default"), (!_vm.$slots.default) ? [_vm._s(_vm.label)] : _vm._e()])]) },staticRenderFns: []} /***/ } /******/ });