-
Notifications
You must be signed in to change notification settings - Fork 1
/
DOCS es15.0cb71eee40c7d7b6716e.js
579 lines (468 loc) · 21.6 KB
/
DOCS es15.0cb71eee40c7d7b6716e.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
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
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[80],{
/***/ 1173:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return tintColor; });
const tintColor = (c, tint) => {
const color = c.replace('#', '');
let red = parseInt(color.slice(0, 2), 16);
let green = parseInt(color.slice(2, 4), 16);
let blue = parseInt(color.slice(4, 6), 16);
if (tint === 0) {
// when primary color is in its rgb space
return [red, green, blue].join(',');
} else {
red += Math.round(tint * (255 - red));
green += Math.round(tint * (255 - green));
blue += Math.round(tint * (255 - blue));
red = red.toString(16);
green = green.toString(16);
blue = blue.toString(16);
return `#${red}${green}${blue}`;
}
};
/***/ }),
/***/ 1183:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.prod.js
var vue_esm_browser_prod = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--13-0!./website/components/demo/color/border-box.vue?vue&type=template&id=5db6fd07
const _hoisted_1 = {
class: "demo-color-box-group"
};
const _hoisted_2 = {
class: "value"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("div", _hoisted_1, [(Object(vue_esm_browser_prod["openBlock"])(true), Object(vue_esm_browser_prod["createElementBlock"])(vue_esm_browser_prod["Fragment"], null, Object(vue_esm_browser_prod["renderList"])($props.borderColors, (border, i) => {
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("div", {
key: i,
class: "demo-color-box demo-color-box-other demo-color-box-lite",
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: `var(--el-border-color-${border.type})`
})
}, [Object(vue_esm_browser_prod["createTextVNode"])(Object(vue_esm_browser_prod["toDisplayString"])(border.name || $options.formatType(border.type) + ' Border') + " ", 1), Object(vue_esm_browser_prod["createElementVNode"])("div", _hoisted_2, Object(vue_esm_browser_prod["toDisplayString"])($options.getColorValue(border.type).toUpperCase()), 1)], 4);
}), 128))]);
}
// CONCATENATED MODULE: ./website/components/demo/color/border-box.vue?vue&type=template&id=5db6fd07
// EXTERNAL MODULE: ./website/util.js
var util = __webpack_require__(47);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--13-0!./website/components/demo/color/border-box.vue?vue&type=script&lang=js
/* harmony default export */ var border_boxvue_type_script_lang_js = ({
props: {
borderColors: {
type: Array,
default() {
return [];
}
}
},
methods: {
formatType: util["a" /* formatType */],
getColorValue(type) {
return getComputedStyle(document.documentElement).getPropertyValue(`--el-border-color-${type}`);
}
}
});
// CONCATENATED MODULE: ./website/components/demo/color/border-box.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./website/components/demo/color/border-box.vue
border_boxvue_type_script_lang_js.render = render
/* harmony default export */ var border_box = __webpack_exports__["a"] = (border_boxvue_type_script_lang_js);
/***/ }),
/***/ 1184:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.prod.js
var vue_esm_browser_prod = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--13-0!./website/components/demo/color/color-box.vue?vue&type=template&id=6e5191fb
const _hoisted_1 = {
class: "value"
};
const _hoisted_2 = {
class: "bg-color-sub"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_el_col = Object(vue_esm_browser_prod["resolveComponent"])("el-col");
const _component_el_row = Object(vue_esm_browser_prod["resolveComponent"])("el-row");
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createBlock"])(_component_el_row, {
gutter: 12
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [(Object(vue_esm_browser_prod["openBlock"])(true), Object(vue_esm_browser_prod["createElementBlock"])(vue_esm_browser_prod["Fragment"], null, Object(vue_esm_browser_prod["renderList"])(_ctx.colorsType, (type, i) => {
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createBlock"])(_component_el_col, {
key: i,
span: 6,
xs: {
span: 12
}
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "demo-color-box",
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: $options.getColorValue(type)
})
}, [Object(vue_esm_browser_prod["createTextVNode"])(Object(vue_esm_browser_prod["toDisplayString"])(type.charAt(0).toUpperCase() + type.slice(1)) + " ", 1), Object(vue_esm_browser_prod["createElementVNode"])("div", _hoisted_1, Object(vue_esm_browser_prod["toDisplayString"])($options.getColorValue(type).toUpperCase()), 1), Object(vue_esm_browser_prod["createElementVNode"])("div", _hoisted_2, [(Object(vue_esm_browser_prod["openBlock"])(true), Object(vue_esm_browser_prod["createElementBlock"])(vue_esm_browser_prod["Fragment"], null, Object(vue_esm_browser_prod["renderList"])(Array(2), (item, key) => {
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("div", {
key: key,
class: "bg-success-sub-item",
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: $options.tintColor($options.getColorValue(type), (key + 8) / 10)
})
}, null, 4);
}), 128))])], 4)]),
_: 2
}, 1024);
}), 128))]),
_: 1
});
}
// CONCATENATED MODULE: ./website/components/demo/color/color-box.vue?vue&type=template&id=6e5191fb
// EXTERNAL MODULE: ./website/color.js
var color = __webpack_require__(1173);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--13-0!./website/components/demo/color/color-box.vue?vue&type=script&lang=js
const colorsType = ['success', 'warning', 'danger', 'info'];
/* harmony default export */ var color_boxvue_type_script_lang_js = ({
data: function () {
return {
colorsType
};
},
methods: {
getColorValue(type) {
return getComputedStyle(document.documentElement).getPropertyValue(`--el-color-${type}`);
},
tintColor: color["a" /* tintColor */]
}
});
// CONCATENATED MODULE: ./website/components/demo/color/color-box.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./website/components/demo/color/color-box.vue
color_boxvue_type_script_lang_js.render = render
/* harmony default export */ var color_box = __webpack_exports__["a"] = (color_boxvue_type_script_lang_js);
/***/ }),
/***/ 1185:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.prod.js
var vue_esm_browser_prod = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--13-0!./website/components/demo/color/text-box.vue?vue&type=template&id=f512fe50
const _hoisted_1 = {
class: "demo-color-box-group"
};
const _hoisted_2 = {
class: "value"
};
function render(_ctx, _cache, $props, $setup, $data, $options) {
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("div", _hoisted_1, [(Object(vue_esm_browser_prod["openBlock"])(true), Object(vue_esm_browser_prod["createElementBlock"])(vue_esm_browser_prod["Fragment"], null, Object(vue_esm_browser_prod["renderList"])($props.textColors, (text, i) => {
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("div", {
key: i,
class: "demo-color-box demo-color-box-other",
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: $options.getCssVarName('text-color', text.type)
})
}, [Object(vue_esm_browser_prod["createTextVNode"])(Object(vue_esm_browser_prod["toDisplayString"])(text.name || $options.formatType(text.type) + ' Text') + " ", 1), Object(vue_esm_browser_prod["createElementVNode"])("div", _hoisted_2, Object(vue_esm_browser_prod["toDisplayString"])($options.getCssVarValue('text-color', text.type).toUpperCase()), 1)], 4);
}), 128))]);
}
// CONCATENATED MODULE: ./website/components/demo/color/text-box.vue?vue&type=template&id=f512fe50
// EXTERNAL MODULE: ./website/util.js
var util = __webpack_require__(47);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--13-0!./website/components/demo/color/text-box.vue?vue&type=script&lang=js
/* harmony default export */ var text_boxvue_type_script_lang_js = ({
props: {
textColors: {
type: Array,
default() {
return [];
}
}
},
methods: {
formatType: util["a" /* formatType */],
getCssVarValue: util["c" /* getCssVarValue */],
getCssVarName: util["b" /* getCssVarName */]
}
});
// CONCATENATED MODULE: ./website/components/demo/color/text-box.vue?vue&type=script&lang=js
// CONCATENATED MODULE: ./website/components/demo/color/text-box.vue
text_boxvue_type_script_lang_js.render = render
/* harmony default export */ var text_box = __webpack_exports__["a"] = (text_boxvue_type_script_lang_js);
/***/ }),
/***/ 838:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm-browser.prod.js
var vue_esm_browser_prod = __webpack_require__(0);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist/templateLoader.js??ref--6!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/es/color.md?vue&type=template&id=e010a110
const _hoisted_1 = {
class: "content element-doc"
};
const _hoisted_2 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Color ");
const _hoisted_3 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Element Plus utiliza un conjunto de paletas para especificar colores, y así, proporcionar una apariencia y sensación coherente para los productos que construye.", -1);
const _hoisted_4 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Color principal ");
const _hoisted_5 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "El color principal de Element Plus es el azul brillante y amigable.", -1);
const _hoisted_6 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])(" Brand Color");
const _hoisted_7 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "value"
}, "#409EFF", -1);
const _hoisted_8 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Color secundario ");
const _hoisted_9 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Además del color principal, se necesitan utilizar distintos colores para diferentes escenarios (por ejemplo, el color en tono rojo indica una operación peligrosa).", -1);
const _hoisted_10 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Color neutro ");
const _hoisted_11 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("p", null, "Los colores neutrales son para texto, fondos y bordes. Puede usar diferentes colores neutrales para representar una estructura jerárquica.", -1);
const _hoisted_12 = {
class: "demo-color-box-group"
};
const _hoisted_13 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Basic Black");
const _hoisted_14 = {
class: "value"
};
const _hoisted_15 = /*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Basic White");
const _hoisted_16 = {
class: "value"
};
const _hoisted_17 = /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "demo-color-box demo-color-box-other bg-transparent"
}, [/*#__PURE__*/Object(vue_esm_browser_prod["createTextVNode"])("Transparent"), /*#__PURE__*/Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "value"
}, "Transparent")], -1);
function render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_app_link = Object(vue_esm_browser_prod["resolveComponent"])("app-link");
const _component_app_heading = Object(vue_esm_browser_prod["resolveComponent"])("app-heading");
const _component_el_col = Object(vue_esm_browser_prod["resolveComponent"])("el-col");
const _component_el_row = Object(vue_esm_browser_prod["resolveComponent"])("el-row");
const _component_color_box = Object(vue_esm_browser_prod["resolveComponent"])("color-box");
const _component_text_box = Object(vue_esm_browser_prod["resolveComponent"])("text-box");
const _component_border_box = Object(vue_esm_browser_prod["resolveComponent"])("border-box");
const _component_right_nav = Object(vue_esm_browser_prod["resolveComponent"])("right-nav");
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("section", _hoisted_1, [Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "color",
content: "Color",
href: "#color",
level: "2"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_2, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#color"
})]),
_: 1
}), _hoisted_3, Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "color-principal",
content: "Color principal",
href: "#color-principal",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_4, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#color-principal"
})]),
_: 1
}), _hoisted_5, Object(vue_esm_browser_prod["createVNode"])(_component_el_row, {
gutter: 12
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_el_col, {
span: 10,
xs: {
span: 12
}
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "demo-color-box",
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: $data.primary
})
}, [_hoisted_6, _hoisted_7, Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "bg-color-sub",
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: $options.tintColor($data.primary, 0.9)
})
}, [(Object(vue_esm_browser_prod["openBlock"])(true), Object(vue_esm_browser_prod["createElementBlock"])(vue_esm_browser_prod["Fragment"], null, Object(vue_esm_browser_prod["renderList"])(Array(8), (item, key) => {
return Object(vue_esm_browser_prod["openBlock"])(), Object(vue_esm_browser_prod["createElementBlock"])("div", {
class: "bg-blue-sub-item",
key: key,
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: $options.tintColor($data.primary, (key + 1) / 10)
})
}, null, 4);
}), 128))], 4)], 4)]),
_: 1
})]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "color-secundario",
content: "Color secundario",
href: "#color-secundario",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_8, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#color-secundario"
})]),
_: 1
}), _hoisted_9, Object(vue_esm_browser_prod["createVNode"])(_component_color_box), Object(vue_esm_browser_prod["createVNode"])(_component_app_heading, {
id: "color-neutro",
content: "Color neutro",
href: "#color-neutro",
level: "3"
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [_hoisted_10, Object(vue_esm_browser_prod["createVNode"])(_component_app_link, {
class: "header-anchor",
href: "#color-neutro"
})]),
_: 1
}), _hoisted_11, Object(vue_esm_browser_prod["createVNode"])(_component_el_row, {
gutter: 12
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_el_col, {
span: 6,
xs: {
span: 12
}
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_text_box, {
"text-colors": $data.textColors
}, null, 8, ["text-colors"])]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_el_col, {
span: 6,
xs: {
span: 12
}
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createVNode"])(_component_border_box, {
"border-colors": $data.borderColors
}, null, 8, ["border-colors"])]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_el_col, {
span: 6,
xs: {
span: 12
}
}, {
default: Object(vue_esm_browser_prod["withCtx"])(() => [Object(vue_esm_browser_prod["createElementVNode"])("div", _hoisted_12, [Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "demo-color-box demo-color-box-other",
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: $data.black
})
}, [_hoisted_13, Object(vue_esm_browser_prod["createElementVNode"])("div", _hoisted_14, Object(vue_esm_browser_prod["toDisplayString"])($data.black), 1)], 4), Object(vue_esm_browser_prod["createElementVNode"])("div", {
class: "demo-color-box demo-color-box-other",
style: Object(vue_esm_browser_prod["normalizeStyle"])({
background: $data.white,
color: '#303133',
border: '1px solid #eee'
})
}, [_hoisted_15, Object(vue_esm_browser_prod["createElementVNode"])("div", _hoisted_16, Object(vue_esm_browser_prod["toDisplayString"])($data.white), 1)], 4), _hoisted_17])]),
_: 1
})]),
_: 1
}), Object(vue_esm_browser_prod["createVNode"])(_component_right_nav)]);
}
// CONCATENATED MODULE: ./website/docs/es/color.md?vue&type=template&id=e010a110
// EXTERNAL MODULE: ./website/bus.js
var bus = __webpack_require__(88);
// EXTERNAL MODULE: ./website/color.js
var website_color = __webpack_require__(1173);
// EXTERNAL MODULE: ./website/components/demo/color/border-box.vue + 4 modules
var border_box = __webpack_require__(1183);
// EXTERNAL MODULE: ./website/components/demo/color/color-box.vue + 4 modules
var color_box = __webpack_require__(1184);
// EXTERNAL MODULE: ./website/components/demo/color/text-box.vue + 4 modules
var text_box = __webpack_require__(1185);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--3-0!./website/md-loader!./website/docs/es/color.md?vue&type=script&lang=js
const borderColors = [{
name: 'Borde base',
type: 'base'
}, {
name: 'Borde ligero',
type: 'light'
}, {
name: 'Borde claro',
type: 'lighter'
}, {
name: 'Borde extra claro',
type: 'extra-light'
}];
const textColors = [{
name: 'Texto primario',
type: 'primary'
}, {
name: 'Texto regular',
type: 'regular'
}, {
name: 'Texto secundario',
type: 'secondary'
}, {
name: 'Texto de placeholder',
type: 'placeholder'
}];
const varMap = {
'primary': '$--color-primary',
'success': '$--color-success',
'warning': '$--color-warning',
'danger': '$--color-danger',
'info': '$--color-info',
'white': '$--color-white',
'black': '$--color-black'
};
const original = {
primary: '#409EFF',
success: '#67C23A',
warning: '#E6A23C',
danger: '#F56C6C',
info: '#909399',
white: '#FFFFFF',
black: '#000000'
};
/* harmony default export */ var colorvue_type_script_lang_js = ({
components: {
BorderBox: border_box["a" /* default */],
ColorBox: color_box["a" /* default */],
TextBox: text_box["a" /* default */]
},
mounted() {
this.setGlobal();
},
methods: {
tintColor(color, tint) {
return Object(website_color["a" /* tintColor */])(color, tint);
},
setGlobal() {
if (window.userThemeConfig) {
this.global = window.userThemeConfig.global;
}
}
},
data() {
return {
global: {},
primary: '',
success: '',
warning: '',
danger: '',
info: '',
white: '',
black: '',
borderColors,
textColors
};
},
watch: {
global: {
immediate: true,
handler(value) {
Object.keys(original).forEach(o => {
if (value[varMap[o]]) {
this[o] = value[varMap[o]];
} else {
this[o] = original[o];
}
});
}
}
}
});
// CONCATENATED MODULE: ./website/docs/es/color.md?vue&type=script&lang=js
// CONCATENATED MODULE: ./website/docs/es/color.md
colorvue_type_script_lang_js.render = render
/* harmony default export */ var es_color = __webpack_exports__["default"] = (colorvue_type_script_lang_js);
/***/ })
}]);