app模板、应用模板、组件模板、widget模板
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.

2569 lines
68 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 = 523);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 122:
  90. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91. "use strict";
  92. // ESM COMPAT FLAG
  93. __webpack_require__.r(__webpack_exports__);
  94. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290&
  95. var render = function() {
  96. var _vm = this
  97. var _h = _vm.$createElement
  98. var _c = _vm._self._c || _h
  99. return _c(
  100. "div",
  101. {
  102. staticClass: "el-checkbox-group",
  103. attrs: { role: "group", "aria-label": "checkbox-group" }
  104. },
  105. [_vm._t("default")],
  106. 2
  107. )
  108. }
  109. var staticRenderFns = []
  110. render._withStripped = true
  111. // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290&
  112. // EXTERNAL MODULE: external "tis-ui/lib/mixins/emitter"
  113. var emitter_ = __webpack_require__(13);
  114. var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
  115. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js&
  116. /* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({
  117. name: 'TisCheckboxGroup',
  118. componentName: 'TisCheckboxGroup',
  119. mixins: [emitter_default.a],
  120. inject: {
  121. elFormItem: {
  122. default: ''
  123. }
  124. },
  125. props: {
  126. value: {},
  127. disabled: Boolean,
  128. min: Number,
  129. max: Number,
  130. size: String,
  131. fill: String,
  132. textColor: String
  133. },
  134. computed: {
  135. _elFormItemSize: function _elFormItemSize() {
  136. return (this.elFormItem || {}).elFormItemSize;
  137. },
  138. checkboxGroupSize: function checkboxGroupSize() {
  139. return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  140. }
  141. },
  142. watch: {
  143. value: function value(_value) {
  144. this.dispatch('TisFormItem', 'el.form.change', [_value]);
  145. }
  146. }
  147. });
  148. // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js&
  149. /* harmony default export */ var src_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_);
  150. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  151. var componentNormalizer = __webpack_require__(2);
  152. // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue
  153. /* normalize component */
  154. var component = Object(componentNormalizer["a" /* default */])(
  155. src_checkbox_groupvue_type_script_lang_js_,
  156. render,
  157. staticRenderFns,
  158. false,
  159. null,
  160. null,
  161. null
  162. )
  163. /* hot reload */
  164. if (false) { var api; }
  165. component.options.__file = "packages/checkbox/src/checkbox-group.vue"
  166. /* harmony default export */ var checkbox_group = (component.exports);
  167. // CONCATENATED MODULE: ./packages/checkbox-group/index.js
  168. /* istanbul ignore next */
  169. checkbox_group.install = function (Vue) {
  170. Vue.component(checkbox_group.name, checkbox_group);
  171. };
  172. /* harmony default export */ var packages_checkbox_group = __webpack_exports__["default"] = (checkbox_group);
  173. /***/ }),
  174. /***/ 13:
  175. /***/ (function(module, exports) {
  176. module.exports = require("tis-ui/lib/mixins/emitter");
  177. /***/ }),
  178. /***/ 2:
  179. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  180. "use strict";
  181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
  182. /* globals __VUE_SSR_CONTEXT__ */
  183. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  184. // This module is a runtime utility for cleaner component module output and will
  185. // be included in the final webpack user bundle.
  186. function normalizeComponent (
  187. scriptExports,
  188. render,
  189. staticRenderFns,
  190. functionalTemplate,
  191. injectStyles,
  192. scopeId,
  193. moduleIdentifier, /* server only */
  194. shadowMode /* vue-cli only */
  195. ) {
  196. // Vue.extend constructor export interop
  197. var options = typeof scriptExports === 'function'
  198. ? scriptExports.options
  199. : scriptExports
  200. // render functions
  201. if (render) {
  202. options.render = render
  203. options.staticRenderFns = staticRenderFns
  204. options._compiled = true
  205. }
  206. // functional template
  207. if (functionalTemplate) {
  208. options.functional = true
  209. }
  210. // scopedId
  211. if (scopeId) {
  212. options._scopeId = 'data-v-' + scopeId
  213. }
  214. var hook
  215. if (moduleIdentifier) { // server build
  216. hook = function (context) {
  217. // 2.3 injection
  218. context =
  219. context || // cached call
  220. (this.$vnode && this.$vnode.ssrContext) || // stateful
  221. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  222. // 2.2 with runInNewContext: true
  223. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  224. context = __VUE_SSR_CONTEXT__
  225. }
  226. // inject component styles
  227. if (injectStyles) {
  228. injectStyles.call(this, context)
  229. }
  230. // register component module identifier for async chunk inferrence
  231. if (context && context._registeredComponents) {
  232. context._registeredComponents.add(moduleIdentifier)
  233. }
  234. }
  235. // used by ssr in case component is cached and beforeCreate
  236. // never gets called
  237. options._ssrRegister = hook
  238. } else if (injectStyles) {
  239. hook = shadowMode
  240. ? function () {
  241. injectStyles.call(
  242. this,
  243. (options.functional ? this.parent : this).$root.$options.shadowRoot
  244. )
  245. }
  246. : injectStyles
  247. }
  248. if (hook) {
  249. if (options.functional) {
  250. // for template-only hot-reload because in that case the render fn doesn't
  251. // go through the normalizer
  252. options._injectStyles = hook
  253. // register for functional component in vue file
  254. var originalRender = options.render
  255. options.render = function renderWithStyleInjection (h, context) {
  256. hook.call(context)
  257. return originalRender(h, context)
  258. }
  259. } else {
  260. // inject component registration as beforeCreate hook
  261. var existing = options.beforeCreate
  262. options.beforeCreate = existing
  263. ? [].concat(existing, hook)
  264. : [hook]
  265. }
  266. }
  267. return {
  268. exports: scriptExports,
  269. options: options
  270. }
  271. }
  272. /***/ }),
  273. /***/ 33:
  274. /***/ (function(module, exports) {
  275. module.exports = require("tis-ui/lib/utils/merge");
  276. /***/ }),
  277. /***/ 36:
  278. /***/ (function(module, exports) {
  279. module.exports = require("tis-ui/lib/mixins/migrating");
  280. /***/ }),
  281. /***/ 38:
  282. /***/ (function(module, exports) {
  283. module.exports = require("tis-ui/lib/mixins/locale");
  284. /***/ }),
  285. /***/ 49:
  286. /***/ (function(module, exports) {
  287. module.exports = require("tis-ui/lib/utils/shared");
  288. /***/ }),
  289. /***/ 52:
  290. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  291. "use strict";
  292. // ESM COMPAT FLAG
  293. __webpack_require__.r(__webpack_exports__);
  294. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=343dd774&
  295. var render = function() {
  296. var _vm = this
  297. var _h = _vm.$createElement
  298. var _c = _vm._self._c || _h
  299. return _c(
  300. "div",
  301. {
  302. class: [
  303. _vm.type === "textarea" ? "el-textarea" : "el-input",
  304. _vm.inputSize ? "el-input--" + _vm.inputSize : "",
  305. {
  306. "is-disabled": _vm.inputDisabled,
  307. "is-exceed": _vm.inputExceed,
  308. "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
  309. "el-input-group--append": _vm.$slots.append,
  310. "el-input-group--prepend": _vm.$slots.prepend,
  311. "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
  312. "el-input--suffix":
  313. _vm.$slots.suffix ||
  314. _vm.suffixIcon ||
  315. _vm.clearable ||
  316. _vm.showPassword
  317. }
  318. ],
  319. on: {
  320. mouseenter: function($event) {
  321. _vm.hovering = true
  322. },
  323. mouseleave: function($event) {
  324. _vm.hovering = false
  325. }
  326. }
  327. },
  328. [
  329. _vm.type !== "textarea"
  330. ? [
  331. _vm.$slots.prepend
  332. ? _c(
  333. "div",
  334. { staticClass: "el-input-group__prepend" },
  335. [_vm._t("prepend")],
  336. 2
  337. )
  338. : _vm._e(),
  339. _vm.type !== "textarea"
  340. ? _c(
  341. "input",
  342. _vm._b(
  343. {
  344. ref: "input",
  345. staticClass: "el-input__inner",
  346. attrs: {
  347. tabindex: _vm.tabindex,
  348. type: _vm.showPassword
  349. ? _vm.passwordVisible
  350. ? "text"
  351. : "password"
  352. : _vm.type,
  353. disabled: _vm.inputDisabled,
  354. readonly: _vm.readonly,
  355. autocomplete: _vm.autoComplete || _vm.autocomplete,
  356. "aria-label": _vm.label
  357. },
  358. on: {
  359. compositionstart: _vm.handleCompositionStart,
  360. compositionupdate: _vm.handleCompositionUpdate,
  361. compositionend: _vm.handleCompositionEnd,
  362. input: _vm.handleInput,
  363. focus: _vm.handleFocus,
  364. blur: _vm.handleBlur,
  365. change: _vm.handleChange
  366. }
  367. },
  368. "input",
  369. _vm.$attrs,
  370. false
  371. )
  372. )
  373. : _vm._e(),
  374. _vm.$slots.prefix || _vm.prefixIcon
  375. ? _c(
  376. "span",
  377. { staticClass: "el-input__prefix" },
  378. [
  379. _vm._t("prefix"),
  380. _vm.prefixIcon
  381. ? _c("i", {
  382. staticClass: "el-input__icon",
  383. class: _vm.prefixIcon
  384. })
  385. : _vm._e()
  386. ],
  387. 2
  388. )
  389. : _vm._e(),
  390. _vm.getSuffixVisible()
  391. ? _c("span", { staticClass: "el-input__suffix" }, [
  392. _c(
  393. "span",
  394. { staticClass: "el-input__suffix-inner" },
  395. [
  396. !_vm.showClear ||
  397. !_vm.showPwdVisible ||
  398. !_vm.isWordLimitVisible
  399. ? [
  400. _vm._t("suffix"),
  401. _vm.suffixIcon
  402. ? _c("i", {
  403. staticClass: "el-input__icon",
  404. class: _vm.suffixIcon
  405. })
  406. : _vm._e()
  407. ]
  408. : _vm._e(),
  409. _vm.showClear
  410. ? _c("i", {
  411. staticClass:
  412. "el-input__icon el-icon-circle-close el-input__clear",
  413. on: {
  414. mousedown: function($event) {
  415. $event.preventDefault()
  416. },
  417. click: _vm.clear
  418. }
  419. })
  420. : _vm._e(),
  421. _vm.showPwdVisible
  422. ? _c("i", {
  423. staticClass:
  424. "el-input__icon el-icon-view el-input__clear",
  425. on: { click: _vm.handlePasswordVisible }
  426. })
  427. : _vm._e(),
  428. _vm.isWordLimitVisible
  429. ? _c("span", { staticClass: "el-input__count" }, [
  430. _c(
  431. "span",
  432. { staticClass: "el-input__count-inner" },
  433. [
  434. _vm._v(
  435. "\n " +
  436. _vm._s(_vm.textLength) +
  437. "/" +
  438. _vm._s(_vm.upperLimit) +
  439. "\n "
  440. )
  441. ]
  442. )
  443. ])
  444. : _vm._e()
  445. ],
  446. 2
  447. ),
  448. _vm.validateState
  449. ? _c("i", {
  450. staticClass: "el-input__icon",
  451. class: ["el-input__validateIcon", _vm.validateIcon]
  452. })
  453. : _vm._e()
  454. ])
  455. : _vm._e(),
  456. _vm.$slots.append
  457. ? _c(
  458. "div",
  459. { staticClass: "el-input-group__append" },
  460. [_vm._t("append")],
  461. 2
  462. )
  463. : _vm._e()
  464. ]
  465. : _c(
  466. "textarea",
  467. _vm._b(
  468. {
  469. ref: "textarea",
  470. staticClass: "el-textarea__inner",
  471. style: _vm.textareaStyle,
  472. attrs: {
  473. tabindex: _vm.tabindex,
  474. disabled: _vm.inputDisabled,
  475. readonly: _vm.readonly,
  476. autocomplete: _vm.autoComplete || _vm.autocomplete,
  477. "aria-label": _vm.label
  478. },
  479. on: {
  480. compositionstart: _vm.handleCompositionStart,
  481. compositionupdate: _vm.handleCompositionUpdate,
  482. compositionend: _vm.handleCompositionEnd,
  483. input: _vm.handleInput,
  484. focus: _vm.handleFocus,
  485. blur: _vm.handleBlur,
  486. change: _vm.handleChange
  487. }
  488. },
  489. "textarea",
  490. _vm.$attrs,
  491. false
  492. )
  493. ),
  494. _vm.isWordLimitVisible && _vm.type === "textarea"
  495. ? _c("span", { staticClass: "el-input__count" }, [
  496. _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit))
  497. ])
  498. : _vm._e()
  499. ],
  500. 2
  501. )
  502. }
  503. var staticRenderFns = []
  504. render._withStripped = true
  505. // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=343dd774&
  506. // EXTERNAL MODULE: external "tis-ui/lib/mixins/emitter"
  507. var emitter_ = __webpack_require__(13);
  508. var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
  509. // EXTERNAL MODULE: external "tis-ui/lib/mixins/migrating"
  510. var migrating_ = __webpack_require__(36);
  511. var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
  512. // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
  513. var hiddenTextarea = void 0;
  514. var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
  515. var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
  516. function calculateNodeStyling(targetElement) {
  517. var style = window.getComputedStyle(targetElement);
  518. var boxSizing = style.getPropertyValue('box-sizing');
  519. var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
  520. var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
  521. var contextStyle = CONTEXT_STYLE.map(function (name) {
  522. return name + ':' + style.getPropertyValue(name);
  523. }).join(';');
  524. return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
  525. }
  526. function calcTextareaHeight(targetElement) {
  527. var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
  528. var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  529. if (!hiddenTextarea) {
  530. hiddenTextarea = document.createElement('textarea');
  531. document.body.appendChild(hiddenTextarea);
  532. }
  533. var _calculateNodeStyling = calculateNodeStyling(targetElement),
  534. paddingSize = _calculateNodeStyling.paddingSize,
  535. borderSize = _calculateNodeStyling.borderSize,
  536. boxSizing = _calculateNodeStyling.boxSizing,
  537. contextStyle = _calculateNodeStyling.contextStyle;
  538. hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
  539. hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
  540. var height = hiddenTextarea.scrollHeight;
  541. var result = {};
  542. if (boxSizing === 'border-box') {
  543. height = height + borderSize;
  544. } else if (boxSizing === 'content-box') {
  545. height = height - paddingSize;
  546. }
  547. hiddenTextarea.value = '';
  548. var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
  549. if (minRows !== null) {
  550. var minHeight = singleRowHeight * minRows;
  551. if (boxSizing === 'border-box') {
  552. minHeight = minHeight + paddingSize + borderSize;
  553. }
  554. height = Math.max(minHeight, height);
  555. result.minHeight = minHeight + 'px';
  556. }
  557. if (maxRows !== null) {
  558. var maxHeight = singleRowHeight * maxRows;
  559. if (boxSizing === 'border-box') {
  560. maxHeight = maxHeight + paddingSize + borderSize;
  561. }
  562. height = Math.min(maxHeight, height);
  563. }
  564. result.height = height + 'px';
  565. hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
  566. hiddenTextarea = null;
  567. return result;
  568. };
  569. // EXTERNAL MODULE: external "tis-ui/lib/utils/merge"
  570. var merge_ = __webpack_require__(33);
  571. var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
  572. // EXTERNAL MODULE: external "tis-ui/lib/utils/shared"
  573. var shared_ = __webpack_require__(49);
  574. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js&
  575. //
  576. //
  577. //
  578. //
  579. //
  580. //
  581. //
  582. //
  583. //
  584. //
  585. //
  586. //
  587. //
  588. //
  589. //
  590. //
  591. //
  592. //
  593. //
  594. //
  595. //
  596. //
  597. //
  598. //
  599. //
  600. //
  601. //
  602. //
  603. //
  604. //
  605. //
  606. //
  607. //
  608. //
  609. //
  610. //
  611. //
  612. //
  613. //
  614. //
  615. //
  616. //
  617. //
  618. //
  619. //
  620. //
  621. //
  622. //
  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. //
  648. //
  649. //
  650. //
  651. //
  652. //
  653. //
  654. //
  655. //
  656. //
  657. //
  658. //
  659. //
  660. //
  661. //
  662. //
  663. //
  664. //
  665. //
  666. //
  667. //
  668. //
  669. //
  670. //
  671. //
  672. //
  673. //
  674. //
  675. //
  676. //
  677. //
  678. //
  679. //
  680. //
  681. //
  682. //
  683. //
  684. /* harmony default export */ var inputvue_type_script_lang_js_ = ({
  685. name: 'TisInput',
  686. componentName: 'TisInput',
  687. mixins: [emitter_default.a, migrating_default.a],
  688. inheritAttrs: false,
  689. inject: {
  690. elForm: {
  691. default: ''
  692. },
  693. elFormItem: {
  694. default: ''
  695. }
  696. },
  697. data: function data() {
  698. return {
  699. textareaCalcStyle: {},
  700. hovering: false,
  701. focused: false,
  702. isComposing: false,
  703. passwordVisible: false
  704. };
  705. },
  706. props: {
  707. value: [String, Number],
  708. size: String,
  709. resize: String,
  710. form: String,
  711. disabled: Boolean,
  712. readonly: Boolean,
  713. type: {
  714. type: String,
  715. default: 'text'
  716. },
  717. autosize: {
  718. type: [Boolean, Object],
  719. default: false
  720. },
  721. autocomplete: {
  722. type: String,
  723. default: 'off'
  724. },
  725. /** @Deprecated in next major version */
  726. autoComplete: {
  727. type: String,
  728. validator: function validator(val) {
  729. false && false;
  730. return true;
  731. }
  732. },
  733. validateEvent: {
  734. type: Boolean,
  735. default: true
  736. },
  737. suffixIcon: String,
  738. prefixIcon: String,
  739. label: String,
  740. clearable: {
  741. type: Boolean,
  742. default: false
  743. },
  744. showPassword: {
  745. type: Boolean,
  746. default: false
  747. },
  748. showWordLimit: {
  749. type: Boolean,
  750. default: false
  751. },
  752. tabindex: String
  753. },
  754. computed: {
  755. _elFormItemSize: function _elFormItemSize() {
  756. return (this.elFormItem || {}).elFormItemSize;
  757. },
  758. validateState: function validateState() {
  759. return this.elFormItem ? this.elFormItem.validateState : '';
  760. },
  761. needStatusIcon: function needStatusIcon() {
  762. return this.elForm ? this.elForm.statusIcon : false;
  763. },
  764. validateIcon: function validateIcon() {
  765. return {
  766. validating: 'el-icon-loading',
  767. success: 'el-icon-circle-check',
  768. error: 'el-icon-circle-close'
  769. }[this.validateState];
  770. },
  771. textareaStyle: function textareaStyle() {
  772. return merge_default()({}, this.textareaCalcStyle, { resize: this.resize });
  773. },
  774. inputSize: function inputSize() {
  775. return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  776. },
  777. inputDisabled: function inputDisabled() {
  778. return this.disabled || (this.elForm || {}).disabled;
  779. },
  780. nativeInputValue: function nativeInputValue() {
  781. return this.value === null || this.value === undefined ? '' : String(this.value);
  782. },
  783. showClear: function showClear() {
  784. return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
  785. },
  786. showPwdVisible: function showPwdVisible() {
  787. return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
  788. },
  789. isWordLimitVisible: function isWordLimitVisible() {
  790. return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
  791. },
  792. upperLimit: function upperLimit() {
  793. return this.$attrs.maxlength;
  794. },
  795. textLength: function textLength() {
  796. if (typeof this.value === 'number') {
  797. return String(this.value).length;
  798. }
  799. return (this.value || '').length;
  800. },
  801. inputExceed: function inputExceed() {
  802. // show exceed style if length of initial value greater then maxlength
  803. return this.isWordLimitVisible && this.textLength > this.upperLimit;
  804. }
  805. },
  806. watch: {
  807. value: function value(val) {
  808. this.$nextTick(this.resizeTextarea);
  809. if (this.validateEvent) {
  810. this.dispatch('ElFormItem', 'el.form.change', [val]);
  811. }
  812. },
  813. // native input value is set explicitly
  814. // do not use v-model / :value in template
  815. // see: https://github.com/ElemeFE/element/issues/14521
  816. nativeInputValue: function nativeInputValue() {
  817. this.setNativeInputValue();
  818. },
  819. // when change between <input> and <textarea>,
  820. // update DOM dependent value and styles
  821. // https://github.com/ElemeFE/element/issues/14857
  822. type: function type() {
  823. var _this = this;
  824. this.$nextTick(function () {
  825. _this.setNativeInputValue();
  826. _this.resizeTextarea();
  827. _this.updateIconOffset();
  828. });
  829. }
  830. },
  831. methods: {
  832. focus: function focus() {
  833. this.getInput().focus();
  834. },
  835. blur: function blur() {
  836. this.getInput().blur();
  837. },
  838. getMigratingConfig: function getMigratingConfig() {
  839. return {
  840. props: {
  841. 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
  842. 'on-icon-click': 'on-icon-click is removed.'
  843. },
  844. events: {
  845. 'click': 'click is removed.'
  846. }
  847. };
  848. },
  849. handleBlur: function handleBlur(event) {
  850. this.focused = false;
  851. this.$emit('blur', event);
  852. if (this.validateEvent) {
  853. this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
  854. }
  855. },
  856. select: function select() {
  857. this.getInput().select();
  858. },
  859. resizeTextarea: function resizeTextarea() {
  860. if (this.$isServer) return;
  861. var autosize = this.autosize,
  862. type = this.type;
  863. if (type !== 'textarea') return;
  864. if (!autosize) {
  865. this.textareaCalcStyle = {
  866. minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
  867. };
  868. return;
  869. }
  870. var minRows = autosize.minRows;
  871. var maxRows = autosize.maxRows;
  872. this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
  873. },
  874. setNativeInputValue: function setNativeInputValue() {
  875. var input = this.getInput();
  876. if (!input) return;
  877. if (input.value === this.nativeInputValue) return;
  878. input.value = this.nativeInputValue;
  879. },
  880. handleFocus: function handleFocus(event) {
  881. this.focused = true;
  882. this.$emit('focus', event);
  883. },
  884. handleCompositionStart: function handleCompositionStart() {
  885. this.isComposing = true;
  886. },
  887. handleCompositionUpdate: function handleCompositionUpdate(event) {
  888. var text = event.target.value;
  889. var lastCharacter = text[text.length - 1] || '';
  890. this.isComposing = !Object(shared_["isKorean"])(lastCharacter);
  891. },
  892. handleCompositionEnd: function handleCompositionEnd(event) {
  893. if (this.isComposing) {
  894. this.isComposing = false;
  895. this.handleInput(event);
  896. }
  897. },
  898. handleInput: function handleInput(event) {
  899. // should not emit input during composition
  900. // see: https://github.com/ElemeFE/element/issues/10516
  901. if (this.isComposing) return;
  902. // hack for https://github.com/ElemeFE/element/issues/8548
  903. // should remove the following line when we don't support IE
  904. if (event.target.value === this.nativeInputValue) return;
  905. this.$emit('input', event.target.value);
  906. // ensure native input value is controlled
  907. // see: https://github.com/ElemeFE/element/issues/12850
  908. this.$nextTick(this.setNativeInputValue);
  909. },
  910. handleChange: function handleChange(event) {
  911. this.$emit('change', event.target.value);
  912. },
  913. calcIconOffset: function calcIconOffset(place) {
  914. var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
  915. if (!elList.length) return;
  916. var el = null;
  917. for (var i = 0; i < elList.length; i++) {
  918. if (elList[i].parentNode === this.$el) {
  919. el = elList[i];
  920. break;
  921. }
  922. }
  923. if (!el) return;
  924. var pendantMap = {
  925. suffix: 'append',
  926. prefix: 'prepend'
  927. };
  928. var pendant = pendantMap[place];
  929. if (this.$slots[pendant]) {
  930. el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
  931. } else {
  932. el.removeAttribute('style');
  933. }
  934. },
  935. updateIconOffset: function updateIconOffset() {
  936. this.calcIconOffset('prefix');
  937. this.calcIconOffset('suffix');
  938. },
  939. clear: function clear() {
  940. this.$emit('input', '');
  941. this.$emit('change', '');
  942. this.$emit('clear');
  943. },
  944. handlePasswordVisible: function handlePasswordVisible() {
  945. this.passwordVisible = !this.passwordVisible;
  946. this.focus();
  947. },
  948. getInput: function getInput() {
  949. return this.$refs.input || this.$refs.textarea;
  950. },
  951. getSuffixVisible: function getSuffixVisible() {
  952. return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
  953. }
  954. },
  955. created: function created() {
  956. this.$on('inputSelect', this.select);
  957. },
  958. mounted: function mounted() {
  959. this.setNativeInputValue();
  960. this.resizeTextarea();
  961. this.updateIconOffset();
  962. },
  963. updated: function updated() {
  964. this.$nextTick(this.updateIconOffset);
  965. }
  966. });
  967. // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js&
  968. /* harmony default export */ var src_inputvue_type_script_lang_js_ = (inputvue_type_script_lang_js_);
  969. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  970. var componentNormalizer = __webpack_require__(2);
  971. // CONCATENATED MODULE: ./packages/input/src/input.vue
  972. /* normalize component */
  973. var component = Object(componentNormalizer["a" /* default */])(
  974. src_inputvue_type_script_lang_js_,
  975. render,
  976. staticRenderFns,
  977. false,
  978. null,
  979. null,
  980. null
  981. )
  982. /* hot reload */
  983. if (false) { var api; }
  984. component.options.__file = "packages/input/src/input.vue"
  985. /* harmony default export */ var input = (component.exports);
  986. // CONCATENATED MODULE: ./packages/input/index.js
  987. /* istanbul ignore next */
  988. input.install = function (Vue) {
  989. Vue.component(input.name, input);
  990. };
  991. /* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
  992. /***/ }),
  993. /***/ 523:
  994. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  995. "use strict";
  996. // ESM COMPAT FLAG
  997. __webpack_require__.r(__webpack_exports__);
  998. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/main.vue?vue&type=template&id=5c654dd8&
  999. var render = function() {
  1000. var _vm = this
  1001. var _h = _vm.$createElement
  1002. var _c = _vm._self._c || _h
  1003. return _c(
  1004. "div",
  1005. { staticClass: "el-transfer" },
  1006. [
  1007. _c(
  1008. "transfer-panel",
  1009. _vm._b(
  1010. {
  1011. ref: "leftPanel",
  1012. attrs: {
  1013. data: _vm.sourceData,
  1014. title: _vm.titles[0] || _vm.t("el.transfer.titles.0"),
  1015. "default-checked": _vm.leftDefaultChecked,
  1016. placeholder:
  1017. _vm.filterPlaceholder || _vm.t("el.transfer.filterPlaceholder")
  1018. },
  1019. on: { "checked-change": _vm.onSourceCheckedChange }
  1020. },
  1021. "transfer-panel",
  1022. _vm.$props,
  1023. false
  1024. ),
  1025. [_vm._t("left-footer")],
  1026. 2
  1027. ),
  1028. _c(
  1029. "div",
  1030. { staticClass: "el-transfer__buttons" },
  1031. [
  1032. _c(
  1033. "tis-button",
  1034. {
  1035. class: [
  1036. "el-transfer__button",
  1037. _vm.hasButtonTexts ? "is-with-texts" : ""
  1038. ],
  1039. attrs: {
  1040. type: "primary",
  1041. disabled: _vm.rightChecked.length === 0
  1042. },
  1043. nativeOn: {
  1044. click: function($event) {
  1045. return _vm.addToLeft($event)
  1046. }
  1047. }
  1048. },
  1049. [
  1050. _c("i", { staticClass: "el-icon-arrow-left" }),
  1051. _vm.buttonTexts[0] !== undefined
  1052. ? _c("span", [_vm._v(_vm._s(_vm.buttonTexts[0]))])
  1053. : _vm._e()
  1054. ]
  1055. ),
  1056. _c(
  1057. "tis-button",
  1058. {
  1059. class: [
  1060. "el-transfer__button",
  1061. _vm.hasButtonTexts ? "is-with-texts" : ""
  1062. ],
  1063. attrs: {
  1064. type: "primary",
  1065. disabled: _vm.leftChecked.length === 0
  1066. },
  1067. nativeOn: {
  1068. click: function($event) {
  1069. return _vm.addToRight($event)
  1070. }
  1071. }
  1072. },
  1073. [
  1074. _vm.buttonTexts[1] !== undefined
  1075. ? _c("span", [_vm._v(_vm._s(_vm.buttonTexts[1]))])
  1076. : _vm._e(),
  1077. _c("i", { staticClass: "el-icon-arrow-right" })
  1078. ]
  1079. )
  1080. ],
  1081. 1
  1082. ),
  1083. _c(
  1084. "transfer-panel",
  1085. _vm._b(
  1086. {
  1087. ref: "rightPanel",
  1088. attrs: {
  1089. data: _vm.targetData,
  1090. title: _vm.titles[1] || _vm.t("el.transfer.titles.1"),
  1091. "default-checked": _vm.rightDefaultChecked,
  1092. placeholder:
  1093. _vm.filterPlaceholder || _vm.t("el.transfer.filterPlaceholder")
  1094. },
  1095. on: { "checked-change": _vm.onTargetCheckedChange }
  1096. },
  1097. "transfer-panel",
  1098. _vm.$props,
  1099. false
  1100. ),
  1101. [_vm._t("right-footer")],
  1102. 2
  1103. )
  1104. ],
  1105. 1
  1106. )
  1107. }
  1108. var staticRenderFns = []
  1109. render._withStripped = true
  1110. // CONCATENATED MODULE: ./packages/transfer/src/main.vue?vue&type=template&id=5c654dd8&
  1111. // EXTERNAL MODULE: ./packages/button/index.js + 5 modules
  1112. var packages_button = __webpack_require__(70);
  1113. // EXTERNAL MODULE: external "tis-ui/lib/mixins/emitter"
  1114. var emitter_ = __webpack_require__(13);
  1115. var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
  1116. // EXTERNAL MODULE: external "tis-ui/lib/mixins/locale"
  1117. var locale_ = __webpack_require__(38);
  1118. var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
  1119. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/transfer-panel.vue?vue&type=template&id=2ddab8bd&
  1120. var transfer_panelvue_type_template_id_2ddab8bd_render = function() {
  1121. var _vm = this
  1122. var _h = _vm.$createElement
  1123. var _c = _vm._self._c || _h
  1124. return _c("div", { staticClass: "el-transfer-panel" }, [
  1125. _c(
  1126. "p",
  1127. { staticClass: "el-transfer-panel__header" },
  1128. [
  1129. _c(
  1130. "tis-checkbox",
  1131. {
  1132. attrs: { indeterminate: _vm.isIndeterminate },
  1133. on: { change: _vm.handleAllCheckedChange },
  1134. model: {
  1135. value: _vm.allChecked,
  1136. callback: function($$v) {
  1137. _vm.allChecked = $$v
  1138. },
  1139. expression: "allChecked"
  1140. }
  1141. },
  1142. [
  1143. _vm._v("\n " + _vm._s(_vm.title) + "\n "),
  1144. _c("span", [_vm._v(_vm._s(_vm.checkedSummary))])
  1145. ]
  1146. )
  1147. ],
  1148. 1
  1149. ),
  1150. _c(
  1151. "div",
  1152. {
  1153. class: [
  1154. "el-transfer-panel__body",
  1155. _vm.hasFooter ? "is-with-footer" : ""
  1156. ]
  1157. },
  1158. [
  1159. _vm.filterable
  1160. ? _c(
  1161. "tis-input",
  1162. {
  1163. staticClass: "el-transfer-panel__filter",
  1164. attrs: { size: "small", placeholder: _vm.placeholder },
  1165. nativeOn: {
  1166. mouseenter: function($event) {
  1167. _vm.inputHover = true
  1168. },
  1169. mouseleave: function($event) {
  1170. _vm.inputHover = false
  1171. }
  1172. },
  1173. model: {
  1174. value: _vm.query,
  1175. callback: function($$v) {
  1176. _vm.query = $$v
  1177. },
  1178. expression: "query"
  1179. }
  1180. },
  1181. [
  1182. _c("i", {
  1183. class: ["el-input__icon", "el-icon-" + _vm.inputIcon],
  1184. attrs: { slot: "prefix" },
  1185. on: { click: _vm.clearQuery },
  1186. slot: "prefix"
  1187. })
  1188. ]
  1189. )
  1190. : _vm._e(),
  1191. _c(
  1192. "tis-checkbox-group",
  1193. {
  1194. directives: [
  1195. {
  1196. name: "show",
  1197. rawName: "v-show",
  1198. value: !_vm.hasNoMatch && _vm.data.length > 0,
  1199. expression: "!hasNoMatch && data.length > 0"
  1200. }
  1201. ],
  1202. staticClass: "el-transfer-panel__list",
  1203. class: { "is-filterable": _vm.filterable },
  1204. model: {
  1205. value: _vm.checked,
  1206. callback: function($$v) {
  1207. _vm.checked = $$v
  1208. },
  1209. expression: "checked"
  1210. }
  1211. },
  1212. _vm._l(_vm.filteredData, function(item) {
  1213. return _c(
  1214. "tis-checkbox",
  1215. {
  1216. key: item[_vm.keyProp],
  1217. staticClass: "el-transfer-panel__item",
  1218. attrs: {
  1219. label: item[_vm.keyProp],
  1220. disabled: item[_vm.disabledProp]
  1221. }
  1222. },
  1223. [_c("option-content", { attrs: { option: item } })],
  1224. 1
  1225. )
  1226. }),
  1227. 1
  1228. ),
  1229. _c(
  1230. "p",
  1231. {
  1232. directives: [
  1233. {
  1234. name: "show",
  1235. rawName: "v-show",
  1236. value: _vm.hasNoMatch,
  1237. expression: "hasNoMatch"
  1238. }
  1239. ],
  1240. staticClass: "el-transfer-panel__empty"
  1241. },
  1242. [_vm._v(_vm._s(_vm.t("el.transfer.noMatch")))]
  1243. ),
  1244. _c(
  1245. "p",
  1246. {
  1247. directives: [
  1248. {
  1249. name: "show",
  1250. rawName: "v-show",
  1251. value: _vm.data.length === 0 && !_vm.hasNoMatch,
  1252. expression: "data.length === 0 && !hasNoMatch"
  1253. }
  1254. ],
  1255. staticClass: "el-transfer-panel__empty"
  1256. },
  1257. [_vm._v(_vm._s(_vm.t("el.transfer.noData")))]
  1258. )
  1259. ],
  1260. 1
  1261. ),
  1262. _vm.hasFooter
  1263. ? _c(
  1264. "p",
  1265. { staticClass: "el-transfer-panel__footer" },
  1266. [_vm._t("default")],
  1267. 2
  1268. )
  1269. : _vm._e()
  1270. ])
  1271. }
  1272. var transfer_panelvue_type_template_id_2ddab8bd_staticRenderFns = []
  1273. transfer_panelvue_type_template_id_2ddab8bd_render._withStripped = true
  1274. // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue?vue&type=template&id=2ddab8bd&
  1275. // EXTERNAL MODULE: ./packages/checkbox-group/index.js + 5 modules
  1276. var checkbox_group = __webpack_require__(122);
  1277. // EXTERNAL MODULE: ./packages/checkbox/index.js + 5 modules
  1278. var packages_checkbox = __webpack_require__(68);
  1279. // EXTERNAL MODULE: ./packages/input/index.js + 6 modules
  1280. var input = __webpack_require__(52);
  1281. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/transfer-panel.vue?vue&type=script&lang=js&
  1282. //
  1283. //
  1284. //
  1285. //
  1286. //
  1287. //
  1288. //
  1289. //
  1290. //
  1291. //
  1292. //
  1293. //
  1294. //
  1295. //
  1296. //
  1297. //
  1298. //
  1299. //
  1300. //
  1301. //
  1302. //
  1303. //
  1304. //
  1305. //
  1306. //
  1307. //
  1308. //
  1309. //
  1310. //
  1311. //
  1312. //
  1313. //
  1314. //
  1315. //
  1316. //
  1317. //
  1318. //
  1319. //
  1320. //
  1321. //
  1322. //
  1323. //
  1324. //
  1325. //
  1326. //
  1327. //
  1328. //
  1329. //
  1330. //
  1331. //
  1332. //
  1333. //
  1334. //
  1335. /* harmony default export */ var transfer_panelvue_type_script_lang_js_ = ({
  1336. mixins: [locale_default.a],
  1337. name: 'TisTransferPanel',
  1338. componentName: 'TisTransferPanel',
  1339. components: {
  1340. TisCheckboxGroup: checkbox_group["default"],
  1341. TisCheckbox: packages_checkbox["default"],
  1342. TisInput: input["default"],
  1343. OptionContent: {
  1344. props: {
  1345. option: Object
  1346. },
  1347. render: function render(h) {
  1348. var getParent = function getParent(vm) {
  1349. if (vm.$options.componentName === 'TisTransferPanel') {
  1350. return vm;
  1351. } else if (vm.$parent) {
  1352. return getParent(vm.$parent);
  1353. } else {
  1354. return vm;
  1355. }
  1356. };
  1357. var panel = getParent(this);
  1358. var transfer = panel.$parent || panel;
  1359. return panel.renderContent ? panel.renderContent(h, this.option) : transfer.$scopedSlots.default ? transfer.$scopedSlots.default({ option: this.option }) : h('span', [this.option[panel.labelProp] || this.option[panel.keyProp]]);
  1360. }
  1361. }
  1362. },
  1363. props: {
  1364. data: {
  1365. type: Array,
  1366. default: function _default() {
  1367. return [];
  1368. }
  1369. },
  1370. renderContent: Function,
  1371. placeholder: String,
  1372. title: String,
  1373. filterable: Boolean,
  1374. format: Object,
  1375. filterMethod: Function,
  1376. defaultChecked: Array,
  1377. props: Object
  1378. },
  1379. data: function data() {
  1380. return {
  1381. checked: [],
  1382. allChecked: false,
  1383. query: '',
  1384. inputHover: false,
  1385. checkChangeByUser: true
  1386. };
  1387. },
  1388. watch: {
  1389. checked: function checked(val, oldVal) {
  1390. this.updateAllChecked();
  1391. if (this.checkChangeByUser) {
  1392. var movedKeys = val.concat(oldVal).filter(function (v) {
  1393. return val.indexOf(v) === -1 || oldVal.indexOf(v) === -1;
  1394. });
  1395. this.$emit('checked-change', val, movedKeys);
  1396. } else {
  1397. this.$emit('checked-change', val);
  1398. this.checkChangeByUser = true;
  1399. }
  1400. },
  1401. data: function data() {
  1402. var _this = this;
  1403. var checked = [];
  1404. var filteredDataKeys = this.filteredData.map(function (item) {
  1405. return item[_this.keyProp];
  1406. });
  1407. this.checked.forEach(function (item) {
  1408. if (filteredDataKeys.indexOf(item) > -1) {
  1409. checked.push(item);
  1410. }
  1411. });
  1412. this.checkChangeByUser = false;
  1413. this.checked = checked;
  1414. },
  1415. checkableData: function checkableData() {
  1416. this.updateAllChecked();
  1417. },
  1418. defaultChecked: {
  1419. immediate: true,
  1420. handler: function handler(val, oldVal) {
  1421. var _this2 = this;
  1422. if (oldVal && val.length === oldVal.length && val.every(function (item) {
  1423. return oldVal.indexOf(item) > -1;
  1424. })) return;
  1425. var checked = [];
  1426. var checkableDataKeys = this.checkableData.map(function (item) {
  1427. return item[_this2.keyProp];
  1428. });
  1429. val.forEach(function (item) {
  1430. if (checkableDataKeys.indexOf(item) > -1) {
  1431. checked.push(item);
  1432. }
  1433. });
  1434. this.checkChangeByUser = false;
  1435. this.checked = checked;
  1436. }
  1437. }
  1438. },
  1439. computed: {
  1440. filteredData: function filteredData() {
  1441. var _this3 = this;
  1442. return this.data.filter(function (item) {
  1443. if (typeof _this3.filterMethod === 'function') {
  1444. return _this3.filterMethod(_this3.query, item);
  1445. } else {
  1446. var label = item[_this3.labelProp] || item[_this3.keyProp].toString();
  1447. return label.toLowerCase().indexOf(_this3.query.toLowerCase()) > -1;
  1448. }
  1449. });
  1450. },
  1451. checkableData: function checkableData() {
  1452. var _this4 = this;
  1453. return this.filteredData.filter(function (item) {
  1454. return !item[_this4.disabledProp];
  1455. });
  1456. },
  1457. checkedSummary: function checkedSummary() {
  1458. var checkedLength = this.checked.length;
  1459. var dataLength = this.data.length;
  1460. var _format = this.format,
  1461. noChecked = _format.noChecked,
  1462. hasChecked = _format.hasChecked;
  1463. if (noChecked && hasChecked) {
  1464. return checkedLength > 0 ? hasChecked.replace(/\${checked}/g, checkedLength).replace(/\${total}/g, dataLength) : noChecked.replace(/\${total}/g, dataLength);
  1465. } else {
  1466. return checkedLength + '/' + dataLength;
  1467. }
  1468. },
  1469. isIndeterminate: function isIndeterminate() {
  1470. var checkedLength = this.checked.length;
  1471. return checkedLength > 0 && checkedLength < this.checkableData.length;
  1472. },
  1473. hasNoMatch: function hasNoMatch() {
  1474. return this.query.length > 0 && this.filteredData.length === 0;
  1475. },
  1476. inputIcon: function inputIcon() {
  1477. return this.query.length > 0 && this.inputHover ? 'circle-close' : 'search';
  1478. },
  1479. labelProp: function labelProp() {
  1480. return this.props.label || 'label';
  1481. },
  1482. keyProp: function keyProp() {
  1483. return this.props.key || 'key';
  1484. },
  1485. disabledProp: function disabledProp() {
  1486. return this.props.disabled || 'disabled';
  1487. },
  1488. hasFooter: function hasFooter() {
  1489. return !!this.$slots.default;
  1490. }
  1491. },
  1492. methods: {
  1493. updateAllChecked: function updateAllChecked() {
  1494. var _this5 = this;
  1495. var checkableDataKeys = this.checkableData.map(function (item) {
  1496. return item[_this5.keyProp];
  1497. });
  1498. this.allChecked = checkableDataKeys.length > 0 && checkableDataKeys.every(function (item) {
  1499. return _this5.checked.indexOf(item) > -1;
  1500. });
  1501. },
  1502. handleAllCheckedChange: function handleAllCheckedChange(value) {
  1503. var _this6 = this;
  1504. this.checked = value ? this.checkableData.map(function (item) {
  1505. return item[_this6.keyProp];
  1506. }) : [];
  1507. },
  1508. clearQuery: function clearQuery() {
  1509. if (this.inputIcon === 'circle-close') {
  1510. this.query = '';
  1511. }
  1512. }
  1513. }
  1514. });
  1515. // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue?vue&type=script&lang=js&
  1516. /* harmony default export */ var src_transfer_panelvue_type_script_lang_js_ = (transfer_panelvue_type_script_lang_js_);
  1517. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  1518. var componentNormalizer = __webpack_require__(2);
  1519. // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue
  1520. /* normalize component */
  1521. var component = Object(componentNormalizer["a" /* default */])(
  1522. src_transfer_panelvue_type_script_lang_js_,
  1523. transfer_panelvue_type_template_id_2ddab8bd_render,
  1524. transfer_panelvue_type_template_id_2ddab8bd_staticRenderFns,
  1525. false,
  1526. null,
  1527. null,
  1528. null
  1529. )
  1530. /* hot reload */
  1531. if (false) { var api; }
  1532. component.options.__file = "packages/transfer/src/transfer-panel.vue"
  1533. /* harmony default export */ var transfer_panel = (component.exports);
  1534. // EXTERNAL MODULE: external "tis-ui/lib/mixins/migrating"
  1535. var migrating_ = __webpack_require__(36);
  1536. var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
  1537. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/main.vue?vue&type=script&lang=js&
  1538. //
  1539. //
  1540. //
  1541. //
  1542. //
  1543. //
  1544. //
  1545. //
  1546. //
  1547. //
  1548. //
  1549. //
  1550. //
  1551. //
  1552. //
  1553. //
  1554. //
  1555. //
  1556. //
  1557. //
  1558. //
  1559. //
  1560. //
  1561. //
  1562. //
  1563. //
  1564. //
  1565. //
  1566. //
  1567. //
  1568. //
  1569. //
  1570. //
  1571. //
  1572. //
  1573. //
  1574. //
  1575. //
  1576. //
  1577. //
  1578. //
  1579. //
  1580. //
  1581. /* harmony default export */ var mainvue_type_script_lang_js_ = ({
  1582. name: 'TisTransfer',
  1583. mixins: [emitter_default.a, locale_default.a, migrating_default.a],
  1584. components: {
  1585. TransferPanel: transfer_panel,
  1586. ElButton: packages_button["default"]
  1587. },
  1588. props: {
  1589. data: {
  1590. type: Array,
  1591. default: function _default() {
  1592. return [];
  1593. }
  1594. },
  1595. titles: {
  1596. type: Array,
  1597. default: function _default() {
  1598. return [];
  1599. }
  1600. },
  1601. buttonTexts: {
  1602. type: Array,
  1603. default: function _default() {
  1604. return [];
  1605. }
  1606. },
  1607. filterPlaceholder: {
  1608. type: String,
  1609. default: ''
  1610. },
  1611. filterMethod: Function,
  1612. leftDefaultChecked: {
  1613. type: Array,
  1614. default: function _default() {
  1615. return [];
  1616. }
  1617. },
  1618. rightDefaultChecked: {
  1619. type: Array,
  1620. default: function _default() {
  1621. return [];
  1622. }
  1623. },
  1624. renderContent: Function,
  1625. value: {
  1626. type: Array,
  1627. default: function _default() {
  1628. return [];
  1629. }
  1630. },
  1631. format: {
  1632. type: Object,
  1633. default: function _default() {
  1634. return {};
  1635. }
  1636. },
  1637. filterable: Boolean,
  1638. props: {
  1639. type: Object,
  1640. default: function _default() {
  1641. return {
  1642. label: 'label',
  1643. key: 'key',
  1644. disabled: 'disabled'
  1645. };
  1646. }
  1647. },
  1648. targetOrder: {
  1649. type: String,
  1650. default: 'original'
  1651. }
  1652. },
  1653. data: function data() {
  1654. return {
  1655. leftChecked: [],
  1656. rightChecked: []
  1657. };
  1658. },
  1659. computed: {
  1660. dataObj: function dataObj() {
  1661. var key = this.props.key;
  1662. return this.data.reduce(function (o, cur) {
  1663. return (o[cur[key]] = cur) && o;
  1664. }, {});
  1665. },
  1666. sourceData: function sourceData() {
  1667. var _this = this;
  1668. return this.data.filter(function (item) {
  1669. return _this.value.indexOf(item[_this.props.key]) === -1;
  1670. });
  1671. },
  1672. targetData: function targetData() {
  1673. var _this2 = this;
  1674. if (this.targetOrder === 'original') {
  1675. return this.data.filter(function (item) {
  1676. return _this2.value.indexOf(item[_this2.props.key]) > -1;
  1677. });
  1678. } else {
  1679. return this.value.reduce(function (arr, cur) {
  1680. var val = _this2.dataObj[cur];
  1681. if (val) {
  1682. arr.push(val);
  1683. }
  1684. return arr;
  1685. }, []);
  1686. }
  1687. },
  1688. hasButtonTexts: function hasButtonTexts() {
  1689. return this.buttonTexts.length === 2;
  1690. }
  1691. },
  1692. watch: {
  1693. value: function value(val) {
  1694. this.dispatch('ElFormItem', 'el.form.change', val);
  1695. }
  1696. },
  1697. methods: {
  1698. getMigratingConfig: function getMigratingConfig() {
  1699. return {
  1700. props: {
  1701. 'footer-format': 'footer-format is renamed to format.'
  1702. }
  1703. };
  1704. },
  1705. onSourceCheckedChange: function onSourceCheckedChange(val, movedKeys) {
  1706. this.leftChecked = val;
  1707. if (movedKeys === undefined) return;
  1708. this.$emit('left-check-change', val, movedKeys);
  1709. },
  1710. onTargetCheckedChange: function onTargetCheckedChange(val, movedKeys) {
  1711. this.rightChecked = val;
  1712. if (movedKeys === undefined) return;
  1713. this.$emit('right-check-change', val, movedKeys);
  1714. },
  1715. addToLeft: function addToLeft() {
  1716. var currentValue = this.value.slice();
  1717. this.rightChecked.forEach(function (item) {
  1718. var index = currentValue.indexOf(item);
  1719. if (index > -1) {
  1720. currentValue.splice(index, 1);
  1721. }
  1722. });
  1723. this.$emit('input', currentValue);
  1724. this.$emit('change', currentValue, 'left', this.rightChecked);
  1725. },
  1726. addToRight: function addToRight() {
  1727. var _this3 = this;
  1728. var currentValue = this.value.slice();
  1729. var itemsToBeMoved = [];
  1730. var key = this.props.key;
  1731. this.data.forEach(function (item) {
  1732. var itemKey = item[key];
  1733. if (_this3.leftChecked.indexOf(itemKey) > -1 && _this3.value.indexOf(itemKey) === -1) {
  1734. itemsToBeMoved.push(itemKey);
  1735. }
  1736. });
  1737. currentValue = this.targetOrder === 'unshift' ? itemsToBeMoved.concat(currentValue) : currentValue.concat(itemsToBeMoved);
  1738. this.$emit('input', currentValue);
  1739. this.$emit('change', currentValue, 'right', this.leftChecked);
  1740. },
  1741. clearQuery: function clearQuery(which) {
  1742. if (which === 'left') {
  1743. this.$refs.leftPanel.query = '';
  1744. } else if (which === 'right') {
  1745. this.$refs.rightPanel.query = '';
  1746. }
  1747. }
  1748. }
  1749. });
  1750. // CONCATENATED MODULE: ./packages/transfer/src/main.vue?vue&type=script&lang=js&
  1751. /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
  1752. // CONCATENATED MODULE: ./packages/transfer/src/main.vue
  1753. /* normalize component */
  1754. var main_component = Object(componentNormalizer["a" /* default */])(
  1755. src_mainvue_type_script_lang_js_,
  1756. render,
  1757. staticRenderFns,
  1758. false,
  1759. null,
  1760. null,
  1761. null
  1762. )
  1763. /* hot reload */
  1764. if (false) { var main_api; }
  1765. main_component.options.__file = "packages/transfer/src/main.vue"
  1766. /* harmony default export */ var main = (main_component.exports);
  1767. // CONCATENATED MODULE: ./packages/transfer/index.js
  1768. /* istanbul ignore next */
  1769. main.install = function (Vue) {
  1770. Vue.component(main.name, main);
  1771. };
  1772. /* harmony default export */ var transfer = __webpack_exports__["default"] = (main);
  1773. /***/ }),
  1774. /***/ 68:
  1775. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1776. "use strict";
  1777. // ESM COMPAT FLAG
  1778. __webpack_require__.r(__webpack_exports__);
  1779. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074&
  1780. var render = function() {
  1781. var _vm = this
  1782. var _h = _vm.$createElement
  1783. var _c = _vm._self._c || _h
  1784. return _c(
  1785. "label",
  1786. {
  1787. staticClass: "el-checkbox",
  1788. class: [
  1789. _vm.border && _vm.checkboxSize
  1790. ? "el-checkbox--" + _vm.checkboxSize
  1791. : "",
  1792. { "is-disabled": _vm.isDisabled },
  1793. { "is-bordered": _vm.border },
  1794. { "is-checked": _vm.isChecked }
  1795. ],
  1796. attrs: { id: _vm.id }
  1797. },
  1798. [
  1799. _c(
  1800. "span",
  1801. {
  1802. staticClass: "el-checkbox__input",
  1803. class: {
  1804. "is-disabled": _vm.isDisabled,
  1805. "is-checked": _vm.isChecked,
  1806. "is-indeterminate": _vm.indeterminate,
  1807. "is-focus": _vm.focus
  1808. },
  1809. attrs: {
  1810. tabindex: _vm.indeterminate ? 0 : false,
  1811. role: _vm.indeterminate ? "checkbox" : false,
  1812. "aria-checked": _vm.indeterminate ? "mixed" : false
  1813. }
  1814. },
  1815. [
  1816. _c("span", { staticClass: "el-checkbox__inner" }),
  1817. _vm.trueLabel || _vm.falseLabel
  1818. ? _c("input", {
  1819. directives: [
  1820. {
  1821. name: "model",
  1822. rawName: "v-model",
  1823. value: _vm.model,
  1824. expression: "model"
  1825. }
  1826. ],
  1827. staticClass: "el-checkbox__original",
  1828. attrs: {
  1829. type: "checkbox",
  1830. "aria-hidden": _vm.indeterminate ? "true" : "false",
  1831. name: _vm.name,
  1832. disabled: _vm.isDisabled,
  1833. "true-value": _vm.trueLabel,
  1834. "false-value": _vm.falseLabel
  1835. },
  1836. domProps: {
  1837. checked: Array.isArray(_vm.model)
  1838. ? _vm._i(_vm.model, null) > -1
  1839. : _vm._q(_vm.model, _vm.trueLabel)
  1840. },
  1841. on: {
  1842. change: [
  1843. function($event) {
  1844. var $$a = _vm.model,
  1845. $$el = $event.target,
  1846. $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
  1847. if (Array.isArray($$a)) {
  1848. var $$v = null,
  1849. $$i = _vm._i($$a, $$v)
  1850. if ($$el.checked) {
  1851. $$i < 0 && (_vm.model = $$a.concat([$$v]))
  1852. } else {
  1853. $$i > -1 &&
  1854. (_vm.model = $$a
  1855. .slice(0, $$i)
  1856. .concat($$a.slice($$i + 1)))
  1857. }
  1858. } else {
  1859. _vm.model = $$c
  1860. }
  1861. },
  1862. _vm.handleChange
  1863. ],
  1864. focus: function($event) {
  1865. _vm.focus = true
  1866. },
  1867. blur: function($event) {
  1868. _vm.focus = false
  1869. }
  1870. }
  1871. })
  1872. : _c("input", {
  1873. directives: [
  1874. {
  1875. name: "model",
  1876. rawName: "v-model",
  1877. value: _vm.model,
  1878. expression: "model"
  1879. }
  1880. ],
  1881. staticClass: "el-checkbox__original",
  1882. attrs: {
  1883. type: "checkbox",
  1884. "aria-hidden": _vm.indeterminate ? "true" : "false",
  1885. disabled: _vm.isDisabled,
  1886. name: _vm.name
  1887. },
  1888. domProps: {
  1889. value: _vm.label,
  1890. checked: Array.isArray(_vm.model)
  1891. ? _vm._i(_vm.model, _vm.label) > -1
  1892. : _vm.model
  1893. },
  1894. on: {
  1895. change: [
  1896. function($event) {
  1897. var $$a = _vm.model,
  1898. $$el = $event.target,
  1899. $$c = $$el.checked ? true : false
  1900. if (Array.isArray($$a)) {
  1901. var $$v = _vm.label,
  1902. $$i = _vm._i($$a, $$v)
  1903. if ($$el.checked) {
  1904. $$i < 0 && (_vm.model = $$a.concat([$$v]))
  1905. } else {
  1906. $$i > -1 &&
  1907. (_vm.model = $$a
  1908. .slice(0, $$i)
  1909. .concat($$a.slice($$i + 1)))
  1910. }
  1911. } else {
  1912. _vm.model = $$c
  1913. }
  1914. },
  1915. _vm.handleChange
  1916. ],
  1917. focus: function($event) {
  1918. _vm.focus = true
  1919. },
  1920. blur: function($event) {
  1921. _vm.focus = false
  1922. }
  1923. }
  1924. })
  1925. ]
  1926. ),
  1927. _vm.$slots.default || _vm.label
  1928. ? _c(
  1929. "span",
  1930. { staticClass: "el-checkbox__label" },
  1931. [
  1932. _vm._t("default"),
  1933. !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
  1934. ],
  1935. 2
  1936. )
  1937. : _vm._e()
  1938. ]
  1939. )
  1940. }
  1941. var staticRenderFns = []
  1942. render._withStripped = true
  1943. // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074&
  1944. // EXTERNAL MODULE: external "tis-ui/lib/mixins/emitter"
  1945. var emitter_ = __webpack_require__(13);
  1946. var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
  1947. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js&
  1948. //
  1949. //
  1950. //
  1951. //
  1952. //
  1953. //
  1954. //
  1955. //
  1956. //
  1957. //
  1958. //
  1959. //
  1960. //
  1961. //
  1962. //
  1963. //
  1964. //
  1965. //
  1966. //
  1967. //
  1968. //
  1969. //
  1970. //
  1971. //
  1972. //
  1973. //
  1974. //
  1975. //
  1976. //
  1977. //
  1978. //
  1979. //
  1980. //
  1981. //
  1982. //
  1983. //
  1984. //
  1985. //
  1986. //
  1987. //
  1988. //
  1989. //
  1990. //
  1991. //
  1992. //
  1993. //
  1994. //
  1995. //
  1996. //
  1997. //
  1998. //
  1999. //
  2000. //
  2001. //
  2002. //
  2003. /* harmony default export */ var checkboxvue_type_script_lang_js_ = ({
  2004. name: 'TisCheckbox',
  2005. mixins: [emitter_default.a],
  2006. inject: {
  2007. elForm: {
  2008. default: ''
  2009. },
  2010. elFormItem: {
  2011. default: ''
  2012. }
  2013. },
  2014. componentName: 'TisCheckbox',
  2015. data: function data() {
  2016. return {
  2017. selfModel: false,
  2018. focus: false,
  2019. isLimitExceeded: false
  2020. };
  2021. },
  2022. computed: {
  2023. model: {
  2024. get: function get() {
  2025. return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
  2026. },
  2027. set: function set(val) {
  2028. if (this.isGroup) {
  2029. this.isLimitExceeded = false;
  2030. this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
  2031. this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
  2032. this.isLimitExceeded === false && this.dispatch('TisCheckboxGroup', 'input', [val]);
  2033. } else {
  2034. this.$emit('input', val);
  2035. this.selfModel = val;
  2036. }
  2037. }
  2038. },
  2039. isChecked: function isChecked() {
  2040. if ({}.toString.call(this.model) === '[object Boolean]') {
  2041. return this.model;
  2042. } else if (Array.isArray(this.model)) {
  2043. return this.model.indexOf(this.label) > -1;
  2044. } else if (this.model !== null && this.model !== undefined) {
  2045. return this.model === this.trueLabel;
  2046. }
  2047. },
  2048. isGroup: function isGroup() {
  2049. var parent = this.$parent;
  2050. while (parent) {
  2051. if (parent.$options.componentName !== 'TisCheckboxGroup') {
  2052. parent = parent.$parent;
  2053. } else {
  2054. this._checkboxGroup = parent;
  2055. return true;
  2056. }
  2057. }
  2058. return false;
  2059. },
  2060. store: function store() {
  2061. return this._checkboxGroup ? this._checkboxGroup.value : this.value;
  2062. },
  2063. /* used to make the isDisabled judgment under max/min props */
  2064. isLimitDisabled: function isLimitDisabled() {
  2065. var _checkboxGroup = this._checkboxGroup,
  2066. max = _checkboxGroup.max,
  2067. min = _checkboxGroup.min;
  2068. return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
  2069. },
  2070. isDisabled: function isDisabled() {
  2071. return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
  2072. },
  2073. _elFormItemSize: function _elFormItemSize() {
  2074. return (this.elFormItem || {}).elFormItemSize;
  2075. },
  2076. checkboxSize: function checkboxSize() {
  2077. var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  2078. return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
  2079. }
  2080. },
  2081. props: {
  2082. value: {},
  2083. label: {},
  2084. indeterminate: Boolean,
  2085. disabled: Boolean,
  2086. checked: Boolean,
  2087. name: String,
  2088. trueLabel: [String, Number],
  2089. falseLabel: [String, Number],
  2090. id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
  2091. controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
  2092. border: Boolean,
  2093. size: String
  2094. },
  2095. methods: {
  2096. addToStore: function addToStore() {
  2097. if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
  2098. this.model.push(this.label);
  2099. } else {
  2100. this.model = this.trueLabel || true;
  2101. }
  2102. },
  2103. handleChange: function handleChange(ev) {
  2104. var _this = this;
  2105. if (this.isLimitExceeded) return;
  2106. var value = void 0;
  2107. if (ev.target.checked) {
  2108. value = this.trueLabel === undefined ? true : this.trueLabel;
  2109. } else {
  2110. value = this.falseLabel === undefined ? false : this.falseLabel;
  2111. }
  2112. this.$emit('change', value, ev);
  2113. this.$nextTick(function () {
  2114. if (_this.isGroup) {
  2115. _this.dispatch('TisCheckboxGroup', 'change', [_this._checkboxGroup.value]);
  2116. }
  2117. });
  2118. }
  2119. },
  2120. created: function created() {
  2121. this.checked && this.addToStore();
  2122. },
  2123. mounted: function mounted() {
  2124. // 为indeterminate元素 添加aria-controls 属性
  2125. if (this.indeterminate) {
  2126. this.$el.setAttribute('aria-controls', this.controls);
  2127. }
  2128. },
  2129. watch: {
  2130. value: function value(_value) {
  2131. this.dispatch('ElFormItem', 'el.form.change', _value);
  2132. }
  2133. }
  2134. });
  2135. // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js&
  2136. /* harmony default export */ var src_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_);
  2137. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  2138. var componentNormalizer = __webpack_require__(2);
  2139. // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue
  2140. /* normalize component */
  2141. var component = Object(componentNormalizer["a" /* default */])(
  2142. src_checkboxvue_type_script_lang_js_,
  2143. render,
  2144. staticRenderFns,
  2145. false,
  2146. null,
  2147. null,
  2148. null
  2149. )
  2150. /* hot reload */
  2151. if (false) { var api; }
  2152. component.options.__file = "packages/checkbox/src/checkbox.vue"
  2153. /* harmony default export */ var src_checkbox = (component.exports);
  2154. // CONCATENATED MODULE: ./packages/checkbox/index.js
  2155. /* istanbul ignore next */
  2156. src_checkbox.install = function (Vue) {
  2157. Vue.component(src_checkbox.name, src_checkbox);
  2158. };
  2159. /* harmony default export */ var packages_checkbox = __webpack_exports__["default"] = (src_checkbox);
  2160. /***/ }),
  2161. /***/ 70:
  2162. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2163. "use strict";
  2164. // ESM COMPAT FLAG
  2165. __webpack_require__.r(__webpack_exports__);
  2166. // 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&
  2167. var render = function() {
  2168. var _vm = this
  2169. var _h = _vm.$createElement
  2170. var _c = _vm._self._c || _h
  2171. return _c(
  2172. "button",
  2173. {
  2174. staticClass: "el-button",
  2175. class: [
  2176. _vm.type ? "el-button--" + _vm.type : "",
  2177. _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
  2178. {
  2179. "is-disabled": _vm.buttonDisabled,
  2180. "is-loading": _vm.loading,
  2181. "is-plain": _vm.plain,
  2182. "is-round": _vm.round,
  2183. "is-circle": _vm.circle
  2184. }
  2185. ],
  2186. attrs: {
  2187. disabled: _vm.buttonDisabled || _vm.loading,
  2188. autofocus: _vm.autofocus,
  2189. type: _vm.nativeType
  2190. },
  2191. on: { click: _vm.handleClick }
  2192. },
  2193. [
  2194. _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
  2195. _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
  2196. _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e()
  2197. ]
  2198. )
  2199. }
  2200. var staticRenderFns = []
  2201. render._withStripped = true
  2202. // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
  2203. // 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&
  2204. //
  2205. //
  2206. //
  2207. //
  2208. //
  2209. //
  2210. //
  2211. //
  2212. //
  2213. //
  2214. //
  2215. //
  2216. //
  2217. //
  2218. //
  2219. //
  2220. //
  2221. //
  2222. //
  2223. //
  2224. //
  2225. //
  2226. //
  2227. //
  2228. /* harmony default export */ var buttonvue_type_script_lang_js_ = ({
  2229. name: 'TisButton',
  2230. inject: {
  2231. elForm: {
  2232. default: ''
  2233. },
  2234. elFormItem: {
  2235. default: ''
  2236. }
  2237. },
  2238. props: {
  2239. type: {
  2240. type: String,
  2241. default: 'default'
  2242. },
  2243. size: String,
  2244. icon: {
  2245. type: String,
  2246. default: ''
  2247. },
  2248. nativeType: {
  2249. type: String,
  2250. default: 'button'
  2251. },
  2252. loading: Boolean,
  2253. disabled: Boolean,
  2254. plain: Boolean,
  2255. autofocus: Boolean,
  2256. round: Boolean,
  2257. circle: Boolean
  2258. },
  2259. computed: {
  2260. _elFormItemSize: function _elFormItemSize() {
  2261. return (this.elFormItem || {}).elFormItemSize;
  2262. },
  2263. buttonSize: function buttonSize() {
  2264. return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  2265. },
  2266. buttonDisabled: function buttonDisabled() {
  2267. return this.disabled || (this.elForm || {}).disabled;
  2268. }
  2269. },
  2270. methods: {
  2271. handleClick: function handleClick(evt) {
  2272. this.$emit('click', evt);
  2273. }
  2274. }
  2275. });
  2276. // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js&
  2277. /* harmony default export */ var src_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
  2278. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  2279. var componentNormalizer = __webpack_require__(2);
  2280. // CONCATENATED MODULE: ./packages/button/src/button.vue
  2281. /* normalize component */
  2282. var component = Object(componentNormalizer["a" /* default */])(
  2283. src_buttonvue_type_script_lang_js_,
  2284. render,
  2285. staticRenderFns,
  2286. false,
  2287. null,
  2288. null,
  2289. null
  2290. )
  2291. /* hot reload */
  2292. if (false) { var api; }
  2293. component.options.__file = "packages/button/src/button.vue"
  2294. /* harmony default export */ var src_button = (component.exports);
  2295. // CONCATENATED MODULE: ./packages/button/index.js
  2296. /* istanbul ignore next */
  2297. src_button.install = function (Vue) {
  2298. Vue.component(src_button.name, src_button);
  2299. };
  2300. /* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
  2301. /***/ })
  2302. /******/ });