@web-utils/component 2.0.10 → 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 +1 -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
|
@@ -1 +1,88 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.cm-container {
|
|
8
|
+
position: fixed;
|
|
9
|
+
z-index: 9999;
|
|
10
|
+
user-select: none;
|
|
11
|
+
}
|
|
12
|
+
.cm-container .icon {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 50%;
|
|
15
|
+
right: 0;
|
|
16
|
+
width: 0.9em;
|
|
17
|
+
height: 0.9em;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
vertical-align: -0.15em;
|
|
20
|
+
transform: translateY(-50%);
|
|
21
|
+
fill: currentcolor;
|
|
22
|
+
}
|
|
23
|
+
.cm-container .cm-item-icon {
|
|
24
|
+
margin-right: 4px;
|
|
25
|
+
}
|
|
26
|
+
.cm-container .cm-ul {
|
|
27
|
+
width: 100%;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
color: #2e2e2e;
|
|
31
|
+
list-style: none;
|
|
32
|
+
background-color: #fff;
|
|
33
|
+
box-shadow: 0 0 1px #666;
|
|
34
|
+
}
|
|
35
|
+
.cm-container .cm-ul li {
|
|
36
|
+
position: relative;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
width: 100%;
|
|
39
|
+
text-align: left;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
.cm-container .cm-ul li:hover > ul {
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
.cm-container .cm-ul li div {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: inline-block;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
padding: 0 0.8em;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
}
|
|
56
|
+
.cm-container .cm-ul li i {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: 1em;
|
|
59
|
+
font-size: 1.3em;
|
|
60
|
+
text-align: center;
|
|
61
|
+
}
|
|
62
|
+
.cm-container .cm-ul li div:hover {
|
|
63
|
+
color: #fff;
|
|
64
|
+
background-color: #666;
|
|
65
|
+
}
|
|
66
|
+
.cm-container .cm-ul-2, .cm-container .cm-ul-3 {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 0;
|
|
69
|
+
z-index: 10000;
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
.cm-container .cm-left svg {
|
|
73
|
+
left: 0;
|
|
74
|
+
transform: translateY(-50%) rotate(180deg);
|
|
75
|
+
}
|
|
76
|
+
.cm-container .cm-underline li div::after {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
left: 5%;
|
|
80
|
+
z-index: 10001;
|
|
81
|
+
width: 90%;
|
|
82
|
+
height: 1px;
|
|
83
|
+
background-color: #ccc;
|
|
84
|
+
content: "";
|
|
85
|
+
}
|
|
86
|
+
.cm-container .cm-underline li div:hover::after, .cm-container .cm-underline > li:first-child > div::after {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
@@ -1,43 +1,50 @@
|
|
|
1
|
-
import
|
|
1
|
+
import OverlayScrollbars from "overlayscrollbars";
|
|
2
2
|
import "overlayscrollbars/css/OverlayScrollbars.css";
|
|
3
|
-
import { n as
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
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: "os-host"
|
|
8
|
-
}, [
|
|
10
|
+
}, [_c("div", {
|
|
9
11
|
staticClass: "os-resize-observer-host"
|
|
10
|
-
}),
|
|
12
|
+
}), _c("div", {
|
|
11
13
|
staticClass: "os-padding"
|
|
12
|
-
}, [
|
|
14
|
+
}, [_c("div", {
|
|
13
15
|
ref: "viewport",
|
|
14
16
|
staticClass: "os-viewport"
|
|
15
|
-
}, [
|
|
17
|
+
}, [_c("div", {
|
|
16
18
|
ref: "content",
|
|
17
19
|
staticClass: "os-content"
|
|
18
|
-
}, [
|
|
20
|
+
}, [_vm._t("default")], 2)])]), _vm._m(0), _vm._m(1), _c("div", {
|
|
19
21
|
staticClass: "os-scrollbar-corner"
|
|
20
22
|
})]);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
};
|
|
24
|
+
var staticRenderFns = [function() {
|
|
25
|
+
var _vm = this;
|
|
26
|
+
var _h = _vm.$createElement;
|
|
27
|
+
var _c = _vm._self._c || _h;
|
|
28
|
+
return _c("div", {
|
|
24
29
|
staticClass: "os-scrollbar os-scrollbar-horizontal"
|
|
25
|
-
}, [
|
|
30
|
+
}, [_c("div", {
|
|
26
31
|
staticClass: "os-scrollbar-track"
|
|
27
|
-
}, [
|
|
32
|
+
}, [_c("div", {
|
|
28
33
|
staticClass: "os-scrollbar-handle"
|
|
29
34
|
})])]);
|
|
30
35
|
}, function() {
|
|
31
|
-
var
|
|
32
|
-
|
|
36
|
+
var _vm = this;
|
|
37
|
+
var _h = _vm.$createElement;
|
|
38
|
+
var _c = _vm._self._c || _h;
|
|
39
|
+
return _c("div", {
|
|
33
40
|
staticClass: "os-scrollbar os-scrollbar-vertical"
|
|
34
|
-
}, [
|
|
41
|
+
}, [_c("div", {
|
|
35
42
|
staticClass: "os-scrollbar-track"
|
|
36
|
-
}, [
|
|
43
|
+
}, [_c("div", {
|
|
37
44
|
staticClass: "os-scrollbar-handle"
|
|
38
45
|
})])]);
|
|
39
46
|
}];
|
|
40
|
-
const
|
|
47
|
+
const __vue2_script = {
|
|
41
48
|
name: "CustomScrollbar",
|
|
42
49
|
props: {
|
|
43
50
|
options: {
|
|
@@ -61,26 +68,30 @@ const n = {
|
|
|
61
68
|
},
|
|
62
69
|
reverse: {
|
|
63
70
|
type: Boolean,
|
|
64
|
-
default:
|
|
71
|
+
default: false
|
|
65
72
|
},
|
|
66
73
|
textarea: {
|
|
67
74
|
type: Boolean,
|
|
68
|
-
default:
|
|
75
|
+
default: false
|
|
69
76
|
}
|
|
70
77
|
},
|
|
71
78
|
computed: {
|
|
72
79
|
innerOptions() {
|
|
73
|
-
|
|
80
|
+
const options = this.options || {};
|
|
81
|
+
return { ...options, className: this.theme || "os-theme-dark", scrollbars: { autoHide: "l", autoHideDelay: 100 }, callbacks: { onScroll: this.internalScroll } };
|
|
74
82
|
}
|
|
75
83
|
},
|
|
76
84
|
watch: {
|
|
77
|
-
innerOptions(
|
|
78
|
-
const
|
|
79
|
-
|
|
85
|
+
innerOptions(options) {
|
|
86
|
+
const scroller = this.scroller;
|
|
87
|
+
if (OverlayScrollbars.valid(scroller)) {
|
|
88
|
+
scroller.options(options);
|
|
89
|
+
}
|
|
80
90
|
}
|
|
81
91
|
},
|
|
82
92
|
mounted() {
|
|
83
|
-
this.viewport = this.$refs.viewport
|
|
93
|
+
this.viewport = this.$refs.viewport;
|
|
94
|
+
this.scroller = OverlayScrollbars(
|
|
84
95
|
this.getContentWrapper(),
|
|
85
96
|
this.options || {
|
|
86
97
|
className: this.theme || "os-theme-dark",
|
|
@@ -97,8 +108,11 @@ const n = {
|
|
|
97
108
|
this.scrollOffset = this.$refs.viewport.scrollTop;
|
|
98
109
|
},
|
|
99
110
|
beforeDestroy() {
|
|
100
|
-
const
|
|
101
|
-
|
|
111
|
+
const scroller = this.scroller;
|
|
112
|
+
if (OverlayScrollbars.valid(scroller)) {
|
|
113
|
+
scroller.destroy();
|
|
114
|
+
this.scroller = null;
|
|
115
|
+
}
|
|
102
116
|
},
|
|
103
117
|
methods: {
|
|
104
118
|
scrollBottom() {
|
|
@@ -110,40 +124,44 @@ const n = {
|
|
|
110
124
|
getScrollHeight() {
|
|
111
125
|
return this.$refs.viewport.scrollHeight;
|
|
112
126
|
},
|
|
113
|
-
setScrollTop(
|
|
114
|
-
this.$refs.viewport.scrollTop =
|
|
127
|
+
setScrollTop(scrollTop) {
|
|
128
|
+
this.$refs.viewport.scrollTop = scrollTop;
|
|
115
129
|
},
|
|
116
130
|
getContentWrapper() {
|
|
117
131
|
return this.textarea ? this.$refs.content.querySelector("textarea") : this.$el;
|
|
118
132
|
},
|
|
119
|
-
internalScroll(
|
|
120
|
-
this.onScroll && this.onScroll(
|
|
121
|
-
const
|
|
122
|
-
if (!this.reverse && Math.ceil(
|
|
133
|
+
internalScroll(event) {
|
|
134
|
+
this.onScroll && this.onScroll(event);
|
|
135
|
+
const target = event.target;
|
|
136
|
+
if (!this.reverse && Math.ceil(target.clientHeight + target.scrollTop) >= target.scrollHeight) {
|
|
123
137
|
this.onLoadMore && this.onLoadMore();
|
|
124
138
|
return;
|
|
125
139
|
}
|
|
126
|
-
this.reverse &&
|
|
140
|
+
if (this.reverse && target.scrollTop === 0) {
|
|
141
|
+
this.onLoadMore && this.onLoadMore();
|
|
142
|
+
}
|
|
127
143
|
}
|
|
128
144
|
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
145
|
+
};
|
|
146
|
+
const __cssModules = {};
|
|
147
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
148
|
+
__vue2_script,
|
|
149
|
+
render,
|
|
150
|
+
staticRenderFns,
|
|
151
|
+
false,
|
|
152
|
+
__vue2_injectStyles,
|
|
136
153
|
null,
|
|
137
154
|
null,
|
|
138
155
|
null
|
|
139
156
|
);
|
|
140
|
-
function
|
|
141
|
-
for (let
|
|
142
|
-
this[
|
|
157
|
+
function __vue2_injectStyles(context) {
|
|
158
|
+
for (let o in __cssModules) {
|
|
159
|
+
this[o] = __cssModules[o];
|
|
160
|
+
}
|
|
143
161
|
}
|
|
144
|
-
const
|
|
145
|
-
return
|
|
162
|
+
const CustomScrollbar = /* @__PURE__ */ function() {
|
|
163
|
+
return __component__.exports;
|
|
146
164
|
}();
|
|
147
165
|
export {
|
|
148
|
-
|
|
166
|
+
CustomScrollbar as default
|
|
149
167
|
};
|
|
@@ -1,75 +1,78 @@
|
|
|
1
|
-
import { dialog
|
|
2
|
-
import { f as
|
|
3
|
-
import { n as
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
1
|
+
import { dialog } from "@web-utils/core/dist/mixin/index";
|
|
2
|
+
import { f as filterTableColumnProperties } from "../../chunks/c69d5628.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("ElementDialog", {
|
|
7
9
|
attrs: {
|
|
8
|
-
visible:
|
|
9
|
-
title:
|
|
10
|
-
width:
|
|
11
|
-
height:
|
|
10
|
+
"visible": _vm.show,
|
|
11
|
+
"title": _vm.title,
|
|
12
|
+
"width": _vm.width,
|
|
13
|
+
"height": _vm.height,
|
|
12
14
|
"flex-column": ""
|
|
13
15
|
},
|
|
14
16
|
on: {
|
|
15
|
-
"update:visible": function(
|
|
16
|
-
|
|
17
|
+
"update:visible": function($event) {
|
|
18
|
+
_vm.show = $event;
|
|
17
19
|
},
|
|
18
|
-
close:
|
|
19
|
-
closed:
|
|
20
|
+
"close": _vm.close,
|
|
21
|
+
"closed": _vm.closed
|
|
20
22
|
},
|
|
21
|
-
scopedSlots:
|
|
23
|
+
scopedSlots: _vm._u([{
|
|
22
24
|
key: "default",
|
|
23
25
|
fn: function() {
|
|
24
|
-
return [
|
|
26
|
+
return [_vm._t("search-form"), _c("PageableTable", {
|
|
25
27
|
ref: "pageableTable",
|
|
26
28
|
staticStyle: {
|
|
27
|
-
height: "60vh"
|
|
29
|
+
"height": "60vh"
|
|
28
30
|
},
|
|
29
31
|
attrs: {
|
|
30
32
|
"highlight-current-row": "",
|
|
31
33
|
"hide-on-single-page": "",
|
|
32
|
-
model:
|
|
33
|
-
columns:
|
|
34
|
-
api:
|
|
34
|
+
"model": _vm.model,
|
|
35
|
+
"columns": _vm.columns,
|
|
36
|
+
"api": _vm.api,
|
|
35
37
|
"row-class-name": "pointer",
|
|
36
|
-
multiple:
|
|
38
|
+
"multiple": _vm.multiple
|
|
37
39
|
},
|
|
38
40
|
on: {
|
|
39
|
-
"selection-change":
|
|
40
|
-
"row-click":
|
|
41
|
-
"current-change":
|
|
41
|
+
"selection-change": _vm.selectionChange,
|
|
42
|
+
"row-click": _vm.toggleRowSelection,
|
|
43
|
+
"current-change": _vm.currentChange
|
|
42
44
|
}
|
|
43
|
-
}, [
|
|
45
|
+
}, [_vm._t("default")], 2)];
|
|
44
46
|
},
|
|
45
|
-
proxy:
|
|
47
|
+
proxy: true
|
|
46
48
|
}, {
|
|
47
49
|
key: "footer",
|
|
48
50
|
fn: function() {
|
|
49
|
-
return [
|
|
51
|
+
return [_c("ElButton", {
|
|
50
52
|
attrs: {
|
|
51
|
-
size: "mini",
|
|
52
|
-
type: "primary"
|
|
53
|
+
"size": "mini",
|
|
54
|
+
"type": "primary"
|
|
53
55
|
},
|
|
54
56
|
on: {
|
|
55
|
-
click:
|
|
57
|
+
"click": _vm.confirm
|
|
56
58
|
}
|
|
57
|
-
}, [
|
|
59
|
+
}, [_vm._v(" 确 定 ")]), _c("ElButton", {
|
|
58
60
|
attrs: {
|
|
59
|
-
size: "mini"
|
|
61
|
+
"size": "mini"
|
|
60
62
|
},
|
|
61
63
|
on: {
|
|
62
|
-
click:
|
|
64
|
+
"click": _vm.close
|
|
63
65
|
}
|
|
64
|
-
}, [
|
|
66
|
+
}, [_vm._v(" 关 闭 ")])];
|
|
65
67
|
},
|
|
66
|
-
proxy:
|
|
67
|
-
}], null,
|
|
68
|
+
proxy: true
|
|
69
|
+
}], null, true)
|
|
68
70
|
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
+
};
|
|
72
|
+
var staticRenderFns = [];
|
|
73
|
+
const __vue2_script = {
|
|
71
74
|
name: "DataTablePicker",
|
|
72
|
-
mixins: [
|
|
75
|
+
mixins: [dialog],
|
|
73
76
|
props: {
|
|
74
77
|
api: Function,
|
|
75
78
|
columns: Array,
|
|
@@ -89,7 +92,7 @@ const u = {
|
|
|
89
92
|
},
|
|
90
93
|
multiple: {
|
|
91
94
|
type: Boolean,
|
|
92
|
-
default:
|
|
95
|
+
default: true
|
|
93
96
|
}
|
|
94
97
|
},
|
|
95
98
|
data() {
|
|
@@ -99,39 +102,55 @@ const u = {
|
|
|
99
102
|
};
|
|
100
103
|
},
|
|
101
104
|
methods: {
|
|
102
|
-
filterTableColumnProperties
|
|
103
|
-
selectionChange(
|
|
104
|
-
this.selectedRows =
|
|
105
|
+
filterTableColumnProperties,
|
|
106
|
+
selectionChange(selectedRows) {
|
|
107
|
+
this.selectedRows = selectedRows;
|
|
105
108
|
},
|
|
106
|
-
currentChange(
|
|
107
|
-
this.currentRow =
|
|
109
|
+
currentChange(currentRow) {
|
|
110
|
+
this.currentRow = currentRow;
|
|
108
111
|
},
|
|
109
|
-
toggleRowSelection(
|
|
110
|
-
this.$refs.pageableTable.$refs.table.toggleRowSelection(
|
|
112
|
+
toggleRowSelection(row) {
|
|
113
|
+
this.$refs.pageableTable.$refs.table.toggleRowSelection(row);
|
|
111
114
|
},
|
|
112
115
|
confirm() {
|
|
113
|
-
var
|
|
114
|
-
|
|
116
|
+
var _a;
|
|
117
|
+
if (this.multiple) {
|
|
118
|
+
if ((_a = this.selectedRows) == null ? void 0 : _a.length) {
|
|
119
|
+
this.$emit("confirm", this.selectedRows);
|
|
120
|
+
this.close();
|
|
121
|
+
} else {
|
|
122
|
+
this.$message.warning("请选择");
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
if (this.currentRow) {
|
|
126
|
+
this.$emit("confirm", this.currentRow);
|
|
127
|
+
this.close();
|
|
128
|
+
} else {
|
|
129
|
+
this.$message.warning("请选择");
|
|
130
|
+
}
|
|
131
|
+
}
|
|
115
132
|
}
|
|
116
133
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
134
|
+
};
|
|
135
|
+
const __cssModules = {};
|
|
136
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
137
|
+
__vue2_script,
|
|
138
|
+
render,
|
|
139
|
+
staticRenderFns,
|
|
140
|
+
false,
|
|
141
|
+
__vue2_injectStyles,
|
|
124
142
|
null,
|
|
125
143
|
null,
|
|
126
144
|
null
|
|
127
145
|
);
|
|
128
|
-
function
|
|
129
|
-
for (let
|
|
130
|
-
this[
|
|
146
|
+
function __vue2_injectStyles(context) {
|
|
147
|
+
for (let o in __cssModules) {
|
|
148
|
+
this[o] = __cssModules[o];
|
|
149
|
+
}
|
|
131
150
|
}
|
|
132
|
-
const
|
|
133
|
-
return
|
|
151
|
+
const DataTablePicker = /* @__PURE__ */ function() {
|
|
152
|
+
return __component__.exports;
|
|
134
153
|
}();
|
|
135
154
|
export {
|
|
136
|
-
|
|
155
|
+
DataTablePicker as default
|
|
137
156
|
};
|