@mdsfe/mds-ui 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +778 -0
- package/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/_locale/index.js +18 -0
- package/dist/_locale/zh-CN.js +123 -0
- package/dist/_mixin/emitter.js +35 -0
- package/dist/_mixin/focus.js +13 -0
- package/dist/_mixin/locale.js +17 -0
- package/dist/_mixin/popper.js +192 -0
- package/dist/_mixin/tooltip.js +218 -0
- package/dist/_util/__test__/switchcase.test.js +43 -0
- package/dist/_util/autoprefixer.js +249 -0
- package/dist/_util/clickoutside.js +79 -0
- package/dist/_util/date.js +368 -0
- package/dist/_util/dateUtil.js +311 -0
- package/dist/_util/dom.js +240 -0
- package/dist/_util/getRequestAnimationFrame.js +50 -0
- package/dist/_util/getScroll.js +21 -0
- package/dist/_util/loaders/loaders.css.js +52 -0
- package/dist/_util/loaders/loading.js +53 -0
- package/dist/_util/merge.js +18 -0
- package/dist/_util/popper.js +1261 -0
- package/dist/_util/popup/index.js +232 -0
- package/dist/_util/popup/popup-manager.js +205 -0
- package/dist/_util/proptype.js +12 -0
- package/dist/_util/repeatClick.js +30 -0
- package/dist/_util/resize.js +61 -0
- package/dist/_util/resizeEvent.js +59 -0
- package/dist/_util/scrollIntoView.js +38 -0
- package/dist/_util/scrollbar-width.js +37 -0
- package/dist/_util/soda.js +54 -0
- package/dist/_util/switchcase.js +22 -0
- package/dist/_util/throttleByAnimationFrame.js +70 -0
- package/dist/_util/tree/node.js +412 -0
- package/dist/_util/tree/tree.js +410 -0
- package/dist/_util/util.js +166 -0
- package/dist/_util/vue-popper.js +213 -0
- package/dist/affix.js +509 -0
- package/dist/anchor.js +522 -0
- package/dist/avatar.js +437 -0
- package/dist/backtop.js +469 -0
- package/dist/badge.js +439 -0
- package/dist/bordershadow.js +310 -0
- package/dist/breadcrumb.js +434 -0
- package/dist/button.js +579 -0
- package/dist/card.js +514 -0
- package/dist/carousel.js +1326 -0
- package/dist/cascaderpanel.js +2320 -0
- package/dist/checkbox.js +681 -0
- package/dist/col.js +546 -0
- package/dist/collapse.js +671 -0
- package/dist/color.js +306 -0
- package/dist/datepicker.js +8089 -0
- package/dist/divider.js +346 -0
- package/dist/drawer.js +652 -0
- package/dist/dropdown.js +687 -0
- package/dist/empty.js +416 -0
- package/dist/font.js +306 -0
- package/dist/form.js +878 -0
- package/dist/icon.js +401 -0
- package/dist/index.js +1 -0
- package/dist/input.js +1251 -0
- package/dist/inputnumber.js +689 -0
- package/dist/layout.js +786 -0
- package/dist/list.js +789 -0
- package/dist/loading.js +430 -0
- package/dist/mds-ui.min.css +7 -0
- package/dist/mds-ui.min.js +64911 -0
- package/dist/menu.js +1131 -0
- package/dist/message.js +1016 -0
- package/dist/modal.js +895 -0
- package/dist/notification.js +818 -0
- package/dist/pagination.js +1213 -0
- package/dist/popconfirm.js +336 -0
- package/dist/popover.js +206 -0
- package/dist/progress.js +1023 -0
- package/dist/radio.js +760 -0
- package/dist/rate.js +765 -0
- package/dist/row.js +546 -0
- package/dist/select.js +4950 -0
- package/dist/slider.js +1411 -0
- package/dist/slottable.js +1414 -0
- package/dist/steps.js +546 -0
- package/dist/style/affix.css +5524 -0
- package/dist/style/anchor.css +5572 -0
- package/dist/style/avatar.css +5587 -0
- package/dist/style/backtop.css +34 -0
- package/dist/style/badge.css +5655 -0
- package/dist/style/bordershadow.css +5601 -0
- package/dist/style/breadcrumb.css +5551 -0
- package/dist/style/button.css +7679 -0
- package/dist/style/card.css +5670 -0
- package/dist/style/carousel.css +5731 -0
- package/dist/style/cascaderpanel.css +125 -0
- package/dist/style/checkbox.css +5700 -0
- package/dist/style/col.css +8121 -0
- package/dist/style/collapse.css +5593 -0
- package/dist/style/color.css +6136 -0
- package/dist/style/datepicker.css +5977 -0
- package/dist/style/divider.css +5558 -0
- package/dist/style/drawer.css +7979 -0
- package/dist/style/dropdown.css +7950 -0
- package/dist/style/empty.css +5563 -0
- package/dist/style/font.css +5559 -0
- package/dist/style/form.css +5662 -0
- package/dist/style/icon.css +5538 -0
- package/dist/style/input.css +6256 -0
- package/dist/style/inputnumber.css +5828 -0
- package/dist/style/layout.css +5572 -0
- package/dist/style/list.css +5655 -0
- package/dist/style/loading.css +5540 -0
- package/dist/style/menu.css +6183 -0
- package/dist/style/message.css +194 -0
- package/dist/style/modal.css +5637 -0
- package/dist/style/notification.css +5706 -0
- package/dist/style/pagination.css +6683 -0
- package/dist/style/popconfirm.css +7951 -0
- package/dist/style/popover.css +5727 -0
- package/dist/style/progress.css +5714 -0
- package/dist/style/radio.css +5769 -0
- package/dist/style/rate.css +5616 -0
- package/dist/style/row.css +8121 -0
- package/dist/style/select.css +5729 -0
- package/dist/style/slider.css +5594 -0
- package/dist/style/slottable.css +5831 -0
- package/dist/style/steps.css +6100 -0
- package/dist/style/switch.css +5624 -0
- package/dist/style/table.css +8392 -0
- package/dist/style/tabs.css +6047 -0
- package/dist/style/tag.css +5935 -0
- package/dist/style/text.css +5636 -0
- package/dist/style/timeline.css +5602 -0
- package/dist/style/timepicker.css +5904 -0
- package/dist/style/tooltip.css +5686 -0
- package/dist/style/transfer.css +101 -0
- package/dist/style/transition.css +1417 -0
- package/dist/style/tree.css +5598 -0
- package/dist/style/typography.css +5640 -0
- package/dist/style/upload.css +5834 -0
- package/dist/switch.js +448 -0
- package/dist/table.js +3809 -0
- package/dist/tabs.js +1273 -0
- package/dist/tag.js +478 -0
- package/dist/text.js +1100 -0
- package/dist/timeline.js +495 -0
- package/dist/timepicker.js +1567 -0
- package/dist/tooltip.js +179 -0
- package/dist/transfer.js +981 -0
- package/dist/transition.js +246 -0
- package/dist/tree.js +1866 -0
- package/dist/typography.js +469 -0
- package/dist/upload.js +1990 -0
- package/package.json +144 -0
package/dist/transfer.js
ADDED
|
@@ -0,0 +1,981 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("./icon"), require("./button"), require("./input"), require("./_util/util"), require("./checkbox"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["./icon", "./button", "./input", "./_util/util", "./checkbox"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("./icon"), require("./button"), require("./input"), require("./_util/util"), require("./checkbox")) : factory(root["./icon"], root["./button"], root["./input"], root["./_util/util"], root["./checkbox"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__4__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__14__, __WEBPACK_EXTERNAL_MODULE__28__) {
|
|
11
|
+
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
+
/******/ // The module cache
|
|
13
|
+
/******/ var installedModules = {};
|
|
14
|
+
/******/
|
|
15
|
+
/******/ // The require function
|
|
16
|
+
/******/ function __webpack_require__(moduleId) {
|
|
17
|
+
/******/
|
|
18
|
+
/******/ // Check if module is in cache
|
|
19
|
+
/******/ if(installedModules[moduleId]) {
|
|
20
|
+
/******/ return installedModules[moduleId].exports;
|
|
21
|
+
/******/ }
|
|
22
|
+
/******/ // Create a new module (and put it into the cache)
|
|
23
|
+
/******/ var module = installedModules[moduleId] = {
|
|
24
|
+
/******/ i: moduleId,
|
|
25
|
+
/******/ l: false,
|
|
26
|
+
/******/ exports: {}
|
|
27
|
+
/******/ };
|
|
28
|
+
/******/
|
|
29
|
+
/******/ // Execute the module function
|
|
30
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
+
/******/
|
|
32
|
+
/******/ // Flag the module as loaded
|
|
33
|
+
/******/ module.l = true;
|
|
34
|
+
/******/
|
|
35
|
+
/******/ // Return the exports of the module
|
|
36
|
+
/******/ return module.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/
|
|
39
|
+
/******/
|
|
40
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
+
/******/ __webpack_require__.m = modules;
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // expose the module cache
|
|
44
|
+
/******/ __webpack_require__.c = installedModules;
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // define getter function for harmony exports
|
|
47
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/ };
|
|
52
|
+
/******/
|
|
53
|
+
/******/ // define __esModule on exports
|
|
54
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
+
/******/ }
|
|
58
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
+
/******/ };
|
|
60
|
+
/******/
|
|
61
|
+
/******/ // create a fake namespace object
|
|
62
|
+
/******/ // mode & 1: value is a module id, require it
|
|
63
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
+
/******/ // mode & 4: return value when already ns object
|
|
65
|
+
/******/ // mode & 8|1: behave like require
|
|
66
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
+
/******/ if(mode & 8) return value;
|
|
69
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
+
/******/ var ns = Object.create(null);
|
|
71
|
+
/******/ __webpack_require__.r(ns);
|
|
72
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
+
/******/ return ns;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
+
/******/ __webpack_require__.n = function(module) {
|
|
79
|
+
/******/ var getter = module && module.__esModule ?
|
|
80
|
+
/******/ function getDefault() { return module['default']; } :
|
|
81
|
+
/******/ function getModuleExports() { return module; };
|
|
82
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
+
/******/ return getter;
|
|
84
|
+
/******/ };
|
|
85
|
+
/******/
|
|
86
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
+
/******/
|
|
89
|
+
/******/ // __webpack_public_path__
|
|
90
|
+
/******/ __webpack_require__.p = "/dist/";
|
|
91
|
+
/******/
|
|
92
|
+
/******/
|
|
93
|
+
/******/ // Load entry module and return exports
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 106);
|
|
95
|
+
/******/ })
|
|
96
|
+
/************************************************************************/
|
|
97
|
+
/******/ ({
|
|
98
|
+
|
|
99
|
+
/***/ 0:
|
|
100
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
"use strict";
|
|
103
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
104
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
105
|
+
|
|
106
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
107
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
108
|
+
// be included in the final webpack user bundle.
|
|
109
|
+
|
|
110
|
+
function normalizeComponent (
|
|
111
|
+
scriptExports,
|
|
112
|
+
render,
|
|
113
|
+
staticRenderFns,
|
|
114
|
+
functionalTemplate,
|
|
115
|
+
injectStyles,
|
|
116
|
+
scopeId,
|
|
117
|
+
moduleIdentifier, /* server only */
|
|
118
|
+
shadowMode /* vue-cli only */
|
|
119
|
+
) {
|
|
120
|
+
// Vue.extend constructor export interop
|
|
121
|
+
var options = typeof scriptExports === 'function'
|
|
122
|
+
? scriptExports.options
|
|
123
|
+
: scriptExports
|
|
124
|
+
|
|
125
|
+
// render functions
|
|
126
|
+
if (render) {
|
|
127
|
+
options.render = render
|
|
128
|
+
options.staticRenderFns = staticRenderFns
|
|
129
|
+
options._compiled = true
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// functional template
|
|
133
|
+
if (functionalTemplate) {
|
|
134
|
+
options.functional = true
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// scopedId
|
|
138
|
+
if (scopeId) {
|
|
139
|
+
options._scopeId = 'data-v-' + scopeId
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var hook
|
|
143
|
+
if (moduleIdentifier) { // server build
|
|
144
|
+
hook = function (context) {
|
|
145
|
+
// 2.3 injection
|
|
146
|
+
context =
|
|
147
|
+
context || // cached call
|
|
148
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
149
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
150
|
+
// 2.2 with runInNewContext: true
|
|
151
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
152
|
+
context = __VUE_SSR_CONTEXT__
|
|
153
|
+
}
|
|
154
|
+
// inject component styles
|
|
155
|
+
if (injectStyles) {
|
|
156
|
+
injectStyles.call(this, context)
|
|
157
|
+
}
|
|
158
|
+
// register component module identifier for async chunk inferrence
|
|
159
|
+
if (context && context._registeredComponents) {
|
|
160
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
// used by ssr in case component is cached and beforeCreate
|
|
164
|
+
// never gets called
|
|
165
|
+
options._ssrRegister = hook
|
|
166
|
+
} else if (injectStyles) {
|
|
167
|
+
hook = shadowMode
|
|
168
|
+
? function () {
|
|
169
|
+
injectStyles.call(
|
|
170
|
+
this,
|
|
171
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
172
|
+
)
|
|
173
|
+
}
|
|
174
|
+
: injectStyles
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (hook) {
|
|
178
|
+
if (options.functional) {
|
|
179
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
180
|
+
// go through the normalizer
|
|
181
|
+
options._injectStyles = hook
|
|
182
|
+
// register for functional component in vue file
|
|
183
|
+
var originalRender = options.render
|
|
184
|
+
options.render = function renderWithStyleInjection (h, context) {
|
|
185
|
+
hook.call(context)
|
|
186
|
+
return originalRender(h, context)
|
|
187
|
+
}
|
|
188
|
+
} else {
|
|
189
|
+
// inject component registration as beforeCreate hook
|
|
190
|
+
var existing = options.beforeCreate
|
|
191
|
+
options.beforeCreate = existing
|
|
192
|
+
? [].concat(existing, hook)
|
|
193
|
+
: [hook]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return {
|
|
198
|
+
exports: scriptExports,
|
|
199
|
+
options: options
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
/***/ }),
|
|
205
|
+
|
|
206
|
+
/***/ 10:
|
|
207
|
+
/***/ (function(module, exports) {
|
|
208
|
+
|
|
209
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__10__;
|
|
210
|
+
|
|
211
|
+
/***/ }),
|
|
212
|
+
|
|
213
|
+
/***/ 106:
|
|
214
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
215
|
+
|
|
216
|
+
"use strict";
|
|
217
|
+
// ESM COMPAT FLAG
|
|
218
|
+
__webpack_require__.r(__webpack_exports__);
|
|
219
|
+
|
|
220
|
+
// EXTERNAL MODULE: ./components/transfer/style/index.less
|
|
221
|
+
var style = __webpack_require__(233);
|
|
222
|
+
|
|
223
|
+
// EXTERNAL MODULE: ./components/transfer/style/panel.less
|
|
224
|
+
var panel = __webpack_require__(235);
|
|
225
|
+
|
|
226
|
+
// CONCATENATED MODULE: ./components/transfer/style/index.js
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/transfer/transfer.vue?vue&type=template&id=45345264&lang=html&
|
|
230
|
+
var render = function () {
|
|
231
|
+
var _vm = this
|
|
232
|
+
var _h = _vm.$createElement
|
|
233
|
+
var _c = _vm._self._c || _h
|
|
234
|
+
return _c(
|
|
235
|
+
"div",
|
|
236
|
+
{ class: _vm.prefixCls },
|
|
237
|
+
[
|
|
238
|
+
_c(
|
|
239
|
+
"mds-TransferPanel",
|
|
240
|
+
_vm._b(
|
|
241
|
+
{
|
|
242
|
+
ref: "leftPanel",
|
|
243
|
+
attrs: {
|
|
244
|
+
"default-checked": _vm.leftDefaultChecked,
|
|
245
|
+
data: _vm.sourceData,
|
|
246
|
+
title: _vm.titles[0],
|
|
247
|
+
prefixCls: "mds-transfer-",
|
|
248
|
+
},
|
|
249
|
+
on: { "checked-change": _vm.leftCheckedChange },
|
|
250
|
+
},
|
|
251
|
+
"mds-TransferPanel",
|
|
252
|
+
_vm.$props,
|
|
253
|
+
false
|
|
254
|
+
)
|
|
255
|
+
),
|
|
256
|
+
_c("div", { class: _vm.prefixCls + "-buttons" }, [
|
|
257
|
+
_c(
|
|
258
|
+
"div",
|
|
259
|
+
{ class: _vm.prefixCls + "-button-item" },
|
|
260
|
+
[
|
|
261
|
+
_c(
|
|
262
|
+
"mds-button",
|
|
263
|
+
{
|
|
264
|
+
attrs: { type: "primary", disabled: _vm.lChecked.length === 0 },
|
|
265
|
+
on: { click: _vm.addToRight },
|
|
266
|
+
},
|
|
267
|
+
[
|
|
268
|
+
_c("mds-icon", { attrs: { type: "line-arrow-right" } }),
|
|
269
|
+
_vm.buttonTexts[0] !== undefined
|
|
270
|
+
? _c("span", [_vm._v(_vm._s(_vm.buttonTexts[0]))])
|
|
271
|
+
: _vm._e(),
|
|
272
|
+
],
|
|
273
|
+
1
|
|
274
|
+
),
|
|
275
|
+
],
|
|
276
|
+
1
|
|
277
|
+
),
|
|
278
|
+
_c(
|
|
279
|
+
"div",
|
|
280
|
+
{ class: _vm.prefixCls + "-button-item" },
|
|
281
|
+
[
|
|
282
|
+
_c(
|
|
283
|
+
"mds-button",
|
|
284
|
+
{
|
|
285
|
+
attrs: { type: "primary", disabled: _vm.rChecked.length === 0 },
|
|
286
|
+
on: { click: _vm.addToLeft },
|
|
287
|
+
},
|
|
288
|
+
[
|
|
289
|
+
_c("mds-icon", { attrs: { type: "line-arrow-left" } }),
|
|
290
|
+
_vm.buttonTexts[1] !== undefined
|
|
291
|
+
? _c("span", [_vm._v(_vm._s(_vm.buttonTexts[1]))])
|
|
292
|
+
: _vm._e(),
|
|
293
|
+
],
|
|
294
|
+
1
|
|
295
|
+
),
|
|
296
|
+
],
|
|
297
|
+
1
|
|
298
|
+
),
|
|
299
|
+
]),
|
|
300
|
+
_c(
|
|
301
|
+
"mds-TransferPanel",
|
|
302
|
+
_vm._b(
|
|
303
|
+
{
|
|
304
|
+
ref: "rightPanel",
|
|
305
|
+
attrs: {
|
|
306
|
+
title: _vm.titles[1],
|
|
307
|
+
data: _vm.targetData,
|
|
308
|
+
prefixCls: "mds-transfer-",
|
|
309
|
+
},
|
|
310
|
+
on: { "checked-change": _vm.rightChecedChange },
|
|
311
|
+
},
|
|
312
|
+
"mds-TransferPanel",
|
|
313
|
+
_vm.$props,
|
|
314
|
+
false
|
|
315
|
+
)
|
|
316
|
+
),
|
|
317
|
+
],
|
|
318
|
+
1
|
|
319
|
+
)
|
|
320
|
+
}
|
|
321
|
+
var staticRenderFns = []
|
|
322
|
+
render._withStripped = true
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
// CONCATENATED MODULE: ./components/transfer/transfer.vue?vue&type=template&id=45345264&lang=html&
|
|
326
|
+
|
|
327
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./components/transfer/transferPanel.vue?vue&type=template&id=32ae9a30&lang=html&
|
|
328
|
+
var transferPanelvue_type_template_id_32ae9a30_lang_html_render = function () {
|
|
329
|
+
var _vm = this
|
|
330
|
+
var _h = _vm.$createElement
|
|
331
|
+
var _c = _vm._self._c || _h
|
|
332
|
+
return _c("div", { class: _vm.prefixCls + "panel" }, [
|
|
333
|
+
_c(
|
|
334
|
+
"div",
|
|
335
|
+
{ class: _vm.prefixCls + "panel-header" },
|
|
336
|
+
[
|
|
337
|
+
_c(
|
|
338
|
+
"mds-checkbox",
|
|
339
|
+
{
|
|
340
|
+
attrs: {
|
|
341
|
+
checked: _vm.checkAll,
|
|
342
|
+
indeterminate: _vm.isIndeterminate,
|
|
343
|
+
},
|
|
344
|
+
on: { change: _vm.toggleCheckedAll },
|
|
345
|
+
},
|
|
346
|
+
[_vm._v(_vm._s(_vm.title))]
|
|
347
|
+
),
|
|
348
|
+
_c("span", [_vm._v(_vm._s(_vm.checkedSummary))]),
|
|
349
|
+
],
|
|
350
|
+
1
|
|
351
|
+
),
|
|
352
|
+
_c(
|
|
353
|
+
"div",
|
|
354
|
+
{ class: _vm.prefixCls + "panel-body" },
|
|
355
|
+
[
|
|
356
|
+
_vm.filterable
|
|
357
|
+
? _c(
|
|
358
|
+
"div",
|
|
359
|
+
{ class: _vm.prefixCls + "panel__filter__box" },
|
|
360
|
+
[
|
|
361
|
+
_c(
|
|
362
|
+
"mds-input",
|
|
363
|
+
{
|
|
364
|
+
class: _vm.prefixCls + "panel__filter",
|
|
365
|
+
attrs: {
|
|
366
|
+
size: "small",
|
|
367
|
+
placeholder: _vm.filterPlaceholder,
|
|
368
|
+
prefix: "",
|
|
369
|
+
},
|
|
370
|
+
model: {
|
|
371
|
+
value: _vm.query,
|
|
372
|
+
callback: function ($$v) {
|
|
373
|
+
_vm.query = $$v
|
|
374
|
+
},
|
|
375
|
+
expression: "query",
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
[
|
|
379
|
+
_c("mds-icon", {
|
|
380
|
+
attrs: { slot: "prefix", type: "line-calendar" },
|
|
381
|
+
slot: "prefix",
|
|
382
|
+
}),
|
|
383
|
+
],
|
|
384
|
+
1
|
|
385
|
+
),
|
|
386
|
+
],
|
|
387
|
+
1
|
|
388
|
+
)
|
|
389
|
+
: _vm._e(),
|
|
390
|
+
_c(
|
|
391
|
+
"mds-checkbox-group",
|
|
392
|
+
{
|
|
393
|
+
directives: [
|
|
394
|
+
{
|
|
395
|
+
name: "show",
|
|
396
|
+
rawName: "v-show",
|
|
397
|
+
value: !_vm.hasNoMatch && _vm.data.length > 0,
|
|
398
|
+
expression: "!hasNoMatch && data.length > 0",
|
|
399
|
+
},
|
|
400
|
+
],
|
|
401
|
+
class: { "is-filterable": _vm.filterable },
|
|
402
|
+
attrs: { isTransfer: true },
|
|
403
|
+
model: {
|
|
404
|
+
value: _vm.checked,
|
|
405
|
+
callback: function ($$v) {
|
|
406
|
+
_vm.checked = $$v
|
|
407
|
+
},
|
|
408
|
+
expression: "checked",
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
_vm._l(_vm.filteredData, function (item) {
|
|
412
|
+
return _c(
|
|
413
|
+
"mds-checkbox",
|
|
414
|
+
{
|
|
415
|
+
key: item.value,
|
|
416
|
+
class: _vm.prefixCls + "panel__item",
|
|
417
|
+
attrs: { value: item.value, disabled: item.disabled },
|
|
418
|
+
},
|
|
419
|
+
[_c("option-content", { attrs: { option: item } })],
|
|
420
|
+
1
|
|
421
|
+
)
|
|
422
|
+
}),
|
|
423
|
+
1
|
|
424
|
+
),
|
|
425
|
+
_c(
|
|
426
|
+
"p",
|
|
427
|
+
{
|
|
428
|
+
directives: [
|
|
429
|
+
{
|
|
430
|
+
name: "show",
|
|
431
|
+
rawName: "v-show",
|
|
432
|
+
value: _vm.hasNoMatch,
|
|
433
|
+
expression: "hasNoMatch",
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
class: _vm.prefixCls + "panel__empty",
|
|
437
|
+
},
|
|
438
|
+
[_vm._v("无匹配数据")]
|
|
439
|
+
),
|
|
440
|
+
_c(
|
|
441
|
+
"p",
|
|
442
|
+
{
|
|
443
|
+
directives: [
|
|
444
|
+
{
|
|
445
|
+
name: "show",
|
|
446
|
+
rawName: "v-show",
|
|
447
|
+
value: _vm.data.length === 0 && !_vm.hasNoMatch,
|
|
448
|
+
expression: "data.length === 0 && !hasNoMatch",
|
|
449
|
+
},
|
|
450
|
+
],
|
|
451
|
+
class: _vm.prefixCls + "panel__empty",
|
|
452
|
+
},
|
|
453
|
+
[_vm._v("\n 无数据\n ")]
|
|
454
|
+
),
|
|
455
|
+
],
|
|
456
|
+
1
|
|
457
|
+
),
|
|
458
|
+
])
|
|
459
|
+
}
|
|
460
|
+
var transferPanelvue_type_template_id_32ae9a30_lang_html_staticRenderFns = []
|
|
461
|
+
transferPanelvue_type_template_id_32ae9a30_lang_html_render._withStripped = true
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
// CONCATENATED MODULE: ./components/transfer/transferPanel.vue?vue&type=template&id=32ae9a30&lang=html&
|
|
465
|
+
|
|
466
|
+
// EXTERNAL MODULE: external "./input"
|
|
467
|
+
var external_input_ = __webpack_require__(10);
|
|
468
|
+
var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_);
|
|
469
|
+
|
|
470
|
+
// EXTERNAL MODULE: external "./icon"
|
|
471
|
+
var external_icon_ = __webpack_require__(4);
|
|
472
|
+
var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
|
|
473
|
+
|
|
474
|
+
// EXTERNAL MODULE: external "./checkbox"
|
|
475
|
+
var external_checkbox_ = __webpack_require__(28);
|
|
476
|
+
|
|
477
|
+
// EXTERNAL MODULE: external "./_util/util"
|
|
478
|
+
var util_ = __webpack_require__(14);
|
|
479
|
+
|
|
480
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/transfer/transferPanel.vue?vue&type=script&lang=js&
|
|
481
|
+
//
|
|
482
|
+
//
|
|
483
|
+
//
|
|
484
|
+
//
|
|
485
|
+
//
|
|
486
|
+
//
|
|
487
|
+
//
|
|
488
|
+
//
|
|
489
|
+
//
|
|
490
|
+
//
|
|
491
|
+
//
|
|
492
|
+
//
|
|
493
|
+
//
|
|
494
|
+
//
|
|
495
|
+
//
|
|
496
|
+
//
|
|
497
|
+
//
|
|
498
|
+
//
|
|
499
|
+
//
|
|
500
|
+
//
|
|
501
|
+
//
|
|
502
|
+
//
|
|
503
|
+
//
|
|
504
|
+
//
|
|
505
|
+
//
|
|
506
|
+
//
|
|
507
|
+
//
|
|
508
|
+
//
|
|
509
|
+
//
|
|
510
|
+
//
|
|
511
|
+
//
|
|
512
|
+
//
|
|
513
|
+
//
|
|
514
|
+
//
|
|
515
|
+
//
|
|
516
|
+
//
|
|
517
|
+
//
|
|
518
|
+
//
|
|
519
|
+
//
|
|
520
|
+
//
|
|
521
|
+
//
|
|
522
|
+
//
|
|
523
|
+
//
|
|
524
|
+
//
|
|
525
|
+
//
|
|
526
|
+
//
|
|
527
|
+
//
|
|
528
|
+
//
|
|
529
|
+
//
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
/* harmony default export */ var transferPanelvue_type_script_lang_js_ = ({
|
|
537
|
+
name: 'MdsTransferPanel',
|
|
538
|
+
components: {
|
|
539
|
+
MdsInput: external_input_default.a,
|
|
540
|
+
MdsIcon: external_icon_default.a,
|
|
541
|
+
MdsCheckbox: external_checkbox_["MdsCheckbox"],
|
|
542
|
+
MdsCheckboxGroup: external_checkbox_["MdsCheckboxGroup"],
|
|
543
|
+
OptionContent: {
|
|
544
|
+
props: {
|
|
545
|
+
option: Object
|
|
546
|
+
},
|
|
547
|
+
render: function render(h) {
|
|
548
|
+
var getParent = function getParent(vm) {
|
|
549
|
+
if (vm.$options.name === 'MdsTransferPanel') {
|
|
550
|
+
return vm;
|
|
551
|
+
} else if (vm.$parent) {
|
|
552
|
+
return getParent(vm.$parent);
|
|
553
|
+
} else {
|
|
554
|
+
return vm;
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
var panel = getParent(this);
|
|
558
|
+
var transfer = panel.$parent || panel;
|
|
559
|
+
return transfer.$scopedSlots.default ? transfer.$scopedSlots.default({ option: this.option, style: 'overflow-x: auto' }) : h('span', [this.option.label || this.option.value]);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
props: {
|
|
564
|
+
data: {
|
|
565
|
+
type: Array,
|
|
566
|
+
default: function _default() {
|
|
567
|
+
return [];
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
defaultChecked: {
|
|
571
|
+
type: Array,
|
|
572
|
+
default: function _default() {
|
|
573
|
+
return [];
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
format: Object,
|
|
577
|
+
prefixCls: {
|
|
578
|
+
type: String,
|
|
579
|
+
default: 'mds-transfer-'
|
|
580
|
+
},
|
|
581
|
+
title: {
|
|
582
|
+
type: String,
|
|
583
|
+
default: '标题名称'
|
|
584
|
+
},
|
|
585
|
+
renderContent: {
|
|
586
|
+
type: Function,
|
|
587
|
+
default: util_["noop"]
|
|
588
|
+
},
|
|
589
|
+
filterable: Boolean,
|
|
590
|
+
filterPlaceholder: {
|
|
591
|
+
type: String,
|
|
592
|
+
default: ''
|
|
593
|
+
},
|
|
594
|
+
filterMethod: Function
|
|
595
|
+
},
|
|
596
|
+
data: function data() {
|
|
597
|
+
return {
|
|
598
|
+
query: '',
|
|
599
|
+
checked: this.defaultChecked || [],
|
|
600
|
+
allChecked: false,
|
|
601
|
+
checkChangeByUser: true
|
|
602
|
+
};
|
|
603
|
+
},
|
|
604
|
+
|
|
605
|
+
computed: {
|
|
606
|
+
checkedSummary: function checkedSummary() {
|
|
607
|
+
var checkedLength = this.checked.length;
|
|
608
|
+
var dataLength = this.data.length;
|
|
609
|
+
var _format = this.format,
|
|
610
|
+
noChecked = _format.noChecked,
|
|
611
|
+
hasChecked = _format.hasChecked;
|
|
612
|
+
|
|
613
|
+
if (noChecked && hasChecked) {
|
|
614
|
+
return checkedLength > 0 ? hasChecked.replace(/\${checked}/g, checkedLength).replace(/\${total}/g, dataLength) : noChecked.replace(/\${total}/g, dataLength);
|
|
615
|
+
} else {
|
|
616
|
+
return checkedLength + '/' + dataLength;
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
hasNoMatch: function hasNoMatch() {
|
|
620
|
+
return this.query.length > 0 && this.filteredData.length === 0;
|
|
621
|
+
},
|
|
622
|
+
filteredData: function filteredData() {
|
|
623
|
+
var _this = this;
|
|
624
|
+
|
|
625
|
+
return this.data.filter(function (item) {
|
|
626
|
+
if (typeof _this.filterMethod === 'function') {
|
|
627
|
+
return _this.filterMethod(_this.query, item);
|
|
628
|
+
} else {
|
|
629
|
+
var label = item.label || item.value.toString();
|
|
630
|
+
return label.toLowerCase().indexOf(_this.query.toLowerCase()) > -1;
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
},
|
|
634
|
+
checkableData: function checkableData() {
|
|
635
|
+
return this.filteredData.filter(function (item) {
|
|
636
|
+
return !item.disabled;
|
|
637
|
+
});
|
|
638
|
+
},
|
|
639
|
+
isIndeterminate: function isIndeterminate() {
|
|
640
|
+
var checkedLength = this.checked.length;
|
|
641
|
+
return checkedLength > 0 && checkedLength < this.checkableData.length;
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
watch: {
|
|
645
|
+
checked: function checked(val, oldVal) {
|
|
646
|
+
this.updateAllChecked();
|
|
647
|
+
this.$emit('checked-change', val);
|
|
648
|
+
},
|
|
649
|
+
checkableData: function checkableData() {
|
|
650
|
+
this.updateAllChecked();
|
|
651
|
+
},
|
|
652
|
+
data: function data(val, oldVal) {
|
|
653
|
+
var checked = [];
|
|
654
|
+
var filteredDataKeys = this.filteredData.map(function (item) {
|
|
655
|
+
return item.value;
|
|
656
|
+
});
|
|
657
|
+
this.checked.forEach(function (item) {
|
|
658
|
+
if (filteredDataKeys.indexOf(item) > -1) {
|
|
659
|
+
checked.push(item);
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
this.checkChangeByUser = false;
|
|
663
|
+
this.checked = checked;
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
// beforeCreate: {},
|
|
667
|
+
methods: {
|
|
668
|
+
toggleCheckedAll: function toggleCheckedAll(checkAllVal) {
|
|
669
|
+
this.checked = checkAllVal ? this.checkableData.filter(function (item) {
|
|
670
|
+
return !item.disabled;
|
|
671
|
+
}).map(function (item) {
|
|
672
|
+
if (!item.disabled) {
|
|
673
|
+
return item.value;
|
|
674
|
+
}
|
|
675
|
+
}) : [];
|
|
676
|
+
},
|
|
677
|
+
updateAllChecked: function updateAllChecked() {
|
|
678
|
+
var _this2 = this;
|
|
679
|
+
|
|
680
|
+
var checkableDataKeys = this.checkableData.map(function (item) {
|
|
681
|
+
return item.value;
|
|
682
|
+
});
|
|
683
|
+
this.checkAll = checkableDataKeys.length > 0 && checkableDataKeys.every(function (item) {
|
|
684
|
+
return _this2.checked.indexOf(item) > -1;
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
// mounted: {
|
|
689
|
+
// }
|
|
690
|
+
});
|
|
691
|
+
// CONCATENATED MODULE: ./components/transfer/transferPanel.vue?vue&type=script&lang=js&
|
|
692
|
+
/* harmony default export */ var transfer_transferPanelvue_type_script_lang_js_ = (transferPanelvue_type_script_lang_js_);
|
|
693
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
694
|
+
var componentNormalizer = __webpack_require__(0);
|
|
695
|
+
|
|
696
|
+
// CONCATENATED MODULE: ./components/transfer/transferPanel.vue
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
/* normalize component */
|
|
703
|
+
|
|
704
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
705
|
+
transfer_transferPanelvue_type_script_lang_js_,
|
|
706
|
+
transferPanelvue_type_template_id_32ae9a30_lang_html_render,
|
|
707
|
+
transferPanelvue_type_template_id_32ae9a30_lang_html_staticRenderFns,
|
|
708
|
+
false,
|
|
709
|
+
null,
|
|
710
|
+
null,
|
|
711
|
+
null
|
|
712
|
+
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
/* hot reload */
|
|
716
|
+
if (false) { var api; }
|
|
717
|
+
component.options.__file = "components/transfer/transferPanel.vue"
|
|
718
|
+
/* harmony default export */ var transferPanel = (component.exports);
|
|
719
|
+
// EXTERNAL MODULE: external "./button"
|
|
720
|
+
var external_button_ = __webpack_require__(7);
|
|
721
|
+
var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
|
|
722
|
+
|
|
723
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/transfer/transfer.vue?vue&type=script&lang=js&
|
|
724
|
+
//
|
|
725
|
+
//
|
|
726
|
+
//
|
|
727
|
+
//
|
|
728
|
+
//
|
|
729
|
+
//
|
|
730
|
+
//
|
|
731
|
+
//
|
|
732
|
+
//
|
|
733
|
+
//
|
|
734
|
+
//
|
|
735
|
+
//
|
|
736
|
+
//
|
|
737
|
+
//
|
|
738
|
+
//
|
|
739
|
+
//
|
|
740
|
+
//
|
|
741
|
+
//
|
|
742
|
+
//
|
|
743
|
+
//
|
|
744
|
+
//
|
|
745
|
+
//
|
|
746
|
+
//
|
|
747
|
+
//
|
|
748
|
+
//
|
|
749
|
+
//
|
|
750
|
+
//
|
|
751
|
+
//
|
|
752
|
+
//
|
|
753
|
+
//
|
|
754
|
+
//
|
|
755
|
+
//
|
|
756
|
+
//
|
|
757
|
+
//
|
|
758
|
+
//
|
|
759
|
+
//
|
|
760
|
+
//
|
|
761
|
+
//
|
|
762
|
+
//
|
|
763
|
+
//
|
|
764
|
+
//
|
|
765
|
+
//
|
|
766
|
+
//
|
|
767
|
+
//
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
/* harmony default export */ var transfervue_type_script_lang_js_ = ({
|
|
774
|
+
name: 'MdsTransfer',
|
|
775
|
+
props: {
|
|
776
|
+
data: {
|
|
777
|
+
type: Array,
|
|
778
|
+
default: function _default() {
|
|
779
|
+
return [];
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
value: {
|
|
783
|
+
type: Array,
|
|
784
|
+
default: function _default() {
|
|
785
|
+
return [];
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
titles: {
|
|
789
|
+
type: Array,
|
|
790
|
+
default: function _default() {
|
|
791
|
+
return ['列表 1', '列表 2'];
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
leftDefaultChecked: {
|
|
795
|
+
type: Array,
|
|
796
|
+
default: function _default() {
|
|
797
|
+
return [];
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
rightDefaultChecked: {
|
|
801
|
+
type: Array,
|
|
802
|
+
default: function _default() {
|
|
803
|
+
return [];
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
targetOrder: {
|
|
807
|
+
type: String,
|
|
808
|
+
default: 'original'
|
|
809
|
+
},
|
|
810
|
+
prefixCls: {
|
|
811
|
+
type: String,
|
|
812
|
+
default: 'mds-transfer'
|
|
813
|
+
},
|
|
814
|
+
filterable: Boolean,
|
|
815
|
+
filterPlaceholder: {
|
|
816
|
+
type: String,
|
|
817
|
+
default: '请输入搜索内容'
|
|
818
|
+
},
|
|
819
|
+
filterMethod: Function,
|
|
820
|
+
format: {
|
|
821
|
+
type: Object,
|
|
822
|
+
default: function _default() {
|
|
823
|
+
return {};
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
buttonTexts: {
|
|
827
|
+
type: Array,
|
|
828
|
+
default: function _default() {
|
|
829
|
+
return [];
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
data: function data() {
|
|
834
|
+
return {
|
|
835
|
+
lChecked: this.leftDefaultChecked || [],
|
|
836
|
+
rChecked: this.rightDefaultChecked || []
|
|
837
|
+
};
|
|
838
|
+
},
|
|
839
|
+
|
|
840
|
+
computed: {
|
|
841
|
+
sourceData: function sourceData() {
|
|
842
|
+
var _this = this;
|
|
843
|
+
|
|
844
|
+
return this.data.filter(function (item) {
|
|
845
|
+
return _this.value.indexOf(item['value']) === -1;
|
|
846
|
+
});
|
|
847
|
+
},
|
|
848
|
+
targetData: function targetData() {
|
|
849
|
+
var _this2 = this;
|
|
850
|
+
|
|
851
|
+
return this.data.filter(function (item) {
|
|
852
|
+
return _this2.value.indexOf(item['value']) !== -1;
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
components: {
|
|
857
|
+
MdsButton: external_button_default.a,
|
|
858
|
+
MdsTransferPanel: transferPanel,
|
|
859
|
+
MdsIcon: external_icon_default.a
|
|
860
|
+
},
|
|
861
|
+
watch: {
|
|
862
|
+
value: function value(val, oldVal) {}
|
|
863
|
+
},
|
|
864
|
+
methods: {
|
|
865
|
+
addToRight: function addToRight() {
|
|
866
|
+
var _this3 = this;
|
|
867
|
+
|
|
868
|
+
var currentValue = this.value.slice();
|
|
869
|
+
var toMoveArr = [];
|
|
870
|
+
this.data.forEach(function (item) {
|
|
871
|
+
var itemKey = item['value'];
|
|
872
|
+
if (_this3.lChecked.indexOf(itemKey) !== -1 && _this3.value.indexOf(itemKey) === -1) {
|
|
873
|
+
toMoveArr.push(itemKey);
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
currentValue = currentValue.concat(toMoveArr);
|
|
877
|
+
this.$emit('input', currentValue);
|
|
878
|
+
this.$emit('change', currentValue, 'right', this.rChecked);
|
|
879
|
+
},
|
|
880
|
+
addToLeft: function addToLeft() {
|
|
881
|
+
var currentValue = this.value.slice();
|
|
882
|
+
this.rChecked.forEach(function (item) {
|
|
883
|
+
var index = currentValue.indexOf(item);
|
|
884
|
+
if (index > -1) {
|
|
885
|
+
currentValue.splice(index, 1);
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
this.$emit('input', currentValue);
|
|
889
|
+
this.$emit('change', currentValue, 'left', this.lChecked);
|
|
890
|
+
},
|
|
891
|
+
leftCheckedChange: function leftCheckedChange(val) {
|
|
892
|
+
this.lChecked = val;
|
|
893
|
+
},
|
|
894
|
+
rightChecedChange: function rightChecedChange(val) {
|
|
895
|
+
this.rChecked = val;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
// beforeCreate: {},
|
|
899
|
+
// mounted: {}
|
|
900
|
+
});
|
|
901
|
+
// CONCATENATED MODULE: ./components/transfer/transfer.vue?vue&type=script&lang=js&
|
|
902
|
+
/* harmony default export */ var transfer_transfervue_type_script_lang_js_ = (transfervue_type_script_lang_js_);
|
|
903
|
+
// CONCATENATED MODULE: ./components/transfer/transfer.vue
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
/* normalize component */
|
|
910
|
+
|
|
911
|
+
var transfer_component = Object(componentNormalizer["a" /* default */])(
|
|
912
|
+
transfer_transfervue_type_script_lang_js_,
|
|
913
|
+
render,
|
|
914
|
+
staticRenderFns,
|
|
915
|
+
false,
|
|
916
|
+
null,
|
|
917
|
+
null,
|
|
918
|
+
null
|
|
919
|
+
|
|
920
|
+
)
|
|
921
|
+
|
|
922
|
+
/* hot reload */
|
|
923
|
+
if (false) { var transfer_api; }
|
|
924
|
+
transfer_component.options.__file = "components/transfer/transfer.vue"
|
|
925
|
+
/* harmony default export */ var transfer = (transfer_component.exports);
|
|
926
|
+
// CONCATENATED MODULE: ./components/transfer/index.js
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
transfer.install = function (Vue) {
|
|
931
|
+
Vue.component(transfer.name, transfer);
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
/* harmony default export */ var components_transfer = __webpack_exports__["default"] = (transfer);
|
|
935
|
+
|
|
936
|
+
/***/ }),
|
|
937
|
+
|
|
938
|
+
/***/ 14:
|
|
939
|
+
/***/ (function(module, exports) {
|
|
940
|
+
|
|
941
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__14__;
|
|
942
|
+
|
|
943
|
+
/***/ }),
|
|
944
|
+
|
|
945
|
+
/***/ 233:
|
|
946
|
+
/***/ (function(module, exports) {
|
|
947
|
+
|
|
948
|
+
// removed by extract-text-webpack-plugin
|
|
949
|
+
|
|
950
|
+
/***/ }),
|
|
951
|
+
|
|
952
|
+
/***/ 235:
|
|
953
|
+
/***/ (function(module, exports) {
|
|
954
|
+
|
|
955
|
+
// removed by extract-text-webpack-plugin
|
|
956
|
+
|
|
957
|
+
/***/ }),
|
|
958
|
+
|
|
959
|
+
/***/ 28:
|
|
960
|
+
/***/ (function(module, exports) {
|
|
961
|
+
|
|
962
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__28__;
|
|
963
|
+
|
|
964
|
+
/***/ }),
|
|
965
|
+
|
|
966
|
+
/***/ 4:
|
|
967
|
+
/***/ (function(module, exports) {
|
|
968
|
+
|
|
969
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
|
970
|
+
|
|
971
|
+
/***/ }),
|
|
972
|
+
|
|
973
|
+
/***/ 7:
|
|
974
|
+
/***/ (function(module, exports) {
|
|
975
|
+
|
|
976
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
|
|
977
|
+
|
|
978
|
+
/***/ })
|
|
979
|
+
|
|
980
|
+
/******/ });
|
|
981
|
+
});
|