@bic-fe/mds-ui
Version:
A set of enterprise-class Vue UI components.
336 lines (280 loc) • 10.6 kB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("./icon"), require("./button"), require("./_mixin/tooltip"));
else if(typeof define === 'function' && define.amd)
define(["./icon", "./button", "./_mixin/tooltip"], factory);
else {
var a = typeof exports === 'object' ? factory(require("./icon"), require("./button"), require("./_mixin/tooltip")) : factory(root["./icon"], root["./button"], root["./_mixin/tooltip"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(window, function(__WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__71__) {
return /******/ (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;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // 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 = "/dist/";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 135);
/******/ })
/************************************************************************/
/******/ ({
/***/ 13:
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
/***/ }),
/***/ 135:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: external "./_mixin/tooltip"
var tooltip_ = __webpack_require__(71);
var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
// EXTERNAL MODULE: external "./button"
var external_button_ = __webpack_require__(13);
var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
// EXTERNAL MODULE: external "./icon"
var external_icon_ = __webpack_require__(8);
var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
// CONCATENATED MODULE: ./components/popconfirm/popconfirm.js
var prefixClsFirm = 'mds-popover-firm';
/* harmony default export */ var popconfirm = ({
name: 'MdsPopconfirm',
mixins: [tooltip_default.a],
props: {
prefixCls: {
type: String,
default: 'mds-popover'
},
content: {
type: String,
default: ''
},
iconType: {
type: String
},
iconClor: {
type: String
},
cancelText: {
type: String,
default: 'No'
},
showCancelBtn: {
type: Boolean,
default: true
},
showOkBtn: {
type: Boolean,
default: true
},
okType: {
type: String,
default: 'primary'
},
okText: {
type: String,
default: 'Yes'
},
trigger: {
type: String,
default: 'click'
}
},
methods: {
handleConfirm: function handleConfirm(e) {
this.closePopper();
this.$emit('onConfirm', e);
},
handleCancel: function handleCancel(e) {
this.closePopper();
this.$emit('onCancel', e);
}
},
mounted: function mounted() {
// console.log(this.popperVM, '333')
},
components: {
MdsButton: external_button_default.a,
MdsIcon: external_icon_default.a,
/**
* 定义函数化组件用于插入到popperVM
* 实际浮层显示的内容
*/
MdsTooltipContent: {
functional: true,
render: function render(h, context) {
var data = context.data;
return h('div', {
'class': [data.prefixCls + '-inner', '' + prefixClsFirm]
}, [h('div', {
'class': [data.prefixCls + '-inner-content', prefixClsFirm + '-content']
}, [h('div', {
'class': [data.prefixCls + '-message']
}, [data.iconType ? h('mds-icon', {
props: {
type: '' + data.iconType
},
'class': [prefixClsFirm + '-icon']
}) : '', h('div', {
'class': [prefixClsFirm + '-message-title']
}, data.$slots.title || data.title), h('div', {
'class': [prefixClsFirm + '-message-content']
}, data.$slots.content || data.content)]), h('div', {
'class': [data.prefixCls + '-buttons', prefixClsFirm + '-button']
}, [data.showCancelBtn ? h('mds-button', {
props: {
type: 'default'
},
'class': ['mds-btn mds-btn-sm', prefixClsFirm + '-button-cancel'],
on: {
click: data.handleCancel
}
}, [h('span', data.cancelText)]) : '', h('mds-button', {
props: {
type: '' + data.okType
},
'class': ['mds-btn mds-btn-sm', prefixClsFirm + '-button-firm'],
on: {
click: data.handleConfirm
}
}, [h('span', data.okText)])])])]);
}
}
}
});
// EXTERNAL MODULE: ./components/style/index.less
var style = __webpack_require__(139);
// EXTERNAL MODULE: ./components/popover/style/index.js
var popover_style = __webpack_require__(48);
// EXTERNAL MODULE: ./components/button/style/index.js
var button_style = __webpack_require__(41);
// EXTERNAL MODULE: ./components/popconfirm/style/index.less
var popconfirm_style = __webpack_require__(203);
// CONCATENATED MODULE: ./components/popconfirm/style/index.js
// style dependencies
// CONCATENATED MODULE: ./components/popconfirm/index.js
popconfirm.install = function (Vue) {
Vue.component(popconfirm.name, popconfirm);
};
/* harmony default export */ var components_popconfirm = __webpack_exports__["default"] = (popconfirm);
/***/ }),
/***/ 139:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 161:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 201:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 203:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 41:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(139);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(161);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ 48:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(139);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(201);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ 71:
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__71__;
/***/ }),
/***/ 8:
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
/***/ })
/******/ });
});