yahee-components 0.0.10 → 0.0.13

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 (53) hide show
  1. package/es/api/server.js +26 -10
  2. package/es/api/tool.js +10 -11
  3. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
  4. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
  5. package/es/country-platform-shop-condition/index.js +7 -0
  6. package/es/country-platform-shop-condition/style/index.css +48 -0
  7. package/es/drop-down-condition/drop-down-condition.vue.js +216 -0
  8. package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
  9. package/es/drop-down-condition/index.js +7 -0
  10. package/es/drop-down-condition/style/index.css +45 -0
  11. package/es/index.js +23 -15
  12. package/es/installs.js +18 -10
  13. package/es/left-condition/index.js +7 -0
  14. package/es/left-condition/left-condition-sub.vue.js +95 -0
  15. package/es/left-condition/left-condition-sub.vue2.js +4 -0
  16. package/es/left-condition/left-condition.vue.js +216 -0
  17. package/es/left-condition/left-condition.vue2.js +4 -0
  18. package/es/left-condition/style/index.css +10 -0
  19. package/es/left-condition-enum/index.js +7 -0
  20. package/es/left-condition-enum/left-condition-enum.vue.js +80 -0
  21. package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
  22. package/es/left-condition-enum/style/index.css +10 -0
  23. package/es/operation-log/operation-log-form.vue.js +179 -5
  24. package/es/operation-log/operation-log-form.vue2.js +2 -179
  25. package/es/operation-log/operation-log.vue.js +30 -30
  26. package/es/packages/components/api/server.js +26 -13
  27. package/es/packages/components/api/tool.js +9 -10
  28. package/es/static/CommonObject.js +4 -0
  29. package/es/style.css +89 -194
  30. package/es/utils/style.js +28 -0
  31. package/es/utils/translate.js +39 -22
  32. package/lib/country-platform-shop-condition/style/index.css +48 -0
  33. package/lib/drop-down-condition/style/index.css +45 -0
  34. package/lib/left-condition/style/index.css +10 -0
  35. package/lib/left-condition-enum/style/index.css +10 -0
  36. package/lib/style.css +89 -194
  37. package/package.json +1 -1
  38. package/types/src/components.d.ts +4 -0
  39. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  40. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
  41. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  42. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  43. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +40 -0
  44. package/types/src/drop-down-condition/index.d.ts +42 -0
  45. package/types/src/installs.d.ts +270 -2
  46. package/types/src/left-condition/index.d.ts +69 -0
  47. package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
  48. package/types/src/left-condition/left-condition.d.ts +5 -0
  49. package/types/src/left-condition/left-condition.vue.d.ts +68 -0
  50. package/types/src/left-condition-enum/index.d.ts +162 -0
  51. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  52. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +160 -0
  53. package/es/_virtual/_plugin-vue_export-helper.js +0 -9
package/lib/style.css CHANGED
@@ -81,225 +81,120 @@
81
81
  padding: 5px 11px;
82
82
  }
83
83
 
