框架源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

846 lines
23 KiB

4 years ago
  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, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "/dist/";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = 572);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 10:
  90. /***/ (function(module, exports) {
  91. module.exports = require("tis-ui/lib/utils/util");
  92. /***/ }),
  93. /***/ 119:
  94. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  95. "use strict";
  96. // ESM COMPAT FLAG
  97. __webpack_require__.r(__webpack_exports__);
  98. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0&
  99. var render = function() {
  100. var _vm = this
  101. var _h = _vm.$createElement
  102. var _c = _vm._self._c || _h
  103. return _c("div", { staticClass: "el-button-group" }, [_vm._t("default")], 2)
  104. }
  105. var staticRenderFns = []
  106. render._withStripped = true
  107. // CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0&
  108. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=script&lang=js&
  109. //
  110. //
  111. //
  112. //
  113. //
  114. /* harmony default export */ var button_groupvue_type_script_lang_js_ = ({
  115. name: 'TisButtonGroup'
  116. });
  117. // CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=script&lang=js&
  118. /* harmony default export */ var src_button_groupvue_type_script_lang_js_ = (button_groupvue_type_script_lang_js_);
  119. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  120. var componentNormalizer = __webpack_require__(2);
  121. // CONCATENATED MODULE: ./packages/button/src/button-group.vue
  122. /* normalize component */
  123. var component = Object(componentNormalizer["a" /* default */])(
  124. src_button_groupvue_type_script_lang_js_,
  125. render,
  126. staticRenderFns,
  127. false,
  128. null,
  129. null,
  130. null
  131. )
  132. /* hot reload */
  133. if (false) { var api; }
  134. component.options.__file = "packages/button/src/button-group.vue"
  135. /* harmony default export */ var button_group = (component.exports);
  136. // CONCATENATED MODULE: ./packages/button-group/index.js
  137. /* istanbul ignore next */
  138. button_group.install = function (Vue) {
  139. Vue.component(button_group.name, button_group);
  140. };
  141. /* harmony default export */ var packages_button_group = __webpack_exports__["default"] = (button_group);
  142. /***/ }),
  143. /***/ 13:
  144. /***/ (function(module, exports) {
  145. module.exports = require("tis-ui/lib/mixins/emitter");
  146. /***/ }),
  147. /***/ 2:
  148. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  149. "use strict";
  150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
  151. /* globals __VUE_SSR_CONTEXT__ */
  152. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  153. // This module is a runtime utility for cleaner component module output and will
  154. // be included in the final webpack user bundle.
  155. function normalizeComponent (
  156. scriptExports,
  157. render,
  158. staticRenderFns,
  159. functionalTemplate,
  160. injectStyles,
  161. scopeId,
  162. moduleIdentifier, /* server only */
  163. shadowMode /* vue-cli only */
  164. ) {
  165. // Vue.extend constructor export interop
  166. var options = typeof scriptExports === 'function'
  167. ? scriptExports.options
  168. : scriptExports
  169. // render functions
  170. if (render) {
  171. options.render = render
  172. options.staticRenderFns = staticRenderFns
  173. options._compiled = true
  174. }
  175. // functional template
  176. if (functionalTemplate) {
  177. options.functional = true
  178. }
  179. // scopedId
  180. if (scopeId) {
  181. options._scopeId = 'data-v-' + scopeId
  182. }
  183. var hook
  184. if (moduleIdentifier) { // server build
  185. hook = function (context) {
  186. // 2.3 injection
  187. context =
  188. context || // cached call
  189. (this.$vnode && this.$vnode.ssrContext) || // stateful
  190. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  191. // 2.2 with runInNewContext: true
  192. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  193. context = __VUE_SSR_CONTEXT__
  194. }
  195. // inject component styles
  196. if (injectStyles) {
  197. injectStyles.call(this, context)
  198. }
  199. // register component module identifier for async chunk inferrence
  200. if (context && context._registeredComponents) {
  201. context._registeredComponents.add(moduleIdentifier)
  202. }
  203. }
  204. // used by ssr in case component is cached and beforeCreate
  205. // never gets called
  206. options._ssrRegister = hook
  207. } else if (injectStyles) {
  208. hook = shadowMode
  209. ? function () {
  210. injectStyles.call(
  211. this,
  212. (options.functional ? this.parent : this).$root.$options.shadowRoot
  213. )
  214. }
  215. : injectStyles
  216. }
  217. if (hook) {
  218. if (options.functional) {
  219. // for template-only hot-reload because in that case the render fn doesn't
  220. // go through the normalizer
  221. options._injectStyles = hook
  222. // register for functional component in vue file
  223. var originalRender = options.render
  224. options.render = function renderWithStyleInjection (h, context) {
  225. hook.call(context)
  226. return originalRender(h, context)
  227. }
  228. } else {
  229. // inject component registration as beforeCreate hook
  230. var existing = options.beforeCreate
  231. options.beforeCreate = existing
  232. ? [].concat(existing, hook)
  233. : [hook]
  234. }
  235. }
  236. return {
  237. exports: scriptExports,
  238. options: options
  239. }
  240. }
  241. /***/ }),
  242. /***/ 36:
  243. /***/ (function(module, exports) {
  244. module.exports = require("tis-ui/lib/mixins/migrating");
  245. /***/ }),
  246. /***/ 572:
  247. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  248. "use strict";
  249. // ESM COMPAT FLAG
  250. __webpack_require__.r(__webpack_exports__);
  251. // EXTERNAL MODULE: external "tis-ui/lib/utils/clickoutside"
  252. var clickoutside_ = __webpack_require__(61);
  253. var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
  254. // EXTERNAL MODULE: external "tis-ui/lib/mixins/emitter"
  255. var emitter_ = __webpack_require__(13);
  256. var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
  257. // EXTERNAL MODULE: external "tis-ui/lib/mixins/migrating"
  258. var migrating_ = __webpack_require__(36);
  259. var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
  260. // EXTERNAL MODULE: ./packages/button/index.js + 5 modules
  261. var packages_button = __webpack_require__(70);
  262. // EXTERNAL MODULE: ./packages/button-group/index.js + 5 modules
  263. var button_group = __webpack_require__(119);
  264. // EXTERNAL MODULE: external "tis-ui/lib/utils/util"
  265. var util_ = __webpack_require__(10);
  266. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js&
  267. /* harmony default export */ var dropdownvue_type_script_lang_js_ = ({
  268. name: 'TisDropdown',
  269. componentName: 'TisDropdown',
  270. mixins: [emitter_default.a, migrating_default.a],
  271. directives: { Clickoutside: clickoutside_default.a },
  272. components: {
  273. TisButton: packages_button["default"],
  274. TisButtonGroup: button_group["default"]
  275. },
  276. provide: function provide() {
  277. return {
  278. dropdown: this
  279. };
  280. },
  281. props: {
  282. trigger: {
  283. type: String,
  284. default: 'hover'
  285. },
  286. type: String,
  287. size: {
  288. type: String,
  289. default: ''
  290. },
  291. splitButton: Boolean,
  292. hideOnClick: {
  293. type: Boolean,
  294. default: true
  295. },
  296. placement: {
  297. type: String,
  298. default: 'bottom-end'
  299. },
  300. visibleArrow: {
  301. default: true
  302. },
  303. showTimeout: {
  304. type: Number,
  305. default: 250
  306. },
  307. hideTimeout: {
  308. type: Number,
  309. default: 150
  310. },
  311. tabindex: {
  312. type: Number,
  313. default: 0
  314. }
  315. },
  316. data: function data() {
  317. return {
  318. timeout: null,
  319. visible: false,
  320. triggerElm: null,
  321. menuItems: null,
  322. menuItemsArray: null,
  323. dropdownElm: null,
  324. focusing: false,
  325. listId: 'dropdown-menu-' + Object(util_["generateId"])()
  326. };
  327. },
  328. computed: {
  329. dropdownSize: function dropdownSize() {
  330. return this.size || (this.$ELEMENT || {}).size;
  331. }
  332. },
  333. mounted: function mounted() {
  334. this.$on('menu-item-click', this.handleMenuItemClick);
  335. },
  336. watch: {
  337. visible: function visible(val) {
  338. this.broadcast('TisDropdownMenu', 'visible', val);
  339. this.$emit('visible-change', val);
  340. },
  341. focusing: function focusing(val) {
  342. var selfDefine = this.$el.querySelector('.el-dropdown-selfdefine');
  343. if (selfDefine) {
  344. // 自定义
  345. if (val) {
  346. selfDefine.className += ' focusing';
  347. } else {
  348. selfDefine.className = selfDefine.className.replace('focusing', '');
  349. }
  350. }
  351. }
  352. },
  353. methods: {
  354. getMigratingConfig: function getMigratingConfig() {
  355. return {
  356. props: {
  357. 'menu-align': 'menu-align is renamed to placement.'
  358. }
  359. };
  360. },
  361. show: function show() {
  362. var _this = this;
  363. if (this.triggerElm.disabled) return;
  364. clearTimeout(this.timeout);
  365. this.timeout = setTimeout(function () {
  366. _this.visible = true;
  367. }, this.trigger === 'click' ? 0 : this.showTimeout);
  368. },
  369. hide: function hide() {
  370. var _this2 = this;
  371. if (this.triggerElm.disabled) return;
  372. this.removeTabindex();
  373. if (this.tabindex >= 0) {
  374. this.resetTabindex(this.triggerElm);
  375. }
  376. clearTimeout(this.timeout);
  377. this.timeout = setTimeout(function () {
  378. _this2.visible = false;
  379. }, this.trigger === 'click' ? 0 : this.hideTimeout);
  380. },
  381. handleClick: function handleClick() {
  382. if (this.triggerElm.disabled) return;
  383. if (this.visible) {
  384. this.hide();
  385. } else {
  386. this.show();
  387. }
  388. },
  389. handleTriggerKeyDown: function handleTriggerKeyDown(ev) {
  390. var keyCode = ev.keyCode;
  391. if ([38, 40].indexOf(keyCode) > -1) {
  392. // up/down
  393. this.removeTabindex();
  394. this.resetTabindex(this.menuItems[0]);
  395. this.menuItems[0].focus();
  396. ev.preventDefault();
  397. ev.stopPropagation();
  398. } else if (keyCode === 13) {
  399. // space enter选中
  400. this.handleClick();
  401. } else if ([9, 27].indexOf(keyCode) > -1) {
  402. // tab || esc
  403. this.hide();
  404. }
  405. },
  406. handleItemKeyDown: function handleItemKeyDown(ev) {
  407. var keyCode = ev.keyCode;
  408. var target = ev.target;
  409. var currentIndex = this.menuItemsArray.indexOf(target);
  410. var max = this.menuItemsArray.length - 1;
  411. var nextIndex = void 0;
  412. if ([38, 40].indexOf(keyCode) > -1) {
  413. // up/down
  414. if (keyCode === 38) {
  415. // up
  416. nextIndex = currentIndex !== 0 ? currentIndex - 1 : 0;
  417. } else {
  418. // down
  419. nextIndex = currentIndex < max ? currentIndex + 1 : max;
  420. }
  421. this.removeTabindex();
  422. this.resetTabindex(this.menuItems[nextIndex]);
  423. this.menuItems[nextIndex].focus();
  424. ev.preventDefault();
  425. ev.stopPropagation();
  426. } else if (keyCode === 13) {
  427. // enter选中
  428. this.triggerElmFocus();
  429. target.click();
  430. if (this.hideOnClick) {
  431. // click关闭
  432. this.visible = false;
  433. }
  434. } else if ([9, 27].indexOf(keyCode) > -1) {
  435. // tab // esc
  436. this.hide();
  437. this.triggerElmFocus();
  438. }
  439. },
  440. resetTabindex: function resetTabindex(ele) {
  441. // 下次tab时组件聚焦元素
  442. this.removeTabindex();
  443. ele.setAttribute('tabindex', '0'); // 下次期望的聚焦元素
  444. },
  445. removeTabindex: function removeTabindex() {
  446. this.triggerElm.setAttribute('tabindex', '-1');
  447. this.menuItemsArray.forEach(function (item) {
  448. item.setAttribute('tabindex', '-1');
  449. });
  450. },
  451. initAria: function initAria() {
  452. this.dropdownElm.setAttribute('id', this.listId);
  453. this.triggerElm.setAttribute('aria-haspopup', 'list');
  454. this.triggerElm.setAttribute('aria-controls', this.listId);
  455. if (!this.splitButton) {
  456. // 自定义
  457. this.triggerElm.setAttribute('role', 'button');
  458. this.triggerElm.setAttribute('tabindex', this.tabindex);
  459. this.triggerElm.setAttribute('class', (this.triggerElm.getAttribute('class') || '') + ' el-dropdown-selfdefine'); // 控制
  460. }
  461. },
  462. initEvent: function initEvent() {
  463. var _this3 = this;
  464. var trigger = this.trigger,
  465. show = this.show,
  466. hide = this.hide,
  467. handleClick = this.handleClick,
  468. splitButton = this.splitButton,
  469. handleTriggerKeyDown = this.handleTriggerKeyDown,
  470. handleItemKeyDown = this.handleItemKeyDown;
  471. this.triggerElm = splitButton ? this.$refs.trigger.$el : this.$slots.default[0].elm;
  472. var dropdownElm = this.dropdownElm;
  473. this.triggerElm.addEventListener('keydown', handleTriggerKeyDown); // triggerElm keydown
  474. dropdownElm.addEventListener('keydown', handleItemKeyDown, true); // item keydown
  475. // 控制自定义元素的样式
  476. if (!splitButton) {
  477. this.triggerElm.addEventListener('focus', function () {
  478. _this3.focusing = true;
  479. });
  480. this.triggerElm.addEventListener('blur', function () {
  481. _this3.focusing = false;
  482. });
  483. this.triggerElm.addEventListener('click', function () {
  484. _this3.focusing = false;
  485. });
  486. }
  487. if (trigger === 'hover') {
  488. this.triggerElm.addEventListener('mouseenter', show);
  489. this.triggerElm.addEventListener('mouseleave', hide);
  490. dropdownElm.addEventListener('mouseenter', show);
  491. dropdownElm.addEventListener('mouseleave', hide);
  492. } else if (trigger === 'click') {
  493. this.triggerElm.addEventListener('click', handleClick);
  494. }
  495. },
  496. handleMenuItemClick: function handleMenuItemClick(command, instance) {
  497. if (this.hideOnClick) {
  498. this.visible = false;
  499. }
  500. this.$emit('command', command, instance);
  501. },
  502. triggerElmFocus: function triggerElmFocus() {
  503. this.triggerElm.focus && this.triggerElm.focus();
  504. },
  505. initDomOperation: function initDomOperation() {
  506. this.dropdownElm = this.popperElm;
  507. this.menuItems = this.dropdownElm.querySelectorAll("[tabindex='-1']");
  508. this.menuItemsArray = [].slice.call(this.menuItems);
  509. this.initEvent();
  510. this.initAria();
  511. }
  512. },
  513. render: function render(h) {
  514. var _this4 = this;
  515. var hide = this.hide,
  516. splitButton = this.splitButton,
  517. type = this.type,
  518. dropdownSize = this.dropdownSize;
  519. var handleMainButtonClick = function handleMainButtonClick(event) {
  520. _this4.$emit('click', event);
  521. hide();
  522. };
  523. var triggerElm = !splitButton ? this.$slots.default : h('tis-button-group', [h(
  524. 'tis-button',
  525. {
  526. attrs: { type: type, size: dropdownSize },
  527. nativeOn: {
  528. 'click': handleMainButtonClick
  529. }
  530. },
  531. [this.$slots.default]
  532. ), h(
  533. 'tis-button',
  534. { ref: 'trigger', attrs: { type: type, size: dropdownSize },
  535. 'class': 'el-dropdown__caret-button' },
  536. [h('i', { 'class': 'el-dropdown__icon el-icon-arrow-down' })]
  537. )]);
  538. return h(
  539. 'div',
  540. { 'class': 'el-dropdown', directives: [{
  541. name: 'clickoutside',
  542. value: hide
  543. }]
  544. },
  545. [triggerElm, this.$slots.dropdown]
  546. );
  547. }
  548. });
  549. // CONCATENATED MODULE: ./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js&
  550. /* harmony default export */ var src_dropdownvue_type_script_lang_js_ = (dropdownvue_type_script_lang_js_);
  551. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  552. var componentNormalizer = __webpack_require__(2);
  553. // CONCATENATED MODULE: ./packages/dropdown/src/dropdown.vue
  554. var render, staticRenderFns
  555. /* normalize component */
  556. var component = Object(componentNormalizer["a" /* default */])(
  557. src_dropdownvue_type_script_lang_js_,
  558. render,
  559. staticRenderFns,
  560. false,
  561. null,
  562. null,
  563. null
  564. )
  565. /* hot reload */
  566. if (false) { var api; }
  567. component.options.__file = "packages/dropdown/src/dropdown.vue"
  568. /* harmony default export */ var dropdown = (component.exports);
  569. // CONCATENATED MODULE: ./packages/dropdown/index.js
  570. /* istanbul ignore next */
  571. dropdown.install = function (Vue) {
  572. Vue.component(dropdown.name, dropdown);
  573. };
  574. /* harmony default export */ var packages_dropdown = __webpack_exports__["default"] = (dropdown);
  575. /***/ }),
  576. /***/ 61:
  577. /***/ (function(module, exports) {
  578. module.exports = require("tis-ui/lib/utils/clickoutside");
  579. /***/ }),
  580. /***/ 70:
  581. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  582. "use strict";
  583. // ESM COMPAT FLAG
  584. __webpack_require__.r(__webpack_exports__);
  585. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
  586. var render = function() {
  587. var _vm = this
  588. var _h = _vm.$createElement
  589. var _c = _vm._self._c || _h
  590. return _c(
  591. "button",
  592. {
  593. staticClass: "el-button",
  594. class: [
  595. _vm.type ? "el-button--" + _vm.type : "",
  596. _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
  597. {
  598. "is-disabled": _vm.buttonDisabled,
  599. "is-loading": _vm.loading,
  600. "is-plain": _vm.plain,
  601. "is-round": _vm.round,
  602. "is-circle": _vm.circle
  603. }
  604. ],
  605. attrs: {
  606. disabled: _vm.buttonDisabled || _vm.loading,
  607. autofocus: _vm.autofocus,
  608. type: _vm.nativeType
  609. },
  610. on: { click: _vm.handleClick }
  611. },
  612. [
  613. _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
  614. _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
  615. _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e()
  616. ]
  617. )
  618. }
  619. var staticRenderFns = []
  620. render._withStripped = true
  621. // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
  622. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js&
  623. //
  624. //
  625. //
  626. //
  627. //
  628. //
  629. //
  630. //
  631. //
  632. //
  633. //
  634. //
  635. //
  636. //
  637. //
  638. //
  639. //
  640. //
  641. //
  642. //
  643. //
  644. //
  645. //
  646. //
  647. /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
  648. name: 'TisButton',
  649. inject: {
  650. elForm: {
  651. default: ''
  652. },
  653. elFormItem: {
  654. default: ''
  655. }
  656. },
  657. props: {
  658. type: {
  659. type: String,
  660. default: 'default'
  661. },
  662. size: String,
  663. icon: {
  664. type: String,
  665. default: ''
  666. },
  667. nativeType: {
  668. type: String,
  669. default: 'button'
  670. },
  671. loading: Boolean,
  672. disabled: Boolean,
  673. plain: Boolean,
  674. autofocus: Boolean,
  675. round: Boolean,
  676. circle: Boolean
  677. },
  678. computed: {
  679. _elFormItemSize: function _elFormItemSize() {
  680. return (this.elFormItem || {}).elFormItemSize;
  681. },
  682. buttonSize: function buttonSize() {
  683. return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  684. },
  685. buttonDisabled: function buttonDisabled() {
  686. return this.disabled || (this.elForm || {}).disabled;
  687. }
  688. },
  689. methods: {
  690. handleClick: function handleClick(evt) {
  691. this.$emit('click', evt);
  692. }
  693. }
  694. });
  695. // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js&
  696. /* harmony default export */ var src_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
  697. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  698. var componentNormalizer = __webpack_require__(2);
  699. // CONCATENATED MODULE: ./packages/button/src/button.vue
  700. /* normalize component */
  701. var component = Object(componentNormalizer["a" /* default */])(
  702. src_buttonvue_type_script_lang_js_,
  703. render,
  704. staticRenderFns,
  705. false,
  706. null,
  707. null,
  708. null
  709. )
  710. /* hot reload */
  711. if (false) { var api; }
  712. component.options.__file = "packages/button/src/button.vue"
  713. /* harmony default export */ var src_button = (component.exports);
  714. // CONCATENATED MODULE: ./packages/button/index.js
  715. /* istanbul ignore next */
  716. src_button.install = function (Vue) {
  717. Vue.component(src_button.name, src_button);
  718. };
  719. /* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
  720. /***/ })
  721. /******/ });