@blueking/ediatable 0.0.1-beta.7 → 0.0.1-beta.9

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/vue3/vue3.css CHANGED
@@ -35,20 +35,73 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
35
35
  .icon-plus-fill:before {
36
36
  content: "\e102";
37
37
  }
38
+ .bk-ediatable-head-column .is-required::after {
39
+ position: absolute;
40
+ top: 0;
41
+ margin-left: 4px;
42
+ font-size: 12px;
43
+ line-height: 40px;
44
+ color: #ea3636;
45
+ content: '*';
46
+ }
47
+ .bk-ediatable-head-column.is-right-fixed {
48
+ position: sticky;
49
+ right: 1px;
50
+ }
51
+ .bk-ediatable-head-column.is-right-fixed::before {
52
+ position: absolute;
53
+ top: 0;
54
+ left: -10px;
55
+ width: 10px;
56
+ height: 100%;
57
+ background: linear-gradient(to left, rgba(0, 0, 0, 0.12), transparent);
58
+ content: '';
59
+ }
60
+ .bk-ediatable-head-column.is-left-fixed {
61
+ position: sticky;
62
+ left: 1px;
63
+ }
64
+ .bk-ediatable-head-column.is-left-fixed::before {
65
+ position: absolute;
66
+ top: 0;
67
+ right: -10px;
68
+ width: 10px;
69
+ height: 100%;
70
+ background: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent);
71
+ content: '';
72
+ }
73
+ .bk-ediatable-head-column .title-memo {
74
+ border-bottom: 1px dashed #979ba5;
75
+ }
38
76
  .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.bk-ediatable {
39
77
  position: relative;
40
78
  width: 100%;
41
- overflow-x: auto;
79
+ margin-bottom: -8px;
80
+ overflow-x: scroll;
42
81
  }
43
82
  .bk-ediatable::-webkit-scrollbar {
44
- width: 4px;
45
- height: 4px;
83
+ width: 8px;
84
+ height: 8px;
85
+ background: transparent;
46
86
  }
47
87
  .bk-ediatable::-webkit-scrollbar-thumb {
48
- background: #ddd;
88
+ background: transparent;
89
+ }
90
+ .bk-ediatable:hover::-webkit-scrollbar {
91
+ width: 8px;
92
+ height: 8px;
93
+ }
94
+ .bk-ediatable:hover::-webkit-scrollbar-thumb {
95
+ background: #dcdee5;
49
96
  border-radius: 20px;
50
97
  box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
51
98
  }
99
+ .bk-ediatable:hover::-webkit-scrollbar-thumb:hover {
100
+ background: #979ba5;
101
+ }
102
+ .bk-ediatable.scrollbar-exists:hover::-webkit-scrollbar {
103
+ background: #f0f1f5;
104
+ }
52
105
  .bk-ediatable table {
53
106
  width: 100%;
54
107
  font-size: 12px;
@@ -72,6 +125,19 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
72
125
  line-height: 0;
73
126
  color: #313238;
74
127
  background: #f0f1f5;
128
+ position: relative;
129
+ }
130
+ .bk-ediatable table th.poiner-right::after {
131
+ content: '';
132
+ position: absolute;
133
+ top: 0;
134
+ bottom: 0;
135
+ right: -3px;
136
+ width: 6px;
137
+ background-color: #3785ff;
138
+ transform: translateX(1px);
139
+ pointer-events: none;
140
+ z-index: 1;
75
141
  }
76
142
  .bk-ediatable table th .th-cell {
77
143
  display: inline-block;
@@ -87,8 +153,38 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
87
153
  top: 0;
88
154
  bottom: 0;
89
155
  display: none;
90
- width: 1px;
91
- background: #dfe0e5;
156
+ width: 2px;
157
+ background: #3c96ff;
158
+ }
159
+ .bk-ediatable .bk-ediatable-right-fixed-column {
160
+ position: sticky;
161
+ right: 1px;
162
+ z-index: 1;
163
+ background-color: #fff;
164
+ }
165
+ .bk-ediatable .bk-ediatable-right-fixed-column::before {
166
+ position: absolute;
167
+ top: 0;
168
+ left: -10px;
169
+ width: 10px;
170
+ height: 100%;
171
+ background: linear-gradient(to left, rgba(0, 0, 0, 0.12), transparent);
172
+ content: '';
173
+ }
174
+ .bk-ediatable .bk-ediatable-left-fixed-column {
175
+ position: sticky;
176
+ left: 1px;
177
+ z-index: 1;
178
+ background-color: #fff;
179
+ }
180
+ .bk-ediatable .bk-ediatable-left-fixed-column::before {
181
+ position: absolute;
182
+ top: 0;
183
+ right: -10px;
184
+ width: 10px;
185
+ height: 100%;
186
+ background: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent);
187
+ content: '';
92
188
  }