84
- .yahee-operation-log {
85
- min-width: 350px;
86
- }
87
- .yahee-operation-log .infinite-list-wrapper {
88
- overflow: hidden;
89
- padding: 10px 4px;
90
- }
91
- .yahee-operation-log .infinite-list-wrapper .list-item-left {
92
- display: flex;
93
- justify-content: flex-start;
94
- gap: 10px;
95
- margin-bottom: 18px;
96
- }
97
- .yahee-operation-log .infinite-list-wrapper .list-item-left .date {
98
- margin-top: 6px;
99
- margin-left: 8px;
100
- }
101
- .yahee-operation-log .infinite-list-wrapper .list-item-left .name {
102
- flex: none;
103
- height: -moz-fit-content;
104
- height: fit-content;
105
- padding: 5px 8px;
106
- text-align: center;
107
- border-radius: 2px;
108
- background: #E8FFE8;
84
+ .yahee-left-condition .custom-button + .custom-button {
85
+ margin-left: 5px;
86
+ margin-bottom: 5px;
87
+ position: relative;
88
+ top: 2px;
109
89
  }
110
- .yahee-operation-log .infinite-list-wrapper .list-item-left .content {
111
- border: 1px solid #ccc;
112
- border-radius: 4px;
113
- padding: 10px;
114
- margin-left: -8px;
115
- background: #F7FFF7;
90
+ .yahee-left-condition .custom-button {
91
+ padding: 1px 4px;
92
+ height: 22px;
116
93
  }
117
- .yahee-operation-log .infinite-list-wrapper .list-item-right {
118
- display: flex;
119
- justify-content: flex-end;
120
- gap: 10px;
121
- margin-bottom: 18px;
122
- }
123
- .yahee-operation-log .infinite-list-wrapper .list-item-right .date {
124
- margin-top: 6px;
125
- margin-right: 8px;
126
- }
127
- .yahee-operation-log .infinite-list-wrapper .list-item-right .name {
128
- flex: none;
129
- height: -moz-fit-content;
130
- height: fit-content;
131
- padding: 5px 8px;
132
- text-align: center;
133
- border-radius: 2px;
134
- background: #f1f1f1;
94
+
95
+ .yahee-left-condition :deep(.custom-button + .custom-button) {
96
+ margin-left: 5px;
97
+ margin-bottom: 5px;
98
+ position: relative;
99
+ top: 2px;
135
100
  }
136
- .yahee-operation-log .infinite-list-wrapper .list-item-right .content {
137
- text-align: right;
138
- padding: 10px;
139
- margin-right: -8px;
140
- border: 1px solid #f1f1f1;
141
- border-radius: 4px;
142
- background: #FAFAFA;
101
+ .yahee-left-condition :deep(.custom-button) {
102
+ padding: 1px 4px;
103
+ height: 22px;
143
104
  }
144
- .yahee-operation-log .bg-link {
145
- color: #3366cc;
146
- cursor: pointer;
105
+
106
+ .yahee-drop-down-condition {
107
+ /* 滚动槽 */
108
+ /* 滚动条滑块 */
147
109
  }
148
- .yahee-operation-log .imgBox {
110
+ .yahee-drop-down-condition .checkbox-group {
149
111
  display: flex;
150
- flex-wrap: wrap;
112
+ flex-direction: column;
151
113
  }
152
- .yahee-operation-log .timeBox {
153
- margin: 0 5px;
114
+ .yahee-drop-down-condition .checkbox {
115
+ margin-top: 5px;
154
116
  }
155
- .yahee-operation-log .input-with-select {
156
- width: 150px;
117
+ .yahee-drop-down-condition .custom-total-button {
118
+ margin-right: 0;
119
+ padding: 1px 4px;
120
+ height: 22px;
157
121
  }
158
- .yahee-operation-log .lt-created-time {
159
- display: block;
122
+ .yahee-drop-down-condition .custom-button {
123
+ margin-right: 0;
124
+ padding: 1px 4px;
125
+ min-height: 22px;
126
+ height: 22px;
127
+ margin-left: 5px;
160
128
  }
161
- .yahee-operation-log .rt-created-time {
162
- display: inline-block;
129
+ .yahee-drop-down-condition .custom-button.inner-el-button {
130
+ margin-top: 5px;
163
131
  }
164
- .yahee-operation-log .content-div {
165
- width: 100%;
166
- height: 121px;
167
- border: 1px solid #ccc;
168
- padding: 10px;
132
+ .yahee-drop-down-condition .scrollable-container {
133
+ max-height: 700px;
134
+ overflow-y: auto;
135
+ display: flex;
136
+ flex-direction: column;
169
137
  }
170
- .yahee-operation-log .titleRemarks {
171
- font-size: 14px;
172
- font-weight: bold;
173
- padding-left: 5px;
174
- border-bottom: 1px solid #eee;
175
- height: 30px;
176
- line-height: 30px;
138
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar {
139
+ width: 5px;
177
140
  }
178
- .yahee-operation-log .remarkContent {
179
- position: relative;
180
- margin-bottom: 20px;
181
- border: 1px solid #eee;
141
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-track {
142
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
143
+ border-radius: 10px;
182
144
  }
183
- .yahee-operation-log .remarkContent .buttonQuill {
184
- position: absolute;
185
- bottom: -35px;
186
- right: 10px;
187
- display: flex;
145
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-thumb {
146
+ border-radius: 10px;
147
+ background: rgba(0, 0, 0, 0.1);
148
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
188
149
  }
189
- .yahee-operation-log .remarkContent .buttonQuill button {
190
- margin-right: 10px;
150
+
151
+ .yahee-country-platform-shop-condition .popover-table {
152
+ width: auto;
153
+ border: 1px solid transparent;
154
+ border-collapse: separate;
191
155
  }
192
- .yahee-operation-log .content-main {
193
- width: 100%;
156
+ .yahee-country-platform-shop-condition .popover-table tr,
157
+ .yahee-country-platform-shop-condition .popover-table td {
158
+ text-align: left;
159
+ cursor: pointer;
160
+ min-height: 22px;
194
161
  }
195
- .yahee-operation-log .span-backG {
196
- position: relative;
197
- display: flex;
198
- min-height: 70px;
162
+ .yahee-country-platform-shop-condition .checkbox-group {
163
+ margin: 5px;
199
164
  width: 100%;
200
- margin-top: 10px;
201
- }
202
- .yahee-operation-log .bubble-tail {
203
- position: absolute;
204
- right: 85px;
205
- top: 5px;
206
- width: 0;
207
- height: 0;
208
- border-width: 6px;
209
- border-style: solid;
210
- border-color: transparent;
211
- border-left-width: 9px;
212
- border-left-color: currentColor;
213
- color: #eee;
214
- }
215
- .yahee-operation-log .leftbubble-tail {
216
- position: absolute;
217
- left: 84px;
218
- top: 5px;
219
- width: 0;
220
- height: 0;
221
- border-width: 7px;
222
- border-style: solid;
223
- border-color: transparent;
224
- margin-bottom: -39px;
225
- border-right-width: 10px;
226
- border-right-color: currentColor;
227
- color: #eee;
228
- }
229
- .yahee-operation-log .r-text {
230
- float: right;
231
- margin-right: 100px;
232
- max-width: 420px;
233
- min-height: 52px;
234
- }
235
- .yahee-operation-log .r-text-main {
236
- background: #FAFAFA;
237
- border: 1px solid #ccc;
238
- border-radius: 2px;
239
- padding: 4px;
240
- word-break: break-all;
241
- text-align: right;
242
165
  }
243
- .yahee-operation-log .l-text {
244
- margin-left: 100px;
245
- max-width: 420px;
246
- min-height: 52px;
247
- }
248
- .yahee-operation-log .l-text-main {
249
- background: #F7FFF7;
250
- border: 1px solid #ccc;
251
- border-radius: 2px;
252
- padding: 4px;
253
- display: inline-block;
254
- min-width: 123px;
255
- word-break: break-all;
166
+ .yahee-country-platform-shop-condition .popover-table th {
167
+ text-align: left;
168
+ cursor: pointer;
169
+ min-height: 22px;
170
+ border: 1px solid transparent;
256
171
  }
257
- .yahee-operation-log .r-name {
258
- border: 1px solid #ccc;
259
- position: absolute;
260
- right: 10px;
261
- width: 65px;
262
- line-height: 17px;
263
- padding: 3px 0 5px;
264
- text-align: center;
265
- border: 1px solid #ccc;
266
- border-radius: 2px;
267
- background: #f1f1f1;
268
- word-break: break-all;
172
+ .yahee-country-platform-shop-condition .popover-table td span {
173
+ display: block;
174
+ margin-bottom: 4px;
175
+ border: 1px solid transparent;
269
176
  }
270
- .yahee-operation-log .l-name {
271
- border: 1px solid #ccc;
272
- position: absolute;
273
- left: 10px;
274
- width: 65px;
275
- line-height: 17px;
276
- padding: 3px 0 5px;
277
- text-align: center;
278
- border: 1px solid #ccc;
279
- border-radius: 2px;
280
- background: #E8FFE8;
281
- float: right;
282
- word-break: break-all;
177
+ .yahee-country-platform-shop-condition .hover-trigger {
178
+ cursor: pointer;
179
+ color: blue;
283
180
  }
284
- .yahee-operation-log .text-m {
285
- word-break: break-all;
286
- white-space: pre-line;
181
+ .yahee-country-platform-shop-condition .custom-total-button {
182
+ margin-right: 0;
183
+ padding: 1px 4px;
184
+ height: 22px;
287
185
  }
288
- .yahee-operation-log .loading {
289
- display: flex;
290
- justify-content: center;
291
- align-items: center;
292
- margin-bottom: 36px;
186
+ .yahee-country-platform-shop-condition .custom-button {
187
+ width: 100%;
188
+ min-height: 22px;
189
+ min-width: 50px;
190
+ height: 22px;
191
+ margin: 3px;
293
192
  }
294
- .yahee-operation-log .no-more {
295
- display: flex;
296
- justify-content: center;
297
- align-items: center;
298
- margin-bottom: 36px;
193
+ .yahee-country-platform-shop-condition .custom-button.inner-el-button {
194
+ margin-top: 5px;
299
195
  }
300
- .yahee-operation-log .el-form--inline .el-form-item {
301
- margin-right: 10px !important;
302
- margin-bottom: 6px !important;
196
+ .yahee-country-platform-shop-condition ::v-deep(.el-checkbox-button__inner) {
197
+ width: 100%;
303
198
  }
304
199
 
305
200
  :root {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.10",
4
+ "version": "0.0.13",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -4,3 +4,7 @@ export * from './copy';
4
4
  export * from './image-upload';
5
5
  export * from './annex-upload';
6
6
  export * from './operation-log';
7
+ export * from './country-platform-shop-condition';
8
+ export * from './left-condition';
9
+ export * from './left-condition-enum';
10
+ export * from './drop-down-condition';
@@ -0,0 +1,17 @@
1
+ export interface data {
2
+ xGroup: Array<{
3
+ xGroupValue: string;
4
+ xGroupText: string;
5
+ }>;
6
+ yGroup: Array<{
7
+ yGroupValue: string;
8
+ yGroupText: string;
9
+ }>;
10
+ items: Array<{
11
+ title: string;
12
+ xGroupValue: string;
13
+ yGroupValue: string;
14
+ text: string;
15
+ value: number | string;
16
+ }>;
17
+ }
@@ -0,0 +1,14 @@
1
+ import { data } from './country-platform-shop-condition';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<{
4
+ xyFilters?: data;
5
+ filterKey: string;
6
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
+ filterChange: (...args: any[]) => void;
8
+ }, string, PublicProps, Readonly<{
9
+ xyFilters?: data;
10
+ filterKey: string;
11
+ }> & Readonly<{
12
+ onFilterChange?: (...args: any[]) => any;
13
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { SFCWithInstall } from '../utils/typescript';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { data } from './country-platform-shop-condition';
4
+ export declare const YaheeCountryPlatformShopCondition: SFCWithInstall<DefineComponent<{
5
+ xyFilters?: data;
6
+ filterKey: string;
7
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ filterChange: (...args: any[]) => void;
9
+ }, string, PublicProps, Readonly<{
10
+ xyFilters?: data;
11
+ filterKey: string;
12
+ }> & Readonly<{
13
+ onFilterChange?: (...args: any[]) => any;
14
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>;
15
+ export default YaheeCountryPlatformShopCondition;
16
+ export * from './country-platform-shop-condition.vue';
@@ -0,0 +1,6 @@
1
+ export interface DropdownEntity {
2
+ text: string;
3
+ value: string | number;
4
+ subs?: [any];
5
+ isCheckbox?: boolean;
6
+ }
@@ -0,0 +1,40 @@
1
+ import { DropdownEntity } from './drop-down-condition';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<{
4
+ filterList?: Array<DropdownEntity>;
5
+ totalCount?: number;
6
+ level1Count?: Array<{
7
+ value: string;
8
+ count: number;
9
+ }>;
10
+ level2Count?: Array<{
11
+ value: string;
12
+ count: number;
13
+ }>;
14
+ filterKey: string;
15
+ enumEntity: string;
16
+ baseUrl: string;
17
+ noNeedRefreshNumFilterName?: string;
18
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ filterChange: (...args: any[]) => void;
20
+ setNoNeedRefreshNumFilterName: (...args: any[]) => void;
21
+ }, string, PublicProps, Readonly<{
22
+ filterList?: Array<DropdownEntity>;
23
+ totalCount?: number;
24
+ level1Count?: Array<{
25
+ value: string;
26
+ count: number;
27
+ }>;
28
+ level2Count?: Array<{
29
+ value: string;
30
+ count: number;
31
+ }>;
32
+ filterKey: string;
33
+ enumEntity: string;
34
+ baseUrl: string;
35
+ noNeedRefreshNumFilterName?: string;
36
+ }> & Readonly<{
37
+ onFilterChange?: (...args: any[]) => any;
38
+ onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
39
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
40
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { SFCWithInstall } from '../utils/typescript';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { DropdownEntity } from './drop-down-condition';
4
+ export declare const YaheeDropDownCondition: SFCWithInstall<DefineComponent<{
5
+ filterList?: Array< DropdownEntity>;
6
+ totalCount?: number;
7
+ level1Count?: Array<{
8
+ value: string;
9
+ count: number;
10
+ }>;
11
+ level2Count?: Array<{
12
+ value: string;
13
+ count: number;
14
+ }>;
15
+ filterKey: string;
16
+ enumEntity: string;
17
+ baseUrl: string;
18
+ noNeedRefreshNumFilterName?: string;
19
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ filterChange: (...args: any[]) => void;
21
+ setNoNeedRefreshNumFilterName: (...args: any[]) => void;
22
+ }, string, PublicProps, Readonly<{
23
+ filterList?: Array< DropdownEntity>;
24
+ totalCount?: number;
25
+ level1Count?: Array<{
26
+ value: string;
27
+ count: number;
28
+ }>;
29
+ level2Count?: Array<{
30
+ value: string;
31
+ count: number;
32
+ }>;
33
+ filterKey: string;
34
+ enumEntity: string;
35
+ baseUrl: string;
36
+ noNeedRefreshNumFilterName?: string;
37
+ }> & Readonly<{
38
+ onFilterChange?: (...args: any[]) => any;
39
+ onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
40
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>;
41
+ export default YaheeDropDownCondition;
42
+ export * from './drop-down-condition.vue';