@web-utils/component 2.0.10 → 2.0.12

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.
Files changed (172) hide show
  1. package/dist/chunks/3d28cc08.js +57 -0
  2. package/dist/chunks/{41a066be.js → 44b78389.js} +8 -8
  3. package/dist/chunks/5d33812d.js +147 -0
  4. package/dist/chunks/{61ad06b2.js → 822300f3.js} +3 -3
  5. package/dist/chunks/9d848bf6.js +99 -0
  6. package/dist/chunks/a0bb327b.js +96 -0
  7. package/dist/chunks/a8891d2c.js +30 -0
  8. package/dist/chunks/c69d5628.js +248 -0
  9. package/dist/chunks/de9fe802.js +24 -0
  10. package/dist/chunks/{5a78e0db.js → e1939731.js} +6 -5
  11. package/dist/components/address-input/index.js +56 -43
  12. package/dist/components/address-input/style.css +15 -1
  13. package/dist/components/aside-menu/index.js +36 -30
  14. package/dist/components/aside-menu/style.css +9 -1
  15. package/dist/components/awesome-button/index.js +35 -32
  16. package/dist/components/base.css +66 -1
  17. package/dist/components/capsule-tab/index.js +33 -27
  18. package/dist/components/capsule-tab/style.css +32 -1
  19. package/dist/components/chunk-file-uploader/index.js +88 -54
  20. package/dist/components/chunk-file-uploader/style.css +4 -1
  21. package/dist/components/chunk-file-uploader-button/index.js +31 -25
  22. package/dist/components/chunk-file-uploader-button/style.css +17 -1
  23. package/dist/components/chunk-file-uploader-drop/index.js +42 -28
  24. package/dist/components/chunk-file-uploader-drop/style.css +12 -1
  25. package/dist/components/chunk-file-uploader-file/index.js +212 -134
  26. package/dist/components/chunk-file-uploader-file/style.css +125 -1
  27. package/dist/components/chunk-file-uploader-files/index.js +34 -28
  28. package/dist/components/chunk-file-uploader-files/style.css +9 -1
  29. package/dist/components/chunk-file-uploader-list/index.js +35 -29
  30. package/dist/components/chunk-file-uploader-list/style.css +9 -1
  31. package/dist/components/chunk-file-uploader-un-support/index.js +38 -30
  32. package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
  33. package/dist/components/code-mirror-editor/index.js +181 -153
  34. package/dist/components/code-mirror-editor/style.css +17 -1
  35. package/dist/components/color-picker/index.js +68 -49
  36. package/dist/components/confirm-button/index.js +21 -19
  37. package/dist/components/confirmable/index.js +19 -18
  38. package/dist/components/context-menu/index.js +130 -108
  39. package/dist/components/context-menu/style.css +88 -1
  40. package/dist/components/custom-scrollbar/index.js +67 -49
  41. package/dist/components/data-table-picker/index.js +81 -62
  42. package/dist/components/dynamic-table/index.js +113 -89
  43. package/dist/components/dynamic-table/style.css +30 -1
  44. package/dist/components/e-charts/index.js +201 -120
  45. package/dist/components/e-charts/style.css +10 -1
  46. package/dist/components/editable-progress/index.js +93 -60
  47. package/dist/components/editable-progress/style.css +37 -1
  48. package/dist/components/editable-tree/index.js +638 -423
  49. package/dist/components/editable-tree/style.css +82 -1
  50. package/dist/components/egd-collapse/index.js +46 -33
  51. package/dist/components/egd-collapse-item/index.js +76 -60
  52. package/dist/components/element-dialog/index.js +147 -95
  53. package/dist/components/element-dialog/style.css +102 -1
  54. package/dist/components/empty-view/index.js +34 -28
  55. package/dist/components/empty-view/style.css +17 -1
  56. package/dist/components/error-view/index.js +32 -26
  57. package/dist/components/error-view/style.css +17 -1
  58. package/dist/components/flex-column/index.js +40 -25
  59. package/dist/components/flex-item/index.js +57 -29
  60. package/dist/components/flex-row/index.js +40 -25
  61. package/dist/components/flex-scroller/index.js +32 -26
  62. package/dist/components/flex-scroller/style.css +20 -1
  63. package/dist/components/form-button/index.js +38 -34
  64. package/dist/components/form-cascader/index.js +81 -71
  65. package/dist/components/form-checkbox-group/index.js +113 -88
  66. package/dist/components/form-checkbox-group/style.css +51 -1
  67. package/dist/components/form-date-picker/index.js +132 -70
  68. package/dist/components/form-holder/index.js +39 -32
  69. package/dist/components/form-input/index.js +62 -56
  70. package/dist/components/form-input-email/index.js +60 -48
  71. package/dist/components/form-input-id-card/index.js +59 -53
  72. package/dist/components/form-input-number/index.js +68 -61
  73. package/dist/components/form-input-number/style.css +12 -1
  74. package/dist/components/form-input-phone-number/index.js +55 -49
  75. package/dist/components/form-input-time/index.js +59 -53
  76. package/dist/components/form-item/index.js +123 -80
  77. package/dist/components/form-item/style.css +11 -1
  78. package/dist/components/form-item-config-provider/index.js +26 -25
  79. package/dist/components/form-item-group/index.js +111 -85
  80. package/dist/components/form-item-group/style.css +30 -1
  81. package/dist/components/form-radio-group/index.js +104 -85
  82. package/dist/components/form-radio-group/style.css +53 -1
  83. package/dist/components/form-select/index.js +91 -76
  84. package/dist/components/form-switch/index.js +57 -51
  85. package/dist/components/form-textarea/index.js +57 -51
  86. package/dist/components/form-view/index.js +232 -165
  87. package/dist/components/form-view/style.css +158 -1
  88. package/dist/components/guide-steps/index.js +58 -44
  89. package/dist/components/guide-steps/style.css +34 -1
  90. package/dist/components/icon-card/index.js +35 -29
  91. package/dist/components/icon-card/style.css +56 -1
  92. package/dist/components/iframe-window/index.js +35 -29
  93. package/dist/components/iframe-window/style.css +20 -1
  94. package/dist/components/image-viewer/index.js +66 -48
  95. package/dist/components/image-viewer/style.css +21 -1
  96. package/dist/components/input-number/index.js +193 -127
  97. package/dist/components/input-number/style.css +15 -1
  98. package/dist/components/input-number-range/index.js +57 -45
  99. package/dist/components/input-number-range/style.css +12 -1
  100. package/dist/components/j-s-x-component/index.js +4 -4
  101. package/dist/components/keep-view-alive/index.js +120 -73
  102. package/dist/components/loading-view/index.js +32 -26
  103. package/dist/components/loading-view/style.css +17 -1
  104. package/dist/components/nav-bar/index.js +37 -27
  105. package/dist/components/nav-bar/style.css +17 -1
  106. package/dist/components/not-implement/index.js +31 -23
  107. package/dist/components/not-implement/style.css +15 -1
  108. package/dist/components/page/index.js +28 -22
  109. package/dist/components/page/style.css +12 -1
  110. package/dist/components/page-header/index.js +36 -30
  111. package/dist/components/page-header/style.css +14 -1
  112. package/dist/components/page-index/index.js +83 -62
  113. package/dist/components/page-index/style.css +23 -1
  114. package/dist/components/page-index-top/index.js +68 -53
  115. package/dist/components/page-skeleton/index.js +37 -31
  116. package/dist/components/page-skeleton/style.css +23 -1
  117. package/dist/components/page-skeleton-new/index.js +48 -42
  118. package/dist/components/page-skeleton-new/style.css +42 -1
  119. package/dist/components/pageable-table/index.js +253 -186
  120. package/dist/components/pageable-table/style.css +72 -1
  121. package/dist/components/pageable-view/index.js +199 -129
  122. package/dist/components/pageable-view/style.css +69 -1
  123. package/dist/components/photo-swipe/index.js +151 -110
  124. package/dist/components/photo-swipe/style.css +20 -1
  125. package/dist/components/resize-observer/index.js +68 -34
  126. package/dist/components/resize-observer/style.css +31 -1
  127. package/dist/components/search-popover/index.js +211 -153
  128. package/dist/components/search-popover/style.css +93 -1
  129. package/dist/components/sign-panel/index.js +142 -92
  130. package/dist/components/sign-panel/style.css +97 -1
  131. package/dist/components/split-pane/index.js +162 -101
  132. package/dist/components/split-pane/style.css +100 -1
  133. package/dist/components/stateful/index.js +34 -31
  134. package/dist/components/stateful/style.css +33 -1
  135. package/dist/components/static-pageable-table/index.js +44 -37
  136. package/dist/components/static-pageable-table/style.css +9 -1
  137. package/dist/components/swiper/index.js +150 -85
  138. package/dist/components/swiper/style.css +43 -1
  139. package/dist/components/tab/index.js +72 -54
  140. package/dist/components/tab/style.css +122 -1
  141. package/dist/components/tab-item/index.js +35 -30
  142. package/dist/components/table-column/index.js +32 -30
  143. package/dist/components/table-view/index.js +227 -156
  144. package/dist/components/table-view/style.css +95 -1
  145. package/dist/components/tag-render/index.js +58 -44
  146. package/dist/components/tag-render/style.css +33 -1
  147. package/dist/components/tinymce-editor/index.js +95 -79
  148. package/dist/components/tinymce-editor/style.css +43 -1
  149. package/dist/components/tinymce-wrapper/index.js +121 -92
  150. package/dist/components/tinymce-wrapper/style.css +36 -1
  151. package/dist/components/toolbar/index.js +84 -63
  152. package/dist/components/toolbar/style.css +39 -1
  153. package/dist/components/toolbar-button/index.js +48 -41
  154. package/dist/components/toolbar-button/style.css +21 -1
  155. package/dist/components/trigger/index.js +36 -29
  156. package/dist/components/vue-tags-input/index.js +308 -188
  157. package/dist/components/vue-tags-input/style.css +682 -1
  158. package/dist/components/watermark/index.js +37 -25
  159. package/dist/components/watermark/style.css +11 -1
  160. package/dist/components/x-dialog/index.js +93 -67
  161. package/dist/components/x-dialog/style.css +15 -1
  162. package/dist/index.css +1105 -193
  163. package/dist/index.es.js +7242 -4789
  164. package/package.json +2 -2
  165. package/web-types.json +1 -1
  166. package/dist/chunks/3a79781b.js +0 -75
  167. package/dist/chunks/5d4282fb.js +0 -30
  168. package/dist/chunks/76680a03.js +0 -24
  169. package/dist/chunks/8c0142e0.js +0 -81
  170. package/dist/chunks/97652d86.js +0 -26
  171. package/dist/chunks/b4acd3a6.js +0 -126
  172. package/dist/chunks/f71045fc.js +0 -184
