epx-frame 3.13.0 → 3.13.1
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/lib/0.js +1 -1
- package/lib/10.js +1 -1
- package/lib/17.js +1 -1
- package/lib/3.js +1 -1
- package/lib/4.js +1 -1
- package/lib/86.js +45874 -0
- package/lib/add-form-item.js +2 -2
- package/lib/add-form.js +2 -2
- package/lib/alter.js +2 -2
- package/lib/app-index.js +2 -2
- package/lib/app-nav.js +2 -2
- package/lib/app-tabs.js +2 -2
- package/lib/apply-form.js +2 -2
- package/lib/approval-index-page.js +2 -2
- package/lib/approval-index.js +2 -2
- package/lib/base-page.js +2 -2
- package/lib/button.js +2 -2
- package/lib/card-form-item.js +2 -2
- package/lib/card.js +2 -2
- package/lib/category-list.js +2 -2
- package/lib/chart.js +2 -2
- package/lib/check-history.js +2 -2
- package/lib/color-picker.js +1575 -0
- package/lib/component.js +1 -1
- package/lib/contacts.js +2 -2
- package/lib/dashboard.js +2 -2
- package/lib/edit-entity-list.js +2 -2
- package/lib/entity-add-page.js +2 -2
- package/lib/entity-apply-page.js +2 -2
- package/lib/entity-card-list.js +2 -2
- package/lib/entity-list-find-page.js +2 -2
- package/lib/entity-list-find.js +1 -1
- package/lib/entity-list-page.js +2 -2
- package/lib/entity-list.js +2 -2
- package/lib/entity-no-submit-sub-list.js +1 -1
- package/lib/entity-sub-grid.js +2 -2
- package/lib/entity-sub-list.js +2 -2
- package/lib/entity-tree-find-page.js +2 -2
- package/lib/entity-tree-find.js +2 -2
- package/lib/epx-frame.common.js +2 -2
- package/lib/export-file.js +2 -2
- package/lib/export.js +2 -2
- package/lib/footer.js +1 -1
- package/lib/form-item.js +2 -2
- package/lib/form.js +2 -2
- package/lib/formula.js +2 -2
- package/lib/gauge.js +2 -2
- package/lib/grid.js +2 -2
- package/lib/header.js +2 -2
- package/lib/icon.js +1 -1
- package/lib/iframe.js +2 -2
- package/lib/image.js +2 -2
- package/lib/import-file.js +2 -2
- package/lib/import.js +2 -2
- package/lib/layout.js +2 -2
- package/lib/list.js +2 -2
- package/lib/load-page.js +2 -2
- package/lib/m-entity-add-page.js +2 -2
- package/lib/m-entity-dept-find.js +2 -2
- package/lib/m-entity-list-find.js +2 -2
- package/lib/m-entity-list.js +2 -2
- package/lib/m-entity-no-submit-sub-list.js +2 -2
- package/lib/m-entity-tree-find.js +2 -2
- package/lib/m-entity-user-find.js +2 -2
- package/lib/menu-index.js +1 -1
- package/lib/menu.js +1 -1
- package/lib/mine.js +2 -2
- package/lib/module-index-page.js +2 -2
- package/lib/module-list-page.js +2 -2
- package/lib/module-list.js +2 -2
- package/lib/nav-add-form.js +1 -1
- package/lib/num.js +2 -2
- package/lib/org-chart.js +2 -2
- package/lib/page-help.js +2 -2
- package/lib/page-tabs.js +2 -2
- package/lib/page.js +2 -2
- package/lib/progress-chart.js +2 -2
- package/lib/progress.js +2 -2
- package/lib/report-form-list.js +1 -1
- package/lib/report-preview.js +2 -2
- package/lib/router-view.js +1 -1
- package/lib/scope.js +2 -2
- package/lib/search.js +2 -2
- package/lib/step-item.js +2 -2
- package/lib/step.js +2 -2
- package/lib/tab-bar.js +1 -1
- package/lib/task-list-page.js +2 -2
- package/lib/task-list.js +2 -2
- package/lib/text-editor.js +2 -2
- package/lib/text.js +2 -2
- package/lib/title.js +2 -2
- package/lib/visual-config-page.js +2 -2
- package/package.json +2 -2
- package/lib/0.index.js +0 -1
- package/lib/1.index.js +0 -1
- package/lib/1.js +0 -1
- package/lib/10.css +0 -4
- package/lib/10.index.js +0 -1
- package/lib/11.css +0 -4
- package/lib/11.index.js +0 -10
- package/lib/12.index.js +0 -1
- package/lib/13.index.js +0 -1
- package/lib/14.index.js +0 -1
- package/lib/15.index.js +0 -1
- package/lib/16.index.js +0 -1
- package/lib/2.index.js +0 -1
- package/lib/3.index.js +0 -14
- package/lib/4.index.js +0 -1
- package/lib/5.index.js +0 -1
- package/lib/6.index.js +0 -1
- package/lib/7.index.js +0 -1
- package/lib/8.css +0 -2
- package/lib/8.index.js +0 -1
- package/lib/9.css +0 -2
- package/lib/9.index.js +0 -1
- package/lib/apply_bg.png +0 -0
- package/lib/auto.png +0 -0
- package/lib/bpmn.eot +0 -0
- package/lib/bpmn.svg +0 -224
- package/lib/bpmn.ttf +0 -0
- package/lib/bpmn.woff +0 -0
- package/lib/bpmn.woff2 +0 -0
- package/lib/contact_bg.png +0 -0
- package/lib/hall_banner.png +0 -0
- package/lib/hr.png +0 -0
- package/lib/index.css +0 -2394
- package/lib/index.js +0 -92
- package/lib/m_hall_banner.png +0 -0
- package/lib/module.png +0 -0
- package/lib/staff.png +0 -0
- package/lib/static/switch_app.png +0 -0
- package/lib/success.png +0 -0
- package/lib/switch_app.png +0 -0
- package/lib/user_bg.png +0 -0
|
@@ -0,0 +1,1575 @@
|
|
|
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 = 412);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 1:
|
|
91
|
+
/***/ (function(module, exports) {
|
|
92
|
+
|
|
93
|
+
module.exports = require("core-js/modules/es.object.to-string.js");
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ 106:
|
|
98
|
+
/***/ (function(module, exports) {
|
|
99
|
+
|
|
100
|
+
module.exports = require("core-js/modules/es.string.trim.js");
|
|
101
|
+
|
|
102
|
+
/***/ }),
|
|
103
|
+
|
|
104
|
+
/***/ 11:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("core-js/modules/es.array.map.js");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 12:
|
|
112
|
+
/***/ (function(module, exports) {
|
|
113
|
+
|
|
114
|
+
module.exports = require("core-js/modules/es.regexp.exec.js");
|
|
115
|
+
|
|
116
|
+
/***/ }),
|
|
117
|
+
|
|
118
|
+
/***/ 13:
|
|
119
|
+
/***/ (function(module, exports) {
|
|
120
|
+
|
|
121
|
+
module.exports = require("core-js/modules/es.array.concat.js");
|
|
122
|
+
|
|
123
|
+
/***/ }),
|
|
124
|
+
|
|
125
|
+
/***/ 17:
|
|
126
|
+
/***/ (function(module, exports) {
|
|
127
|
+
|
|
128
|
+
module.exports = require("core-js/modules/es.number.constructor.js");
|
|
129
|
+
|
|
130
|
+
/***/ }),
|
|
131
|
+
|
|
132
|
+
/***/ 18:
|
|
133
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
134
|
+
|
|
135
|
+
"use strict";
|
|
136
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
137
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
138
|
+
|
|
139
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
140
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
141
|
+
// be included in the final webpack user bundle.
|
|
142
|
+
|
|
143
|
+
function normalizeComponent(
|
|
144
|
+
scriptExports,
|
|
145
|
+
render,
|
|
146
|
+
staticRenderFns,
|
|
147
|
+
functionalTemplate,
|
|
148
|
+
injectStyles,
|
|
149
|
+
scopeId,
|
|
150
|
+
moduleIdentifier /* server only */,
|
|
151
|
+
shadowMode /* vue-cli only */
|
|
152
|
+
) {
|
|
153
|
+
// Vue.extend constructor export interop
|
|
154
|
+
var options =
|
|
155
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
156
|
+
|
|
157
|
+
// render functions
|
|
158
|
+
if (render) {
|
|
159
|
+
options.render = render
|
|
160
|
+
options.staticRenderFns = staticRenderFns
|
|
161
|
+
options._compiled = true
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// functional template
|
|
165
|
+
if (functionalTemplate) {
|
|
166
|
+
options.functional = true
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// scopedId
|
|
170
|
+
if (scopeId) {
|
|
171
|
+
options._scopeId = 'data-v-' + scopeId
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
var hook
|
|
175
|
+
if (moduleIdentifier) {
|
|
176
|
+
// server build
|
|
177
|
+
hook = function (context) {
|
|
178
|
+
// 2.3 injection
|
|
179
|
+
context =
|
|
180
|
+
context || // cached call
|
|
181
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
182
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
183
|
+
// 2.2 with runInNewContext: true
|
|
184
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
185
|
+
context = __VUE_SSR_CONTEXT__
|
|
186
|
+
}
|
|
187
|
+
// inject component styles
|
|
188
|
+
if (injectStyles) {
|
|
189
|
+
injectStyles.call(this, context)
|
|
190
|
+
}
|
|
191
|
+
// register component module identifier for async chunk inferrence
|
|
192
|
+
if (context && context._registeredComponents) {
|
|
193
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// used by ssr in case component is cached and beforeCreate
|
|
197
|
+
// never gets called
|
|
198
|
+
options._ssrRegister = hook
|
|
199
|
+
} else if (injectStyles) {
|
|
200
|
+
hook = shadowMode
|
|
201
|
+
? function () {
|
|
202
|
+
injectStyles.call(
|
|
203
|
+
this,
|
|
204
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
205
|
+
)
|
|
206
|
+
}
|
|
207
|
+
: injectStyles
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (hook) {
|
|
211
|
+
if (options.functional) {
|
|
212
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
213
|
+
// go through the normalizer
|
|
214
|
+
options._injectStyles = hook
|
|
215
|
+
// register for functional component in vue file
|
|
216
|
+
var originalRender = options.render
|
|
217
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
218
|
+
hook.call(context)
|
|
219
|
+
return originalRender(h, context)
|
|
220
|
+
}
|
|
221
|
+
} else {
|
|
222
|
+
// inject component registration as beforeCreate hook
|
|
223
|
+
var existing = options.beforeCreate
|
|
224
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return {
|
|
229
|
+
exports: scriptExports,
|
|
230
|
+
options: options
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
/***/ }),
|
|
236
|
+
|
|
237
|
+
/***/ 19:
|
|
238
|
+
/***/ (function(module, exports) {
|
|
239
|
+
|
|
240
|
+
module.exports = require("core-js/modules/es.array.push.js");
|
|
241
|
+
|
|
242
|
+
/***/ }),
|
|
243
|
+
|
|
244
|
+
/***/ 229:
|
|
245
|
+
/***/ (function(module, exports) {
|
|
246
|
+
|
|
247
|
+
module.exports = require("element-ui/packages/color-picker/src/color");
|
|
248
|
+
|
|
249
|
+
/***/ }),
|
|
250
|
+
|
|
251
|
+
/***/ 230:
|
|
252
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
253
|
+
|
|
254
|
+
"use strict";
|
|
255
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28);
|
|
256
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
257
|
+
// Imports
|
|
258
|
+
|
|
259
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
260
|
+
// Module
|
|
261
|
+
___CSS_LOADER_EXPORT___.push([module.i, ".epx-color-picker-dropdown{width:320px}.epx-color-picker-dropdown .el-color-dropdown__value{width:200px;display:flex}.epx-color-picker-dropdown .el-color-dropdown__value .el-input-number--mini{width:60px;margin-left:10px}.epx-color-picker-dropdown__right{float:right;display:flex}.epx-color-picker-dropdown__right .el-color-hue-slider{margin-left:10px}.epx-color-picker-dropdown__range{position:relative;box-sizing:border-box;width:12px;height:180px;padding:2px 0;float:right;margin-left:8px}.epx-color-picker-dropdown__range-bar{height:100%;border:1px solid #e3e3e3}.epx-color-picker-dropdown__range-btn{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:100%;height:4px;border-radius:1px;background:#fff;border:1px solid #f0f0f0;box-shadow:0 0 2px rgba(0,0,0,0.6);z-index:1}.epx-color-picker-dropdown__range-btn.is-active{height:6px;border-color:#0874e7}[data-theme=purple] .epx-color-picker-dropdown__range-btn.is-active{border-color:#7569e2}[data-theme=palevioletred] .epx-color-picker-dropdown__range-btn.is-active{border-color:#ce4545}[data-theme=forestgreen] .epx-color-picker-dropdown__range-btn.is-active{border-color:#3d8a50}[data-theme=deepblue] .epx-color-picker-dropdown__range-btn.is-active{border-color:#0f5fbd}[data-theme=orange] .epx-color-picker-dropdown__range-btn.is-active{border-color:#ea6000}[data-theme=skyblue] .epx-color-picker-dropdown__range-btn.is-active{border-color:#1a4586}[data-theme=aurorablue] .epx-color-picker-dropdown__range-btn.is-active{border-color:#383b9e}[data-theme=tiffanyblue] .epx-color-picker-dropdown__range-btn.is-active{border-color:#00aaad}\n", ""]);
|
|
262
|
+
// Exports
|
|
263
|
+
/* harmony default export */ __webpack_exports__["a"] = (___CSS_LOADER_EXPORT___);
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
/***/ }),
|
|
267
|
+
|
|
268
|
+
/***/ 25:
|
|
269
|
+
/***/ (function(module, exports) {
|
|
270
|
+
|
|
271
|
+
module.exports = require("core-js/modules/es.error.cause.js");
|
|
272
|
+
|
|
273
|
+
/***/ }),
|
|
274
|
+
|
|
275
|
+
/***/ 27:
|
|
276
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
277
|
+
|
|
278
|
+
"use strict";
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
var isOldIE = function isOldIE() {
|
|
282
|
+
var memo;
|
|
283
|
+
return function memorize() {
|
|
284
|
+
if (typeof memo === 'undefined') {
|
|
285
|
+
// Test for IE <= 9 as proposed by Browserhacks
|
|
286
|
+
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
287
|
+
// Tests for existence of standard globals is to allow style-loader
|
|
288
|
+
// to operate correctly into non-standard environments
|
|
289
|
+
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
290
|
+
memo = Boolean(window && document && document.all && !window.atob);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
return memo;
|
|
294
|
+
};
|
|
295
|
+
}();
|
|
296
|
+
|
|
297
|
+
var getTarget = function getTarget() {
|
|
298
|
+
var memo = {};
|
|
299
|
+
return function memorize(target) {
|
|
300
|
+
if (typeof memo[target] === 'undefined') {
|
|
301
|
+
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
302
|
+
|
|
303
|
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
304
|
+
try {
|
|
305
|
+
// This will throw an exception if access to iframe is blocked
|
|
306
|
+
// due to cross-origin restrictions
|
|
307
|
+
styleTarget = styleTarget.contentDocument.head;
|
|
308
|
+
} catch (e) {
|
|
309
|
+
// istanbul ignore next
|
|
310
|
+
styleTarget = null;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
memo[target] = styleTarget;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return memo[target];
|
|
318
|
+
};
|
|
319
|
+
}();
|
|
320
|
+
|
|
321
|
+
var stylesInDom = [];
|
|
322
|
+
|
|
323
|
+
function getIndexByIdentifier(identifier) {
|
|
324
|
+
var result = -1;
|
|
325
|
+
|
|
326
|
+
for (var i = 0; i < stylesInDom.length; i++) {
|
|
327
|
+
if (stylesInDom[i].identifier === identifier) {
|
|
328
|
+
result = i;
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
return result;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function modulesToDom(list, options) {
|
|
337
|
+
var idCountMap = {};
|
|
338
|
+
var identifiers = [];
|
|
339
|
+
|
|
340
|
+
for (var i = 0; i < list.length; i++) {
|
|
341
|
+
var item = list[i];
|
|
342
|
+
var id = options.base ? item[0] + options.base : item[0];
|
|
343
|
+
var count = idCountMap[id] || 0;
|
|
344
|
+
var identifier = "".concat(id, " ").concat(count);
|
|
345
|
+
idCountMap[id] = count + 1;
|
|
346
|
+
var index = getIndexByIdentifier(identifier);
|
|
347
|
+
var obj = {
|
|
348
|
+
css: item[1],
|
|
349
|
+
media: item[2],
|
|
350
|
+
sourceMap: item[3]
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
if (index !== -1) {
|
|
354
|
+
stylesInDom[index].references++;
|
|
355
|
+
stylesInDom[index].updater(obj);
|
|
356
|
+
} else {
|
|
357
|
+
stylesInDom.push({
|
|
358
|
+
identifier: identifier,
|
|
359
|
+
updater: addStyle(obj, options),
|
|
360
|
+
references: 1
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
identifiers.push(identifier);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
return identifiers;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
function insertStyleElement(options) {
|
|
371
|
+
var style = document.createElement('style');
|
|
372
|
+
var attributes = options.attributes || {};
|
|
373
|
+
|
|
374
|
+
if (typeof attributes.nonce === 'undefined') {
|
|
375
|
+
var nonce = true ? __webpack_require__.nc : undefined;
|
|
376
|
+
|
|
377
|
+
if (nonce) {
|
|
378
|
+
attributes.nonce = nonce;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
Object.keys(attributes).forEach(function (key) {
|
|
383
|
+
style.setAttribute(key, attributes[key]);
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
if (typeof options.insert === 'function') {
|
|
387
|
+
options.insert(style);
|
|
388
|
+
} else {
|
|
389
|
+
var target = getTarget(options.insert || 'head');
|
|
390
|
+
|
|
391
|
+
if (!target) {
|
|
392
|
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
target.appendChild(style);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
return style;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
function removeStyleElement(style) {
|
|
402
|
+
// istanbul ignore if
|
|
403
|
+
if (style.parentNode === null) {
|
|
404
|
+
return false;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
style.parentNode.removeChild(style);
|
|
408
|
+
}
|
|
409
|
+
/* istanbul ignore next */
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
var replaceText = function replaceText() {
|
|
413
|
+
var textStore = [];
|
|
414
|
+
return function replace(index, replacement) {
|
|
415
|
+
textStore[index] = replacement;
|
|
416
|
+
return textStore.filter(Boolean).join('\n');
|
|
417
|
+
};
|
|
418
|
+
}();
|
|
419
|
+
|
|
420
|
+
function applyToSingletonTag(style, index, remove, obj) {
|
|
421
|
+
var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
|
|
422
|
+
|
|
423
|
+
/* istanbul ignore if */
|
|
424
|
+
|
|
425
|
+
if (style.styleSheet) {
|
|
426
|
+
style.styleSheet.cssText = replaceText(index, css);
|
|
427
|
+
} else {
|
|
428
|
+
var cssNode = document.createTextNode(css);
|
|
429
|
+
var childNodes = style.childNodes;
|
|
430
|
+
|
|
431
|
+
if (childNodes[index]) {
|
|
432
|
+
style.removeChild(childNodes[index]);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (childNodes.length) {
|
|
436
|
+
style.insertBefore(cssNode, childNodes[index]);
|
|
437
|
+
} else {
|
|
438
|
+
style.appendChild(cssNode);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
function applyToTag(style, options, obj) {
|
|
444
|
+
var css = obj.css;
|
|
445
|
+
var media = obj.media;
|
|
446
|
+
var sourceMap = obj.sourceMap;
|
|
447
|
+
|
|
448
|
+
if (media) {
|
|
449
|
+
style.setAttribute('media', media);
|
|
450
|
+
} else {
|
|
451
|
+
style.removeAttribute('media');
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
if (sourceMap && typeof btoa !== 'undefined') {
|
|
455
|
+
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
456
|
+
} // For old IE
|
|
457
|
+
|
|
458
|
+
/* istanbul ignore if */
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
if (style.styleSheet) {
|
|
462
|
+
style.styleSheet.cssText = css;
|
|
463
|
+
} else {
|
|
464
|
+
while (style.firstChild) {
|
|
465
|
+
style.removeChild(style.firstChild);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
style.appendChild(document.createTextNode(css));
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
var singleton = null;
|
|
473
|
+
var singletonCounter = 0;
|
|
474
|
+
|
|
475
|
+
function addStyle(obj, options) {
|
|
476
|
+
var style;
|
|
477
|
+
var update;
|
|
478
|
+
var remove;
|
|
479
|
+
|
|
480
|
+
if (options.singleton) {
|
|
481
|
+
var styleIndex = singletonCounter++;
|
|
482
|
+
style = singleton || (singleton = insertStyleElement(options));
|
|
483
|
+
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
484
|
+
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
485
|
+
} else {
|
|
486
|
+
style = insertStyleElement(options);
|
|
487
|
+
update = applyToTag.bind(null, style, options);
|
|
488
|
+
|
|
489
|
+
remove = function remove() {
|
|
490
|
+
removeStyleElement(style);
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
update(obj);
|
|
495
|
+
return function updateStyle(newObj) {
|
|
496
|
+
if (newObj) {
|
|
497
|
+
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
update(obj = newObj);
|
|
502
|
+
} else {
|
|
503
|
+
remove();
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
module.exports = function (list, options) {
|
|
509
|
+
options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
510
|
+
// tags it will allow on a page
|
|
511
|
+
|
|
512
|
+
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
513
|
+
options.singleton = isOldIE();
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
list = list || [];
|
|
517
|
+
var lastIdentifiers = modulesToDom(list, options);
|
|
518
|
+
return function update(newList) {
|
|
519
|
+
newList = newList || [];
|
|
520
|
+
|
|
521
|
+
if (Object.prototype.toString.call(newList) !== '[object Array]') {
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
526
|
+
var identifier = lastIdentifiers[i];
|
|
527
|
+
var index = getIndexByIdentifier(identifier);
|
|
528
|
+
stylesInDom[index].references--;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
var newLastIdentifiers = modulesToDom(newList, options);
|
|
532
|
+
|
|
533
|
+
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
534
|
+
var _identifier = lastIdentifiers[_i];
|
|
535
|
+
|
|
536
|
+
var _index = getIndexByIdentifier(_identifier);
|
|
537
|
+
|
|
538
|
+
if (stylesInDom[_index].references === 0) {
|
|
539
|
+
stylesInDom[_index].updater();
|
|
540
|
+
|
|
541
|
+
stylesInDom.splice(_index, 1);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
lastIdentifiers = newLastIdentifiers;
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
/***/ }),
|
|
550
|
+
|
|
551
|
+
/***/ 28:
|
|
552
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
553
|
+
|
|
554
|
+
"use strict";
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
/*
|
|
558
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
559
|
+
Author Tobias Koppers @sokra
|
|
560
|
+
*/
|
|
561
|
+
// css base code, injected by the css-loader
|
|
562
|
+
// eslint-disable-next-line func-names
|
|
563
|
+
__webpack_require__(1);
|
|
564
|
+
__webpack_require__(33);
|
|
565
|
+
__webpack_require__(11);
|
|
566
|
+
__webpack_require__(13);
|
|
567
|
+
__webpack_require__(1);
|
|
568
|
+
__webpack_require__(33);
|
|
569
|
+
__webpack_require__(11);
|
|
570
|
+
__webpack_require__(13);
|
|
571
|
+
__webpack_require__(19);
|
|
572
|
+
module.exports = function (cssWithMappingToString) {
|
|
573
|
+
var list = []; // return the list of modules as css string
|
|
574
|
+
|
|
575
|
+
list.toString = function toString() {
|
|
576
|
+
return this.map(function (item) {
|
|
577
|
+
var content = cssWithMappingToString(item);
|
|
578
|
+
if (item[2]) {
|
|
579
|
+
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
580
|
+
}
|
|
581
|
+
return content;
|
|
582
|
+
}).join("");
|
|
583
|
+
}; // import a list of modules into the list
|
|
584
|
+
// eslint-disable-next-line func-names
|
|
585
|
+
|
|
586
|
+
list.i = function (modules, mediaQuery, dedupe) {
|
|
587
|
+
if (typeof modules === "string") {
|
|
588
|
+
// eslint-disable-next-line no-param-reassign
|
|
589
|
+
modules = [[null, modules, ""]];
|
|
590
|
+
}
|
|
591
|
+
var alreadyImportedModules = {};
|
|
592
|
+
if (dedupe) {
|
|
593
|
+
for (var i = 0; i < this.length; i++) {
|
|
594
|
+
// eslint-disable-next-line prefer-destructuring
|
|
595
|
+
var id = this[i][0];
|
|
596
|
+
if (id != null) {
|
|
597
|
+
alreadyImportedModules[id] = true;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
for (var _i = 0; _i < modules.length; _i++) {
|
|
602
|
+
var item = [].concat(modules[_i]);
|
|
603
|
+
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
604
|
+
// eslint-disable-next-line no-continue
|
|
605
|
+
continue;
|
|
606
|
+
}
|
|
607
|
+
if (mediaQuery) {
|
|
608
|
+
if (!item[2]) {
|
|
609
|
+
item[2] = mediaQuery;
|
|
610
|
+
} else {
|
|
611
|
+
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
list.push(item);
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
return list;
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
/***/ }),
|
|
621
|
+
|
|
622
|
+
/***/ 29:
|
|
623
|
+
/***/ (function(module, exports) {
|
|
624
|
+
|
|
625
|
+
module.exports = require("core-js/modules/es.string.replace.js");
|
|
626
|
+
|
|
627
|
+
/***/ }),
|
|
628
|
+
|
|
629
|
+
/***/ 31:
|
|
630
|
+
/***/ (function(module, exports) {
|
|
631
|
+
|
|
632
|
+
module.exports = require("core-js/modules/es.array.includes.js");
|
|
633
|
+
|
|
634
|
+
/***/ }),
|
|
635
|
+
|
|
636
|
+
/***/ 32:
|
|
637
|
+
/***/ (function(module, exports) {
|
|
638
|
+
|
|
639
|
+
module.exports = require("core-js/modules/es.string.includes.js");
|
|
640
|
+
|
|
641
|
+
/***/ }),
|
|
642
|
+
|
|
643
|
+
/***/ 33:
|
|
644
|
+
/***/ (function(module, exports) {
|
|
645
|
+
|
|
646
|
+
module.exports = require("core-js/modules/es.array.join.js");
|
|
647
|
+
|
|
648
|
+
/***/ }),
|
|
649
|
+
|
|
650
|
+
/***/ 342:
|
|
651
|
+
/***/ (function(module, exports) {
|
|
652
|
+
|
|
653
|
+
module.exports = require("element-ui/packages/color-picker/src/components/sv-panel");
|
|
654
|
+
|
|
655
|
+
/***/ }),
|
|
656
|
+
|
|
657
|
+
/***/ 343:
|
|
658
|
+
/***/ (function(module, exports) {
|
|
659
|
+
|
|
660
|
+
module.exports = require("element-ui/packages/color-picker/src/components/hue-slider");
|
|
661
|
+
|
|
662
|
+
/***/ }),
|
|
663
|
+
|
|
664
|
+
/***/ 344:
|
|
665
|
+
/***/ (function(module, exports) {
|
|
666
|
+
|
|
667
|
+
module.exports = require("element-ui/packages/color-picker/src/components/alpha-slider");
|
|
668
|
+
|
|
669
|
+
/***/ }),
|
|
670
|
+
|
|
671
|
+
/***/ 345:
|
|
672
|
+
/***/ (function(module, exports) {
|
|
673
|
+
|
|
674
|
+
module.exports = require("element-ui/packages/color-picker/src/components/predefine");
|
|
675
|
+
|
|
676
|
+
/***/ }),
|
|
677
|
+
|
|
678
|
+
/***/ 346:
|
|
679
|
+
/***/ (function(module, exports) {
|
|
680
|
+
|
|
681
|
+
module.exports = require("element-ui/src/utils/vue-popper");
|
|
682
|
+
|
|
683
|
+
/***/ }),
|
|
684
|
+
|
|
685
|
+
/***/ 347:
|
|
686
|
+
/***/ (function(module, exports) {
|
|
687
|
+
|
|
688
|
+
module.exports = require("element-ui/src/mixins/locale");
|
|
689
|
+
|
|
690
|
+
/***/ }),
|
|
691
|
+
|
|
692
|
+
/***/ 348:
|
|
693
|
+
/***/ (function(module, exports) {
|
|
694
|
+
|
|
695
|
+
module.exports = require("element-ui/packages/input");
|
|
696
|
+
|
|
697
|
+
/***/ }),
|
|
698
|
+
|
|
699
|
+
/***/ 349:
|
|
700
|
+
/***/ (function(module, exports) {
|
|
701
|
+
|
|
702
|
+
module.exports = require("element-ui/packages/button");
|
|
703
|
+
|
|
704
|
+
/***/ }),
|
|
705
|
+
|
|
706
|
+
/***/ 350:
|
|
707
|
+
/***/ (function(module, exports) {
|
|
708
|
+
|
|
709
|
+
module.exports = require("element-ui/src/utils/clickoutside");
|
|
710
|
+
|
|
711
|
+
/***/ }),
|
|
712
|
+
|
|
713
|
+
/***/ 351:
|
|
714
|
+
/***/ (function(module, exports) {
|
|
715
|
+
|
|
716
|
+
module.exports = require("element-ui/src/mixins/emitter");
|
|
717
|
+
|
|
718
|
+
/***/ }),
|
|
719
|
+
|
|
720
|
+
/***/ 412:
|
|
721
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
722
|
+
|
|
723
|
+
"use strict";
|
|
724
|
+
// ESM COMPAT FLAG
|
|
725
|
+
__webpack_require__.r(__webpack_exports__);
|
|
726
|
+
|
|
727
|
+
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
728
|
+
var es_function_name_js_ = __webpack_require__(8);
|
|
729
|
+
|
|
730
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/color-picker/ColorPicker.vue?vue&type=template&id=04661838&
|
|
731
|
+
var render = function () {
|
|
732
|
+
var _vm = this
|
|
733
|
+
var _h = _vm.$createElement
|
|
734
|
+
var _c = _vm._self._c || _h
|
|
735
|
+
return _c(
|
|
736
|
+
"div",
|
|
737
|
+
{
|
|
738
|
+
directives: [
|
|
739
|
+
{
|
|
740
|
+
name: "clickoutside",
|
|
741
|
+
rawName: "v-clickoutside",
|
|
742
|
+
value: _vm.hide,
|
|
743
|
+
expression: "hide",
|
|
744
|
+
},
|
|
745
|
+
],
|
|
746
|
+
class: [
|
|
747
|
+
"el-color-picker",
|
|
748
|
+
_vm.colorDisabled ? "is-disabled" : "",
|
|
749
|
+
_vm.colorSize ? "el-color-picker--" + _vm.colorSize : "",
|
|
750
|
+
],
|
|
751
|
+
},
|
|
752
|
+
[
|
|
753
|
+
_vm.colorDisabled
|
|
754
|
+
? _c("div", { staticClass: "el-color-picker__mask" })
|
|
755
|
+
: _vm._e(),
|
|
756
|
+
_c(
|
|
757
|
+
"div",
|
|
758
|
+
{
|
|
759
|
+
staticClass: "el-color-picker__trigger",
|
|
760
|
+
on: { click: _vm.handleTrigger },
|
|
761
|
+
},
|
|
762
|
+
[
|
|
763
|
+
_c(
|
|
764
|
+
"span",
|
|
765
|
+
{
|
|
766
|
+
staticClass: "el-color-picker__color",
|
|
767
|
+
class: { "is-alpha": _vm.showAlpha },
|
|
768
|
+
},
|
|
769
|
+
[
|
|
770
|
+
_c("span", {
|
|
771
|
+
staticClass: "el-color-picker__color-inner",
|
|
772
|
+
style: {
|
|
773
|
+
background: _vm.displayedColor,
|
|
774
|
+
},
|
|
775
|
+
}),
|
|
776
|
+
!_vm.value && !_vm.showPanelColor
|
|
777
|
+
? _c("span", {
|
|
778
|
+
staticClass: "el-color-picker__empty el-icon-close",
|
|
779
|
+
})
|
|
780
|
+
: _vm._e(),
|
|
781
|
+
]
|
|
782
|
+
),
|
|
783
|
+
_c("span", {
|
|
784
|
+
directives: [
|
|
785
|
+
{
|
|
786
|
+
name: "show",
|
|
787
|
+
rawName: "v-show",
|
|
788
|
+
value: _vm.value || _vm.showPanelColor,
|
|
789
|
+
expression: "value || showPanelColor",
|
|
790
|
+
},
|
|
791
|
+
],
|
|
792
|
+
staticClass: "el-color-picker__icon el-icon-arrow-down",
|
|
793
|
+
}),
|
|
794
|
+
]
|
|
795
|
+
),
|
|
796
|
+
_c("picker-dropdown", {
|
|
797
|
+
ref: "dropdown",
|
|
798
|
+
class: ["el-color-picker__panel", _vm.popperClass || ""],
|
|
799
|
+
attrs: {
|
|
800
|
+
color: _vm.color,
|
|
801
|
+
"show-alpha": _vm.showAlpha,
|
|
802
|
+
predefine: _vm.predefine,
|
|
803
|
+
},
|
|
804
|
+
on: {
|
|
805
|
+
pick: _vm.confirmValue,
|
|
806
|
+
clear: _vm.clearValue,
|
|
807
|
+
"set-value": _vm.setValue,
|
|
808
|
+
},
|
|
809
|
+
model: {
|
|
810
|
+
value: _vm.showPicker,
|
|
811
|
+
callback: function ($$v) {
|
|
812
|
+
_vm.showPicker = $$v
|
|
813
|
+
},
|
|
814
|
+
expression: "showPicker",
|
|
815
|
+
},
|
|
816
|
+
}),
|
|
817
|
+
],
|
|
818
|
+
1
|
|
819
|
+
)
|
|
820
|
+
}
|
|
821
|
+
var staticRenderFns = []
|
|
822
|
+
render._withStripped = true
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
// CONCATENATED MODULE: ./src/frame/packages/color-picker/ColorPicker.vue?vue&type=template&id=04661838&
|
|
826
|
+
|
|
827
|
+
// EXTERNAL MODULE: external "core-js/modules/es.error.cause.js"
|
|
828
|
+
var es_error_cause_js_ = __webpack_require__(25);
|
|
829
|
+
|
|
830
|
+
// EXTERNAL MODULE: external "element-ui/packages/color-picker/src/color"
|
|
831
|
+
var color_ = __webpack_require__(229);
|
|
832
|
+
var color_default = /*#__PURE__*/__webpack_require__.n(color_);
|
|
833
|
+
|
|
834
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/color-picker/components/picker-dropdown.vue?vue&type=template&id=6046202a&
|
|
835
|
+
var picker_dropdownvue_type_template_id_6046202a_render = function () {
|
|
836
|
+
var _vm = this
|
|
837
|
+
var _h = _vm.$createElement
|
|
838
|
+
var _c = _vm._self._c || _h
|
|
839
|
+
return _c(
|
|
840
|
+
"transition",
|
|
841
|
+
{ attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } },
|
|
842
|
+
[
|
|
843
|
+
_c(
|
|
844
|
+
"div",
|
|
845
|
+
{
|
|
846
|
+
directives: [
|
|
847
|
+
{
|
|
848
|
+
name: "show",
|
|
849
|
+
rawName: "v-show",
|
|
850
|
+
value: _vm.showPopper,
|
|
851
|
+
expression: "showPopper",
|
|
852
|
+
},
|
|
853
|
+
],
|
|
854
|
+
staticClass: "el-color-dropdown epx-color-picker-dropdown",
|
|
855
|
+
},
|
|
856
|
+
[
|
|
857
|
+
_c(
|
|
858
|
+
"div",
|
|
859
|
+
{ staticClass: "el-color-dropdown__main-wrapper" },
|
|
860
|
+
[
|
|
861
|
+
_c(
|
|
862
|
+
"div",
|
|
863
|
+
{ staticClass: "epx-color-picker-dropdown__right" },
|
|
864
|
+
[
|
|
865
|
+
_c("hue-slider", {
|
|
866
|
+
ref: "hue",
|
|
867
|
+
attrs: { color: _vm.color, vertical: "" },
|
|
868
|
+
}),
|
|
869
|
+
_c(
|
|
870
|
+
"div",
|
|
871
|
+
{ staticClass: "epx-color-picker-dropdown__range" },
|
|
872
|
+
[
|
|
873
|
+
_c("div", {
|
|
874
|
+
staticClass: "epx-color-picker-dropdown__range-bar",
|
|
875
|
+
style: { background: _vm.currentGradientColor },
|
|
876
|
+
}),
|
|
877
|
+
_c("div", {
|
|
878
|
+
class: [
|
|
879
|
+
"epx-color-picker-dropdown__range-btn",
|
|
880
|
+
{ "is-active": _vm.activeRangeBtn === "start" },
|
|
881
|
+
],
|
|
882
|
+
style: { top: _vm.rangeStartTop + "px" },
|
|
883
|
+
on: {
|
|
884
|
+
click: function ($event) {
|
|
885
|
+
_vm.activeRangeBtn = "start"
|
|
886
|
+
},
|
|
887
|
+
mousedown: _vm.dragStart1,
|
|
888
|
+
},
|
|
889
|
+
}),
|
|
890
|
+
_c("div", {
|
|
891
|
+
class: [
|
|
892
|
+
"epx-color-picker-dropdown__range-btn",
|
|
893
|
+
{ "is-active": _vm.activeRangeBtn === "end" },
|
|
894
|
+
],
|
|
895
|
+
style: { top: _vm.rangeEndTop + "px" },
|
|
896
|
+
on: {
|
|
897
|
+
click: function ($event) {
|
|
898
|
+
_vm.activeRangeBtn = "end"
|
|
899
|
+
},
|
|
900
|
+
mousedown: _vm.dragStart2,
|
|
901
|
+
},
|
|
902
|
+
}),
|
|
903
|
+
]
|
|
904
|
+
),
|
|
905
|
+
],
|
|
906
|
+
1
|
|
907
|
+
),
|
|
908
|
+
_c("sv-panel", { ref: "sl", attrs: { color: _vm.color } }),
|
|
909
|
+
],
|
|
910
|
+
1
|
|
911
|
+
),
|
|
912
|
+
_vm.showAlpha
|
|
913
|
+
? _c("alpha-slider", { ref: "alpha", attrs: { color: _vm.color } })
|
|
914
|
+
: _vm._e(),
|
|
915
|
+
_vm.predefine
|
|
916
|
+
? _c("predefine", {
|
|
917
|
+
attrs: { color: _vm.color, colors: _vm.predefine },
|
|
918
|
+
})
|
|
919
|
+
: _vm._e(),
|
|
920
|
+
_c(
|
|
921
|
+
"div",
|
|
922
|
+
{ staticClass: "el-color-dropdown__btns" },
|
|
923
|
+
[
|
|
924
|
+
_c(
|
|
925
|
+
"span",
|
|
926
|
+
{ staticClass: "el-color-dropdown__value" },
|
|
927
|
+
[
|
|
928
|
+
_c("el-input", {
|
|
929
|
+
attrs: { "validate-event": false, size: "mini" },
|
|
930
|
+
on: { blur: _vm.handleConfirm },
|
|
931
|
+
nativeOn: {
|
|
932
|
+
keyup: function ($event) {
|
|
933
|
+
if (
|
|
934
|
+
!$event.type.indexOf("key") &&
|
|
935
|
+
_vm._k(
|
|
936
|
+
$event.keyCode,
|
|
937
|
+
"enter",
|
|
938
|
+
13,
|
|
939
|
+
$event.key,
|
|
940
|
+
"Enter"
|
|
941
|
+
)
|
|
942
|
+
) {
|
|
943
|
+
return null
|
|
944
|
+
}
|
|
945
|
+
return _vm.handleConfirm($event)
|
|
946
|
+
},
|
|
947
|
+
},
|
|
948
|
+
model: {
|
|
949
|
+
value: _vm.customInput,
|
|
950
|
+
callback: function ($$v) {
|
|
951
|
+
_vm.customInput = $$v
|
|
952
|
+
},
|
|
953
|
+
expression: "customInput",
|
|
954
|
+
},
|
|
955
|
+
}),
|
|
956
|
+
_c("el-input-number", {
|
|
957
|
+
attrs: {
|
|
958
|
+
"validate-event": false,
|
|
959
|
+
controls: false,
|
|
960
|
+
size: "mini",
|
|
961
|
+
},
|
|
962
|
+
on: { blur: _vm.handleConfirm },
|
|
963
|
+
nativeOn: {
|
|
964
|
+
keyup: function ($event) {
|
|
965
|
+
if (
|
|
966
|
+
!$event.type.indexOf("key") &&
|
|
967
|
+
_vm._k(
|
|
968
|
+
$event.keyCode,
|
|
969
|
+
"enter",
|
|
970
|
+
13,
|
|
971
|
+
$event.key,
|
|
972
|
+
"Enter"
|
|
973
|
+
)
|
|
974
|
+
) {
|
|
975
|
+
return null
|
|
976
|
+
}
|
|
977
|
+
return _vm.handleConfirm($event)
|
|
978
|
+
},
|
|
979
|
+
},
|
|
980
|
+
model: {
|
|
981
|
+
value: _vm.angle,
|
|
982
|
+
callback: function ($$v) {
|
|
983
|
+
_vm.angle = $$v
|
|
984
|
+
},
|
|
985
|
+
expression: "angle",
|
|
986
|
+
},
|
|
987
|
+
}),
|
|
988
|
+
],
|
|
989
|
+
1
|
|
990
|
+
),
|
|
991
|
+
_c(
|
|
992
|
+
"el-button",
|
|
993
|
+
{
|
|
994
|
+
staticClass: "el-color-dropdown__link-btn",
|
|
995
|
+
attrs: { size: "mini", type: "text" },
|
|
996
|
+
on: {
|
|
997
|
+
click: function ($event) {
|
|
998
|
+
return _vm.$emit("clear")
|
|
999
|
+
},
|
|
1000
|
+
},
|
|
1001
|
+
},
|
|
1002
|
+
[
|
|
1003
|
+
_vm._v(
|
|
1004
|
+
"\n " +
|
|
1005
|
+
_vm._s(_vm.t("el.colorpicker.clear")) +
|
|
1006
|
+
"\n "
|
|
1007
|
+
),
|
|
1008
|
+
]
|
|
1009
|
+
),
|
|
1010
|
+
_c(
|
|
1011
|
+
"el-button",
|
|
1012
|
+
{
|
|
1013
|
+
staticClass: "el-color-dropdown__btn",
|
|
1014
|
+
attrs: { plain: "", size: "mini" },
|
|
1015
|
+
on: { click: _vm.confirmValue },
|
|
1016
|
+
},
|
|
1017
|
+
[
|
|
1018
|
+
_vm._v(
|
|
1019
|
+
"\n " +
|
|
1020
|
+
_vm._s(_vm.t("el.colorpicker.confirm")) +
|
|
1021
|
+
"\n "
|
|
1022
|
+
),
|
|
1023
|
+
]
|
|
1024
|
+
),
|
|
1025
|
+
],
|
|
1026
|
+
1
|
|
1027
|
+
),
|
|
1028
|
+
],
|
|
1029
|
+
1
|
|
1030
|
+
),
|
|
1031
|
+
]
|
|
1032
|
+
)
|
|
1033
|
+
}
|
|
1034
|
+
var picker_dropdownvue_type_template_id_6046202a_staticRenderFns = []
|
|
1035
|
+
picker_dropdownvue_type_template_id_6046202a_render._withStripped = true
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
// CONCATENATED MODULE: ./src/frame/packages/color-picker/components/picker-dropdown.vue?vue&type=template&id=6046202a&
|
|
1039
|
+
|
|
1040
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.concat.js"
|
|
1041
|
+
var es_array_concat_js_ = __webpack_require__(13);
|
|
1042
|
+
|
|
1043
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.includes.js"
|
|
1044
|
+
var es_array_includes_js_ = __webpack_require__(31);
|
|
1045
|
+
|
|
1046
|
+
// EXTERNAL MODULE: external "core-js/modules/es.string.includes.js"
|
|
1047
|
+
var es_string_includes_js_ = __webpack_require__(32);
|
|
1048
|
+
|
|
1049
|
+
// EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
|
|
1050
|
+
var es_regexp_exec_js_ = __webpack_require__(12);
|
|
1051
|
+
|
|
1052
|
+
// EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
|
|
1053
|
+
var es_string_replace_js_ = __webpack_require__(29);
|
|
1054
|
+
|
|
1055
|
+
// EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
|
|
1056
|
+
var es_number_constructor_js_ = __webpack_require__(17);
|
|
1057
|
+
|
|
1058
|
+
// EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
|
|
1059
|
+
var es_string_trim_js_ = __webpack_require__(106);
|
|
1060
|
+
|
|
1061
|
+
// EXTERNAL MODULE: external "element-ui/packages/color-picker/src/components/sv-panel"
|
|
1062
|
+
var sv_panel_ = __webpack_require__(342);
|
|
1063
|
+
var sv_panel_default = /*#__PURE__*/__webpack_require__.n(sv_panel_);
|
|
1064
|
+
|
|
1065
|
+
// EXTERNAL MODULE: external "element-ui/packages/color-picker/src/components/hue-slider"
|
|
1066
|
+
var hue_slider_ = __webpack_require__(343);
|
|
1067
|
+
var hue_slider_default = /*#__PURE__*/__webpack_require__.n(hue_slider_);
|
|
1068
|
+
|
|
1069
|
+
// EXTERNAL MODULE: external "element-ui/packages/color-picker/src/components/alpha-slider"
|
|
1070
|
+
var alpha_slider_ = __webpack_require__(344);
|
|
1071
|
+
var alpha_slider_default = /*#__PURE__*/__webpack_require__.n(alpha_slider_);
|
|
1072
|
+
|
|
1073
|
+
// EXTERNAL MODULE: external "element-ui/packages/color-picker/src/components/predefine"
|
|
1074
|
+
var predefine_ = __webpack_require__(345);
|
|
1075
|
+
var predefine_default = /*#__PURE__*/__webpack_require__.n(predefine_);
|
|
1076
|
+
|
|
1077
|
+
// EXTERNAL MODULE: external "element-ui/src/utils/vue-popper"
|
|
1078
|
+
var vue_popper_ = __webpack_require__(346);
|
|
1079
|
+
var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
|
|
1080
|
+
|
|
1081
|
+
// EXTERNAL MODULE: external "element-ui/src/mixins/locale"
|
|
1082
|
+
var locale_ = __webpack_require__(347);
|
|
1083
|
+
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
1084
|
+
|
|
1085
|
+
// EXTERNAL MODULE: external "element-ui/packages/input"
|
|
1086
|
+
var input_ = __webpack_require__(348);
|
|
1087
|
+
var input_default = /*#__PURE__*/__webpack_require__.n(input_);
|
|
1088
|
+
|
|
1089
|
+
// EXTERNAL MODULE: external "element-ui/packages/button"
|
|
1090
|
+
var button_ = __webpack_require__(349);
|
|
1091
|
+
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
1092
|
+
|
|
1093
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/color-picker/components/picker-dropdown.vue?vue&type=script&lang=js&
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
//
|
|
1109
|
+
//
|
|
1110
|
+
//
|
|
1111
|
+
//
|
|
1112
|
+
//
|
|
1113
|
+
//
|
|
1114
|
+
//
|
|
1115
|
+
//
|
|
1116
|
+
//
|
|
1117
|
+
//
|
|
1118
|
+
//
|
|
1119
|
+
//
|
|
1120
|
+
//
|
|
1121
|
+
//
|
|
1122
|
+
//
|
|
1123
|
+
//
|
|
1124
|
+
//
|
|
1125
|
+
//
|
|
1126
|
+
//
|
|
1127
|
+
//
|
|
1128
|
+
//
|
|
1129
|
+
//
|
|
1130
|
+
//
|
|
1131
|
+
//
|
|
1132
|
+
//
|
|
1133
|
+
//
|
|
1134
|
+
//
|
|
1135
|
+
//
|
|
1136
|
+
//
|
|
1137
|
+
//
|
|
1138
|
+
//
|
|
1139
|
+
//
|
|
1140
|
+
//
|
|
1141
|
+
//
|
|
1142
|
+
//
|
|
1143
|
+
//
|
|
1144
|
+
//
|
|
1145
|
+
//
|
|
1146
|
+
//
|
|
1147
|
+
//
|
|
1148
|
+
//
|
|
1149
|
+
//
|
|
1150
|
+
//
|
|
1151
|
+
//
|
|
1152
|
+
//
|
|
1153
|
+
//
|
|
1154
|
+
//
|
|
1155
|
+
//
|
|
1156
|
+
//
|
|
1157
|
+
//
|
|
1158
|
+
//
|
|
1159
|
+
//
|
|
1160
|
+
//
|
|
1161
|
+
//
|
|
1162
|
+
//
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
/* harmony default export */ var picker_dropdownvue_type_script_lang_js_ = ({
|
|
1173
|
+
name: 'epx-color-picker-dropdown',
|
|
1174
|
+
mixins: [vue_popper_default.a, locale_default.a],
|
|
1175
|
+
components: {
|
|
1176
|
+
SvPanel: sv_panel_default.a,
|
|
1177
|
+
HueSlider: hue_slider_default.a,
|
|
1178
|
+
AlphaSlider: alpha_slider_default.a,
|
|
1179
|
+
ElInput: input_default.a,
|
|
1180
|
+
ElButton: button_default.a,
|
|
1181
|
+
Predefine: predefine_default.a
|
|
1182
|
+
},
|
|
1183
|
+
props: {
|
|
1184
|
+
color: {
|
|
1185
|
+
required: true
|
|
1186
|
+
},
|
|
1187
|
+
showAlpha: Boolean,
|
|
1188
|
+
predefine: Array
|
|
1189
|
+
},
|
|
1190
|
+
data: function data() {
|
|
1191
|
+
return {
|
|
1192
|
+
customInput: '',
|
|
1193
|
+
activeRangeBtn: 'start',
|
|
1194
|
+
rangeStartTop: '0',
|
|
1195
|
+
rangeEndTop: '180',
|
|
1196
|
+
rangeStartColor: '#fff',
|
|
1197
|
+
rangeEndColor: '#fff',
|
|
1198
|
+
angle: 90
|
|
1199
|
+
};
|
|
1200
|
+
},
|
|
1201
|
+
computed: {
|
|
1202
|
+
currentColor: function currentColor() {
|
|
1203
|
+
var parent = this.$parent;
|
|
1204
|
+
return !parent.value && !parent.showPanelColor ? '' : parent.color.value;
|
|
1205
|
+
},
|
|
1206
|
+
currentGradientColor: function currentGradientColor() {
|
|
1207
|
+
return "linear-gradient(".concat(this.angle, "deg, ").concat(this.rangeStartColor, " ").concat(parseInt(this.rangeStartTop * 100 / 180), "%, ").concat(this.rangeEndColor, " ").concat(parseInt(this.rangeEndTop * 100 / 180), "%)");
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
methods: {
|
|
1211
|
+
confirmValue: function confirmValue() {
|
|
1212
|
+
this.$emit('pick');
|
|
1213
|
+
},
|
|
1214
|
+
handleConfirm: function handleConfirm() {
|
|
1215
|
+
// this.color.fromString(this.currentGradientColor)
|
|
1216
|
+
this.$emit('set-value', this.currentGradientColor);
|
|
1217
|
+
},
|
|
1218
|
+
dragStart1: function dragStart1(e) {
|
|
1219
|
+
var _this = this;
|
|
1220
|
+
// const mousedownEvent = e
|
|
1221
|
+
var initTop = this.rangeStartTop;
|
|
1222
|
+
var startY = e.clientY;
|
|
1223
|
+
document.onmousemove = function (e) {
|
|
1224
|
+
var y = initTop + e.clientY - startY;
|
|
1225
|
+
_this.rangeStartTop = y > 180 ? 180 : y < 0 ? 0 : y;
|
|
1226
|
+
};
|
|
1227
|
+
document.onmouseup = function () {
|
|
1228
|
+
document.onmousemove = null;
|
|
1229
|
+
_this.$emit('set-value', _this.currentGradientColor);
|
|
1230
|
+
};
|
|
1231
|
+
},
|
|
1232
|
+
dragStart2: function dragStart2(e) {
|
|
1233
|
+
var _this2 = this;
|
|
1234
|
+
var initTop = this.rangeEndTop;
|
|
1235
|
+
var startY = e.clientY;
|
|
1236
|
+
document.onmousemove = function (e) {
|
|
1237
|
+
var y = initTop + e.clientY - startY;
|
|
1238
|
+
_this2.rangeEndTop = y > 180 ? 180 : y < 0 ? 0 : y;
|
|
1239
|
+
};
|
|
1240
|
+
document.onmouseup = function () {
|
|
1241
|
+
document.onmousemove = null;
|
|
1242
|
+
_this2.$emit('set-value', _this2.currentGradientColor);
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
mounted: function mounted() {
|
|
1247
|
+
this.$parent.popperElm = this.popperElm = this.$el;
|
|
1248
|
+
this.referenceElm = this.$parent.$el;
|
|
1249
|
+
},
|
|
1250
|
+
watch: {
|
|
1251
|
+
showPopper: function showPopper(val) {
|
|
1252
|
+
var _this3 = this;
|
|
1253
|
+
if (val === true) {
|
|
1254
|
+
this.$nextTick(function () {
|
|
1255
|
+
var _this3$$refs = _this3.$refs,
|
|
1256
|
+
sl = _this3$$refs.sl,
|
|
1257
|
+
hue = _this3$$refs.hue,
|
|
1258
|
+
alpha = _this3$$refs.alpha;
|
|
1259
|
+
sl && sl.update();
|
|
1260
|
+
hue && hue.update();
|
|
1261
|
+
alpha && alpha.update();
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
customInput: function customInput(val) {
|
|
1266
|
+
this.$emit('set-value', this.currentGradientColor);
|
|
1267
|
+
},
|
|
1268
|
+
currentColor: {
|
|
1269
|
+
immediate: true,
|
|
1270
|
+
handler: function handler(val) {
|
|
1271
|
+
if (val.includes('linear-gradient')) {
|
|
1272
|
+
var content = val.replace(/^linear-gradient\((.+)\)$/, '$1');
|
|
1273
|
+
var arr = content.split(',');
|
|
1274
|
+
this.range = Number(arr[0].replace('deg', ''));
|
|
1275
|
+
var startColor = arr[1].trim().split(' ');
|
|
1276
|
+
var endColor = arr[2].trim().split(' ');
|
|
1277
|
+
this.rangeStartColor = startColor[0];
|
|
1278
|
+
this.rangeStartTop = startColor[1].replace('%', '') * 1.8;
|
|
1279
|
+
this.rangeEndColor = endColor[0];
|
|
1280
|
+
this.rangeEndTop = endColor[1].replace('%', '') * 1.8;
|
|
1281
|
+
if (this.activeRangeBtn === 'end') {
|
|
1282
|
+
this.customInput = this.rangeEndColor;
|
|
1283
|
+
} else {
|
|
1284
|
+
this.customInput = this.rangeStartColor;
|
|
1285
|
+
}
|
|
1286
|
+
} else {
|
|
1287
|
+
if (this.activeRangeBtn === 'end') {
|
|
1288
|
+
this.rangeEndColor = val;
|
|
1289
|
+
} else {
|
|
1290
|
+
this.rangeStartColor = val;
|
|
1291
|
+
}
|
|
1292
|
+
this.customInput = val;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
// CONCATENATED MODULE: ./src/frame/packages/color-picker/components/picker-dropdown.vue?vue&type=script&lang=js&
|
|
1299
|
+
/* harmony default export */ var components_picker_dropdownvue_type_script_lang_js_ = (picker_dropdownvue_type_script_lang_js_);
|
|
1300
|
+
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
1301
|
+
var injectStylesIntoStyleTag = __webpack_require__(27);
|
|
1302
|
+
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
1303
|
+
|
|
1304
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/color-picker/components/picker-dropdown.vue?vue&type=style&index=0&id=6046202a&prod&lang=scss&
|
|
1305
|
+
var picker_dropdownvue_type_style_index_0_id_6046202a_prod_lang_scss_ = __webpack_require__(230);
|
|
1306
|
+
|
|
1307
|
+
// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/sass-resources-loader/lib/loader.js??ref--2-3!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/color-picker/components/picker-dropdown.vue?vue&type=style&index=0&id=6046202a&prod&lang=scss&
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
var options = {};
|
|
1312
|
+
|
|
1313
|
+
options.insert = "head";
|
|
1314
|
+
options.singleton = false;
|
|
1315
|
+
|
|
1316
|
+
var update = injectStylesIntoStyleTag_default()(picker_dropdownvue_type_style_index_0_id_6046202a_prod_lang_scss_["a" /* default */], options);
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
/* harmony default export */ var components_picker_dropdownvue_type_style_index_0_id_6046202a_prod_lang_scss_ = (picker_dropdownvue_type_style_index_0_id_6046202a_prod_lang_scss_["a" /* default */].locals || {});
|
|
1321
|
+
// CONCATENATED MODULE: ./src/frame/packages/color-picker/components/picker-dropdown.vue?vue&type=style&index=0&id=6046202a&prod&lang=scss&
|
|
1322
|
+
|
|
1323
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1324
|
+
var componentNormalizer = __webpack_require__(18);
|
|
1325
|
+
|
|
1326
|
+
// CONCATENATED MODULE: ./src/frame/packages/color-picker/components/picker-dropdown.vue
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
/* normalize component */
|
|
1334
|
+
|
|
1335
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
1336
|
+
components_picker_dropdownvue_type_script_lang_js_,
|
|
1337
|
+
picker_dropdownvue_type_template_id_6046202a_render,
|
|
1338
|
+
picker_dropdownvue_type_template_id_6046202a_staticRenderFns,
|
|
1339
|
+
false,
|
|
1340
|
+
null,
|
|
1341
|
+
null,
|
|
1342
|
+
null
|
|
1343
|
+
|
|
1344
|
+
)
|
|
1345
|
+
|
|
1346
|
+
/* harmony default export */ var picker_dropdown = (component.exports);
|
|
1347
|
+
// EXTERNAL MODULE: external "element-ui/src/utils/clickoutside"
|
|
1348
|
+
var clickoutside_ = __webpack_require__(350);
|
|
1349
|
+
var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
1350
|
+
|
|
1351
|
+
// EXTERNAL MODULE: external "element-ui/src/mixins/emitter"
|
|
1352
|
+
var emitter_ = __webpack_require__(351);
|
|
1353
|
+
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
1354
|
+
|
|
1355
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/frame/packages/color-picker/ColorPicker.vue?vue&type=script&lang=js&
|
|
1356
|
+
|
|
1357
|
+
//
|
|
1358
|
+
//
|
|
1359
|
+
//
|
|
1360
|
+
//
|
|
1361
|
+
//
|
|
1362
|
+
//
|
|
1363
|
+
//
|
|
1364
|
+
//
|
|
1365
|
+
//
|
|
1366
|
+
//
|
|
1367
|
+
//
|
|
1368
|
+
//
|
|
1369
|
+
//
|
|
1370
|
+
//
|
|
1371
|
+
//
|
|
1372
|
+
//
|
|
1373
|
+
//
|
|
1374
|
+
//
|
|
1375
|
+
//
|
|
1376
|
+
//
|
|
1377
|
+
//
|
|
1378
|
+
//
|
|
1379
|
+
//
|
|
1380
|
+
//
|
|
1381
|
+
//
|
|
1382
|
+
//
|
|
1383
|
+
//
|
|
1384
|
+
//
|
|
1385
|
+
//
|
|
1386
|
+
//
|
|
1387
|
+
//
|
|
1388
|
+
//
|
|
1389
|
+
//
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
/* harmony default export */ var ColorPickervue_type_script_lang_js_ = ({
|
|
1396
|
+
name: 'epx-color-picker',
|
|
1397
|
+
mixins: [emitter_default.a],
|
|
1398
|
+
props: {
|
|
1399
|
+
value: String,
|
|
1400
|
+
showAlpha: Boolean,
|
|
1401
|
+
colorFormat: String,
|
|
1402
|
+
disabled: Boolean,
|
|
1403
|
+
size: String,
|
|
1404
|
+
popperClass: String,
|
|
1405
|
+
predefine: Array
|
|
1406
|
+
},
|
|
1407
|
+
inject: {
|
|
1408
|
+
elForm: {
|
|
1409
|
+
default: ''
|
|
1410
|
+
},
|
|
1411
|
+
elFormItem: {
|
|
1412
|
+
default: ''
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
directives: {
|
|
1416
|
+
Clickoutside: clickoutside_default.a
|
|
1417
|
+
},
|
|
1418
|
+
computed: {
|
|
1419
|
+
displayedColor: function displayedColor() {
|
|
1420
|
+
if (!this.value && !this.showPanelColor) {
|
|
1421
|
+
return 'transparent';
|
|
1422
|
+
}
|
|
1423
|
+
return this.displayedRgb(this.color, this.showAlpha);
|
|
1424
|
+
},
|
|
1425
|
+
_elFormItemSize: function _elFormItemSize() {
|
|
1426
|
+
return (this.elFormItem || {}).elFormItemSize;
|
|
1427
|
+
},
|
|
1428
|
+
colorSize: function colorSize() {
|
|
1429
|
+
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
1430
|
+
},
|
|
1431
|
+
colorDisabled: function colorDisabled() {
|
|
1432
|
+
return this.disabled || (this.elForm || {}).disabled;
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
watch: {
|
|
1436
|
+
value: function value(val) {
|
|
1437
|
+
if (!val) {
|
|
1438
|
+
this.showPanelColor = false;
|
|
1439
|
+
} else if (val && val !== this.color.value) {
|
|
1440
|
+
this.$set(this.color, 'value', val);
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
color: {
|
|
1444
|
+
deep: true,
|
|
1445
|
+
handler: function handler() {
|
|
1446
|
+
this.showPanelColor = true;
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
displayedColor: function displayedColor(val) {
|
|
1450
|
+
// if (!this.showPicker) return
|
|
1451
|
+
// const currentValueColor = new Color({
|
|
1452
|
+
// enableAlpha: this.showAlpha,
|
|
1453
|
+
// format: this.colorFormat
|
|
1454
|
+
// })
|
|
1455
|
+
// currentValueColor.fromString(this.value)
|
|
1456
|
+
|
|
1457
|
+
// const currentValueColorRgb = this.displayedRgb(currentValueColor, this.showAlpha)
|
|
1458
|
+
// if (val !== currentValueColorRgb) {
|
|
1459
|
+
// this.$emit('active-change', val)
|
|
1460
|
+
// }
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
methods: {
|
|
1464
|
+
handleTrigger: function handleTrigger() {
|
|
1465
|
+
if (this.colorDisabled) return;
|
|
1466
|
+
this.showPicker = !this.showPicker;
|
|
1467
|
+
},
|
|
1468
|
+
confirmValue: function confirmValue() {
|
|
1469
|
+
var value = this.color.value;
|
|
1470
|
+
this.$emit('input', value);
|
|
1471
|
+
this.$emit('change', value);
|
|
1472
|
+
this.dispatch('ElFormItem', 'el.form.change', value);
|
|
1473
|
+
this.showPicker = false;
|
|
1474
|
+
},
|
|
1475
|
+
clearValue: function clearValue() {
|
|
1476
|
+
this.$emit('input', null);
|
|
1477
|
+
this.$emit('change', null);
|
|
1478
|
+
if (this.value !== null) {
|
|
1479
|
+
this.dispatch('ElFormItem', 'el.form.change', null);
|
|
1480
|
+
}
|
|
1481
|
+
this.showPanelColor = false;
|
|
1482
|
+
this.showPicker = false;
|
|
1483
|
+
this.resetColor();
|
|
1484
|
+
},
|
|
1485
|
+
setValue: function setValue(value) {
|
|
1486
|
+
this.$set(this.color, 'value', value);
|
|
1487
|
+
},
|
|
1488
|
+
hide: function hide() {
|
|
1489
|
+
this.showPicker = false;
|
|
1490
|
+
this.resetColor();
|
|
1491
|
+
},
|
|
1492
|
+
resetColor: function resetColor() {
|
|
1493
|
+
var _this = this;
|
|
1494
|
+
this.$nextTick(function (_) {
|
|
1495
|
+
if (_this.value) {
|
|
1496
|
+
_this.color.fromString(_this.value);
|
|
1497
|
+
} else {
|
|
1498
|
+
_this.showPanelColor = false;
|
|
1499
|
+
}
|
|
1500
|
+
});
|
|
1501
|
+
},
|
|
1502
|
+
displayedRgb: function displayedRgb(color, showAlpha) {
|
|
1503
|
+
if (!(color instanceof color_default.a)) {
|
|
1504
|
+
throw Error('color should be instance of Color Class');
|
|
1505
|
+
}
|
|
1506
|
+
return color.value;
|
|
1507
|
+
// const { r, g, b } = color.toRgb()
|
|
1508
|
+
// return showAlpha
|
|
1509
|
+
// ? `rgba(${r}, ${g}, ${b}, ${color.get('alpha') / 100})`
|
|
1510
|
+
// : `rgb(${r}, ${g}, ${b})`
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
mounted: function mounted() {
|
|
1514
|
+
var value = this.value;
|
|
1515
|
+
if (value) {
|
|
1516
|
+
this.$set(this.color, 'value', value);
|
|
1517
|
+
}
|
|
1518
|
+
this.popperElm = this.$refs.dropdown.$el;
|
|
1519
|
+
},
|
|
1520
|
+
data: function data() {
|
|
1521
|
+
var color = new color_default.a({
|
|
1522
|
+
enableAlpha: this.showAlpha,
|
|
1523
|
+
format: this.colorFormat
|
|
1524
|
+
});
|
|
1525
|
+
return {
|
|
1526
|
+
color: color,
|
|
1527
|
+
showPicker: false,
|
|
1528
|
+
showPanelColor: false
|
|
1529
|
+
};
|
|
1530
|
+
},
|
|
1531
|
+
components: {
|
|
1532
|
+
PickerDropdown: picker_dropdown
|
|
1533
|
+
}
|
|
1534
|
+
});
|
|
1535
|
+
// CONCATENATED MODULE: ./src/frame/packages/color-picker/ColorPicker.vue?vue&type=script&lang=js&
|
|
1536
|
+
/* harmony default export */ var color_picker_ColorPickervue_type_script_lang_js_ = (ColorPickervue_type_script_lang_js_);
|
|
1537
|
+
// CONCATENATED MODULE: ./src/frame/packages/color-picker/ColorPicker.vue
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
/* normalize component */
|
|
1544
|
+
|
|
1545
|
+
var ColorPicker_component = Object(componentNormalizer["a" /* default */])(
|
|
1546
|
+
color_picker_ColorPickervue_type_script_lang_js_,
|
|
1547
|
+
render,
|
|
1548
|
+
staticRenderFns,
|
|
1549
|
+
false,
|
|
1550
|
+
null,
|
|
1551
|
+
null,
|
|
1552
|
+
null
|
|
1553
|
+
|
|
1554
|
+
)
|
|
1555
|
+
|
|
1556
|
+
/* harmony default export */ var ColorPicker = (ColorPicker_component.exports);
|
|
1557
|
+
// CONCATENATED MODULE: ./src/frame/packages/color-picker/index.js
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
ColorPicker.install = function install(Vue) {
|
|
1562
|
+
Vue.component(ColorPicker.name, ColorPicker);
|
|
1563
|
+
};
|
|
1564
|
+
/* harmony default export */ var color_picker = __webpack_exports__["default"] = (ColorPicker);
|
|
1565
|
+
|
|
1566
|
+
/***/ }),
|
|
1567
|
+
|
|
1568
|
+
/***/ 8:
|
|
1569
|
+
/***/ (function(module, exports) {
|
|
1570
|
+
|
|
1571
|
+
module.exports = require("core-js/modules/es.function.name.js");
|
|
1572
|
+
|
|
1573
|
+
/***/ })
|
|
1574
|
+
|
|
1575
|
+
/******/ });
|