@web-utils/component 2.0.9 → 2.0.11
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/dist/chunks/3d28cc08.js +57 -0
- package/dist/chunks/{41a066be.js → 44b78389.js} +8 -8
- package/dist/chunks/5d33812d.js +147 -0
- package/dist/chunks/{61ad06b2.js → 822300f3.js} +3 -3
- package/dist/chunks/9d848bf6.js +99 -0
- package/dist/chunks/a0bb327b.js +96 -0
- package/dist/chunks/a8891d2c.js +30 -0
- package/dist/chunks/c69d5628.js +248 -0
- package/dist/chunks/de9fe802.js +24 -0
- package/dist/chunks/{5a78e0db.js → e1939731.js} +6 -5
- package/dist/components/address-input/index.js +56 -43
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/aside-menu/index.js +36 -30
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/awesome-button/index.js +35 -32
- package/dist/components/base.css +66 -1
- package/dist/components/capsule-tab/index.js +33 -27
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/chunk-file-uploader/index.js +88 -54
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/index.js +31 -25
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.js +42 -28
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/index.js +212 -134
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/index.js +34 -28
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/index.js +35 -29
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +38 -30
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/index.js +181 -153
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/index.js +68 -49
- package/dist/components/confirm-button/index.js +21 -19
- package/dist/components/confirmable/index.js +19 -18
- package/dist/components/context-menu/index.js +130 -108
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/custom-scrollbar/index.js +67 -49
- package/dist/components/data-table-picker/index.js +81 -62
- package/dist/components/dynamic-table/index.js +113 -89
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/index.js +201 -120
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/editable-progress/index.js +93 -60
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/index.js +638 -423
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/index.js +46 -33
- package/dist/components/egd-collapse-item/index.js +76 -60
- package/dist/components/element-dialog/index.js +147 -95
- package/dist/components/element-dialog/style.css +102 -1
- package/dist/components/empty-view/index.js +34 -28
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/index.js +32 -26
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.js +40 -25
- package/dist/components/flex-item/index.js +57 -29
- package/dist/components/flex-row/index.js +40 -25
- package/dist/components/flex-scroller/index.js +32 -26
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/form-button/index.js +38 -34
- package/dist/components/form-cascader/index.js +81 -71
- package/dist/components/form-checkbox-group/index.js +113 -88
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/index.js +132 -70
- package/dist/components/form-holder/index.js +39 -32
- package/dist/components/form-input/index.js +62 -56
- package/dist/components/form-input-email/index.js +60 -48
- package/dist/components/form-input-id-card/index.js +59 -53
- package/dist/components/form-input-number/index.js +68 -61
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/index.js +55 -49
- package/dist/components/form-input-time/index.js +59 -53
- package/dist/components/form-item/index.js +123 -80
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/index.js +26 -25
- package/dist/components/form-item-group/index.js +111 -85
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/index.js +104 -85
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/index.js +91 -76
- package/dist/components/form-switch/index.js +57 -51
- package/dist/components/form-textarea/index.js +57 -51
- package/dist/components/form-view/index.js +232 -165
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/guide-steps/index.js +58 -44
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/icon-card/index.js +35 -29
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/iframe-window/index.js +35 -29
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-viewer/index.js +66 -48
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/index.js +193 -127
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/index.js +57 -45
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +120 -73
- package/dist/components/loading-view/index.js +32 -26
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/nav-bar/index.js +37 -27
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/index.js +31 -23
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/page/index.js +28 -22
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/index.js +36 -30
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/index.js +83 -62
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/index.js +68 -53
- package/dist/components/page-skeleton/index.js +37 -31
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/index.js +48 -42
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/index.js +253 -186
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/index.js +199 -129
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.js +151 -110
- package/dist/components/photo-swipe/style.css +20 -1
- package/dist/components/resize-observer/index.js +68 -34
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search-popover/index.js +211 -153
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign-panel/index.js +142 -92
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/split-pane/index.js +162 -101
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/index.js +34 -31
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/index.js +44 -37
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.js +150 -85
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/index.js +72 -54
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/index.js +35 -30
- package/dist/components/table-column/index.js +32 -30
- package/dist/components/table-view/index.js +227 -156
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/index.js +58 -44
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/tinymce-editor/index.js +95 -79
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/index.js +121 -92
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/index.js +84 -63
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/index.js +48 -41
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/index.js +36 -29
- package/dist/components/vue-tags-input/index.js +308 -188
- package/dist/components/vue-tags-input/style.css +682 -1
- package/dist/components/watermark/index.js +37 -25
- package/dist/components/watermark/style.css +11 -1
- package/dist/components/x-dialog/index.js +93 -67
- package/dist/components/x-dialog/style.css +15 -1
- package/dist/index.css +1105 -193
- package/dist/index.es.js +7242 -4789
- package/package.json +2 -1
- package/web-types.json +1 -1
- package/dist/chunks/3a79781b.js +0 -75
- package/dist/chunks/5d4282fb.js +0 -30
- package/dist/chunks/76680a03.js +0 -24
- package/dist/chunks/8c0142e0.js +0 -81
- package/dist/chunks/97652d86.js +0 -26
- package/dist/chunks/b4acd3a6.js +0 -126
- package/dist/chunks/f71045fc.js +0 -184
package/dist/components/base.css
CHANGED
|
@@ -1 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.border-bottom {
|
|
8
|
+
border-bottom: 1px solid #d7dae0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.clear-fix::after {
|
|
12
|
+
display: block;
|
|
13
|
+
clear: both;
|
|
14
|
+
height: 0;
|
|
15
|
+
visibility: hidden;
|
|
16
|
+
content: " ";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.flex-row {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
}
|
|
24
|
+
.flex-row.vertical-center {
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
.flex-row.vertical-start {
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
}
|
|
30
|
+
.flex-row.horizon-center {
|
|
31
|
+
justify-content: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.text-center {
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.flex-column {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
}
|
|
42
|
+
.flex-column.vertical-center {
|
|
43
|
+
justify-content: center;
|
|
44
|
+
}
|
|
45
|
+
.flex-column.horizon-center {
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.flex-item, .flex-item-relative {
|
|
50
|
+
flex: 1 1 auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.flex-item-relative {
|
|
54
|
+
position: relative;
|
|
55
|
+
}
|
|
56
|
+
.flex-item-relative .flex-content {
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 0;
|
|
59
|
+
right: 0;
|
|
60
|
+
bottom: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.flex-not-shrink {
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
}
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
2
|
+
var render = function() {
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
6
|
+
return _c("ul", {
|
|
5
7
|
staticClass: "capsule-tab"
|
|
6
|
-
},
|
|
7
|
-
return
|
|
8
|
-
key:
|
|
8
|
+
}, _vm._l(_vm.tabs, function(item) {
|
|
9
|
+
return _c("li", {
|
|
10
|
+
key: item.value,
|
|
9
11
|
class: ["tab-item", {
|
|
10
|
-
active:
|
|
11
|
-
single:
|
|
12
|
+
active: _vm.value === item.value,
|
|
13
|
+
single: _vm.tabs.length === 1
|
|
12
14
|
}],
|
|
13
15
|
on: {
|
|
14
|
-
click: function(
|
|
15
|
-
return
|
|
16
|
+
"click": function($event) {
|
|
17
|
+
return _vm.$emit("input", item.value);
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
|
-
}, [
|
|
20
|
+
}, [_vm._v(" " + _vm._s(item.label) + " ")]);
|
|
19
21
|
}), 0);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
+
};
|
|
23
|
+
var staticRenderFns = [];
|
|
24
|
+
const CapsuleTab_vue_vue_type_style_index_0_lang = "";
|
|
25
|
+
const __vue2_script = {
|
|
22
26
|
name: "CapsuleTab",
|
|
23
27
|
props: {
|
|
24
28
|
tabs: {
|
|
@@ -29,24 +33,26 @@ const _ = {
|
|
|
29
33
|
type: String
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
};
|
|
37
|
+
const __cssModules = {};
|
|
38
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
39
|
+
__vue2_script,
|
|
40
|
+
render,
|
|
41
|
+
staticRenderFns,
|
|
42
|
+
false,
|
|
43
|
+
__vue2_injectStyles,
|
|
39
44
|
null,
|
|
40
45
|
null,
|
|
41
46
|
null
|
|
42
47
|
);
|
|
43
|
-
function
|
|
44
|
-
for (let
|
|
45
|
-
this[
|
|
48
|
+
function __vue2_injectStyles(context) {
|
|
49
|
+
for (let o in __cssModules) {
|
|
50
|
+
this[o] = __cssModules[o];
|
|
51
|
+
}
|
|
46
52
|
}
|
|
47
|
-
const
|
|
48
|
-
return
|
|
53
|
+
const CapsuleTab = /* @__PURE__ */ function() {
|
|
54
|
+
return __component__.exports;
|
|
49
55
|
}();
|
|
50
56
|
export {
|
|
51
|
-
|
|
57
|
+
CapsuleTab as default
|
|
52
58
|
};
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.capsule-tab {
|
|
8
|
+
display: inline;
|
|
9
|
+
margin-right: 10px;
|
|
10
|
+
}
|
|
11
|
+
.capsule-tab .tab-item {
|
|
12
|
+
display: inline;
|
|
13
|
+
padding: 2px 14px;
|
|
14
|
+
background-color: #fafafa;
|
|
15
|
+
border: 1px solid #ebeef5;
|
|
16
|
+
border-right: none;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
.capsule-tab .tab-item.active {
|
|
20
|
+
color: #fff;
|
|
21
|
+
background-color: rgb(239, 102, 102);
|
|
22
|
+
}
|
|
23
|
+
.capsule-tab .tab-item:first-child {
|
|
24
|
+
border-radius: 12px 0 0 12px;
|
|
25
|
+
}
|
|
26
|
+
.capsule-tab .tab-item:last-child {
|
|
27
|
+
border-right: 1px solid #ccc;
|
|
28
|
+
border-radius: 0 12px 12px 0;
|
|
29
|
+
}
|
|
30
|
+
.capsule-tab .tab-item:last-child.single {
|
|
31
|
+
border-radius: 12px;
|
|
32
|
+
}
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { k as
|
|
3
|
-
import { n } from "../../chunks/
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
1
|
+
import Uploader from "simple-uploader.js";
|
|
2
|
+
import { k as kebabCase } from "../../chunks/a8891d2c.js";
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
4
|
+
var render = function() {
|
|
5
|
+
var _vm = this;
|
|
6
|
+
var _h = _vm.$createElement;
|
|
7
|
+
var _c = _vm._self._c || _h;
|
|
8
|
+
return _c("div", {
|
|
7
9
|
staticClass: "uploader"
|
|
8
|
-
}, [
|
|
9
|
-
return [
|
|
10
|
+
}, [_vm._t("default", function() {
|
|
11
|
+
return [_c("ChunkFileUploaderUnSupport"), _c("ChunkFileUploaderDrop", [_c("p", [_vm._v("Drop files here to upload or")]), _c("ChunkFileUploaderButton", [_vm._v("select files")]), _c("ChunkFileUploaderButton", {
|
|
10
12
|
attrs: {
|
|
11
|
-
directory:
|
|
13
|
+
"directory": true
|
|
12
14
|
}
|
|
13
|
-
}, [
|
|
15
|
+
}, [_vm._v(" select folder ")])], 1), _c("ChunkFileUploaderList")];
|
|
14
16
|
}, {
|
|
15
|
-
files:
|
|
16
|
-
fileList:
|
|
17
|
-
started:
|
|
17
|
+
"files": _vm.files,
|
|
18
|
+
"fileList": _vm.fileList,
|
|
19
|
+
"started": _vm.started
|
|
18
20
|
})], 2);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
+
};
|
|
22
|
+
var staticRenderFns = [];
|
|
23
|
+
const ChunkFileUploader_vue_vue_type_style_index_0_lang = "";
|
|
24
|
+
const FILE_ADDED_EVENT = "fileAdded";
|
|
25
|
+
const FILES_ADDED_EVENT = "filesAdded";
|
|
26
|
+
const UPLOAD_START_EVENT = "uploadStart";
|
|
27
|
+
const __vue2_script = {
|
|
21
28
|
name: "ChunkFileUploader",
|
|
22
29
|
provide() {
|
|
23
30
|
return {
|
|
@@ -33,7 +40,7 @@ const s = "fileAdded", l = "filesAdded", p = "uploadStart", h = {
|
|
|
33
40
|
},
|
|
34
41
|
autoStart: {
|
|
35
42
|
type: Boolean,
|
|
36
|
-
default:
|
|
43
|
+
default: true
|
|
37
44
|
},
|
|
38
45
|
fileStatusText: {
|
|
39
46
|
type: [Object, Function],
|
|
@@ -50,70 +57,97 @@ const s = "fileAdded", l = "filesAdded", p = "uploadStart", h = {
|
|
|
50
57
|
},
|
|
51
58
|
data() {
|
|
52
59
|
return {
|
|
53
|
-
started:
|
|
60
|
+
started: false,
|
|
54
61
|
files: [],
|
|
55
62
|
fileList: []
|
|
56
63
|
};
|
|
57
64
|
},
|
|
58
65
|
created() {
|
|
59
66
|
this.options.initialPaused = !this.autoStart;
|
|
60
|
-
const
|
|
61
|
-
this.uploader =
|
|
67
|
+
const uploader = new Uploader(this.options);
|
|
68
|
+
this.uploader = uploader;
|
|
69
|
+
this.uploader.fileStatusText = this.fileStatusText;
|
|
70
|
+
uploader.on("catchAll", this.allEvent);
|
|
71
|
+
uploader.on(FILE_ADDED_EVENT, this.fileAdded);
|
|
72
|
+
uploader.on(FILES_ADDED_EVENT, this.filesAdded);
|
|
73
|
+
uploader.on("fileRemoved", this.fileRemoved);
|
|
74
|
+
uploader.on("filesSubmitted", this.filesSubmitted);
|
|
62
75
|
},
|
|
63
76
|
destroyed() {
|
|
64
|
-
const
|
|
65
|
-
|
|
77
|
+
const uploader = this.uploader;
|
|
78
|
+
uploader.off("catchAll", this.allEvent);
|
|
79
|
+
uploader.off(FILE_ADDED_EVENT, this.fileAdded);
|
|
80
|
+
uploader.off(FILES_ADDED_EVENT, this.filesAdded);
|
|
81
|
+
uploader.off("fileRemoved", this.fileRemoved);
|
|
82
|
+
uploader.off("filesSubmitted", this.filesSubmitted);
|
|
83
|
+
this.uploader = null;
|
|
66
84
|
},
|
|
67
85
|
methods: {
|
|
68
86
|
uploadStart() {
|
|
69
|
-
this.started =
|
|
87
|
+
this.started = true;
|
|
70
88
|
},
|
|
71
|
-
fileAdded(
|
|
72
|
-
|
|
73
|
-
|
|
89
|
+
fileAdded(file) {
|
|
90
|
+
this.$emit(kebabCase(FILE_ADDED_EVENT), file);
|
|
91
|
+
if (file.ignored) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
74
94
|
},
|
|
75
|
-
filesAdded(
|
|
76
|
-
|
|
77
|
-
|
|
95
|
+
filesAdded(files, fileList) {
|
|
96
|
+
this.$emit(kebabCase(FILES_ADDED_EVENT), files, fileList);
|
|
97
|
+
if (files.ignored || fileList.ignored) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
78
100
|
},
|
|
79
|
-
fileRemoved(
|
|
80
|
-
this.$emit("file-removed",
|
|
101
|
+
fileRemoved(file) {
|
|
102
|
+
this.$emit("file-removed", file);
|
|
103
|
+
this.files = this.uploader.files;
|
|
104
|
+
this.fileList = this.uploader.fileList;
|
|
81
105
|
},
|
|
82
106
|
filesSubmitted() {
|
|
83
|
-
this.files = this.uploader.files
|
|
107
|
+
this.files = this.uploader.files;
|
|
108
|
+
this.fileList = this.uploader.fileList;
|
|
109
|
+
if (this.autoStart) {
|
|
110
|
+
this.uploader.upload();
|
|
111
|
+
}
|
|
84
112
|
},
|
|
85
|
-
allEvent(...
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
113
|
+
allEvent(...args) {
|
|
114
|
+
const name = args[0];
|
|
115
|
+
const EVENTSMAP = {
|
|
116
|
+
[FILE_ADDED_EVENT]: true,
|
|
117
|
+
[FILES_ADDED_EVENT]: true,
|
|
118
|
+
[UPLOAD_START_EVENT]: "uploadStart"
|
|
119
|
+
};
|
|
120
|
+
const handler = EVENTSMAP[name];
|
|
121
|
+
if (handler) {
|
|
122
|
+
if (handler === true) {
|
|
93
123
|
return;
|
|
94
|
-
|
|
124
|
+
}
|
|
125
|
+
this[handler].apply(this, args.slice(1));
|
|
95
126
|
}
|
|
96
|
-
|
|
127
|
+
args[0] = kebabCase(name);
|
|
128
|
+
this.$emit.apply(this, args);
|
|
97
129
|
}
|
|
98
130
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
131
|
+
};
|
|
132
|
+
const __cssModules = {};
|
|
133
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
134
|
+
__vue2_script,
|
|
135
|
+
render,
|
|
136
|
+
staticRenderFns,
|
|
137
|
+
false,
|
|
138
|
+
__vue2_injectStyles,
|
|
106
139
|
null,
|
|
107
140
|
null,
|
|
108
141
|
null
|
|
109
142
|
);
|
|
110
|
-
function
|
|
111
|
-
for (let
|
|
112
|
-
this[
|
|
143
|
+
function __vue2_injectStyles(context) {
|
|
144
|
+
for (let o in __cssModules) {
|
|
145
|
+
this[o] = __cssModules[o];
|
|
146
|
+
}
|
|
113
147
|
}
|
|
114
|
-
const
|
|
115
|
-
return
|
|
148
|
+
const ChunkFileUploader = /* @__PURE__ */ function() {
|
|
149
|
+
return __component__.exports;
|
|
116
150
|
}();
|
|
117
151
|
export {
|
|
118
|
-
|
|
152
|
+
ChunkFileUploader as default
|
|
119
153
|
};
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
1
|
+
import { u as uploaderMixin, s as supportMixin } from "../../chunks/e1939731.js";
|
|
2
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
3
|
+
var render = function() {
|
|
4
|
+
var _vm = this;
|
|
5
|
+
var _h = _vm.$createElement;
|
|
6
|
+
var _c = _vm._self._c || _h;
|
|
7
|
+
return _c("label", {
|
|
6
8
|
directives: [{
|
|
7
9
|
name: "show",
|
|
8
10
|
rawName: "v-show",
|
|
9
|
-
value:
|
|
11
|
+
value: _vm.support,
|
|
10
12
|
expression: "support"
|
|
11
13
|
}],
|
|
12
14
|
ref: "btn",
|
|
13
15
|
staticClass: "uploader-btn"
|
|
14
|
-
}, [
|
|
15
|
-
}
|
|
16
|
-
|
|
16
|
+
}, [_vm._t("default")], 2);
|
|
17
|
+
};
|
|
18
|
+
var staticRenderFns = [];
|
|
19
|
+
const ChunkFileUploaderButton_vue_vue_type_style_index_0_lang = "";
|
|
20
|
+
const __vue2_script = {
|
|
17
21
|
name: "ChunkFileUploaderButton",
|
|
18
|
-
mixins: [
|
|
22
|
+
mixins: [uploaderMixin, supportMixin],
|
|
19
23
|
props: {
|
|
20
24
|
directory: {
|
|
21
25
|
type: Boolean,
|
|
22
|
-
default:
|
|
26
|
+
default: false
|
|
23
27
|
},
|
|
24
28
|
single: {
|
|
25
29
|
type: Boolean,
|
|
26
|
-
default:
|
|
30
|
+
default: false
|
|
27
31
|
},
|
|
28
32
|
attrs: {
|
|
29
33
|
type: Object,
|
|
@@ -37,24 +41,26 @@ const u = {
|
|
|
37
41
|
this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs);
|
|
38
42
|
});
|
|
39
43
|
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
};
|
|
45
|
+
const __cssModules = {};
|
|
46
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
47
|
+
__vue2_script,
|
|
48
|
+
render,
|
|
49
|
+
staticRenderFns,
|
|
50
|
+
false,
|
|
51
|
+
__vue2_injectStyles,
|
|
47
52
|
null,
|
|
48
53
|
null,
|
|
49
54
|
null
|
|
50
55
|
);
|
|
51
|
-
function
|
|
52
|
-
for (let
|
|
53
|
-
this[
|
|
56
|
+
function __vue2_injectStyles(context) {
|
|
57
|
+
for (let o in __cssModules) {
|
|
58
|
+
this[o] = __cssModules[o];
|
|
59
|
+
}
|
|
54
60
|
}
|
|
55
|
-
const
|
|
56
|
-
return
|
|
61
|
+
const ChunkFileUploaderButton = /* @__PURE__ */ function() {
|
|
62
|
+
return __component__.exports;
|
|
57
63
|
}();
|
|
58
64
|
export {
|
|
59
|
-
|
|
65
|
+
ChunkFileUploaderButton as default
|
|
60
66
|
};
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
.uploader-btn {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
padding: 4px 8px;
|
|
6
|
+
color: #666;
|
|
7
|
+
font-size: 100%;
|
|
8
|
+
line-height: 1.4;
|
|
9
|
+
background: none;
|
|
10
|
+
border: 1px solid #666;
|
|
11
|
+
border-radius: 2px;
|
|
12
|
+
outline: none;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
}
|
|
15
|
+
.uploader-btn:hover {
|
|
16
|
+
background-color: rgb(0 0 0 / 8%);
|
|
17
|
+
}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
1
|
+
import { u as uploaderMixin, s as supportMixin } from "../../chunks/e1939731.js";
|
|
2
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
3
|
+
var render = function() {
|
|
4
|
+
var _vm = this;
|
|
5
|
+
var _h = _vm.$createElement;
|
|
6
|
+
var _c = _vm._self._c || _h;
|
|
7
|
+
return _c("div", {
|
|
6
8
|
directives: [{
|
|
7
9
|
name: "show",
|
|
8
10
|
rawName: "v-show",
|
|
9
|
-
value:
|
|
11
|
+
value: _vm.support,
|
|
10
12
|
expression: "support"
|
|
11
13
|
}],
|
|
12
14
|
ref: "drop",
|
|
13
15
|
staticClass: "uploader-drop",
|
|
14
|
-
class:
|
|
15
|
-
}, [
|
|
16
|
-
}
|
|
17
|
-
|
|
16
|
+
class: _vm.dropClass
|
|
17
|
+
}, [_vm._t("default")], 2);
|
|
18
|
+
};
|
|
19
|
+
var staticRenderFns = [];
|
|
20
|
+
const ChunkFileUploaderDrop_vue_vue_type_style_index_0_lang = "";
|
|
21
|
+
const __vue2_script = {
|
|
18
22
|
name: "ChunkFileUploaderDrop",
|
|
19
|
-
mixins: [
|
|
23
|
+
mixins: [uploaderMixin, supportMixin],
|
|
20
24
|
data() {
|
|
21
25
|
return {
|
|
22
26
|
dropClass: ""
|
|
@@ -24,12 +28,20 @@ const l = {
|
|
|
24
28
|
},
|
|
25
29
|
async mounted() {
|
|
26
30
|
await this.$nextTick();
|
|
27
|
-
const
|
|
28
|
-
|
|
31
|
+
const dropEle = this.$refs.drop;
|
|
32
|
+
const uploader = this.uploader.uploader;
|
|
33
|
+
uploader.assignDrop(dropEle);
|
|
34
|
+
uploader.on("dragenter", this.onDragEnter);
|
|
35
|
+
uploader.on("dragleave", this.onDragLeave);
|
|
36
|
+
uploader.on("drop", this.onDrop);
|
|
29
37
|
},
|
|
30
38
|
beforeDestroy() {
|
|
31
|
-
const
|
|
32
|
-
|
|
39
|
+
const dropEle = this.$refs.drop;
|
|
40
|
+
const uploader = this.uploader.uploader;
|
|
41
|
+
uploader.off("dragenter", this.onDragEnter);
|
|
42
|
+
uploader.off("dragleave", this.onDragLeave);
|
|
43
|
+
uploader.off("drop", this.onDrop);
|
|
44
|
+
uploader.unAssignDrop(dropEle);
|
|
33
45
|
},
|
|
34
46
|
methods: {
|
|
35
47
|
onDragEnter() {
|
|
@@ -42,24 +54,26 @@ const l = {
|
|
|
42
54
|
this.dropClass = "uploader-droped";
|
|
43
55
|
}
|
|
44
56
|
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
};
|
|
58
|
+
const __cssModules = {};
|
|
59
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
60
|
+
__vue2_script,
|
|
61
|
+
render,
|
|
62
|
+
staticRenderFns,
|
|
63
|
+
false,
|
|
64
|
+
__vue2_injectStyles,
|
|
52
65
|
null,
|
|
53
66
|
null,
|
|
54
67
|
null
|
|
55
68
|
);
|
|
56
|
-
function
|
|
57
|
-
for (let
|
|
58
|
-
this[
|
|
69
|
+
function __vue2_injectStyles(context) {
|
|
70
|
+
for (let o in __cssModules) {
|
|
71
|
+
this[o] = __cssModules[o];
|
|
72
|
+
}
|
|
59
73
|
}
|
|
60
|
-
const
|
|
61
|
-
return
|
|
74
|
+
const ChunkFileUploaderDrop = /* @__PURE__ */ function() {
|
|
75
|
+
return __component__.exports;
|
|
62
76
|
}();
|
|
63
77
|
export {
|
|
64
|
-
|
|
78
|
+
ChunkFileUploaderDrop as default
|
|
65
79
|
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
.uploader-drop {
|
|
3
|
+
position: relative;
|
|
4
|
+
padding: 10px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
background-color: #f5f5f5;
|
|
7
|
+
border: 1px dashed #ccc;
|
|
8
|
+
}
|
|
9
|
+
.uploader-dragover {
|
|
10
|
+
background-color: #f7f7f7;
|
|
11
|
+
border-color: #999;
|
|
12
|
+
}
|