@@ -1 +1,88 @@
1
- .cm-container{position:fixed;z-index:9999;user-select:none}.cm-container .icon{position:absolute;top:50%;right:0;width:.9em;height:.9em;overflow:hidden;vertical-align:-.15em;transform:translateY(-50%);fill:currentcolor}.cm-container .cm-item-icon{margin-right:4px}.cm-container .cm-ul{width:100%;margin:0;padding:0;color:#2e2e2e;list-style:none;background-color:#fff;box-shadow:0 0 1px #666}.cm-container .cm-ul li{position:relative;box-sizing:border-box;width:100%;text-align:left;cursor:pointer}.cm-container .cm-ul li:hover>ul{display:block}.cm-container .cm-ul li div{position:relative;display:inline-block;box-sizing:border-box;width:100%;height:100%;padding:0 .8em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cm-container .cm-ul li i{display:inline-block;width:1em;font-size:1.3em;text-align:center}.cm-container .cm-ul li div:hover{color:#fff;background-color:#666}.cm-container .cm-ul-2,.cm-container .cm-ul-3{position:absolute;top:0;z-index:10000;display:none}.cm-container .cm-left svg{left:0;transform:translateY(-50%) rotate(180deg)}.cm-container .cm-underline li div:after{position:absolute;top:0;left:5%;z-index:10001;width:90%;height:1px;background-color:#ccc;content:""}.cm-container .cm-underline li div:hover:after,.cm-container .cm-underline>li:first-child>div:after{display:none}
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 r from "overlayscrollbars";
1
+ import OverlayScrollbars from "overlayscrollbars";
2
2
  import "overlayscrollbars/css/OverlayScrollbars.css";
3
- import { n as l } from "../../chunks/5d4282fb.js";
4
- var i = function() {
5
- var t = this, e = t.$createElement, s = t._self._c || e;
6
- return s("div", {
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
- }, [s("div", {
10
+ }, [_c("div", {
9
11
  staticClass: "os-resize-observer-host"
10
- }), s("div", {
12
+ }), _c("div", {
11
13
  staticClass: "os-padding"
12
- }, [s("div", {
14
+ }, [_c("div", {
13
15
  ref: "viewport",
14
16
  staticClass: "os-viewport"
15
- }, [s("div", {
17
+ }, [_c("div", {
16
18
  ref: "content",
17
19
  staticClass: "os-content"
18
- }, [t._t("default")], 2)])]), t._m(0), t._m(1), s("div", {
20
+ }, [_vm._t("default")], 2)])]), _vm._m(0), _vm._m(1), _c("div", {
19
21
  staticClass: "os-scrollbar-corner"
20
22
  })]);
21
- }, a = [function() {
22
- var t = this, e = t.$createElement, s = t._self._c || e;
23
- return s("div", {
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
- }, [s("div", {
30
+ }, [_c("div", {
26
31
  staticClass: "os-scrollbar-track"
27
- }, [s("div", {
32
+ }, [_c("div", {
28
33
  staticClass: "os-scrollbar-handle"
29
34
  })])]);
30
35
  }, function() {
31
- var t = this, e = t.$createElement, s = t._self._c || e;
32
- return s("div", {
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
- }, [s("div", {
41
+ }, [_c("div", {
35
42
  staticClass: "os-scrollbar-track"
36
- }, [s("div", {
43
+ }, [_c("div", {
37
44
  staticClass: "os-scrollbar-handle"
38
45
  })])]);
39
46
  }];
40
- const n = {
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: !1
71
+ default: false
65
72
  },
66
73
  textarea: {
67
74
  type: Boolean,
68
- default: !1
75
+ default: false
69
76
  }
70
77
  },
71
78
  computed: {
72
79
  innerOptions() {
73
- return { ...this.options || {}, className: this.theme || "os-theme-dark", scrollbars: { autoHide: "l", autoHideDelay: 100 }, callbacks: { onScroll: this.internalScroll } };
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(t) {
78
- const e = this.scroller;
79
- r.valid(e) && e.options(t);
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, this.scroller = r(
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 t = this.scroller;
101
- r.valid(t) && (t.destroy(), this.scroller = null);
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(t) {
114
- this.$refs.viewport.scrollTop = t;
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(t) {
120
- this.onScroll && this.onScroll(t);
121
- const e = t.target;
122
- if (!this.reverse && Math.ceil(e.clientHeight + e.scrollTop) >= e.scrollHeight) {
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 && e.scrollTop === 0 && this.onLoadMore && this.onLoadMore();
140
+ if (this.reverse && target.scrollTop === 0) {
141
+ this.onLoadMore && this.onLoadMore();
142
+ }
127
143
  }
128
144
  }
129
- }, o = {};
130
- var c = /* @__PURE__ */ l(
131
- n,
132
- i,
133
- a,
134
- !1,
135
- h,
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 h(t) {
141
- for (let e in o)
142
- this[e] = o[e];
157
+ function __vue2_injectStyles(context) {
158
+ for (let o in __cssModules) {
159
+ this[o] = __cssModules[o];
160
+ }
143
161
  }
144
- const f = /* @__PURE__ */ function() {
145
- return c.exports;
162
+ const CustomScrollbar = /* @__PURE__ */ function() {
163
+ return __component__.exports;
146
164
  }();
147
165
  export {
148
- f as default
166
+ CustomScrollbar as default
149
167
  };
@@ -1,75 +1,78 @@
1
- import { dialog as o } from "@web-utils/core/dist/mixin/index";
2
- import { f as r } from "../../chunks/f71045fc.js";
3
- import { n as s } from "../../chunks/5d4282fb.js";
4
- var a = function() {
5
- var e = this, t = e.$createElement, l = e._self._c || t;
6
- return l("ElementDialog", {
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: e.show,
9
- title: e.title,
10
- width: e.width,
11
- height: e.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(n) {
16
- e.show = n;
17
+ "update:visible": function($event) {
18
+ _vm.show = $event;
17
19
  },
18
- close: e.close,
19
- closed: e.closed
20
+ "close": _vm.close,
21
+ "closed": _vm.closed
20
22
  },
21
- scopedSlots: e._u([{
23
+ scopedSlots: _vm._u([{
22
24
  key: "default",
23
25
  fn: function() {
24
- return [e._t("search-form"), l("PageableTable", {
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: e.model,
33
- columns: e.columns,
34
- api: e.api,
34
+ "model": _vm.model,
35
+ "columns": _vm.columns,
36
+ "api": _vm.api,
35
37
  "row-class-name": "pointer",
36
- multiple: e.multiple
38
+ "multiple": _vm.multiple
37
39
  },
38
40
  on: {
39
- "selection-change": e.selectionChange,
40
- "row-click": e.toggleRowSelection,
41
- "current-change": e.currentChange
41
+ "selection-change": _vm.selectionChange,
42
+ "row-click": _vm.toggleRowSelection,
43
+ "current-change": _vm.currentChange
42
44
  }
43
- }, [e._t("default")], 2)];
45
+ }, [_vm._t("default")], 2)];
44
46
  },
45
- proxy: !0
47
+ proxy: true
46
48
  }, {
47
49
  key: "footer",
48
50
  fn: function() {
49
- return [l("ElButton", {
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: e.confirm
57
+ "click": _vm.confirm
56
58
  }
57
- }, [e._v(" 确 定 ")]), l("ElButton", {
59
+ }, [_vm._v(" 确 定 ")]), _c("ElButton", {
58
60
  attrs: {
59
- size: "mini"
61
+ "size": "mini"
60
62
  },
61
63
  on: {
62
- click: e.close
64
+ "click": _vm.close
63
65
  }
64
- }, [e._v(" 关 闭 ")])];
66
+ }, [_vm._v(" 关 闭 ")])];
65
67
  },
66
- proxy: !0
67
- }], null, !0)
68
+ proxy: true
69
+ }], null, true)
68
70
  });
69
- }, c = [];
70
- const u = {
71
+ };
72
+ var staticRenderFns = [];
73
+ const __vue2_script = {
71
74
  name: "DataTablePicker",
72
- mixins: [o],
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: !0
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: r,
103
- selectionChange(e) {
104
- this.selectedRows = e;
105
+ filterTableColumnProperties,
106
+ selectionChange(selectedRows) {
107
+ this.selectedRows = selectedRows;
105
108
  },
106
- currentChange(e) {
107
- this.currentRow = e;
109
+ currentChange(currentRow) {
110
+ this.currentRow = currentRow;
108
111
  },
109
- toggleRowSelection(e) {
110
- this.$refs.pageableTable.$refs.table.toggleRowSelection(e);
112
+ toggleRowSelection(row) {
113
+ this.$refs.pageableTable.$refs.table.toggleRowSelection(row);
111
114
  },
112
115
  confirm() {
113
- var e;
114
- this.multiple ? (e = this.selectedRows) != null && e.length ? (this.$emit("confirm", this.selectedRows), this.close()) : this.$message.warning("请选择") : this.currentRow ? (this.$emit("confirm", this.currentRow), this.close()) : this.$message.warning("请选择");
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
- }, i = {};
118
- var h = /* @__PURE__ */ s(
119
- u,
120
- a,
121
- c,
122
- !1,
123
- m,
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 m(e) {
129
- for (let t in i)
130
- this[t] = i[t];
146
+ function __vue2_injectStyles(context) {
147
+ for (let o in __cssModules) {
148
+ this[o] = __cssModules[o];
149
+ }
131
150
  }
132
- const d = /* @__PURE__ */ function() {
133
- return h.exports;
151
+ const DataTablePicker = /* @__PURE__ */ function() {
152
+ return __component__.exports;
134
153
  }();
135
154
  export {
136
- d as default
155
+ DataTablePicker as default
137
156
  };