row.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, {
  41. /******/ configurable: false,
  42. /******/ enumerable: true,
  43. /******/ get: getter
  44. /******/ });
  45. /******/ }
  46. /******/ };
  47. /******/
  48. /******/ // getDefaultExport function for compatibility with non-harmony modules
  49. /******/ __webpack_require__.n = function(module) {
  50. /******/ var getter = module && module.__esModule ?
  51. /******/ function getDefault() { return module['default']; } :
  52. /******/ function getModuleExports() { return module; };
  53. /******/ __webpack_require__.d(getter, 'a', getter);
  54. /******/ return getter;
  55. /******/ };
  56. /******/
  57. /******/ // Object.prototype.hasOwnProperty.call
  58. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  59. /******/
  60. /******/ // __webpack_public_path__
  61. /******/ __webpack_require__.p = "/dist/";
  62. /******/
  63. /******/ // Load entry module and return exports
  64. /******/ return __webpack_require__(__webpack_require__.s = 326);
  65. /******/ })
  66. /************************************************************************/
  67. /******/ ({
  68. /***/ 326:
  69. /***/ (function(module, exports, __webpack_require__) {
  70. module.exports = __webpack_require__(327);
  71. /***/ }),
  72. /***/ 327:
  73. /***/ (function(module, exports, __webpack_require__) {
  74. "use strict";
  75. exports.__esModule = true;
  76. var _row = __webpack_require__(328);
  77. var _row2 = _interopRequireDefault(_row);
  78. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  79. /* istanbul ignore next */
  80. _row2.default.install = function (Vue) {
  81. Vue.component(_row2.default.name, _row2.default);
  82. };
  83. exports.default = _row2.default;
  84. /***/ }),
  85. /***/ 328:
  86. /***/ (function(module, exports, __webpack_require__) {
  87. "use strict";
  88. exports.__esModule = true;
  89. exports.default = {
  90. name: 'ElRow',
  91. componentName: 'ElRow',
  92. props: {
  93. tag: {
  94. type: String,
  95. default: 'div'
  96. },
  97. gutter: Number,
  98. type: String,
  99. justify: {
  100. type: String,
  101. default: 'start'
  102. },
  103. align: {
  104. type: String,
  105. default: 'top'
  106. }
  107. },
  108. computed: {
  109. style: function style() {
  110. var ret = {};
  111. if (this.gutter) {
  112. ret.marginLeft = '-' + this.gutter / 2 + 'px';
  113. ret.marginRight = ret.marginLeft;
  114. }
  115. return ret;
  116. }
  117. },
  118. render: function render(h) {
  119. return h(this.tag, {
  120. class: ['el-row', this.justify !== 'start' ? 'is-justify-' + this.justify : '', this.align !== 'top' ? 'is-align-' + this.align : '', { 'el-row--flex': this.type === 'flex' }],
  121. style: this.style
  122. }, this.$slots.default);
  123. }
  124. };
  125. /***/ })
  126. /******/ });