93
189
  .db-svg-icon {
94
190
  width: 1em;
@@ -218,77 +314,6 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
218
314
  .bk-ediatable-input .blur-dispaly-main {
219
315
  padding: 0 16px;
220
316
  }
221
- .bk-ediatable-right-fixed-column {
222
- position: sticky;
223
- right: 1px;
224
- z-index: 1;
225
- background-color: #fff;
226
- }
227
- .bk-ediatable-right-fixed-column::before {
228
- position: absolute;
229
- top: 0;
230
- left: -10px;
231
- width: 10px;
232
- height: 100%;
233
- background: linear-gradient(to left, rgba(0, 0, 0, 0.12), transparent);
234
- content: '';
235
- }
236
- .bk-ediatable-left-fixed-column {
237
- position: sticky;
238
- left: 1px;
239
- z-index: 1;
240
- background-color: #fff;
241
- }
242
- .bk-ediatable-left-fixed-column::before {
243
- position: absolute;
244
- top: 0;
245
- right: -10px;
246
- width: 10px;
247
- height: 100%;
248
- background: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent);
249
- content: '';
250
- }
251
- .bk-ediatable-head-column .title-memo {
252
- border-bottom: 1px dashed #979ba5;
253
- }
254
- .bk-ediatable-head-column.is-required {
255
- position: relative;
256
- }
257
- .bk-ediatable-head-column.is-required::after {
258
- position: absolute;
259
- top: 0;
260
- margin-left: 4px;
261
- font-size: 12px;
262
- line-height: 40px;
263
- color: #ea3636;
264
- content: '*';
265
- }
266
- .bk-ediatable-head-column.is-right-fixed {
267
- position: sticky;
268
- right: 1px;
269
- }
270
- .bk-ediatable-head-column.is-right-fixed::before {
271
- position: absolute;
272
- top: 0;
273
- left: -10px;
274
- width: 10px;
275
- height: 100%;
276
- background: linear-gradient(to left, rgba(0, 0, 0, 0.12), transparent);
277
- content: '';
278
- }
279
- .bk-ediatable-head-column.is-left-fixed {
280
- position: sticky;
281
- left: 1px;
282
- }
283
- .bk-ediatable-head-column.is-left-fixed::before {
284
- position: absolute;
285
- top: 0;
286
- right: -10px;
287
- width: 10px;
288
- height: 100%;
289
- background: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent);
290
- content: '';
291
- }
292
317
  .bk-ediatable-operation {
293
318
  display: flex;
294
319
  height: 42px;
@@ -362,7 +387,6 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
362
387
  top: 0;
363
388
  right: 0;
364
389
  bottom: 0;
365
- z-index: 99;
366
390
  display: flex;
367
391
  padding-right: 6px;
368
392
  font-size: 14px;
@@ -1,20 +0,0 @@
1
- import './lib/bk-icon/iconcool.js';
2
- import './lib/bk-icon/style.css';
3
- import 'bkui-vue/dist/style.css';
4
- import 'tippy.js/dist/tippy.css';
5
- import 'tippy.js/themes/light.css';
6
- import type { InjectionKey, Ref } from 'vue';
7
- export declare const renderTablekey: InjectionKey<{
8
- isOverflow: Ref<boolean>;
9
- rowWidth: Ref<number>;
10
- }>;
11
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
12
- default?(_: {}): any;
13
- data?(_: {}): any;
14
- }>;
15
- export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };
@@ -1,32 +1,32 @@
1
1
  interface Props {
2
+ removeable?: boolean;
2
3
  showCopy?: boolean;
3
4
  showAdd?: boolean;
4
5
  showRemove?: boolean;
5
- removeable?: boolean;
6
6
  }
7
7
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
8
+ removeable: boolean;
8
9
  showCopy: boolean;
9
10
  showAdd: boolean;
10
11
  showRemove: boolean;
11
- removeable: boolean;
12
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- copy: () => void;
14
13
  add: () => void;
14
+ copy: () => void;
15
15
  remove: () => void;
16
16
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
17
+ removeable: boolean;
17
18
  showCopy: boolean;
18
19
  showAdd: boolean;
19
20
  showRemove: boolean;
20
- removeable: boolean;
21
21
  }>>> & {
22
22
  onCopy?: (() => any) | undefined;
23
23
  onAdd?: (() => any) | undefined;
24
24
  onRemove?: (() => any) | undefined;
25
25
  }, {
26
+ removeable: boolean;
26
27
  showCopy: boolean;
27
28
  showAdd: boolean;
28
29
  showRemove: boolean;
29
- removeable: boolean;
30
30
  }, {}>;
31
31
  export default _default;
32
32
  type __VLS_WithDefaults<P, D> = {