yahee-components 0.0.10 → 0.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 (46) hide show
  1. package/es/api/server.js +26 -10
  2. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
  3. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
  4. package/es/country-platform-shop-condition/index.js +7 -0
  5. package/es/country-platform-shop-condition/style/index.css +48 -0
  6. package/es/drop-down-condition/drop-down-condition.vue.js +215 -0
  7. package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
  8. package/es/drop-down-condition/index.js +7 -0
  9. package/es/drop-down-condition/style/index.css +45 -0
  10. package/es/index.js +23 -15
  11. package/es/installs.js +18 -10
  12. package/es/left-condition/index.js +7 -0
  13. package/es/left-condition/left-condition-sub.vue.js +95 -0
  14. package/es/left-condition/left-condition-sub.vue2.js +4 -0
  15. package/es/left-condition/left-condition.vue.js +214 -0
  16. package/es/left-condition/left-condition.vue2.js +4 -0
  17. package/es/left-condition/style/index.css +11 -0
  18. package/es/left-condition-enum/index.js +7 -0
  19. package/es/left-condition-enum/left-condition-enum.vue.js +76 -0
  20. package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
  21. package/es/left-condition-enum/style/index.css +0 -0
  22. package/es/static/CommonObject.js +4 -0
  23. package/es/style.css +81 -196
  24. package/es/utils/style.js +28 -0
  25. package/es/utils/translate.js +39 -22
  26. package/lib/country-platform-shop-condition/style/index.css +48 -0
  27. package/lib/drop-down-condition/style/index.css +45 -0
  28. package/lib/left-condition/style/index.css +11 -0
  29. package/lib/left-condition-enum/style/index.css +0 -0
  30. package/lib/style.css +81 -196
  31. package/package.json +1 -1
  32. package/types/src/components.d.ts +4 -0
  33. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  34. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
  35. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  36. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  37. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +38 -0
  38. package/types/src/drop-down-condition/index.d.ts +40 -0
  39. package/types/src/installs.d.ts +259 -2
  40. package/types/src/left-condition/index.d.ts +69 -0
  41. package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
  42. package/types/src/left-condition/left-condition.d.ts +5 -0
  43. package/types/src/left-condition/left-condition.vue.d.ts +68 -0
  44. package/types/src/left-condition-enum/index.d.ts +153 -0
  45. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  46. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +151 -0
package/lib/style.css CHANGED
@@ -81,225 +81,110 @@
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;
109
- }
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;
116
- }
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;
84
+ :deep(.custom-button + .custom-button) {
85
+ margin-left: 5px;
86
+ margin-bottom: 5px;
87
+ position: relative;
88
+ top: 2px;
135
89
  }
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;
90
+
91
+ :deep(.custom-button) {
92
+ padding: 1px 4px;
93
+ height: 22px;
143
94
  }
