vue-element-ui-x 0.2.2 → 1.0.2
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/components/Attachments/index.js +18 -18
- package/lib/components/Bubble/index.js +145 -155
- package/lib/components/BubbleList/index.js +180 -207
- package/lib/components/Conversations/index.js +14370 -14370
- package/lib/components/FilesCard/index.js +5 -5
- package/lib/components/Prompts/index.js +25 -25
- package/lib/components/Sender/index.js +1606 -1459
- package/lib/components/Thinking/index.js +157 -23
- package/lib/components/ThoughtChain/index.js +143 -144
- package/lib/components/Typewriter/index.js +124 -125
- package/lib/components/Welcome/index.js +5 -5
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +817 -389
- package/lib/index.umd.js +1 -1
- package/lib/locale/index.js +97 -0
- package/lib/locale/lang/ar-SA.js +18 -0
- package/lib/locale/lang/ar-SA.umd.js +26 -0
- package/lib/locale/lang/ar.js +18 -0
- package/lib/locale/lang/ar.umd.js +26 -0
- package/lib/locale/lang/de-DE.js +18 -0
- package/lib/locale/lang/de-DE.umd.js +26 -0
- package/lib/locale/lang/de.js +18 -0
- package/lib/locale/lang/de.umd.js +26 -0
- package/lib/locale/lang/en.js +18 -0
- package/lib/locale/lang/en.umd.js +26 -0
- package/lib/locale/lang/es-ES.js +18 -0
- package/lib/locale/lang/es-ES.umd.js +26 -0
- package/lib/locale/lang/es.js +18 -0
- package/lib/locale/lang/es.umd.js +26 -0
- package/lib/locale/lang/fr-FR.js +18 -0
- package/lib/locale/lang/fr-FR.umd.js +26 -0
- package/lib/locale/lang/fr.js +18 -0
- package/lib/locale/lang/fr.umd.js +26 -0
- package/lib/locale/lang/index.js +50 -0
- package/lib/locale/lang/it-IT.js +18 -0
- package/lib/locale/lang/it-IT.umd.js +26 -0
- package/lib/locale/lang/it.js +18 -0
- package/lib/locale/lang/it.umd.js +26 -0
- package/lib/locale/lang/ja-JP.js +18 -0
- package/lib/locale/lang/ja-JP.umd.js +26 -0
- package/lib/locale/lang/ja.js +18 -0
- package/lib/locale/lang/ja.umd.js +26 -0
- package/lib/locale/lang/ko-KR.js +18 -0
- package/lib/locale/lang/ko-KR.umd.js +26 -0
- package/lib/locale/lang/ko.js +18 -0
- package/lib/locale/lang/ko.umd.js +26 -0
- package/lib/locale/lang/pt-BR.js +18 -0
- package/lib/locale/lang/pt-BR.umd.js +26 -0
- package/lib/locale/lang/ru-RU.js +18 -0
- package/lib/locale/lang/ru-RU.umd.js +26 -0
- package/lib/locale/lang/zh-CN.js +18 -0
- package/lib/locale/lang/zh-CN.umd.js +26 -0
- package/lib/locale/lang/zh-TW.js +18 -0
- package/lib/locale/lang/zh-TW.umd.js +26 -0
- package/lib/locale/mixin.js +9 -0
- package/package.json +15 -10
- package/src/components/Attachments/src/main.vue +2 -10
- package/src/components/Bubble/src/main.vue +288 -299
- package/src/components/BubbleList/src/main.vue +2 -19
- package/src/components/Conversations/src/main.vue +0 -41
- package/src/components/Prompts/src/main.vue +248 -248
- package/src/components/Sender/src/components/LoadingButton.vue +37 -39
- package/src/components/Sender/src/components/SpeechLoadingButton.vue +41 -43
- package/src/components/Sender/src/main.vue +13 -3
- package/src/components/Thinking/src/main.vue +13 -9
- package/src/components/ThoughtChain/src/main.vue +1 -3
- package/src/components/Typewriter/src/main.vue +3 -7
- package/src/components/Welcome/src/main.vue +151 -151
- package/src/index.js +23 -6
- package/src/locale/index.js +97 -0
- package/src/locale/lang/ar.js +18 -0
- package/src/locale/lang/de.js +18 -0
- package/src/locale/lang/en.js +18 -0
- package/src/locale/lang/es.js +18 -0
- package/src/locale/lang/fr.js +18 -0
- package/src/locale/lang/index.js +62 -0
- package/src/locale/lang/it.js +18 -0
- package/src/locale/lang/ja.js +18 -0
- package/src/locale/lang/ko.js +18 -0
- package/src/locale/lang/pt-br.js +18 -0
- package/src/locale/lang/ru-RU.js +18 -0
- package/src/locale/lang/zh-CN.js +18 -0
- package/src/locale/lang/zh-TW.js +18 -0
- package/src/locale/mixin.js +9 -0
- package/src/styles/Attachments.scss +236 -236
- package/src/styles/Bubble.scss +5 -4
- package/src/styles/BubbleList.scss +148 -148
- package/src/styles/Conversations.scss +260 -260
- package/src/styles/FilesCard.scss +222 -221
- package/src/styles/Prompts.scss +197 -195
- package/src/styles/Sender.scss +207 -199
- package/src/styles/Thinking.scss +36 -6
- package/src/styles/ThoughtChain.scss +113 -113
- package/src/styles/Typewriter.scss +66 -66
- package/src/styles/var.scss +4 -5
- package/src/theme/var.scss +183 -72
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
el_x: {
|
|
3
|
+
thinking: {
|
|
4
|
+
start: '思考を開始',
|
|
5
|
+
processing: '思考中...',
|
|
6
|
+
completed: '思考完了',
|
|
7
|
+
error: '思考エラー',
|
|
8
|
+
errorContent: '思考中にエラーが発生しました',
|
|
9
|
+
},
|
|
10
|
+
sender: { placeholder: '内容を入力してください' },
|
|
11
|
+
common: {
|
|
12
|
+
loading: '読み込み中...',
|
|
13
|
+
success: '成功',
|
|
14
|
+
error: 'エラー',
|
|
15
|
+
warning: '警告',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ja = factory()));
|
|
5
|
+
}(this, function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
el_x: {
|
|
9
|
+
thinking: {
|
|
10
|
+
start: '思考を開始',
|
|
11
|
+
processing: '思考中...',
|
|
12
|
+
completed: '思考完了',
|
|
13
|
+
error: '思考エラー',
|
|
14
|
+
errorContent: '思考中にエラーが発生しました',
|
|
15
|
+
},
|
|
16
|
+
sender: { placeholder: '内容を入力してください' },
|
|
17
|
+
common: {
|
|
18
|
+
loading: '読み込み中...',
|
|
19
|
+
success: '成功',
|
|
20
|
+
error: 'エラー',
|
|
21
|
+
warning: '警告',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
el_x: {
|
|
3
|
+
thinking: {
|
|
4
|
+
start: '思考を開始',
|
|
5
|
+
processing: '思考中...',
|
|
6
|
+
completed: '思考完了',
|
|
7
|
+
error: '思考エラー',
|
|
8
|
+
errorContent: '思考中にエラーが発生しました',
|
|
9
|
+
},
|
|
10
|
+
sender: { placeholder: '内容を入力してください' },
|
|
11
|
+
common: {
|
|
12
|
+
loading: '読み込み中...',
|
|
13
|
+
success: '成功',
|
|
14
|
+
error: 'エラー',
|
|
15
|
+
warning: '警告',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ja = factory()));
|
|
5
|
+
}(this, function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
el_x: {
|
|
9
|
+
thinking: {
|
|
10
|
+
start: '思考を開始',
|
|
11
|
+
processing: '思考中...',
|
|
12
|
+
completed: '思考完了',
|
|
13
|
+
error: '思考エラー',
|
|
14
|
+
errorContent: '思考中にエラーが発生しました',
|
|
15
|
+
},
|
|
16
|
+
sender: { placeholder: '内容を入力してください' },
|
|
17
|
+
common: {
|
|
18
|
+
loading: '読み込み中...',
|
|
19
|
+
success: '成功',
|
|
20
|
+
error: 'エラー',
|
|
21
|
+
warning: '警告',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
el_x: {
|
|
3
|
+
thinking: {
|
|
4
|
+
start: '생각 시작',
|
|
5
|
+
processing: '생각 중...',
|
|
6
|
+
completed: '생각 완료',
|
|
7
|
+
error: '생각 오류',
|
|
8
|
+
errorContent: '생각 중 오류가 발생했습니다',
|
|
9
|
+
},
|
|
10
|
+
sender: { placeholder: '내용을 입력하세요' },
|
|
11
|
+
common: {
|
|
12
|
+
loading: '로딩 중...',
|
|
13
|
+
success: '성공',
|
|
14
|
+
error: '오류',
|
|
15
|
+
warning: '경고',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ko = factory()));
|
|
5
|
+
}(this, function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
el_x: {
|
|
9
|
+
thinking: {
|
|
10
|
+
start: '생각 시작',
|
|
11
|
+
processing: '생각 중...',
|
|
12
|
+
completed: '생각 완료',
|
|
13
|
+
error: '생각 오류',
|
|
14
|
+
errorContent: '생각 중 오류가 발생했습니다',
|
|
15
|
+
},
|
|
16
|
+
sender: { placeholder: '내용을 입력하세요' },
|
|
17
|
+
common: {
|
|
18
|
+
loading: '로딩 중...',
|
|
19
|
+
success: '성공',
|
|
20
|
+
error: '오류',
|
|
21
|
+
warning: '경고',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
el_x: {
|
|
3
|
+
thinking: {
|
|
4
|
+
start: '생각 시작',
|
|
5
|
+
processing: '생각 중...',
|
|
6
|
+
completed: '생각 완료',
|
|
7
|
+
error: '생각 오류',
|
|
8
|
+
errorContent: '생각 중 오류가 발생했습니다',
|
|
9
|
+
},
|
|
10
|
+
sender: { placeholder: '내용을 입력하세요' },
|
|
11
|
+
common: {
|
|
12
|
+
loading: '로딩 중...',
|
|
13
|
+
success: '성공',
|
|
14
|
+
error: '오류',
|
|
15
|
+
warning: '경고',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ko = factory()));
|
|
5
|
+
}(this, function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
el_x: {
|
|
9
|
+
thinking: {
|
|
10
|
+
start: '생각 시작',
|
|
11
|
+
processing: '생각 중...',
|
|
12
|
+
completed: '생각 완료',
|
|
13
|
+
error: '생각 오류',
|
|
14
|
+
errorContent: '생각 중 오류가 발생했습니다',
|
|
15
|
+
},
|
|
16
|
+
sender: { placeholder: '내용을 입력하세요' },
|
|
17
|
+
common: {
|
|
18
|
+
loading: '로딩 중...',
|
|
19
|
+
success: '성공',
|
|
20
|
+
error: '오류',
|
|
21
|
+
warning: '경고',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
el_x: {
|
|
3
|
+
thinking: {
|
|
4
|
+
start: 'Começar a pensar',
|
|
5
|
+
processing: 'Pensando...',
|
|
6
|
+
completed: 'Pensamento concluído',
|
|
7
|
+
error: 'Erro de pensamento',
|
|
8
|
+
errorContent: 'Ocorreu um erro durante o pensamento',
|
|
9
|
+
},
|
|
10
|
+
sender: { placeholder: 'Por favor, insira o conteúdo' },
|
|
11
|
+
common: {
|
|
12
|
+
loading: 'Carregando...',
|
|
13
|
+
success: 'Sucesso',
|
|
14
|
+
error: 'Erro',
|
|
15
|
+
warning: 'Aviso',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ptBr = factory()));
|
|
5
|
+
}(this, function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
el_x: {
|
|
9
|
+
thinking: {
|
|
10
|
+
start: 'Começar a pensar',
|
|
11
|
+
processing: 'Pensando...',
|
|
12
|
+
completed: 'Pensamento concluído',
|
|
13
|
+
error: 'Erro de pensamento',
|
|
14
|
+
errorContent: 'Ocorreu um erro durante o pensamento',
|
|
15
|
+
},
|
|
16
|
+
sender: { placeholder: 'Por favor, insira o conteúdo' },
|
|
17
|
+
common: {
|
|
18
|
+
loading: 'Carregando...',
|
|
19
|
+
success: 'Sucesso',
|
|
20
|
+
error: 'Erro',
|
|
21
|
+
warning: 'Aviso',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
el_x: {
|
|
3
|
+
thinking: {
|
|
4
|
+
start: 'Начать размышление',
|
|
5
|
+
processing: 'Размышление...',
|
|
6
|
+
completed: 'Размышление завершено',
|
|
7
|
+
error: 'Ошибка размышления',
|
|
8
|
+
errorContent: 'Произошла ошибка во время размышления',
|
|
9
|
+
},
|
|
10
|
+
sender: { placeholder: 'Пожалуйста, введите содержание' },
|
|
11
|
+
common: {
|
|
12
|
+
loading: 'Загрузка...',
|
|
13
|
+
success: 'Успех',
|
|
14
|
+
error: 'Ошибка',
|
|
15
|
+
warning: 'Предупреждение',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.ru = factory()));
|
|
5
|
+
}(this, function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
el_x: {
|
|
9
|
+
thinking: {
|
|
10
|
+
start: 'Начать размышление',
|
|
11
|
+
processing: 'Размышление...',
|
|
12
|
+
completed: 'Размышление завершено',
|
|
13
|
+
error: 'Ошибка размышления',
|
|
14
|
+
errorContent: 'Произошла ошибка во время размышления',
|
|
15
|
+
},
|
|
16
|
+
sender: { placeholder: 'Пожалуйста, введите содержание' },
|
|
17
|
+
common: {
|
|
18
|
+
loading: 'Загрузка...',
|
|
19
|
+
success: 'Успех',
|
|
20
|
+
error: 'Ошибка',
|
|
21
|
+
warning: 'Предупреждение',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
el_x: {
|
|
3
|
+
thinking: {
|
|
4
|
+
start: '开始思考',
|
|
5
|
+
processing: '思考中...',
|
|
6
|
+
completed: '思考完成',
|
|
7
|
+
error: '思考遇到问题',
|
|
8
|
+
errorContent: '思考过程中出现错误',
|
|
9
|
+
},
|
|
10
|
+
sender: { placeholder: '请输入内容' },
|
|
11
|
+
common: {
|
|
12
|
+
loading: '加载中...',
|
|
13
|
+
success: '成功',
|
|
14
|
+
error: '错误',
|
|
15
|
+
warning: '警告',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.zhCN = factory()));
|
|
5
|
+
}(this, function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
el_x: {
|
|
9
|
+
thinking: {
|
|
10
|
+
start: '开始思考',
|
|
11
|
+
processing: '思考中...',
|
|
12
|
+
completed: '思考完成',
|
|
13
|
+
error: '思考遇到问题',
|
|
14
|
+
errorContent: '思考过程中出现错误',
|
|
15
|
+
},
|
|
16
|
+
sender: { placeholder: '请输入内容' },
|
|
17
|
+
common: {
|
|
18
|
+
loading: '加载中...',
|
|
19
|
+
success: '成功',
|
|
20
|
+
error: '错误',
|
|
21
|
+
warning: '警告',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
el_x: {
|
|
3
|
+
thinking: {
|
|
4
|
+
start: '開始思考',
|
|
5
|
+
processing: '思考中...',
|
|
6
|
+
completed: '思考完成',
|
|
7
|
+
error: '思考遇到問題',
|
|
8
|
+
errorContent: '思考過程中出現錯誤',
|
|
9
|
+
},
|
|
10
|
+
sender: { placeholder: '請輸入內容' },
|
|
11
|
+
common: {
|
|
12
|
+
loading: '載入中...',
|
|
13
|
+
success: '成功',
|
|
14
|
+
error: '錯誤',
|
|
15
|
+
warning: '警告',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
+
(global = global || self, (global.ELEMENT_UI_X = global.ELEMENT_UI_X || {}, global.ELEMENT_UI_X.lang = global.ELEMENT_UI_X.lang || {}, global.ELEMENT_UI_X.lang.zhTW = factory()));
|
|
5
|
+
}(this, function () { 'use strict';
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
el_x: {
|
|
9
|
+
thinking: {
|
|
10
|
+
start: '開始思考',
|
|
11
|
+
processing: '思考中...',
|
|
12
|
+
completed: '思考完成',
|
|
13
|
+
error: '思考遇到問題',
|
|
14
|
+
errorContent: '思考過程中出現錯誤',
|
|
15
|
+
},
|
|
16
|
+
sender: { placeholder: '請輸入內容' },
|
|
17
|
+
common: {
|
|
18
|
+
loading: '載入中...',
|
|
19
|
+
success: '成功',
|
|
20
|
+
error: '錯誤',
|
|
21
|
+
warning: '警告',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
}));
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-element-ui-x",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "基于Vue 2 + Element UI的AI聊天组件库",
|
|
5
|
-
"main": "lib/index.
|
|
6
|
-
"module": "lib/index.
|
|
5
|
+
"main": "lib/index.common.js",
|
|
6
|
+
"module": "lib/index.esm.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib",
|
|
9
9
|
"src",
|
|
@@ -20,17 +20,21 @@
|
|
|
20
20
|
"keywords": [
|
|
21
21
|
"element-ui",
|
|
22
22
|
"vue",
|
|
23
|
-
"ai"
|
|
23
|
+
"ai",
|
|
24
|
+
"i18n"
|
|
24
25
|
],
|
|
25
26
|
"bugs": {
|
|
26
27
|
"url": "https://github.com/worryzyy/element-ui-x/issues"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
|
-
"build": "npm run build:common && npm run build:esm && npm run build:umd && npm run build:components",
|
|
30
|
-
"build:common": "webpack --config build/webpack.common.conf.js",
|
|
31
|
-
"build:esm": "webpack --config build/webpack.esm.conf.js",
|
|
32
|
-
"build:umd": "webpack --config build/webpack.umd.conf.js",
|
|
33
|
-
"build:components": "node build/build-components.js"
|
|
30
|
+
"build": "npm run build:common && npm run build:esm && npm run build:umd && npm run build:components && npm run build:locale",
|
|
31
|
+
"build:common": "cross-env SASS_SILENCE_DEPRECATIONS=legacy-js-api,import webpack --config build/webpack.common.conf.js",
|
|
32
|
+
"build:esm": "cross-env SASS_SILENCE_DEPRECATIONS=legacy-js-api,import webpack --config build/webpack.esm.conf.js",
|
|
33
|
+
"build:umd": "cross-env SASS_SILENCE_DEPRECATIONS=legacy-js-api,import webpack --config build/webpack.umd.conf.js",
|
|
34
|
+
"build:components": "cross-env SASS_SILENCE_DEPRECATIONS=legacy-js-api,import node build/build-components.js",
|
|
35
|
+
"build:locale": "cross-env SASS_SILENCE_DEPRECATIONS=legacy-js-api,import node build/build-locale.js",
|
|
36
|
+
"build:lib": "npm run build",
|
|
37
|
+
"publish:lib": "npm publish"
|
|
34
38
|
},
|
|
35
39
|
"peerDependencies": {
|
|
36
40
|
"element-ui": "2.15.14",
|
|
@@ -38,8 +42,9 @@
|
|
|
38
42
|
},
|
|
39
43
|
"devDependencies": {
|
|
40
44
|
"babel-loader": "^8.2.3",
|
|
45
|
+
"cross-env": "^7.0.3",
|
|
41
46
|
"css-loader": "^5.2.7",
|
|
42
|
-
"
|
|
47
|
+
"sass": "^1.32.13",
|
|
43
48
|
"sass-loader": "^10.0.0",
|
|
44
49
|
"style-loader": "^2.0.0",
|
|
45
50
|
"terser-webpack-plugin": "^4.2.3",
|
|
@@ -159,9 +159,7 @@
|
|
|
159
159
|
|
|
160
160
|
export default {
|
|
161
161
|
name: 'ElXAttachments',
|
|
162
|
-
components: {
|
|
163
|
-
ElXFilesCard,
|
|
164
|
-
},
|
|
162
|
+
components: { ElXFilesCard },
|
|
165
163
|
props: {
|
|
166
164
|
items: {
|
|
167
165
|
type: Array,
|
|
@@ -348,13 +346,7 @@
|
|
|
348
346
|
|
|
349
347
|
// 默认实现:发出事件,让父组件处理
|
|
350
348
|
const { file } = options;
|
|
351
|
-
this.$emit(
|
|
352
|
-
'upload-change',
|
|
353
|
-
{
|
|
354
|
-
file,
|
|
355
|
-
},
|
|
356
|
-
[file],
|
|
357
|
-
);
|
|
349
|
+
this.$emit('upload-change', { file }, [file]);
|
|
358
350
|
|
|
359
351
|
// 如果需要模拟上传进度和成功/失败状态,可以在此实现
|
|
360
352
|
// 例如:options.onProgress({ percent: 50 })
|