vue-element-ui-x 1.0.51 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +140 -140
- package/components.json +12 -12
- package/lib/components/Attachments/index.js +17 -17
- package/lib/components/EditorSender/index.js +1508 -0
- package/lib/components/FilesCard/index.js +16 -16
- package/lib/components/Prompts/index.js +21 -21
- package/lib/index.common.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1274 -287
- package/lib/index.umd.js +1 -1
- package/lib/locale/index.js +97 -97
- package/lib/locale/lang/ar.js +18 -18
- package/lib/locale/lang/ar.umd.js +17 -17
- package/lib/locale/lang/de.js +18 -18
- package/lib/locale/lang/de.umd.js +17 -17
- package/lib/locale/lang/en.js +18 -18
- package/lib/locale/lang/en.umd.js +17 -17
- package/lib/locale/lang/es.js +18 -18
- package/lib/locale/lang/es.umd.js +17 -17
- package/lib/locale/lang/fr.js +18 -18
- package/lib/locale/lang/fr.umd.js +17 -17
- package/lib/locale/lang/it.js +18 -18
- package/lib/locale/lang/it.umd.js +17 -17
- package/lib/locale/lang/ja.js +18 -18
- package/lib/locale/lang/ja.umd.js +17 -17
- package/lib/locale/lang/ko.js +18 -18
- package/lib/locale/lang/ko.umd.js +17 -17
- package/lib/locale/lang/pt-br.js +18 -18
- package/lib/locale/lang/pt-br.umd.js +17 -17
- package/lib/locale/lang/ru-RU.js +18 -18
- package/lib/locale/lang/ru-RU.umd.js +17 -17
- package/lib/locale/lang/zh-CN.js +18 -18
- package/lib/locale/lang/zh-CN.umd.js +17 -17
- package/lib/locale/lang/zh-TW.js +18 -18
- package/lib/locale/lang/zh-TW.umd.js +17 -17
- package/lib/locale/mixin.js +9 -9
- package/lib/mixins/index.js +250 -250
- package/package.json +77 -76
|
@@ -726,18 +726,18 @@ render._withStripped = true;
|
|
|
726
726
|
;// ./src/components/FilesCard/src/main.vue?vue&type=template&id=eaf958fa&scoped=true
|
|
727
727
|
|
|
728
728
|
;// ./src/utils/index.js
|
|
729
|
-
/**
|
|
730
|
-
* 判断文件类型是否为图片
|
|
731
|
-
* @param {string} type 文件类型
|
|
732
|
-
* @returns {boolean} 是否为图片类型
|
|
729
|
+
/**
|
|
730
|
+
* 判断文件类型是否为图片
|
|
731
|
+
* @param {string} type 文件类型
|
|
732
|
+
* @returns {boolean} 是否为图片类型
|
|
733
733
|
*/
|
|
734
734
|
const isImageFileType = type => type.indexOf('image/') === 0;
|
|
735
735
|
const MEASURE_SIZE = 200;
|
|
736
736
|
|
|
737
|
-
/**
|
|
738
|
-
* 预览图片文件并生成预览URL
|
|
739
|
-
* @param {File|Blob} file 图片文件对象
|
|
740
|
-
* @returns {Promise<string>} 返回图片预览URL的Promise
|
|
737
|
+
/**
|
|
738
|
+
* 预览图片文件并生成预览URL
|
|
739
|
+
* @param {File|Blob} file 图片文件对象
|
|
740
|
+
* @returns {Promise<string>} 返回图片预览URL的Promise
|
|
741
741
|
*/
|
|
742
742
|
function previewImage(file) {
|
|
743
743
|
return new Promise(resolve => {
|
|
@@ -789,10 +789,10 @@ function previewImage(file) {
|
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
-
/**
|
|
793
|
-
* 根据文件后缀名获取文件类型
|
|
794
|
-
* @param {string} fileExtension 文件后缀名
|
|
795
|
-
* @returns {{lowerCase: string, upperCase: string}} 返回文件类型对象
|
|
792
|
+
/**
|
|
793
|
+
* 根据文件后缀名获取文件类型
|
|
794
|
+
* @param {string} fileExtension 文件后缀名
|
|
795
|
+
* @returns {{lowerCase: string, upperCase: string}} 返回文件类型对象
|
|
796
796
|
*/
|
|
797
797
|
function getFileType(fileExtension) {
|
|
798
798
|
// 去除后缀名开头的点,并转换为小写
|
|
@@ -903,10 +903,10 @@ function getFileType(fileExtension) {
|
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
905
|
|
|
906
|
-
/**
|
|
907
|
-
* 获取文件大小
|
|
908
|
-
* @param {number} size 文件大小
|
|
909
|
-
* @returns {string} 返回文件大小
|
|
906
|
+
/**
|
|
907
|
+
* 获取文件大小
|
|
908
|
+
* @param {number} size 文件大小
|
|
909
|
+
* @returns {string} 返回文件大小
|
|
910
910
|
*/
|
|
911
911
|
function getSize(size) {
|
|
912
912
|
let retSize = size;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
16
16
|
// Module
|
|
17
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-ee2290d4]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.el-x-prompts[data-v-ee2290d4]{max-width:100%}.el-x-prompts[data-v-ee2290d4],.el-x-prompts *[data-v-ee2290d4]{box-sizing:border-box}.el-x-prompts.el-x-prompts-rtl[data-v-ee2290d4]{direction:rtl}.el-x-prompts .el-x-prompts-title[data-v-ee2290d4]{font-weight:normal;font-size:16px;color:#909399;margin-top:0;margin-bottom:.5em}.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none
|
|
17
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-ee2290d4]:root{--color-primary: #409eff;--color-success: #67c23a;--color-warning: #e6a23c;--color-danger: #f56c6c;--color-info: #909399}.el-x-prompts[data-v-ee2290d4]{max-width:100%}.el-x-prompts[data-v-ee2290d4],.el-x-prompts *[data-v-ee2290d4]{box-sizing:border-box}.el-x-prompts.el-x-prompts-rtl[data-v-ee2290d4]{direction:rtl}.el-x-prompts .el-x-prompts-title[data-v-ee2290d4]{font-weight:normal;font-size:16px;color:#909399;margin-top:0;margin-bottom:.5em}.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]::-webkit-scrollbar{display:none}.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]{list-style:none;padding-left:0;margin:0;align-items:stretch}.el-x-prompts .el-x-prompts-list-wrap[data-v-ee2290d4]{flex-wrap:wrap}.el-x-prompts .el-x-prompts-list-vertical[data-v-ee2290d4]{flex-direction:column;align-items:flex-start}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-list[data-v-ee2290d4]{flex-wrap:wrap;gap:8px}.el-x-prompts .el-x-prompts-list-wrap[data-v-ee2290d4]{justify-content:space-between}}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{flex:none;display:flex;gap:4px;height:auto;padding:12px 18px;align-items:flex-start;justify-content:flex-start;background:#fff;border-radius:8px;transition:border all .3s cubic-bezier(0.645, 0.045, 0.355, 1),background all .3s cubic-bezier(0.645, 0.045, 0.355, 1);border:1px solid #ebeef5}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:calc(50% - 4px);min-width:150px;padding:8px 12px}.el-x-prompts-list-wrap .el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:calc(50% - 4px);margin-bottom:8px}.el-x-prompts-list-vertical .el-x-prompts .el-x-prompts-item[data-v-ee2290d4]{width:100%}}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]:not(.el-x-prompts-item-has-nest):hover{cursor:pointer;background:#f5f7fa}.el-x-prompts .el-x-prompts-item[data-v-ee2290d4]:not(.el-x-prompts-item-has-nest):active{background:#ecf5ff}.el-x-prompts .el-x-prompts-item .el-x-prompts-content[data-v-ee2290d4]{flex:auto;min-width:0;display:flex;gap:4px;flex-direction:column;align-items:flex-start}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item .el-x-prompts-content[data-v-ee2290d4]{width:100%;gap:2px}}.el-x-prompts .el-x-prompts-item .el-x-prompts-icon[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-desc[data-v-ee2290d4]{margin:0;padding:0;font-size:14px;line-height:24px;text-align:start;white-space:normal}@media screen and (max-width: 768px){.el-x-prompts .el-x-prompts-item .el-x-prompts-icon[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item .el-x-prompts-desc[data-v-ee2290d4]{font-size:14px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.el-x-prompts .el-x-prompts-item .el-x-prompts-label[data-v-ee2290d4]{color:#303133;font-weight:500}.el-x-prompts .el-x-prompts-item .el-x-prompts-label+.el-x-prompts-desc[data-v-ee2290d4]{color:#909399}.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled[data-v-ee2290d4]{pointer-events:none;background:#f5f7fa}.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled .el-x-prompts-label[data-v-ee2290d4],.el-x-prompts .el-x-prompts-item.el-x-prompts-item-disabled .el-x-prompts-desc[data-v-ee2290d4]{color:#909399}.el-x-prompts .el-x-prompts-item-has-nest>.el-x-prompts-content>.el-x-prompts-label[data-v-ee2290d4]{font-size:18px;line-height:24px}.el-x-prompts.el-x-prompts-nested[data-v-ee2290d4]{margin-top:5px;align-self:stretch}.el-x-prompts.el-x-prompts-nested .el-x-prompts-list[data-v-ee2290d4]{align-items:stretch}.el-x-prompts.el-x-prompts-nested .el-x-prompts-item[data-v-ee2290d4]{border:0;background:#f5f7fa}", ""]);
|
|
18
18
|
// Exports
|
|
19
19
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
20
20
|
|
|
@@ -643,71 +643,71 @@ render._withStripped = true;
|
|
|
643
643
|
/* harmony default export */ const mainvue_type_script_lang_js = ({
|
|
644
644
|
name: 'ElXPrompts',
|
|
645
645
|
props: {
|
|
646
|
-
/**
|
|
647
|
-
* 包含多个提示项的列表
|
|
646
|
+
/**
|
|
647
|
+
* 包含多个提示项的列表
|
|
648
648
|
*/
|
|
649
649
|
items: {
|
|
650
650
|
type: Array,
|
|
651
651
|
default: () => []
|
|
652
652
|
},
|
|
653
|
-
/**
|
|
654
|
-
* 显示在提示列表顶部的标题
|
|
653
|
+
/**
|
|
654
|
+
* 显示在提示列表顶部的标题
|
|
655
655
|
*/
|
|
656
656
|
title: {
|
|
657
657
|
type: String,
|
|
658
658
|
default: ''
|
|
659
659
|
},
|
|
660
|
-
/**
|
|
661
|
-
* Item 提示项被点击时的回调函数
|
|
660
|
+
/**
|
|
661
|
+
* Item 提示项被点击时的回调函数
|
|
662
662
|
*/
|
|
663
663
|
onItemClick: {
|
|
664
664
|
type: Function,
|
|
665
665
|
default: null
|
|
666
666
|
},
|
|
667
|
-
/**
|
|
668
|
-
* 提示列表是否垂直排列
|
|
667
|
+
/**
|
|
668
|
+
* 提示列表是否垂直排列
|
|
669
669
|
*/
|
|
670
670
|
vertical: {
|
|
671
671
|
type: Boolean,
|
|
672
672
|
default: false
|
|
673
673
|
},
|
|
674
|
-
/**
|
|
675
|
-
* 提示列表是否换行
|
|
674
|
+
/**
|
|
675
|
+
* 提示列表是否换行
|
|
676
676
|
*/
|
|
677
677
|
wrap: {
|
|
678
678
|
type: Boolean,
|
|
679
679
|
default: false
|
|
680
680
|
},
|
|
681
|
-
/**
|
|
682
|
-
* 自定义样式,用于各个提示项的不同部分
|
|
681
|
+
/**
|
|
682
|
+
* 自定义样式,用于各个提示项的不同部分
|
|
683
683
|
*/
|
|
684
684
|
styles: {
|
|
685
685
|
type: Object,
|
|
686
686
|
default: () => ({})
|
|
687
687
|
},
|
|
688
|
-
/**
|
|
689
|
-
* 自定义样式类名,用于各个提示项的不同部分
|
|
688
|
+
/**
|
|
689
|
+
* 自定义样式类名,用于各个提示项的不同部分
|
|
690
690
|
*/
|
|
691
691
|
classNames: {
|
|
692
692
|
type: Object,
|
|
693
693
|
default: () => ({})
|
|
694
694
|
},
|
|
695
|
-
/**
|
|
696
|
-
* 根节点的样式类名
|
|
695
|
+
/**
|
|
696
|
+
* 根节点的样式类名
|
|
697
697
|
*/
|
|
698
698
|
rootClassName: {
|
|
699
699
|
type: String,
|
|
700
700
|
default: ''
|
|
701
701
|
},
|
|
702
|
-
/**
|
|
703
|
-
* 自定义样式
|
|
702
|
+
/**
|
|
703
|
+
* 自定义样式
|
|
704
704
|
*/
|
|
705
705
|
customStyle: {
|
|
706
706
|
type: Object,
|
|
707
707
|
default: () => ({})
|
|
708
708
|
},
|
|
709
|
-
/**
|
|
710
|
-
* 方向
|
|
709
|
+
/**
|
|
710
|
+
* 方向
|
|
711
711
|
*/
|
|
712
712
|
direction: {
|
|
713
713
|
type: String,
|