144
- .yahee-operation-log .bg-link {
145
- color: #3366cc;
146
- cursor: pointer;
95
+
96
+ .yahee-drop-down-condition {
97
+ /* 滚动槽 */
98
+ /* 滚动条滑块 */
147
99
  }
148
- .yahee-operation-log .imgBox {
100
+ .yahee-drop-down-condition .checkbox-group {
149
101
  display: flex;
150
- flex-wrap: wrap;
102
+ flex-direction: column;
151
103
  }
152
- .yahee-operation-log .timeBox {
153
- margin: 0 5px;
104
+ .yahee-drop-down-condition .checkbox {
105
+ margin-top: 5px;
154
106
  }
155
- .yahee-operation-log .input-with-select {
156
- width: 150px;
107
+ .yahee-drop-down-condition .custom-total-button {
108
+ margin-right: 0;
109
+ padding: 1px 4px;
110
+ height: 22px;
157
111
  }
158
- .yahee-operation-log .lt-created-time {
159
- display: block;
112
+ .yahee-drop-down-condition .custom-button {
113
+ margin-right: 0;
114
+ padding: 1px 4px;
115
+ min-height: 22px;
116
+ height: 22px;
117
+ margin-left: 5px;
160
118
  }
161
- .yahee-operation-log .rt-created-time {
162
- display: inline-block;
119
+ .yahee-drop-down-condition .custom-button.inner-el-button {
120
+ margin-top: 5px;
163
121
  }
164
- .yahee-operation-log .content-div {
165
- width: 100%;
166
- height: 121px;
167
- border: 1px solid #ccc;
168
- padding: 10px;
122
+ .yahee-drop-down-condition .scrollable-container {
123
+ max-height: 700px;
124
+ overflow-y: auto;
125
+ display: flex;
126
+ flex-direction: column;
169
127
  }
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;
128
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar {
129
+ width: 5px;
177
130
  }
178
- .yahee-operation-log .remarkContent {
179
- position: relative;
180
- margin-bottom: 20px;
181
- border: 1px solid #eee;
131
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-track {
132
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
133
+ border-radius: 10px;
182
134
  }
183
- .yahee-operation-log .remarkContent .buttonQuill {
184
- position: absolute;
185
- bottom: -35px;
186
- right: 10px;
187
- display: flex;
135
+ .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-thumb {
136
+ border-radius: 10px;
137
+ background: rgba(0, 0, 0, 0.1);
138
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
188
139
  }
189
- .yahee-operation-log .remarkContent .buttonQuill button {
190
- margin-right: 10px;
140
+
141
+ .yahee-country-platform-shop-condition .popover-table {
142
+ width: auto;
143
+ border: 1px solid transparent;
144
+ border-collapse: separate;
191
145
  }
192
- .yahee-operation-log .content-main {
193
- width: 100%;
146
+ .yahee-country-platform-shop-condition .popover-table tr,
147
+ .yahee-country-platform-shop-condition .popover-table td {
148
+ text-align: left;
149
+ cursor: pointer;
150
+ min-height: 22px;
194
151
  }
195
- .yahee-operation-log .span-backG {
196
- position: relative;
197
- display: flex;
198
- min-height: 70px;
152
+ .yahee-country-platform-shop-condition .checkbox-group {
153
+ margin: 5px;
199
154
  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
155
  }
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;
156
+ .yahee-country-platform-shop-condition .popover-table th {
157
+ text-align: left;
158
+ cursor: pointer;
159
+ min-height: 22px;
160
+ border: 1px solid transparent;
256
161
  }
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;
162
+ .yahee-country-platform-shop-condition .popover-table td span {
163
+ display: block;
164
+ margin-bottom: 4px;
165
+ border: 1px solid transparent;
269
166
  }
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;
167
+ .yahee-country-platform-shop-condition .hover-trigger {
168
+ cursor: pointer;
169
+ color: blue;
283
170
  }
284
- .yahee-operation-log .text-m {
285
- word-break: break-all;
286
- white-space: pre-line;
171
+ .yahee-country-platform-shop-condition .custom-total-button {
172
+ margin-right: 0;
173
+ padding: 1px 4px;
174
+ height: 22px;
287
175
  }
288
- .yahee-operation-log .loading {
289
- display: flex;
290
- justify-content: center;
291
- align-items: center;
292
- margin-bottom: 36px;
176
+ .yahee-country-platform-shop-condition .custom-button {
177
+ width: 100%;
178
+ min-height: 22px;
179
+ min-width: 50px;
180
+ height: 22px;
181
+ margin: 3px;
293
182
  }
294
- .yahee-operation-log .no-more {
295
- display: flex;
296
- justify-content: center;
297
- align-items: center;
298
- margin-bottom: 36px;
183
+ .yahee-country-platform-shop-condition .custom-button.inner-el-button {
184
+ margin-top: 5px;
299
185
  }
300
- .yahee-operation-log .el-form--inline .el-form-item {
301
- margin-right: 10px !important;
302
- margin-bottom: 6px !important;
186
+ .yahee-country-platform-shop-condition ::v-deep(.el-checkbox-button__inner) {
187
+ width: 100%;
303
188
  }
304
189
 
305
190
  :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.12",
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,38 @@
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
+ noNeedRefreshNumFilterName?: string;
17
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
+ filterChange: (...args: any[]) => void;
19
+ setNoNeedRefreshNumFilterName: (...args: any[]) => void;
20
+ }, string, PublicProps, Readonly<{
21
+ filterList?: Array<DropdownEntity>;
22
+ totalCount?: number;
23
+ level1Count?: Array<{
24
+ value: string;
25
+ count: number;
26
+ }>;
27
+ level2Count?: Array<{
28
+ value: string;
29
+ count: number;
30
+ }>;
31
+ filterKey: string;
32
+ enumEntity: string;
33
+ noNeedRefreshNumFilterName?: string;
34
+ }> & Readonly<{
35
+ onFilterChange?: (...args: any[]) => any;
36
+ onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
37
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
38
+ export default _default;
@@ -0,0 +1,40 @@
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
+ 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
+ noNeedRefreshNumFilterName?: string;
35
+ }> & Readonly<{
36
+ onFilterChange?: (...args: any[]) => any;
37
+ onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
38
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>> & Record<string, any>;
39
+ export default YaheeDropDownCondition;
40
+ export * from './drop-down-condition.vue';