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] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.l = 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;
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 212);
/******/ })
/************************************************************************/
/******/ ({
/***/ 0:
/***/ function(module, exports) {
/* globals __VUE_SSR_CONTEXT__ */
// this module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle
module.exports = function normalizeComponent (
rawScriptExports,
compiledTemplate,
injectStyles,
scopeId,
moduleIdentifier /* server only */
) {
var esModule
var scriptExports = rawScriptExports = rawScriptExports || {}
// ES6 modules interop
var type = typeof rawScriptExports.default
if (type === 'object' || type === 'function') {
esModule = rawScriptExports
scriptExports = rawScriptExports.default
}
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports.options
: scriptExports
// render functions
if (compiledTemplate) {
options.render = compiledTemplate.render
options.staticRenderFns = compiledTemplate.staticRenderFns
}
// scopedId
if (scopeId) {
options._scopeId = scopeId
}
var hook
if (moduleIdentifier) { // server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__
}
// inject component styles
if (injectStyles) {
injectStyles.call(this, context)
}
// register component module identifier for async chunk inferrence
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier)
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook
} else if (injectStyles) {
hook = injectStyles
}
if (hook) {
var functional = options.functional
var existing = functional
? options.render
: options.beforeCreate
if (!functional) {
// inject component registration as beforeCreate hook
options.beforeCreate = existing
? [].concat(existing, hook)
: [hook]
} else {
// register for functioal component in vue file
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
return existing(h, context)
}
}
}
return {
esModule: esModule,
exports: scriptExports,
options: options
}
}
/***/ },
/***/ 116:
/***/ function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ },
/***/ 134:
/***/ function(module, exports, __webpack_require__) {
function injectStyle (ssrContext) {
__webpack_require__(116)
}
var Component = __webpack_require__(0)(
/* script */
__webpack_require__(56),
/* template */
__webpack_require__(186),
/* styles */
injectStyle,
/* scopeId */
null,
/* moduleIdentifier (server only) */
null
)
module.exports = Component.exports
/***/ },
/***/ 17:
/***/ function(module, exports) {
module.exports = require("mint-ui/lib/font/style.css");
/***/ },
/***/ 186:
/***/ function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('a', {
staticClass: "mint-cell",
attrs: {
"href": _vm.href
}
}, [(_vm.isLink) ? _c('span', {
staticClass: "mint-cell-mask"
}) : _vm._e(), _vm._v(" "), _c('div', {
staticClass: "mint-cell-left"
}, [_vm._t("left")], 2), _vm._v(" "), _c('div', {
staticClass: "mint-cell-wrapper"
}, [_c('div', {
staticClass: "mint-cell-title"
}, [_vm._t("icon", [(_vm.icon) ? _c('i', {
staticClass: "mintui",
class: 'mintui-' + _vm.icon
}) : _vm._e()]), _vm._v(" "), _vm._t("title", [_c('span', {
staticClass: "mint-cell-text",
domProps: {
"textContent": _vm._s(_vm.title)
}
}), _vm._v(" "), (_vm.label) ? _c('span', {
staticClass: "mint-cell-label",
domProps: {
"textContent": _vm._s(_vm.label)
}
}) : _vm._e()])], 2), _vm._v(" "), _c('div', {
staticClass: "mint-cell-value",
class: {
'is-link': _vm.isLink
}
}, [_vm._t("default", [_c('span', {
domProps: {
"textContent": _vm._s(_vm.value)
}
})])], 2), _vm._v(" "), (_vm.isLink) ? _c('i', {
staticClass: "mint-cell-allow-right"
}) : _vm._e()]), _vm._v(" "), _c('div', {
staticClass: "mint-cell-right"
}, [_vm._t("right")], 2)])
},staticRenderFns: []}
/***/ },
/***/ 212:
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(22);
/***/ },
/***/ 22:
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_vue__ = __webpack_require__(134);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_cell_vue__);
Object.defineProperty(exports, "__esModule", { value: true });
/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_cell_vue___default.a; });
/***/ },
/***/ 56:
/***/ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
if (true) {
__webpack_require__(17);
}
/**
* mt-cell
* @module components/cell
* @desc 单元格
* @param {string|Object} [to] - 跳转链接,使用 vue-router 的情况下 to 会传递给 router.push,否则作为 a 标签的 href 属性处理
* @param {string} [icon] - 图标,提供 more, back,或者自定义的图标(传入不带前缀的图标类名,最后拼接成 .mintui-xxx)
* @param {string} [title] - 标题
* @param {string} [label] - 备注信息
* @param {boolean} [is-link=false] - 可点击的链接
* @param {string} [value] - 右侧显示文字
* @param {slot} - 同 value, 会覆盖 value 属性
* @param {slot} [title] - 同 title, 会覆盖 title 属性
* @param {slot} [icon] - 同 icon, 会覆盖 icon 属性,例如可以传入图片
*
* @example
*
*
* 描述文字啊哈
*
*/
/* harmony default export */ exports["default"] = {
name: 'mt-cell',
props: {
to: [String, Object],
icon: String,
title: String,
label: String,
isLink: Boolean,
value: {}
},
computed: {
href: function href() {
var this$1 = this;
if (this.to && !this.added && this.$router) {
var resolved = this.$router.match(this.to);
if (!resolved.matched.length) return this.to;
this.$nextTick(function () {
this$1.added = true;
this$1.$el.addEventListener('click', this$1.handleClick);
});
return resolved.fullPath || resolved.path;
}
return this.to;
}
},
methods: {
handleClick: function handleClick($event) {
$event.preventDefault();
this.$router.push(this.href);
}
}
};
/***/ }
/******/ });