lw-cdp-ui 1.0.19 → 1.0.21

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 (44) hide show
  1. package/README.md +5 -5
  2. package/dist/components/lwForm/index.vue +312 -312
  3. package/dist/components/lwIconSelect/iconSelect.js +288 -288
  4. package/dist/components/lwIconSelect/index.vue +142 -142
  5. package/dist/components/lwLayout/components/NavMenu.vue +36 -36
  6. package/dist/components/lwLayout/components/aside.vue +291 -295
  7. package/dist/components/lwLayout/components/bu.vue +72 -70
  8. package/dist/components/lwLayout/components/iframeView.vue +57 -57
  9. package/dist/components/lwLayout/components/lang.vue +76 -76
  10. package/dist/components/lwLayout/components/setting.vue +80 -80
  11. package/dist/components/lwLayout/components/sideM.vue +137 -136
  12. package/dist/components/lwLayout/components/tags.vue +329 -329
  13. package/dist/components/lwLayout/components/topbar.vue +70 -70
  14. package/dist/components/lwLayout/components/userbar.vue +210 -209
  15. package/dist/components/lwLayout/index.vue +399 -398
  16. package/dist/components/lwLogin/index.vue +446 -383
  17. package/dist/components/lwSearch/date/date.vue +110 -110
  18. package/dist/components/lwSearch/dateRange/dateRange.vue +110 -110
  19. package/dist/components/lwSearch/dates/dates.vue +366 -366
  20. package/dist/components/lwSearch/index.vue +636 -636
  21. package/dist/components/lwSearch/input/input.vue +54 -54
  22. package/dist/components/lwSearch/locale/en-us.js +10 -10
  23. package/dist/components/lwSearch/locale/zh-cn.js +10 -10
  24. package/dist/components/lwSearch/select/select.vue +57 -57
  25. package/dist/components/lwSvgIcon/index.vue +28 -28
  26. package/dist/components/lwTable/index.js +425 -425
  27. package/dist/components/lwTable/index.scss +229 -229
  28. package/dist/components/lwTable/index.vue +225 -226
  29. package/dist/components/lwTable/locale/en-US.js +26 -26
  30. package/dist/components/lwTable/locale/zh-CN.js +26 -26
  31. package/dist/components/lwTable/useFullscreen.js +73 -73
  32. package/dist/components/lwTableSelect/index.vue +254 -254
  33. package/dist/components/lwTableSelect/tableSelect.js +23 -23
  34. package/dist/components/lwUpload/index.vue +365 -365
  35. package/dist/en-US-YCjgxjEt.js.map +1 -1
  36. package/dist/en-us-CziFtIQi.js.map +1 -1
  37. package/dist/lw-cdp-ui.esm.js +1484 -1459
  38. package/dist/lw-cdp-ui.esm.js.map +1 -1
  39. package/dist/lw-cdp-ui.umd.js +9 -9
  40. package/dist/lw-cdp-ui.umd.js.map +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/zh-CN-BdDNsX4e.js.map +1 -1
  43. package/dist/zh-cn-DJpQp_O7.js.map +1 -1
  44. package/package.json +45 -45
