vue-element-ui-x 1.0.3 → 1.0.5
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/README.md +20 -9
- package/components.json +13 -0
- package/lib/components/Attachments/index.js +987 -995
- package/lib/components/Bubble/index.js +10656 -10705
- package/lib/components/BubbleList/index.js +10951 -11038
- package/lib/components/Conversations/index.js +14026 -14063
- package/lib/components/FilesCard/index.js +606 -614
- package/lib/components/Prompts/index.js +457 -470
- package/lib/components/Sender/index.js +1701 -1678
- package/lib/components/Thinking/index.js +695 -703
- package/lib/components/ThoughtChain/index.js +24795 -24851
- package/lib/components/Typewriter/index.js +10247 -10302
- package/lib/components/Welcome/index.js +357 -370
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +32189 -32214
- package/lib/index.umd.js +1 -1
- package/lib/mixins/index.js +61 -116
- package/package.json +20 -7
- package/lib/locale/lang/ar-SA.js +0 -18
- package/lib/locale/lang/ar-SA.umd.js +0 -26
- package/lib/locale/lang/de-DE.js +0 -18
- package/lib/locale/lang/de-DE.umd.js +0 -26
- package/lib/locale/lang/es-ES.js +0 -18
- package/lib/locale/lang/es-ES.umd.js +0 -26
- package/lib/locale/lang/fr-FR.js +0 -18
- package/lib/locale/lang/fr-FR.umd.js +0 -26
- package/lib/locale/lang/it-IT.js +0 -18
- package/lib/locale/lang/it-IT.umd.js +0 -26
- package/lib/locale/lang/ja-JP.js +0 -18
- package/lib/locale/lang/ja-JP.umd.js +0 -26
- package/lib/locale/lang/ko-KR.js +0 -18
- package/lib/locale/lang/ko-KR.umd.js +0 -26
- package/src/components/Attachments/index.js +0 -8
- package/src/components/Attachments/src/main.vue +0 -529
- package/src/components/Bubble/index.js +0 -6
- package/src/components/Bubble/src/main.vue +0 -288
- package/src/components/BubbleList/index.js +0 -8
- package/src/components/BubbleList/src/loading.vue +0 -75
- package/src/components/BubbleList/src/main.vue +0 -444
- package/src/components/Conversations/index.js +0 -8
- package/src/components/Conversations/src/components/item.vue +0 -350
- package/src/components/Conversations/src/main.vue +0 -587
- package/src/components/FilesCard/index.js +0 -8
- package/src/components/FilesCard/src/fileSvg/audio.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/changeFileName.bat +0 -18
- package/src/components/FilesCard/src/fileSvg/code.vue +0 -35
- package/src/components/FilesCard/src/fileSvg/database.vue +0 -94
- package/src/components/FilesCard/src/fileSvg/excel.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/file.vue +0 -40
- package/src/components/FilesCard/src/fileSvg/image.vue +0 -40
- package/src/components/FilesCard/src/fileSvg/index.js +0 -46
- package/src/components/FilesCard/src/fileSvg/link.vue +0 -54
- package/src/components/FilesCard/src/fileSvg/mark.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/pdf.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/ppt.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/three.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/txt.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/unknown.vue +0 -54
- package/src/components/FilesCard/src/fileSvg/video.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/word.vue +0 -38
- package/src/components/FilesCard/src/fileSvg/zip.vue +0 -38
- package/src/components/FilesCard/src/main.vue +0 -401
- package/src/components/FilesCard/src/options.js +0 -18
- package/src/components/Prompts/index.js +0 -8
- package/src/components/Prompts/src/main.vue +0 -248
- package/src/components/Sender/index.js +0 -8
- package/src/components/Sender/src/components/ClearButton.vue +0 -28
- package/src/components/Sender/src/components/Loading.vue +0 -53
- package/src/components/Sender/src/components/LoadingButton.vue +0 -37
- package/src/components/Sender/src/components/SendButton.vue +0 -26
- package/src/components/Sender/src/components/SpeechButton.vue +0 -24
- package/src/components/Sender/src/components/SpeechLoading.vue +0 -87
- package/src/components/Sender/src/components/SpeechLoadingButton.vue +0 -41
- package/src/components/Sender/src/main.vue +0 -769
- package/src/components/Thinking/index.js +0 -8
- package/src/components/Thinking/src/main.vue +0 -199
- package/src/components/ThoughtChain/index.js +0 -8
- package/src/components/ThoughtChain/src/main.vue +0 -291
- package/src/components/Typewriter/index.js +0 -8
- package/src/components/Typewriter/src/main.vue +0 -255
- package/src/components/Welcome/index.js +0 -8
- package/src/components/Welcome/src/main.vue +0 -151
- package/src/index.js +0 -106
- package/src/locale/index.js +0 -97
- package/src/locale/lang/ar.js +0 -18
- package/src/locale/lang/de.js +0 -18
- package/src/locale/lang/en.js +0 -18
- package/src/locale/lang/es.js +0 -18
- package/src/locale/lang/fr.js +0 -18
- package/src/locale/lang/index.js +0 -62
- package/src/locale/lang/it.js +0 -18
- package/src/locale/lang/ja.js +0 -18
- package/src/locale/lang/ko.js +0 -18
- package/src/locale/lang/pt-br.js +0 -18
- package/src/locale/lang/ru-RU.js +0 -18
- package/src/locale/lang/zh-CN.js +0 -18
- package/src/locale/lang/zh-TW.js +0 -18
- package/src/locale/mixin.js +0 -9
- package/src/mixins/index.js +0 -49
- package/src/mixins/recordMixin.js +0 -117
- package/src/mixins/sendMixin.js +0 -450
- package/src/mixins/streamMixin.js +0 -497
- package/src/styles/Attachments.scss +0 -236
- package/src/styles/Bubble.scss +0 -158
- package/src/styles/BubbleList.scss +0 -148
- package/src/styles/Conversations.scss +0 -283
- package/src/styles/FilesCard.scss +0 -222
- package/src/styles/Prompts.scss +0 -197
- package/src/styles/Sender.scss +0 -207
- package/src/styles/Thinking.scss +0 -142
- package/src/styles/ThoughtChain.scss +0 -113
- package/src/styles/Typewriter.scss +0 -66
- package/src/styles/Welcome.scss +0 -283
- package/src/styles/button.scss +0 -302
- package/src/styles/var.scss +0 -1051
- package/src/theme/var.scss +0 -183
- package/src/utils/index.js +0 -199
- package/src/utils/scrollDetector.js +0 -34
- /package/lib/locale/lang/{pt-BR.js → pt-br.js} +0 -0
- /package/lib/locale/lang/{pt-BR.umd.js → pt-br.umd.js} +0 -0
|
@@ -1,97 +1,107 @@
|
|
|
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
|
-
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 2932:
|
|
6
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
10
|
+
/* harmony export */ });
|
|
11
|
+
/* harmony import */ var _lang_zh_CN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6449);
|
|
12
|
+
|
|
13
|
+
let lang = _lang_zh_CN__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A;
|
|
14
|
+
let merged = false;
|
|
15
|
+
let i18nHandler = function () {
|
|
16
|
+
// 检查是否存在 vue-i18n@5.x (Vue.locale)
|
|
17
|
+
if (typeof window !== 'undefined' && window.Vue && window.Vue.locale) {
|
|
18
|
+
const vuei18n = window.Vue.locale;
|
|
19
|
+
if (typeof vuei18n === 'function') {
|
|
20
|
+
if (!merged) {
|
|
21
|
+
merged = true;
|
|
22
|
+
window.Vue.locale(window.Vue.config.lang, deepMerge(lang, window.Vue.locale(window.Vue.config.lang) || {}, {
|
|
23
|
+
clone: true
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
return vuei18n.apply(this, arguments);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// 检查是否存在 vue-i18n@6.x+ (this.$t)
|
|
31
|
+
if (this && this.$t && typeof this.$t === 'function') {
|
|
32
|
+
try {
|
|
33
|
+
return this.$t.apply(this, arguments);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
// 如果出错,回退到内置翻译
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const deepMerge = function (target, source, options) {
|
|
40
|
+
options = options || {};
|
|
41
|
+
const clone = options.clone !== false;
|
|
42
|
+
const mergedTarget = clone ? {
|
|
43
|
+
...target
|
|
44
|
+
} : target;
|
|
45
|
+
for (const key in source) {
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
47
|
+
const value = source[key];
|
|
48
|
+
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
|
|
49
|
+
mergedTarget[key] = deepMerge(mergedTarget[key] || {}, value, options);
|
|
50
|
+
} else {
|
|
51
|
+
mergedTarget[key] = value;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return mergedTarget;
|
|
56
|
+
};
|
|
57
|
+
const t = function (path, options) {
|
|
58
|
+
let value = i18nHandler.apply(this, arguments);
|
|
59
|
+
if (value !== null && value !== undefined) return value;
|
|
60
|
+
const array = path.split('.');
|
|
61
|
+
let current = lang;
|
|
62
|
+
for (let i = 0, j = array.length; i < j; i++) {
|
|
63
|
+
const property = array[i];
|
|
64
|
+
value = current[property];
|
|
65
|
+
if (i === j - 1) return format(value, options);
|
|
66
|
+
if (!value) return '';
|
|
67
|
+
current = value;
|
|
68
|
+
}
|
|
69
|
+
return '';
|
|
70
|
+
};
|
|
71
|
+
const format = function (template, ...args) {
|
|
72
|
+
if (typeof template === 'function') {
|
|
73
|
+
return template(...args);
|
|
74
|
+
}
|
|
75
|
+
if (typeof template !== 'string') {
|
|
76
|
+
return template;
|
|
77
|
+
}
|
|
78
|
+
const [options] = args;
|
|
79
|
+
if (!options) return template;
|
|
80
|
+
return template.replace(/\{(\w+)\}/g, (match, key) => {
|
|
81
|
+
return options[key] !== undefined ? options[key] : match;
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const use = function (l) {
|
|
85
|
+
lang = l || lang;
|
|
86
|
+
merged = false;
|
|
87
|
+
};
|
|
88
|
+
const i18n = function (fn) {
|
|
89
|
+
i18nHandler = fn || i18nHandler;
|
|
90
|
+
};
|
|
91
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
92
|
+
use,
|
|
93
|
+
t,
|
|
94
|
+
i18n
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
/***/ }),
|
|
89
98
|
|
|
90
|
-
/***/
|
|
91
|
-
/***/ (
|
|
99
|
+
/***/ 4486:
|
|
100
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
92
101
|
|
|
93
|
-
|
|
94
|
-
/* harmony export
|
|
102
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
103
|
+
/* harmony export */ A: () => (/* binding */ normalizeComponent)
|
|
104
|
+
/* harmony export */ });
|
|
95
105
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
96
106
|
|
|
97
107
|
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
@@ -192,300 +202,327 @@ function normalizeComponent(
|
|
|
192
202
|
|
|
193
203
|
/***/ }),
|
|
194
204
|
|
|
195
|
-
/***/
|
|
196
|
-
/***/ (
|
|
205
|
+
/***/ 5072:
|
|
206
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
197
207
|
|
|
198
|
-
"use strict";
|
|
199
|
-
// ESM COMPAT FLAG
|
|
200
|
-
__webpack_require__.r(__webpack_exports__);
|
|
201
208
|
|
|
202
|
-
|
|
203
|
-
var
|
|
204
|
-
var
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
"--el-x-thinking-content-wrapper-color": _vm.color
|
|
214
|
-
}
|
|
215
|
-
}, [_c("button", {
|
|
216
|
-
staticClass: "trigger",
|
|
217
|
-
class: [_vm.localStatus, {
|
|
218
|
-
disabled: !_vm.disabled
|
|
219
|
-
}],
|
|
220
|
-
attrs: {
|
|
221
|
-
disabled: _vm.disabled
|
|
222
|
-
},
|
|
223
|
-
on: {
|
|
224
|
-
click: _vm.changeExpand
|
|
225
|
-
}
|
|
226
|
-
}, [_c("span", {
|
|
227
|
-
staticClass: "status-icon"
|
|
228
|
-
}, [_vm._t("status-icon", function () {
|
|
229
|
-
return [_vm.localStatus === "thinking" ? _c("i", {
|
|
230
|
-
staticClass: "is-loading el-icon-center el-icon-loading"
|
|
231
|
-
}) : _vm._e(), _vm._v(" "), _vm.localStatus === "start" ? _c("i", {
|
|
232
|
-
staticClass: "el-icon-center start-color el-icon-opportunity"
|
|
233
|
-
}) : _vm._e(), _vm._v(" "), _vm.localStatus === "end" ? _c("i", {
|
|
234
|
-
staticClass: "el-icon-center end-color el-icon-success"
|
|
235
|
-
}) : _vm._e(), _vm._v(" "), _vm.localStatus === "error" ? _c("i", {
|
|
236
|
-
staticClass: "el-icon-center error-color el-icon-circle-close"
|
|
237
|
-
}) : _vm._e()];
|
|
238
|
-
}, {
|
|
239
|
-
status: _vm.localStatus
|
|
240
|
-
})], 2), _vm._v(" "), _c("span", {
|
|
241
|
-
staticClass: "label"
|
|
242
|
-
}, [_vm._t("label", function () {
|
|
243
|
-
return [_vm._v("\n " + _vm._s(_vm.localStatus === "thinking" ? _vm.elXt("el_x.thinking.processing") : _vm.localStatus === "error" ? _vm.elXt("el_x.thinking.error") : _vm.localStatus === "end" ? _vm.elXt("el_x.thinking.completed") : _vm.elXt("el_x.thinking.start")) + "\n ")];
|
|
244
|
-
}, {
|
|
245
|
-
status: _vm.localStatus
|
|
246
|
-
})], 2), _vm._v(" "), _c("transition", {
|
|
247
|
-
attrs: {
|
|
248
|
-
name: "rotate"
|
|
249
|
-
}
|
|
250
|
-
}, [!_vm.disabled ? _c("span", {
|
|
251
|
-
staticClass: "thinking-arrow el-icon-center",
|
|
252
|
-
class: {
|
|
253
|
-
expanded: _vm.isExpanded
|
|
209
|
+
|
|
210
|
+
var isOldIE = function isOldIE() {
|
|
211
|
+
var memo;
|
|
212
|
+
return function memorize() {
|
|
213
|
+
if (typeof memo === 'undefined') {
|
|
214
|
+
// Test for IE <= 9 as proposed by Browserhacks
|
|
215
|
+
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
216
|
+
// Tests for existence of standard globals is to allow style-loader
|
|
217
|
+
// to operate correctly into non-standard environments
|
|
218
|
+
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
219
|
+
memo = Boolean(window && document && document.all && !window.atob);
|
|
254
220
|
}
|
|
255
|
-
|
|
256
|
-
return
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
221
|
+
|
|
222
|
+
return memo;
|
|
223
|
+
};
|
|
224
|
+
}();
|
|
225
|
+
|
|
226
|
+
var getTarget = function getTarget() {
|
|
227
|
+
var memo = {};
|
|
228
|
+
return function memorize(target) {
|
|
229
|
+
if (typeof memo[target] === 'undefined') {
|
|
230
|
+
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
231
|
+
|
|
232
|
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
233
|
+
try {
|
|
234
|
+
// This will throw an exception if access to iframe is blocked
|
|
235
|
+
// due to cross-origin restrictions
|
|
236
|
+
styleTarget = styleTarget.contentDocument.head;
|
|
237
|
+
} catch (e) {
|
|
238
|
+
// istanbul ignore next
|
|
239
|
+
styleTarget = null;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
memo[target] = styleTarget;
|
|
262
244
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
245
|
+
|
|
246
|
+
return memo[target];
|
|
247
|
+
};
|
|
248
|
+
}();
|
|
249
|
+
|
|
250
|
+
var stylesInDom = [];
|
|
251
|
+
|
|
252
|
+
function getIndexByIdentifier(identifier) {
|
|
253
|
+
var result = -1;
|
|
254
|
+
|
|
255
|
+
for (var i = 0; i < stylesInDom.length; i++) {
|
|
256
|
+
if (stylesInDom[i].identifier === identifier) {
|
|
257
|
+
result = i;
|
|
258
|
+
break;
|
|
267
259
|
}
|
|
268
|
-
}
|
|
269
|
-
staticClass: "content"
|
|
270
|
-
}, [_vm.localStatus !== "error" ? _vm._t("content", function () {
|
|
271
|
-
return [_c("pre", [_vm._v(_vm._s(_vm.displayedContent))])];
|
|
272
|
-
}, {
|
|
273
|
-
content: _vm.displayedContent
|
|
274
|
-
}) : _vm._t("error", function () {
|
|
275
|
-
return [_c("div", {
|
|
276
|
-
staticClass: "error-message"
|
|
277
|
-
}, [_vm._v(_vm._s(_vm.displayedContent))])];
|
|
278
|
-
}, {
|
|
279
|
-
errorContent: _vm.displayedContent
|
|
280
|
-
})], 2)]) : _vm._e()])], 1);
|
|
281
|
-
};
|
|
282
|
-
var staticRenderFns = [];
|
|
283
|
-
render._withStripped = true;
|
|
260
|
+
}
|
|
284
261
|
|
|
285
|
-
|
|
262
|
+
return result;
|
|
263
|
+
}
|
|
286
264
|
|
|
287
|
-
|
|
288
|
-
var
|
|
265
|
+
function modulesToDom(list, options) {
|
|
266
|
+
var idCountMap = {};
|
|
267
|
+
var identifiers = [];
|
|
289
268
|
|
|
290
|
-
|
|
269
|
+
for (var i = 0; i < list.length; i++) {
|
|
270
|
+
var item = list[i];
|
|
271
|
+
var id = options.base ? item[0] + options.base : item[0];
|
|
272
|
+
var count = idCountMap[id] || 0;
|
|
273
|
+
var identifier = "".concat(id, " ").concat(count);
|
|
274
|
+
idCountMap[id] = count + 1;
|
|
275
|
+
var index = getIndexByIdentifier(identifier);
|
|
276
|
+
var obj = {
|
|
277
|
+
css: item[1],
|
|
278
|
+
media: item[2],
|
|
279
|
+
sourceMap: item[3]
|
|
280
|
+
};
|
|
291
281
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
modelValue: {
|
|
301
|
-
type: Boolean,
|
|
302
|
-
default: true
|
|
303
|
-
},
|
|
304
|
-
status: {
|
|
305
|
-
type: String,
|
|
306
|
-
default: 'start',
|
|
307
|
-
validator: function (value) {
|
|
308
|
-
return ['start', 'thinking', 'end', 'error'].indexOf(value) !== -1;
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
disabled: {
|
|
312
|
-
type: Boolean,
|
|
313
|
-
default: false
|
|
314
|
-
},
|
|
315
|
-
autoCollapse: {
|
|
316
|
-
type: Boolean,
|
|
317
|
-
default: false
|
|
318
|
-
},
|
|
319
|
-
buttonWidth: {
|
|
320
|
-
type: String,
|
|
321
|
-
default: '160px'
|
|
322
|
-
},
|
|
323
|
-
duration: {
|
|
324
|
-
type: String,
|
|
325
|
-
default: '0.2s'
|
|
326
|
-
},
|
|
327
|
-
maxWidth: {
|
|
328
|
-
type: String,
|
|
329
|
-
default: '500px'
|
|
330
|
-
},
|
|
331
|
-
backgroundColor: {
|
|
332
|
-
type: String,
|
|
333
|
-
default: '#fcfcfc'
|
|
334
|
-
},
|
|
335
|
-
color: {
|
|
336
|
-
type: String,
|
|
337
|
-
default: '#909399'
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
data() {
|
|
341
|
-
return {
|
|
342
|
-
isExpanded: this.modelValue,
|
|
343
|
-
localStatus: this.status
|
|
344
|
-
};
|
|
345
|
-
},
|
|
346
|
-
computed: {
|
|
347
|
-
displayedContent() {
|
|
348
|
-
return this.localStatus === 'error' ? this.elXt('el_x.thinking.errorContent') : this.content;
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
watch: {
|
|
352
|
-
modelValue(newVal) {
|
|
353
|
-
this.isExpanded = newVal;
|
|
354
|
-
},
|
|
355
|
-
status(newVal) {
|
|
356
|
-
this.localStatus = newVal;
|
|
357
|
-
if (newVal === 'end' && this.autoCollapse) {
|
|
358
|
-
this.isExpanded = false;
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
$attrs: {
|
|
362
|
-
handler(newVal) {
|
|
363
|
-
if (newVal['onUpdate:status']) {
|
|
364
|
-
this.$emit('update:status', this.localStatus);
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
immediate: true
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
methods: {
|
|
371
|
-
changeExpand() {
|
|
372
|
-
if (this.disabled) return;
|
|
373
|
-
this.isExpanded = !this.isExpanded;
|
|
374
|
-
this.$emit('change', {
|
|
375
|
-
value: this.isExpanded,
|
|
376
|
-
status: this.localStatus
|
|
282
|
+
if (index !== -1) {
|
|
283
|
+
stylesInDom[index].references++;
|
|
284
|
+
stylesInDom[index].updater(obj);
|
|
285
|
+
} else {
|
|
286
|
+
stylesInDom.push({
|
|
287
|
+
identifier: identifier,
|
|
288
|
+
updater: addStyle(obj, options),
|
|
289
|
+
references: 1
|
|
377
290
|
});
|
|
378
|
-
this.$emit('update:expanded', this.isExpanded);
|
|
379
291
|
}
|
|
292
|
+
|
|
293
|
+
identifiers.push(identifier);
|
|
380
294
|
}
|
|
381
|
-
});
|
|
382
|
-
// CONCATENATED MODULE: ./src/components/Thinking/src/main.vue?vue&type=script&lang=js
|
|
383
|
-
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
384
|
-
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
385
|
-
var injectStylesIntoStyleTag = __webpack_require__(3);
|
|
386
|
-
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
387
295
|
|
|
388
|
-
|
|
389
|
-
|
|
296
|
+
return identifiers;
|
|
297
|
+
}
|
|
390
298
|
|
|
391
|
-
|
|
299
|
+
function insertStyleElement(options) {
|
|
300
|
+
var style = document.createElement('style');
|
|
301
|
+
var attributes = options.attributes || {};
|
|
392
302
|
|
|
393
|
-
|
|
303
|
+
if (typeof attributes.nonce === 'undefined') {
|
|
304
|
+
var nonce = true ? __webpack_require__.nc : 0;
|
|
394
305
|
|
|
395
|
-
|
|
306
|
+
if (nonce) {
|
|
307
|
+
attributes.nonce = nonce;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
396
310
|
|
|
397
|
-
|
|
398
|
-
|
|
311
|
+
Object.keys(attributes).forEach(function (key) {
|
|
312
|
+
style.setAttribute(key, attributes[key]);
|
|
313
|
+
});
|
|
399
314
|
|
|
400
|
-
|
|
315
|
+
if (typeof options.insert === 'function') {
|
|
316
|
+
options.insert(style);
|
|
317
|
+
} else {
|
|
318
|
+
var target = getTarget(options.insert || 'head');
|
|
401
319
|
|
|
320
|
+
if (!target) {
|
|
321
|
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
322
|
+
}
|
|
402
323
|
|
|
324
|
+
target.appendChild(style);
|
|
325
|
+
}
|
|
403
326
|
|
|
404
|
-
|
|
405
|
-
|
|
327
|
+
return style;
|
|
328
|
+
}
|
|
406
329
|
|
|
407
|
-
|
|
408
|
-
|
|
330
|
+
function removeStyleElement(style) {
|
|
331
|
+
// istanbul ignore if
|
|
332
|
+
if (style.parentNode === null) {
|
|
333
|
+
return false;
|
|
334
|
+
}
|
|
409
335
|
|
|
410
|
-
|
|
336
|
+
style.parentNode.removeChild(style);
|
|
337
|
+
}
|
|
338
|
+
/* istanbul ignore next */
|
|
411
339
|
|
|
412
340
|
|
|
341
|
+
var replaceText = function replaceText() {
|
|
342
|
+
var textStore = [];
|
|
343
|
+
return function replace(index, replacement) {
|
|
344
|
+
textStore[index] = replacement;
|
|
345
|
+
return textStore.filter(Boolean).join('\n');
|
|
346
|
+
};
|
|
347
|
+
}();
|
|
413
348
|
|
|
349
|
+
function applyToSingletonTag(style, index, remove, obj) {
|
|
350
|
+
var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
|
|
414
351
|
|
|
352
|
+
/* istanbul ignore if */
|
|
415
353
|
|
|
354
|
+
if (style.styleSheet) {
|
|
355
|
+
style.styleSheet.cssText = replaceText(index, css);
|
|
356
|
+
} else {
|
|
357
|
+
var cssNode = document.createTextNode(css);
|
|
358
|
+
var childNodes = style.childNodes;
|
|
416
359
|
|
|
417
|
-
|
|
360
|
+
if (childNodes[index]) {
|
|
361
|
+
style.removeChild(childNodes[index]);
|
|
362
|
+
}
|
|
418
363
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
null
|
|
427
|
-
|
|
428
|
-
)
|
|
364
|
+
if (childNodes.length) {
|
|
365
|
+
style.insertBefore(cssNode, childNodes[index]);
|
|
366
|
+
} else {
|
|
367
|
+
style.appendChild(cssNode);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
429
371
|
|
|
430
|
-
|
|
431
|
-
|
|
372
|
+
function applyToTag(style, options, obj) {
|
|
373
|
+
var css = obj.css;
|
|
374
|
+
var media = obj.media;
|
|
375
|
+
var sourceMap = obj.sourceMap;
|
|
432
376
|
|
|
377
|
+
if (media) {
|
|
378
|
+
style.setAttribute('media', media);
|
|
379
|
+
} else {
|
|
380
|
+
style.removeAttribute('media');
|
|
381
|
+
}
|
|
433
382
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
};
|
|
438
|
-
/* harmony default export */ var Thinking = __webpack_exports__["default"] = (main);
|
|
383
|
+
if (sourceMap && typeof btoa !== 'undefined') {
|
|
384
|
+
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
385
|
+
} // For old IE
|
|
439
386
|
|
|
440
|
-
|
|
387
|
+
/* istanbul ignore if */
|
|
441
388
|
|
|
442
|
-
/***/ 2:
|
|
443
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
444
389
|
|
|
445
|
-
|
|
390
|
+
if (style.styleSheet) {
|
|
391
|
+
style.styleSheet.cssText = css;
|
|
392
|
+
} else {
|
|
393
|
+
while (style.firstChild) {
|
|
394
|
+
style.removeChild(style.firstChild);
|
|
395
|
+
}
|
|
446
396
|
|
|
397
|
+
style.appendChild(document.createTextNode(css));
|
|
398
|
+
}
|
|
399
|
+
}
|
|
447
400
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
Author Tobias Koppers @sokra
|
|
451
|
-
*/
|
|
452
|
-
// css base code, injected by the css-loader
|
|
453
|
-
// eslint-disable-next-line func-names
|
|
454
|
-
module.exports = function (cssWithMappingToString) {
|
|
455
|
-
var list = []; // return the list of modules as css string
|
|
401
|
+
var singleton = null;
|
|
402
|
+
var singletonCounter = 0;
|
|
456
403
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
404
|
+
function addStyle(obj, options) {
|
|
405
|
+
var style;
|
|
406
|
+
var update;
|
|
407
|
+
var remove;
|
|
460
408
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
409
|
+
if (options.singleton) {
|
|
410
|
+
var styleIndex = singletonCounter++;
|
|
411
|
+
style = singleton || (singleton = insertStyleElement(options));
|
|
412
|
+
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
413
|
+
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
414
|
+
} else {
|
|
415
|
+
style = insertStyleElement(options);
|
|
416
|
+
update = applyToTag.bind(null, style, options);
|
|
464
417
|
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
418
|
+
remove = function remove() {
|
|
419
|
+
removeStyleElement(style);
|
|
420
|
+
};
|
|
421
|
+
}
|
|
469
422
|
|
|
423
|
+
update(obj);
|
|
424
|
+
return function updateStyle(newObj) {
|
|
425
|
+
if (newObj) {
|
|
426
|
+
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
470
429
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
modules = [[null, modules, ""]];
|
|
430
|
+
update(obj = newObj);
|
|
431
|
+
} else {
|
|
432
|
+
remove();
|
|
475
433
|
}
|
|
434
|
+
};
|
|
435
|
+
}
|
|
476
436
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
for (var i = 0; i < this.length; i++) {
|
|
481
|
-
// eslint-disable-next-line prefer-destructuring
|
|
482
|
-
var id = this[i][0];
|
|
437
|
+
module.exports = function (list, options) {
|
|
438
|
+
options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
439
|
+
// tags it will allow on a page
|
|
483
440
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
441
|
+
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
442
|
+
options.singleton = isOldIE();
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
list = list || [];
|
|
446
|
+
var lastIdentifiers = modulesToDom(list, options);
|
|
447
|
+
return function update(newList) {
|
|
448
|
+
newList = newList || [];
|
|
449
|
+
|
|
450
|
+
if (Object.prototype.toString.call(newList) !== '[object Array]') {
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
455
|
+
var identifier = lastIdentifiers[i];
|
|
456
|
+
var index = getIndexByIdentifier(identifier);
|
|
457
|
+
stylesInDom[index].references--;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
var newLastIdentifiers = modulesToDom(newList, options);
|
|
461
|
+
|
|
462
|
+
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
463
|
+
var _identifier = lastIdentifiers[_i];
|
|
464
|
+
|
|
465
|
+
var _index = getIndexByIdentifier(_identifier);
|
|
466
|
+
|
|
467
|
+
if (stylesInDom[_index].references === 0) {
|
|
468
|
+
stylesInDom[_index].updater();
|
|
469
|
+
|
|
470
|
+
stylesInDom.splice(_index, 1);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
lastIdentifiers = newLastIdentifiers;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
/***/ }),
|
|
479
|
+
|
|
480
|
+
/***/ 6314:
|
|
481
|
+
/***/ ((module) => {
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
/*
|
|
486
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
487
|
+
Author Tobias Koppers @sokra
|
|
488
|
+
*/
|
|
489
|
+
// css base code, injected by the css-loader
|
|
490
|
+
// eslint-disable-next-line func-names
|
|
491
|
+
module.exports = function (cssWithMappingToString) {
|
|
492
|
+
var list = []; // return the list of modules as css string
|
|
493
|
+
|
|
494
|
+
list.toString = function toString() {
|
|
495
|
+
return this.map(function (item) {
|
|
496
|
+
var content = cssWithMappingToString(item);
|
|
497
|
+
|
|
498
|
+
if (item[2]) {
|
|
499
|
+
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
return content;
|
|
503
|
+
}).join("");
|
|
504
|
+
}; // import a list of modules into the list
|
|
505
|
+
// eslint-disable-next-line func-names
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
list.i = function (modules, mediaQuery, dedupe) {
|
|
509
|
+
if (typeof modules === "string") {
|
|
510
|
+
// eslint-disable-next-line no-param-reassign
|
|
511
|
+
modules = [[null, modules, ""]];
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
var alreadyImportedModules = {};
|
|
515
|
+
|
|
516
|
+
if (dedupe) {
|
|
517
|
+
for (var i = 0; i < this.length; i++) {
|
|
518
|
+
// eslint-disable-next-line prefer-destructuring
|
|
519
|
+
var id = this[i][0];
|
|
520
|
+
|
|
521
|
+
if (id != null) {
|
|
522
|
+
alreadyImportedModules[id] = true;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
489
526
|
|
|
490
527
|
for (var _i = 0; _i < modules.length; _i++) {
|
|
491
528
|
var item = [].concat(modules[_i]);
|
|
@@ -512,103 +549,13 @@ module.exports = function (cssWithMappingToString) {
|
|
|
512
549
|
|
|
513
550
|
/***/ }),
|
|
514
551
|
|
|
515
|
-
/***/
|
|
516
|
-
/***/ (
|
|
517
|
-
|
|
518
|
-
"use strict";
|
|
519
|
-
/* harmony import */ var _lang_zh_CN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26);
|
|
520
|
-
|
|
521
|
-
let lang = _lang_zh_CN__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"];
|
|
522
|
-
let merged = false;
|
|
523
|
-
let i18nHandler = function () {
|
|
524
|
-
// 检查是否存在 vue-i18n@5.x (Vue.locale)
|
|
525
|
-
if (typeof window !== 'undefined' && window.Vue && window.Vue.locale) {
|
|
526
|
-
const vuei18n = window.Vue.locale;
|
|
527
|
-
if (typeof vuei18n === 'function') {
|
|
528
|
-
if (!merged) {
|
|
529
|
-
merged = true;
|
|
530
|
-
window.Vue.locale(window.Vue.config.lang, deepMerge(lang, window.Vue.locale(window.Vue.config.lang) || {}, {
|
|
531
|
-
clone: true
|
|
532
|
-
}));
|
|
533
|
-
}
|
|
534
|
-
return vuei18n.apply(this, arguments);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
// 检查是否存在 vue-i18n@6.x+ (this.$t)
|
|
539
|
-
if (this && this.$t && typeof this.$t === 'function') {
|
|
540
|
-
try {
|
|
541
|
-
return this.$t.apply(this, arguments);
|
|
542
|
-
} catch (e) {
|
|
543
|
-
// 如果出错,回退到内置翻译
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
const deepMerge = function (target, source, options) {
|
|
548
|
-
options = options || {};
|
|
549
|
-
const clone = options.clone !== false;
|
|
550
|
-
const mergedTarget = clone ? {
|
|
551
|
-
...target
|
|
552
|
-
} : target;
|
|
553
|
-
for (const key in source) {
|
|
554
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
555
|
-
const value = source[key];
|
|
556
|
-
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
|
|
557
|
-
mergedTarget[key] = deepMerge(mergedTarget[key] || {}, value, options);
|
|
558
|
-
} else {
|
|
559
|
-
mergedTarget[key] = value;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
return mergedTarget;
|
|
564
|
-
};
|
|
565
|
-
const t = function (path, options) {
|
|
566
|
-
let value = i18nHandler.apply(this, arguments);
|
|
567
|
-
if (value !== null && value !== undefined) return value;
|
|
568
|
-
const array = path.split('.');
|
|
569
|
-
let current = lang;
|
|
570
|
-
for (let i = 0, j = array.length; i < j; i++) {
|
|
571
|
-
const property = array[i];
|
|
572
|
-
value = current[property];
|
|
573
|
-
if (i === j - 1) return format(value, options);
|
|
574
|
-
if (!value) return '';
|
|
575
|
-
current = value;
|
|
576
|
-
}
|
|
577
|
-
return '';
|
|
578
|
-
};
|
|
579
|
-
const format = function (template, ...args) {
|
|
580
|
-
if (typeof template === 'function') {
|
|
581
|
-
return template(...args);
|
|
582
|
-
}
|
|
583
|
-
if (typeof template !== 'string') {
|
|
584
|
-
return template;
|
|
585
|
-
}
|
|
586
|
-
const [options] = args;
|
|
587
|
-
if (!options) return template;
|
|
588
|
-
return template.replace(/\{(\w+)\}/g, (match, key) => {
|
|
589
|
-
return options[key] !== undefined ? options[key] : match;
|
|
590
|
-
});
|
|
591
|
-
};
|
|
592
|
-
const use = function (l) {
|
|
593
|
-
lang = l || lang;
|
|
594
|
-
merged = false;
|
|
595
|
-
};
|
|
596
|
-
const i18n = function (fn) {
|
|
597
|
-
i18nHandler = fn || i18nHandler;
|
|
598
|
-
};
|
|
599
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
600
|
-
use,
|
|
601
|
-
t,
|
|
602
|
-
i18n
|
|
603
|
-
});
|
|
604
|
-
|
|
605
|
-
/***/ }),
|
|
606
|
-
|
|
607
|
-
/***/ 26:
|
|
608
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
552
|
+
/***/ 6449:
|
|
553
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
609
554
|
|
|
610
|
-
|
|
611
|
-
/* harmony
|
|
555
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
556
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
557
|
+
/* harmony export */ });
|
|
558
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
612
559
|
el_x: {
|
|
613
560
|
thinking: {
|
|
614
561
|
start: '开始思考',
|
|
@@ -631,313 +578,358 @@ const i18n = function (fn) {
|
|
|
631
578
|
|
|
632
579
|
/***/ }),
|
|
633
580
|
|
|
634
|
-
/***/
|
|
635
|
-
/***/ (
|
|
581
|
+
/***/ 7755:
|
|
582
|
+
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
636
583
|
|
|
637
|
-
|
|
584
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
585
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
586
|
+
/* harmony export */ });
|
|
587
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6314);
|
|
588
|
+
/* 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__);
|
|
589
|
+
// Imports
|
|
638
590
|
|
|
591
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
592
|
+
// Module
|
|
593
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-f68ab76a]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.el-x-thinking[data-v-f68ab76a]{margin:0 auto}.trigger[data-v-f68ab76a]{display:flex;align-items:center;height:100%;width:var(--el-x-thinking-button-width);gap:4px;padding:8px calc(8px + 4px);border:1px solid #dcdfe6;border-radius:8px;background:#fff;cursor:pointer;margin-bottom:4px}.trigger .el-icon-center[data-v-f68ab76a]{height:100%;display:flex;align-items:center}.trigger .start-color[data-v-f68ab76a]{color:#e6a23c}.trigger .end-color[data-v-f68ab76a]{color:#67c23a}.trigger .is-loading[data-v-f68ab76a]{color:#409eff}.trigger .error-color[data-v-f68ab76a]{color:#f56c6c}.trigger[data-v-f68ab76a]:hover{background:#f5f7fa}.trigger.disabled[data-v-f68ab76a]{cursor:pointer}.trigger[data-v-f68ab76a]:disabled{cursor:not-allowed;opacity:.7}.status-icon[data-v-f68ab76a]{font-size:16px}.thinking-arrow[data-v-f68ab76a]{margin-left:auto;transition:transform var(--el-x-thinking-animation-duration)}.thinking-arrow.expanded[data-v-f68ab76a]{transform:rotate(180deg)}.slide-enter-active[data-v-f68ab76a],.slide-leave-active[data-v-f68ab76a]{height:calc-size(max-content,size);opacity:1;transition:height var(--el-x-thinking-animation-duration),opacity var(--el-x-thinking-animation-duration),border var(--el-x-thinking-animation-duration);overflow:hidden}.slide-enter[data-v-f68ab76a],.slide-leave-to[data-v-f68ab76a]{height:0;opacity:0 !important}.slide-enter-to[data-v-f68ab76a],.slide-leave[data-v-f68ab76a]{height:calc-size(max-content,size);opacity:1}.content-wrapper[data-v-f68ab76a]{box-sizing:border-box;min-width:0}.content pre[data-v-f68ab76a]{border:1px solid #dcdfe6;background:var(--el-x-thinking-content-wrapper-background-color);padding:8px calc(8px + 4px);border-radius:8px;max-width:var(--el-x-thinking-content-wrapper-width);font-size:14px;color:var(--el-x-thinking-content-wrapper-color);white-space:pre-wrap;margin:0;line-height:24px}.error-state[data-v-f68ab76a]{border-color:#fde2e2;background:#fde2e2}.error-message[data-v-f68ab76a]{color:#f56c6c;height:fit-content;padding:4px;background:#fde2e2;border-radius:8px}", ""]);
|
|
594
|
+
// Exports
|
|
595
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
639
596
|
|
|
640
|
-
var isOldIE = function isOldIE() {
|
|
641
|
-
var memo;
|
|
642
|
-
return function memorize() {
|
|
643
|
-
if (typeof memo === 'undefined') {
|
|
644
|
-
// Test for IE <= 9 as proposed by Browserhacks
|
|
645
|
-
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
646
|
-
// Tests for existence of standard globals is to allow style-loader
|
|
647
|
-
// to operate correctly into non-standard environments
|
|
648
|
-
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
649
|
-
memo = Boolean(window && document && document.all && !window.atob);
|
|
650
|
-
}
|
|
651
597
|
|
|
652
|
-
|
|
653
|
-
};
|
|
654
|
-
}();
|
|
598
|
+
/***/ }),
|
|
655
599
|
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
return function memorize(target) {
|
|
659
|
-
if (typeof memo[target] === 'undefined') {
|
|
660
|
-
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
600
|
+
/***/ 9497:
|
|
601
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
661
602
|
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
styleTarget = styleTarget.contentDocument.head;
|
|
667
|
-
} catch (e) {
|
|
668
|
-
// istanbul ignore next
|
|
669
|
-
styleTarget = null;
|
|
670
|
-
}
|
|
671
|
-
}
|
|
603
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
604
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
605
|
+
/* harmony export */ });
|
|
606
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2932);
|
|
672
607
|
|
|
673
|
-
|
|
608
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
609
|
+
methods: {
|
|
610
|
+
elXt(...args) {
|
|
611
|
+
return _index__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.t.apply(this, args);
|
|
674
612
|
}
|
|
613
|
+
}
|
|
614
|
+
});
|
|
675
615
|
|
|
676
|
-
|
|
677
|
-
};
|
|
678
|
-
}();
|
|
616
|
+
/***/ })
|
|
679
617
|
|
|
680
|
-
|
|
618
|
+
/******/ });
|
|
619
|
+
/************************************************************************/
|
|
620
|
+
/******/ // The module cache
|
|
621
|
+
/******/ var __webpack_module_cache__ = {};
|
|
622
|
+
/******/
|
|
623
|
+
/******/ // The require function
|
|
624
|
+
/******/ function __webpack_require__(moduleId) {
|
|
625
|
+
/******/ // Check if module is in cache
|
|
626
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
627
|
+
/******/ if (cachedModule !== undefined) {
|
|
628
|
+
/******/ return cachedModule.exports;
|
|
629
|
+
/******/ }
|
|
630
|
+
/******/ // Create a new module (and put it into the cache)
|
|
631
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
632
|
+
/******/ id: moduleId,
|
|
633
|
+
/******/ // no module.loaded needed
|
|
634
|
+
/******/ exports: {}
|
|
635
|
+
/******/ };
|
|
636
|
+
/******/
|
|
637
|
+
/******/ // Execute the module function
|
|
638
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
639
|
+
/******/
|
|
640
|
+
/******/ // Return the exports of the module
|
|
641
|
+
/******/ return module.exports;
|
|
642
|
+
/******/ }
|
|
643
|
+
/******/
|
|
644
|
+
/************************************************************************/
|
|
645
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
646
|
+
/******/ (() => {
|
|
647
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
648
|
+
/******/ __webpack_require__.n = (module) => {
|
|
649
|
+
/******/ var getter = module && module.__esModule ?
|
|
650
|
+
/******/ () => (module['default']) :
|
|
651
|
+
/******/ () => (module);
|
|
652
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
653
|
+
/******/ return getter;
|
|
654
|
+
/******/ };
|
|
655
|
+
/******/ })();
|
|
656
|
+
/******/
|
|
657
|
+
/******/ /* webpack/runtime/define property getters */
|
|
658
|
+
/******/ (() => {
|
|
659
|
+
/******/ // define getter functions for harmony exports
|
|
660
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
661
|
+
/******/ for(var key in definition) {
|
|
662
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
663
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
664
|
+
/******/ }
|
|
665
|
+
/******/ }
|
|
666
|
+
/******/ };
|
|
667
|
+
/******/ })();
|
|
668
|
+
/******/
|
|
669
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
670
|
+
/******/ (() => {
|
|
671
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
672
|
+
/******/ })();
|
|
673
|
+
/******/
|
|
674
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
675
|
+
/******/ (() => {
|
|
676
|
+
/******/ // define __esModule on exports
|
|
677
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
678
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
679
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
680
|
+
/******/ }
|
|
681
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
682
|
+
/******/ };
|
|
683
|
+
/******/ })();
|
|
684
|
+
/******/
|
|
685
|
+
/******/ /* webpack/runtime/nonce */
|
|
686
|
+
/******/ (() => {
|
|
687
|
+
/******/ __webpack_require__.nc = undefined;
|
|
688
|
+
/******/ })();
|
|
689
|
+
/******/
|
|
690
|
+
/************************************************************************/
|
|
691
|
+
var __webpack_exports__ = {};
|
|
692
|
+
// ESM COMPAT FLAG
|
|
693
|
+
__webpack_require__.r(__webpack_exports__);
|
|
681
694
|
|
|
682
|
-
|
|
683
|
-
|
|
695
|
+
// EXPORTS
|
|
696
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
697
|
+
"default": () => (/* binding */ Thinking)
|
|
698
|
+
});
|
|
684
699
|
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
700
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Thinking/src/main.vue?vue&type=template&id=f68ab76a&scoped=true
|
|
701
|
+
var render = function render() {
|
|
702
|
+
var _vm = this,
|
|
703
|
+
_c = _vm._self._c;
|
|
704
|
+
return _c("div", {
|
|
705
|
+
staticClass: "el-x-thinking",
|
|
706
|
+
style: {
|
|
707
|
+
"--el-x-thinking-button-width": _vm.buttonWidth,
|
|
708
|
+
"--el-x-thinking-animation-duration": _vm.duration,
|
|
709
|
+
"--el-x-thinking-content-wrapper-width": _vm.maxWidth,
|
|
710
|
+
"--el-x-thinking-content-wrapper-background-color": _vm.backgroundColor,
|
|
711
|
+
"--el-x-thinking-content-wrapper-color": _vm.color
|
|
689
712
|
}
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
var item = list[i];
|
|
701
|
-
var id = options.base ? item[0] + options.base : item[0];
|
|
702
|
-
var count = idCountMap[id] || 0;
|
|
703
|
-
var identifier = "".concat(id, " ").concat(count);
|
|
704
|
-
idCountMap[id] = count + 1;
|
|
705
|
-
var index = getIndexByIdentifier(identifier);
|
|
706
|
-
var obj = {
|
|
707
|
-
css: item[1],
|
|
708
|
-
media: item[2],
|
|
709
|
-
sourceMap: item[3]
|
|
710
|
-
};
|
|
711
|
-
|
|
712
|
-
if (index !== -1) {
|
|
713
|
-
stylesInDom[index].references++;
|
|
714
|
-
stylesInDom[index].updater(obj);
|
|
715
|
-
} else {
|
|
716
|
-
stylesInDom.push({
|
|
717
|
-
identifier: identifier,
|
|
718
|
-
updater: addStyle(obj, options),
|
|
719
|
-
references: 1
|
|
720
|
-
});
|
|
713
|
+
}, [_c("button", {
|
|
714
|
+
staticClass: "trigger",
|
|
715
|
+
class: [_vm.localStatus, {
|
|
716
|
+
disabled: !_vm.disabled
|
|
717
|
+
}],
|
|
718
|
+
attrs: {
|
|
719
|
+
disabled: _vm.disabled
|
|
720
|
+
},
|
|
721
|
+
on: {
|
|
722
|
+
click: _vm.changeExpand
|
|
721
723
|
}
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
724
|
+
}, [_c("span", {
|
|
725
|
+
staticClass: "status-icon"
|
|
726
|
+
}, [_vm._t("status-icon", function () {
|
|
727
|
+
return [_vm.localStatus === "thinking" ? _c("i", {
|
|
728
|
+
staticClass: "is-loading el-icon-center el-icon-loading"
|
|
729
|
+
}) : _vm._e(), _vm._v(" "), _vm.localStatus === "start" ? _c("i", {
|
|
730
|
+
staticClass: "el-icon-center start-color el-icon-opportunity"
|
|
731
|
+
}) : _vm._e(), _vm._v(" "), _vm.localStatus === "end" ? _c("i", {
|
|
732
|
+
staticClass: "el-icon-center end-color el-icon-success"
|
|
733
|
+
}) : _vm._e(), _vm._v(" "), _vm.localStatus === "error" ? _c("i", {
|
|
734
|
+
staticClass: "el-icon-center error-color el-icon-circle-close"
|
|
735
|
+
}) : _vm._e()];
|
|
736
|
+
}, {
|
|
737
|
+
status: _vm.localStatus
|
|
738
|
+
})], 2), _vm._v(" "), _c("span", {
|
|
739
|
+
staticClass: "label"
|
|
740
|
+
}, [_vm._t("label", function () {
|
|
741
|
+
return [_vm._v("\n " + _vm._s(_vm.localStatus === "thinking" ? _vm.elXt("el_x.thinking.processing") : _vm.localStatus === "error" ? _vm.elXt("el_x.thinking.error") : _vm.localStatus === "end" ? _vm.elXt("el_x.thinking.completed") : _vm.elXt("el_x.thinking.start")) + "\n ")];
|
|
742
|
+
}, {
|
|
743
|
+
status: _vm.localStatus
|
|
744
|
+
})], 2), _vm._v(" "), _c("transition", {
|
|
745
|
+
attrs: {
|
|
746
|
+
name: "rotate"
|
|
738
747
|
}
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
});
|
|
744
|
-
|
|
745
|
-
if (typeof options.insert === 'function') {
|
|
746
|
-
options.insert(style);
|
|
747
|
-
} else {
|
|
748
|
-
var target = getTarget(options.insert || 'head');
|
|
749
|
-
|
|
750
|
-
if (!target) {
|
|
751
|
-
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
748
|
+
}, [!_vm.disabled ? _c("span", {
|
|
749
|
+
staticClass: "thinking-arrow el-icon-center",
|
|
750
|
+
class: {
|
|
751
|
+
expanded: _vm.isExpanded
|
|
752
752
|
}
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
function removeStyleElement(style) {
|
|
761
|
-
// istanbul ignore if
|
|
762
|
-
if (style.parentNode === null) {
|
|
763
|
-
return false;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
style.parentNode.removeChild(style);
|
|
767
|
-
}
|
|
768
|
-
/* istanbul ignore next */
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
var replaceText = function replaceText() {
|
|
772
|
-
var textStore = [];
|
|
773
|
-
return function replace(index, replacement) {
|
|
774
|
-
textStore[index] = replacement;
|
|
775
|
-
return textStore.filter(Boolean).join('\n');
|
|
776
|
-
};
|
|
777
|
-
}();
|
|
778
|
-
|
|
779
|
-
function applyToSingletonTag(style, index, remove, obj) {
|
|
780
|
-
var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
|
|
781
|
-
|
|
782
|
-
/* istanbul ignore if */
|
|
783
|
-
|
|
784
|
-
if (style.styleSheet) {
|
|
785
|
-
style.styleSheet.cssText = replaceText(index, css);
|
|
786
|
-
} else {
|
|
787
|
-
var cssNode = document.createTextNode(css);
|
|
788
|
-
var childNodes = style.childNodes;
|
|
789
|
-
|
|
790
|
-
if (childNodes[index]) {
|
|
791
|
-
style.removeChild(childNodes[index]);
|
|
753
|
+
}, [_vm._t("arrow", function () {
|
|
754
|
+
return [_c("i", {
|
|
755
|
+
staticClass: "el-icon-center el-icon-arrow-up"
|
|
756
|
+
})];
|
|
757
|
+
})], 2) : _vm._e()])], 1), _vm._v(" "), _c("transition", {
|
|
758
|
+
attrs: {
|
|
759
|
+
name: "slide"
|
|
792
760
|
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
style.appendChild(cssNode);
|
|
761
|
+
}, [_vm.isExpanded && _vm.displayedContent ? _c("div", {
|
|
762
|
+
staticClass: "content-wrapper",
|
|
763
|
+
class: {
|
|
764
|
+
"error-state": _vm.localStatus === "error"
|
|
798
765
|
}
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
} // For old IE
|
|
766
|
+
}, [_c("div", {
|
|
767
|
+
staticClass: "content"
|
|
768
|
+
}, [_vm.localStatus !== "error" ? _vm._t("content", function () {
|
|
769
|
+
return [_c("pre", [_vm._v(_vm._s(_vm.displayedContent))])];
|
|
770
|
+
}, {
|
|
771
|
+
content: _vm.displayedContent
|
|
772
|
+
}) : _vm._t("error", function () {
|
|
773
|
+
return [_c("div", {
|
|
774
|
+
staticClass: "error-message"
|
|
775
|
+
}, [_vm._v(_vm._s(_vm.displayedContent))])];
|
|
776
|
+
}, {
|
|
777
|
+
errorContent: _vm.displayedContent
|
|
778
|
+
})], 2)]) : _vm._e()])], 1);
|
|
779
|
+
};
|
|
780
|
+
var staticRenderFns = [];
|
|
781
|
+
render._withStripped = true;
|
|
816
782
|
|
|
817
|
-
|
|
783
|
+
;// ./src/components/Thinking/src/main.vue?vue&type=template&id=f68ab76a&scoped=true
|
|
818
784
|
|
|
785
|
+
// EXTERNAL MODULE: ./src/locale/mixin.js
|
|
786
|
+
var mixin = __webpack_require__(9497);
|
|
787
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Thinking/src/main.vue?vue&type=script&lang=js
|
|
819
788
|
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
789
|
+
/* harmony default export */ const mainvue_type_script_lang_js = ({
|
|
790
|
+
name: 'ElXThinking',
|
|
791
|
+
mixins: [mixin/* default */.A],
|
|
792
|
+
props: {
|
|
793
|
+
content: {
|
|
794
|
+
type: String,
|
|
795
|
+
default: ''
|
|
796
|
+
},
|
|
797
|
+
modelValue: {
|
|
798
|
+
type: Boolean,
|
|
799
|
+
default: true
|
|
800
|
+
},
|
|
801
|
+
status: {
|
|
802
|
+
type: String,
|
|
803
|
+
default: 'start',
|
|
804
|
+
validator: function (value) {
|
|
805
|
+
return ['start', 'thinking', 'end', 'error'].indexOf(value) !== -1;
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
disabled: {
|
|
809
|
+
type: Boolean,
|
|
810
|
+
default: false
|
|
811
|
+
},
|
|
812
|
+
autoCollapse: {
|
|
813
|
+
type: Boolean,
|
|
814
|
+
default: false
|
|
815
|
+
},
|
|
816
|
+
buttonWidth: {
|
|
817
|
+
type: String,
|
|
818
|
+
default: '160px'
|
|
819
|
+
},
|
|
820
|
+
duration: {
|
|
821
|
+
type: String,
|
|
822
|
+
default: '0.2s'
|
|
823
|
+
},
|
|
824
|
+
maxWidth: {
|
|
825
|
+
type: String,
|
|
826
|
+
default: '500px'
|
|
827
|
+
},
|
|
828
|
+
backgroundColor: {
|
|
829
|
+
type: String,
|
|
830
|
+
default: '#fcfcfc'
|
|
831
|
+
},
|
|
832
|
+
color: {
|
|
833
|
+
type: String,
|
|
834
|
+
default: '#909399'
|
|
825
835
|
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
var singleton = null;
|
|
832
|
-
var singletonCounter = 0;
|
|
833
|
-
|
|
834
|
-
function addStyle(obj, options) {
|
|
835
|
-
var style;
|
|
836
|
-
var update;
|
|
837
|
-
var remove;
|
|
838
|
-
|
|
839
|
-
if (options.singleton) {
|
|
840
|
-
var styleIndex = singletonCounter++;
|
|
841
|
-
style = singleton || (singleton = insertStyleElement(options));
|
|
842
|
-
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
843
|
-
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
844
|
-
} else {
|
|
845
|
-
style = insertStyleElement(options);
|
|
846
|
-
update = applyToTag.bind(null, style, options);
|
|
847
|
-
|
|
848
|
-
remove = function remove() {
|
|
849
|
-
removeStyleElement(style);
|
|
836
|
+
},
|
|
837
|
+
data() {
|
|
838
|
+
return {
|
|
839
|
+
isExpanded: this.modelValue,
|
|
840
|
+
localStatus: this.status
|
|
850
841
|
};
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
if (newObj) {
|
|
856
|
-
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
857
|
-
return;
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
update(obj = newObj);
|
|
861
|
-
} else {
|
|
862
|
-
remove();
|
|
842
|
+
},
|
|
843
|
+
computed: {
|
|
844
|
+
displayedContent() {
|
|
845
|
+
return this.localStatus === 'error' ? this.elXt('el_x.thinking.errorContent') : this.content;
|
|
863
846
|
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
847
|
+
},
|
|
848
|
+
watch: {
|
|
849
|
+
modelValue(newVal) {
|
|
850
|
+
this.isExpanded = newVal;
|
|
851
|
+
},
|
|
852
|
+
status(newVal) {
|
|
853
|
+
this.localStatus = newVal;
|
|
854
|
+
if (newVal === 'end' && this.autoCollapse) {
|
|
855
|
+
this.isExpanded = false;
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
$attrs: {
|
|
859
|
+
handler(newVal) {
|
|
860
|
+
if (newVal['onUpdate:status']) {
|
|
861
|
+
this.$emit('update:status', this.localStatus);
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
immediate: true
|
|
882
865
|
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
866
|
+
},
|
|
867
|
+
methods: {
|
|
868
|
+
changeExpand() {
|
|
869
|
+
if (this.disabled) return;
|
|
870
|
+
this.isExpanded = !this.isExpanded;
|
|
871
|
+
this.$emit('change', {
|
|
872
|
+
value: this.isExpanded,
|
|
873
|
+
status: this.localStatus
|
|
874
|
+
});
|
|
875
|
+
this.$emit('update:expanded', this.isExpanded);
|
|
888
876
|
}
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
;// ./src/components/Thinking/src/main.vue?vue&type=script&lang=js
|
|
880
|
+
/* harmony default export */ const src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
881
|
+
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
882
|
+
var injectStylesIntoStyleTag = __webpack_require__(5072);
|
|
883
|
+
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
884
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Thinking/src/main.vue?vue&type=style&index=0&id=f68ab76a&prod&lang=scss&scoped=true
|
|
885
|
+
var mainvue_type_style_index_0_id_f68ab76a_prod_lang_scss_scoped_true = __webpack_require__(7755);
|
|
886
|
+
;// ./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??clonedRuleSet-2.use[2]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/Thinking/src/main.vue?vue&type=style&index=0&id=f68ab76a&prod&lang=scss&scoped=true
|
|
889
887
|
|
|
890
|
-
|
|
888
|
+
|
|
891
889
|
|
|
892
|
-
|
|
893
|
-
var _identifier = lastIdentifiers[_i];
|
|
890
|
+
var options = {};
|
|
894
891
|
|
|
895
|
-
|
|
892
|
+
options.insert = "head";
|
|
893
|
+
options.singleton = false;
|
|
896
894
|
|
|
897
|
-
|
|
898
|
-
stylesInDom[_index].updater();
|
|
895
|
+
var update = injectStylesIntoStyleTag_default()(mainvue_type_style_index_0_id_f68ab76a_prod_lang_scss_scoped_true/* default */.A, options);
|
|
899
896
|
|
|
900
|
-
stylesInDom.splice(_index, 1);
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
897
|
|
|
904
|
-
lastIdentifiers = newLastIdentifiers;
|
|
905
|
-
};
|
|
906
|
-
};
|
|
907
898
|
|
|
908
|
-
|
|
899
|
+
/* harmony default export */ const src_mainvue_type_style_index_0_id_f68ab76a_prod_lang_scss_scoped_true = (mainvue_type_style_index_0_id_f68ab76a_prod_lang_scss_scoped_true/* default */.A.locals || {});
|
|
900
|
+
;// ./src/components/Thinking/src/main.vue?vue&type=style&index=0&id=f68ab76a&prod&lang=scss&scoped=true
|
|
909
901
|
|
|
910
|
-
|
|
911
|
-
|
|
902
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
903
|
+
var componentNormalizer = __webpack_require__(4486);
|
|
904
|
+
;// ./src/components/Thinking/src/main.vue
|
|
912
905
|
|
|
913
|
-
"use strict";
|
|
914
|
-
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25);
|
|
915
906
|
|
|
916
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
917
|
-
methods: {
|
|
918
|
-
elXt(...args) {
|
|
919
|
-
return _index__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].t.apply(this, args);
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
});
|
|
923
907
|
|
|
924
|
-
|
|
908
|
+
;
|
|
925
909
|
|
|
926
|
-
/***/ 96:
|
|
927
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
928
910
|
|
|
929
|
-
|
|
930
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
931
|
-
/* 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__);
|
|
932
|
-
// Imports
|
|
911
|
+
/* normalize component */
|
|
933
912
|
|
|
934
|
-
var
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
913
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
914
|
+
src_mainvue_type_script_lang_js,
|
|
915
|
+
render,
|
|
916
|
+
staticRenderFns,
|
|
917
|
+
false,
|
|
918
|
+
null,
|
|
919
|
+
"f68ab76a",
|
|
920
|
+
null
|
|
921
|
+
|
|
922
|
+
)
|
|
939
923
|
|
|
924
|
+
/* harmony default export */ const main = (component.exports);
|
|
925
|
+
;// ./src/components/Thinking/index.js
|
|
940
926
|
|
|
941
|
-
/***/ })
|
|
942
927
|
|
|
943
|
-
|
|
928
|
+
/* istanbul ignore next */
|
|
929
|
+
main.install = function (Vue) {
|
|
930
|
+
Vue.component(main.name, main);
|
|
931
|
+
};
|
|
932
|
+
/* harmony default export */ const Thinking = (main);
|
|
933
|
+
module.exports = __webpack_exports__;
|
|
934
|
+
/******/ })()
|
|
935
|
+
;
|