@@ -1,295 +1,291 @@
1
- <template>
2
- <div class="layout-aside">
3
-
4
- <img class="logo"
5
- :src="logo"
6
- alt="">
7
-
8
- <el-popover placement="right"
9
- :width="180"
10
- trigger="click"
11
- :show-arrow="false"
12
- :offset="3"
13
- popper-class="app-popper"
14
- ref="popoverRef">
15
- <template #reference>
16
- <p>
17
- <el-icon class="menu-btn">
18
- <component is="el-icon-grid" />
19
- </el-icon>
20
- </p>
21
- </template>
22
- <div class="app-content">
23
- <div class="app-title">
24
- 应用中心
25
- <el-icon class="iconClose"
26
- @click="closePopover">
27
- <el-icon-close />
28
- </el-icon>
29
- </div>
30
- <el-divider style="margin: 5px 0;" />
31
- <template v-if="grantedApplications.length > 0">
32
- <div class="menu-item"
33
- @click="switchMenu(item)"
34
- v-for="item in grantedApplications"
35
- :key="item.resourceId">
36
- <i class="iconfont"
37
- :class="item.icon"
38
- style="margin-right: 5px;"></i>
39
- {{ item.name}}
40
- </div>
41
- </template>
42
-
43
- </div>
44
- </el-popover>
45
- </div>
46
- </template>
47
-
48
- <script>
49
- import logo from '/images/logo.jpg';
50
- export default {
51
- name: 'layoutAside',
52
- props: {
53
- },
54
- data() {
55
- return {
56
- logo,
57
- popVisible: false,
58
- grantedApplications: [],
59
- };
60
- },
61
- mounted() {
62
- let { grantedApplications } = this.$tool.data.get('userAuthInfo');
63
- this.grantedApplications = grantedApplications
64
- document.addEventListener('click', this.handleDocumentClick);
65
- },
66
- beforeDestroy() {
67
- document.removeEventListener('click', this.handleDocumentClick);
68
- },
69
- methods: {
70
- handleDocumentClick(ev) {
71
- let popover = document.getElementById('popover');
72
- if (this.popVisible && (ev.target !== popover) && !popover.contains(ev.target)) {
73
- this.popVisible = false;
74
- }
75
- },
76
- switchMenu(menuItem) {
77
- window.location.href = menuItem.url;
78
- },
79
- closePopover() {
80
- this.$refs.popoverRef.hide(); // 关闭 popover
81
- },
82
- }
83
- };
84
- </script>
85
- <style lang="scss">
86
- .layout-aside {
87
- width: 100%;
88
- height: 100%;
89
- border-bottom: 1px solid var(--el-mask-color-extra-light);
90
- .logo {
91
- width: 100%;
92
- height: auto;
93
- display: block;
94
- }
95
-
96
- .menu-btn {
97
- font-size: 24px;
98
- color: #95989d;
99
- }
100
- .el-tooltip__trigger {
101
- text-align: center;
102
- padding: 10px;
103
- cursor: pointer;
104
- &:hover {
105
- background-color: var(--el-menu-hover-bg-color);
106
- .menu-btn {
107
- color: var(--el-menu-active-color);
108
- }
109
- }
110
- }
111
-
112
- .menu-container {
113
- display: flex;
114
- flex: 1;
115
- flex-direction: column;
116
- align-items: center;
117
- width: inherit;
118
-
119
- .logo {
120
- display: flex;
121
- align-items: center;
122
- justify-content: center;
123
- width: inherit;
124
- height: 50px;
125
- cursor: pointer;
126
- margin: 0;
127
- padding: 0;
128
- }
129
-
130
- .fixed-menu-list {
131
- flex: 1;
132
- width: inherit;
133
- height: 100%;
134
- }
135
- .app-box {
136
- width: 50px;
137
- height: 50px;
138
- color: #95989d;
139
- }
140
- .app-box:hover {
141
- background: #eeeefc;
142
- color: #3d3ad9;
143
- }
144
- }
145
-
146
- .menu-container,
147
- .footer {
148
- p {
149
- width: 50px;
150
- height: 50px;
151
- margin: auto;
152
- line-height: 50px;
153
- text-align: center;
154
- cursor: pointer;
155
- }
156
-
157
- .iconfont {
158
- color: inherit;
159
- font-size: 18px;
160
- padding: 15px;
161
- }
162
- }
163
-
164
- .setting {
165
- transform: rotate(180deg);
166
- cursor: pointer;
167
- }
168
- }
169
-
170
- .pop-menu {
171
- min-width: 104px;
172
- height: fit-content;
173
- padding: 10px 0;
174
- overflow-y: auto;
175
- border: 1px solid #eaeaeb;
176
- border-radius: 2px;
177
- box-shadow: 0 2px 4px rgba(39, 40, 42, 0.15);
178
-
179
- // &.side-popover {
180
- // top: 50px !important;
181
- // left: 50px !important;
182
- // max-height: calc(100vh - 80px);
183
- // }
184
-
185
- // &.header-popover {
186
- // top: 35px !important;
187
- // right: 76px !important;
188
- // left: auto !important;
189
- // max-height: calc(100vh - 80px);
190
- // }
191
- }
192
-
193
- .menu-item {
194
- display: flex;
195
- box-sizing: border-box;
196
- align-items: center;
197
- height: 32px;
198
- padding: 0 8px;
199
- color: #6a6d73;
200
- cursor: pointer;
201
-
202
- &.fixed {
203
- color: #27282a;
204
- font-weight: bold;
205
-
206
- .iconfont {
207
- color: #3d3ad9;
208
- font-weight: normal;
209
- }
210
-
211
- .iconfont.iconMinus-Circle {
212
- color: #ccccf5;
213
- }
214
- }
215
-
216
- &:hover {
217
- background: #eeeefc;
218
- color: #3d3ad9;
219
-
220
- &.fixed .iconfont.iconFixed {
221
- display: none !important;
222
- }
223
-
224
- .iconfont {
225
- display: block !important;
226
-
227
- color: #3d3ad9;
228
- }
229
- }
230
-
231
- .iconfont {
232
- width: 16px;
233
- height: 16px;
234
- color: #95989d;
235
- line-height: 15px;
236
-
237
- &.iconFixed {
238
- display: none;
239
- color: #9a98eb;
240
- font-size: 14px;
241
- cursor: pointer;
242
- }
243
-
244
- &.iconDrag1 {
245
- display: none;
246
- margin-left: 8px;
247
- color: #9a98eb;
248
- font-size: 14px;
249
- cursor: grab;
250
- }
251
- }
252
-
253
- .name {
254
- flex: 1;
255
- margin-left: 8px;
256
- overflow: hidden;
257
- color: inherit;
258
- font-size: 12px;
259
- line-height: 32px;
260
- text-align: left;
261
- text-overflow: ellipsis;
262
- white-space: nowrap;
263
- }
264
- }
265
-
266
- .app-popper {
267
- padding: 10px 0 !important;
268
- top: 50px !important;
269
- .app-title {
270
- font-size: 12px;
271
- font-weight: bold;
272
- line-height: 19px;
273
- height: 19px;
274
- padding: 0 10px 2px;
275
- .iconClose {
276
- position: absolute;
277
- top: 10px;
278
- right: 8px;
279
- color: #d5d6d8;
280
- font-weight: normal;
281
- cursor: pointer;
282
- font-size: 16px;
283
- &:hover {
284
- color: #3d3ad9;
285
- }
286
- }
287
- }
288
- }
289
-
290
- .icon-mmc-s {
291
- margin-right: 10px !important;
292
- margin-left: -4px;
293
- }
294
- </style>
295
-
1
+ <template>
2
+ <div class="layout-aside">
3
+
4
+ <img class="logo"
5
+ :src="logo"
6
+ alt="">
7
+
8
+ <el-popover placement="right"
9
+ :width="180"
10
+ trigger="click"
11
+ :show-arrow="false"
12
+ :offset="3"
13
+ popper-class="app-popper"
14
+ ref="popoverRef">
15
+ <template #reference>
16
+ <p>
17
+ <el-icon class="menu-btn">
18
+ <component is="el-icon-grid" />
19
+ </el-icon>
20
+ </p>
21
+ </template>
22
+ <div class="app-content">
23
+ <div class="app-title">
24
+ 应用中心
25
+ <el-icon class="iconClose"
26
+ @click="closePopover">
27
+ <el-icon-close />
28
+ </el-icon>
29
+ </div>
30
+ <el-divider style="margin: 5px 0;" />
31
+ <template v-if="grantedApplications.length > 0">
32
+ <div class="menu-item"
33
+ @click="switchMenu(item)"
34
+ v-for="item in grantedApplications"
35
+ :key="item.resourceId">
36
+ <i class="iconfont"
37
+ :class="item.icon"
38
+ style="margin-right: 5px;"></i>
39
+ {{ item.name}}
40
+ </div>
41
+ </template>
42
+
43
+ </div>
44
+ </el-popover>
45
+ </div>
46
+ </template>
47
+
48
+ <script>
49
+ import logo from '/images/logo.jpg';
50
+ export default {
51
+ name: 'layoutAside',
52
+ props: {
53
+ },
54
+ data() {
55
+ return {
56
+ logo,
57
+ popVisible: false,
58
+ grantedApplications: [],
59
+ };
60
+ },
61
+ mounted() {
62
+ let { grantedApplications } = this.$tool.data.get('userAuthInfo');
63
+ this.grantedApplications = grantedApplications
64
+ document.addEventListener('click', this.handleDocumentClick);
65
+ },
66
+ beforeDestroy() {
67
+ document.removeEventListener('click', this.handleDocumentClick);
68
+ },
69
+ methods: {
70
+ handleDocumentClick(ev) {
71
+ let popover = document.getElementById('popover');
72
+ if (this.popVisible && (ev.target !== popover) && !popover.contains(ev.target)) {
73
+ this.popVisible = false;
74
+ }
75
+ },
76
+ switchMenu(menuItem) {
77
+ window.location.href = menuItem.url;
78
+ },
79
+ closePopover() {
80
+ this.$refs.popoverRef.hide(); // 关闭 popover
81
+ },
82
+ }
83
+ };
84
+ </script>
85
+ <style lang="scss">
86
+ .layout-aside {
87
+ width: 100%;
88
+ height: 100%;
89
+ border-bottom: 1px solid var(--el-mask-color-extra-light);
90
+ .logo {
91
+ width: 100%;
92
+ height: auto;
93
+ display: block;
94
+ }
95
+
96
+ .menu-btn {
97
+ font-size: 24px;
98
+ color: #95989d;
99
+ }
100
+ .el-tooltip__trigger {
101
+ text-align: center;
102
+ padding: 10px;
103
+ cursor: pointer;
104
+ &:hover {
105
+ background-color: var(--el-menu-hover-bg-color);
106
+ .menu-btn {
107
+ color: var(--el-menu-active-color);
108
+ }
109
+ }
110
+ }
111
+
112
+ .menu-container {
113
+ display: flex;
114
+ flex: 1;
115
+ flex-direction: column;
116
+ align-items: center;
117
+ width: inherit;
118
+
119
+ .logo {
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ width: inherit;
124
+ height: 50px;
125
+ cursor: pointer;
126
+ margin: 0;
127
+ padding: 0;
128
+ }
129
+
130
+ .fixed-menu-list {
131
+ flex: 1;
132
+ width: inherit;
133
+ height: 100%;
134
+ }
135
+ .app-box {
136
+ width: 50px;
137
+ height: 50px;
138
+ color: #95989d;
139
+ }
140
+ .app-box:hover {
141
+ background: #eeeefc;
142
+ color: #3d3ad9;
143
+ }
144
+ }
145
+
146
+ .menu-container,
147
+ .footer {
148
+ p {
149
+ width: 50px;
150
+ height: 50px;
151
+ margin: auto;
152
+ line-height: 50px;
153
+ text-align: center;
154
+ cursor: pointer;
155
+ }
156
+
157
+ .iconfont {
158
+ color: inherit;
159
+ font-size: 18px;
160
+ padding: 15px;
161
+ }
162
+ }
163
+
164
+ .setting {
165
+ transform: rotate(180deg);
166
+ cursor: pointer;
167
+ }
168
+ }
169
+
170
+ .pop-menu {
171
+ min-width: 104px;
172
+ height: fit-content;
173
+ padding: 10px 0;
174
+ overflow-y: auto;
175
+ border: 1px solid #eaeaeb;
176
+ border-radius: 2px;
177
+ box-shadow: 0 2px 4px rgba(39, 40, 42, 0.15);
178
+
179
+ // &.side-popover {
180
+ // top: 50px !important;
181
+ // left: 50px !important;
182
+ // max-height: calc(100vh - 80px);
183
+ // }
184
+
185
+ // &.header-popover {
186
+ // top: 35px !important;
187
+ // right: 76px !important;
188
+ // left: auto !important;
189
+ // max-height: calc(100vh - 80px);
190
+ // }
191
+ }
192
+
193
+ .menu-item {
194
+ display: flex;
195
+ box-sizing: border-box;
196
+ align-items: center;
197
+ height: 32px;
198
+ padding: 0 8px;
199
+ color: #6a6d73;
200
+ cursor: pointer;
201
+
202
+ &.fixed {
203
+ color: #27282a;
204
+ font-weight: bold;
205
+
206
+ .iconfont {
207
+ color: #3d3ad9;
208
+ font-weight: normal;
209
+ }
210
+
211
+ .iconfont.iconMinus-Circle {
212
+ color: #ccccf5;
213
+ }
214
+ }
215
+
216
+ &:hover {
217
+ background: #eeeefc;
218
+ color: #3d3ad9;
219
+
220
+ &.fixed .iconfont.iconFixed {
221
+ display: none !important;
222
+ }
223
+
224
+ .iconfont {
225
+ display: block !important;
226
+
227
+ color: #3d3ad9;
228
+ }
229
+ }
230
+
231
+ .iconfont {
232
+ width: 16px;
233
+ height: 16px;
234
+ color: #95989d;
235
+ line-height: 15px;
236
+
237
+ &.iconFixed {
238
+ display: none;
239
+ color: #9a98eb;
240
+ font-size: 14px;
241
+ cursor: pointer;
242
+ }
243
+
244
+ &.iconDrag1 {
245
+ display: none;
246
+ margin-left: 8px;
247
+ color: #9a98eb;
248
+ font-size: 14px;
249
+ cursor: grab;
250
+ }
251
+ }
252
+
253
+ .name {
254
+ flex: 1;
255
+ margin-left: 8px;
256
+ overflow: hidden;
257
+ color: inherit;
258
+ font-size: 12px;
259
+ line-height: 32px;
260
+ text-align: left;
261
+ text-overflow: ellipsis;
262
+ white-space: nowrap;
263
+ }
264
+ }
265
+
266
+ .app-popper {
267
+ padding: 10px 0 !important;
268
+ top: 50px !important;
269
+ .app-title {
270
+ font-size: 12px;
271
+ font-weight: bold;
272
+ line-height: 19px;
273
+ height: 19px;
274
+ padding: 0 10px 2px;
275
+ .iconClose {
276
+ position: absolute;
277
+ top: 10px;
278
+ right: 8px;
279
+ color: #d5d6d8;
280
+ font-weight: normal;
281
+ cursor: pointer;
282
+ font-size: 16px;
283
+ &:hover {
284
+ color: #3d3ad9;
285
+ }
286
+ }
287
+ }
288
+ }
289
+
290
+ </style>
291
+