bkui-vue 0.0.2-beta.126 → 0.0.2-beta.128
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/dist/index.cjs.js +15 -15
- package/dist/index.esm.js +1023 -1019
- package/dist/index.umd.js +23 -23
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/pop-confirm/index.d.ts +60 -3
- package/lib/pop-confirm/index.js +59 -44
- package/lib/pop-confirm/pop-confirm.d.ts +25 -1
- package/lib/pop-confirm/props.d.ts +5 -0
- package/lib/table/index.js +16 -16
- package/lib/table/table.css +5 -1
- package/lib/table/table.less +6 -1
- package/lib/table/table.variable.css +5 -1
- package/package.json +1 -1
@@ -10,6 +10,7 @@ declare const BKPopConfirm: {
|
|
10
10
|
theme?: string;
|
11
11
|
trigger?: "click" | "hover";
|
12
12
|
icon?: string;
|
13
|
+
loading?: boolean;
|
13
14
|
confirmText?: string;
|
14
15
|
cancelText?: string;
|
15
16
|
class?: unknown;
|
@@ -112,10 +113,28 @@ declare const BKPopConfirm: {
|
|
112
113
|
width: import("vue-types").VueTypeDef<string | number> & {
|
113
114
|
default: string | number;
|
114
115
|
};
|
116
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
117
|
+
default: boolean;
|
118
|
+
} & {
|
119
|
+
default: boolean;
|
120
|
+
};
|
115
121
|
}>> & {
|
116
122
|
onConfirm?: (...args: any[]) => any;
|
117
123
|
onCancel?: (...args: any[]) => any;
|
118
|
-
},
|
124
|
+
}, {
|
125
|
+
popoverRef: any;
|
126
|
+
visible: import("vue").Ref<boolean>;
|
127
|
+
t: import("vue").ComputedRef<{
|
128
|
+
ok: string;
|
129
|
+
cancel: string;
|
130
|
+
}>;
|
131
|
+
icon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
132
|
+
[key: string]: any;
|
133
|
+
}>[];
|
134
|
+
resolveClassName: (cls: string) => string;
|
135
|
+
ensure: (e: Event) => void;
|
136
|
+
cancel: (e: Event) => void;
|
137
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], string, {
|
119
138
|
title: string;
|
120
139
|
width: string | number;
|
121
140
|
content: string;
|
@@ -123,6 +142,7 @@ declare const BKPopConfirm: {
|
|
123
142
|
theme: string;
|
124
143
|
trigger: "click" | "hover";
|
125
144
|
icon: string;
|
145
|
+
loading: boolean;
|
126
146
|
confirmText: string;
|
127
147
|
cancelText: string;
|
128
148
|
}, {}, string, {}> & {
|
@@ -185,10 +205,28 @@ declare const BKPopConfirm: {
|
|
185
205
|
width: import("vue-types").VueTypeDef<string | number> & {
|
186
206
|
default: string | number;
|
187
207
|
};
|
208
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
209
|
+
default: boolean;
|
210
|
+
} & {
|
211
|
+
default: boolean;
|
212
|
+
};
|
188
213
|
}>> & {
|
189
214
|
onConfirm?: (...args: any[]) => any;
|
190
215
|
onCancel?: (...args: any[]) => any;
|
191
|
-
} & import("vue").ShallowUnwrapRef<
|
216
|
+
} & import("vue").ShallowUnwrapRef<{
|
217
|
+
popoverRef: any;
|
218
|
+
visible: import("vue").Ref<boolean>;
|
219
|
+
t: import("vue").ComputedRef<{
|
220
|
+
ok: string;
|
221
|
+
cancel: string;
|
222
|
+
}>;
|
223
|
+
icon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
224
|
+
[key: string]: any;
|
225
|
+
}>[];
|
226
|
+
resolveClassName: (cls: string) => string;
|
227
|
+
ensure: (e: Event) => void;
|
228
|
+
cancel: (e: Event) => void;
|
229
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
192
230
|
__isFragment?: never;
|
193
231
|
__isTeleport?: never;
|
194
232
|
__isSuspense?: never;
|
@@ -232,10 +270,28 @@ declare const BKPopConfirm: {
|
|
232
270
|
width: import("vue-types").VueTypeDef<string | number> & {
|
233
271
|
default: string | number;
|
234
272
|
};
|
273
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
274
|
+
default: boolean;
|
275
|
+
} & {
|
276
|
+
default: boolean;
|
277
|
+
};
|
235
278
|
}>> & {
|
236
279
|
onConfirm?: (...args: any[]) => any;
|
237
280
|
onCancel?: (...args: any[]) => any;
|
238
|
-
},
|
281
|
+
}, {
|
282
|
+
popoverRef: any;
|
283
|
+
visible: import("vue").Ref<boolean>;
|
284
|
+
t: import("vue").ComputedRef<{
|
285
|
+
ok: string;
|
286
|
+
cancel: string;
|
287
|
+
}>;
|
288
|
+
icon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
289
|
+
[key: string]: any;
|
290
|
+
}>[];
|
291
|
+
resolveClassName: (cls: string) => string;
|
292
|
+
ensure: (e: Event) => void;
|
293
|
+
cancel: (e: Event) => void;
|
294
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", {
|
239
295
|
title: string;
|
240
296
|
width: string | number;
|
241
297
|
content: string;
|
@@ -243,6 +299,7 @@ declare const BKPopConfirm: {
|
|
243
299
|
theme: string;
|
244
300
|
trigger: "click" | "hover";
|
245
301
|
icon: string;
|
302
|
+
loading: boolean;
|
246
303
|
confirmText: string;
|
247
304
|
cancelText: string;
|
248
305
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
package/lib/pop-confirm/index.js
CHANGED
@@ -126,7 +126,8 @@ var PopConfirmProps = {
|
|
126
126
|
* 自定义icon:根据确认框中提示文字的语境来选择 icon的样式,当确认操作存在风险时,可选择带警示的icon来引起用户的注意。
|
127
127
|
*/
|
128
128
|
icon: external_shared_namespaceObject.PropTypes.string.def(''),
|
129
|
-
width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto')
|
129
|
+
width: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number]).def('auto'),
|
130
|
+
loading: external_shared_namespaceObject.PropTypes.bool.def(false)
|
130
131
|
};
|
131
132
|
/* harmony default export */ const props = (PopConfirmProps);
|
132
133
|
;// CONCATENATED MODULE: ../../packages/pop-confirm/src/pop-confirm.tsx
|
@@ -193,50 +194,64 @@ var PopConfirmProps = {
|
|
193
194
|
var icon = renderIcon();
|
194
195
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
195
196
|
resolveClassName = _usePrefix.resolveClassName;
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
"extCls": "".concat(resolveClassName('pop-confirm-box'))
|
206
|
-
}, {
|
207
|
-
"default": function _default() {
|
208
|
-
return slots["default"]();
|
209
|
-
},
|
210
|
-
content: function content() {
|
211
|
-
return (0,external_vue_namespaceObject.createVNode)("div", {
|
212
|
-
"class": "".concat(resolveClassName('pop-confirm'))
|
213
|
-
}, [typeof slots.content === 'function' ? slots.content() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [props.title ? (0,external_vue_namespaceObject.createVNode)("div", {
|
214
|
-
"class": "".concat(resolveClassName('pop-confirm-title'))
|
215
|
-
}, [icon ? (0,external_vue_namespaceObject.createVNode)("span", {
|
216
|
-
"class": "".concat(resolveClassName('pop-confirm-icon'))
|
217
|
-
}, [icon]) : '', (0,external_vue_namespaceObject.createVNode)("span", null, [props.title])]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
218
|
-
"class": "".concat(resolveClassName('pop-confirm-content'))
|
219
|
-
}, [!props.title ? icon : '', props.content])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
220
|
-
"class": "".concat(resolveClassName('pop-confirm-footer'))
|
221
|
-
}, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
222
|
-
"onClick": ensure,
|
223
|
-
"size": "small",
|
224
|
-
"theme": "primary"
|
225
|
-
}, {
|
226
|
-
"default": function _default() {
|
227
|
-
return [props.confirmText || t.value.ok];
|
228
|
-
}
|
229
|
-
}), (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
230
|
-
"onClick": cancel,
|
231
|
-
"size": "small"
|
232
|
-
}, {
|
233
|
-
"default": function _default() {
|
234
|
-
return [props.cancelText || t.value.cancel];
|
235
|
-
}
|
236
|
-
})])]);
|
237
|
-
}
|
238
|
-
});
|
197
|
+
var popoverRef = (0,external_vue_namespaceObject.ref)(null);
|
198
|
+
return {
|
199
|
+
popoverRef: popoverRef,
|
200
|
+
visible: visible,
|
201
|
+
t: t,
|
202
|
+
icon: icon,
|
203
|
+
resolveClassName: resolveClassName,
|
204
|
+
ensure: ensure,
|
205
|
+
cancel: cancel
|
239
206
|
};
|
207
|
+
},
|
208
|
+
render: function render() {
|
209
|
+
var _this = this;
|
210
|
+
return (0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], {
|
211
|
+
"ref": "popoverRef",
|
212
|
+
"isShow": this.visible,
|
213
|
+
"trigger": this.trigger,
|
214
|
+
"theme": this.theme,
|
215
|
+
"width": this.width,
|
216
|
+
"onAfterShow": function onAfterShow() {
|
217
|
+
return _this.visible = true;
|
218
|
+
},
|
219
|
+
"extCls": "".concat(this.resolveClassName('pop-confirm-box'))
|
220
|
+
}, {
|
221
|
+
"default": function _default() {
|
222
|
+
return _this.$slots["default"]();
|
223
|
+
},
|
224
|
+
content: function content() {
|
225
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
226
|
+
"class": "".concat(_this.resolveClassName('pop-confirm'))
|
227
|
+
}, [typeof _this.$slots.content === 'function' ? _this.$slots.content() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.title ? (0,external_vue_namespaceObject.createVNode)("div", {
|
228
|
+
"class": "".concat(_this.resolveClassName('pop-confirm-title'))
|
229
|
+
}, [_this.icon ? (0,external_vue_namespaceObject.createVNode)("span", {
|
230
|
+
"class": "".concat(_this.resolveClassName('pop-confirm-icon'))
|
231
|
+
}, [_this.icon]) : '', (0,external_vue_namespaceObject.createVNode)("span", null, [_this.title])]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
232
|
+
"class": "".concat(_this.resolveClassName('pop-confirm-content'))
|
233
|
+
}, [!_this.title ? _this.icon : '', _this.content])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
234
|
+
"class": "".concat(_this.resolveClassName('pop-confirm-footer'))
|
235
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
236
|
+
"onClick": _this.ensure,
|
237
|
+
"size": "small",
|
238
|
+
"theme": "primary",
|
239
|
+
"loading": _this.loading
|
240
|
+
}, {
|
241
|
+
"default": function _default() {
|
242
|
+
return [_this.confirmText || _this.t.ok];
|
243
|
+
}
|
244
|
+
}), (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
|
245
|
+
"onClick": _this.cancel,
|
246
|
+
"size": "small",
|
247
|
+
"disabled": _this.loading
|
248
|
+
}, {
|
249
|
+
"default": function _default() {
|
250
|
+
return [_this.cancelText || _this.t.cancel];
|
251
|
+
}
|
252
|
+
})])]);
|
253
|
+
}
|
254
|
+
});
|
240
255
|
}
|
241
256
|
}));
|
242
257
|
;// CONCATENATED MODULE: ../../packages/pop-confirm/src/index.ts
|
@@ -38,7 +38,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
38
|
width: import("vue-types").VueTypeDef<string | number> & {
|
39
39
|
default: string | number;
|
40
40
|
};
|
41
|
-
|
41
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
|
+
default: boolean;
|
43
|
+
} & {
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
}, {
|
47
|
+
popoverRef: any;
|
48
|
+
visible: import("vue").Ref<boolean>;
|
49
|
+
t: import("vue").ComputedRef<{
|
50
|
+
ok: string;
|
51
|
+
cancel: string;
|
52
|
+
}>;
|
53
|
+
icon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
54
|
+
[key: string]: any;
|
55
|
+
}>[];
|
56
|
+
resolveClassName: (cls: string) => string;
|
57
|
+
ensure: (e: Event) => void;
|
58
|
+
cancel: (e: Event) => void;
|
59
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
42
60
|
trigger: import("vue-types").VueTypeDef<"click" | "hover"> & {
|
43
61
|
default: "click" | "hover";
|
44
62
|
};
|
@@ -78,6 +96,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
78
96
|
width: import("vue-types").VueTypeDef<string | number> & {
|
79
97
|
default: string | number;
|
80
98
|
};
|
99
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
100
|
+
default: boolean;
|
101
|
+
} & {
|
102
|
+
default: boolean;
|
103
|
+
};
|
81
104
|
}>> & {
|
82
105
|
onConfirm?: (...args: any[]) => any;
|
83
106
|
onCancel?: (...args: any[]) => any;
|
@@ -89,6 +112,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
112
|
theme: string;
|
90
113
|
trigger: "click" | "hover";
|
91
114
|
icon: string;
|
115
|
+
loading: boolean;
|
92
116
|
confirmText: string;
|
93
117
|
cancelText: string;
|
94
118
|
}, {}>;
|
@@ -63,5 +63,10 @@ export declare const PopConfirmProps: {
|
|
63
63
|
width: import("vue-types").VueTypeDef<string | number> & {
|
64
64
|
default: string | number;
|
65
65
|
};
|
66
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
67
|
+
default: boolean;
|
68
|
+
} & {
|
69
|
+
default: boolean;
|
70
|
+
};
|
66
71
|
};
|
67
72
|
export default PopConfirmProps;
|
package/lib/table/index.js
CHANGED
@@ -4697,9 +4697,7 @@ function _isSlot(s) {
|
|
4697
4697
|
isShow.value = false;
|
4698
4698
|
};
|
4699
4699
|
var handleSettingClick = function handleSettingClick() {
|
4700
|
-
|
4701
|
-
isShow.value = true;
|
4702
|
-
}
|
4700
|
+
isShow.value = true;
|
4703
4701
|
};
|
4704
4702
|
var handleCheckAllClick = function handleCheckAllClick(e) {
|
4705
4703
|
e.stopImmediatePropagation();
|
@@ -5790,18 +5788,20 @@ function use_render_isSlot(s) {
|
|
5790
5788
|
};
|
5791
5789
|
var _useFixedColumn = use_fixed_column(props, tableResp, head),
|
5792
5790
|
resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
|
5793
|
-
|
5794
|
-
|
5795
|
-
|
5796
|
-
|
5797
|
-
|
5798
|
-
|
5799
|
-
|
5800
|
-
|
5801
|
-
|
5802
|
-
|
5803
|
-
|
5804
|
-
|
5791
|
+
// const getScrollFix = () => {
|
5792
|
+
// if (styleRef.value.hasScrollY) {
|
5793
|
+
// const fixStyle = {
|
5794
|
+
// width: `${SCROLLY_WIDTH + 2}px`,
|
5795
|
+
// right: '-1px',
|
5796
|
+
// };
|
5797
|
+
// return (
|
5798
|
+
// <th
|
5799
|
+
// style={fixStyle}
|
5800
|
+
// class='column_fixed'
|
5801
|
+
// ></th>
|
5802
|
+
// );
|
5803
|
+
// }
|
5804
|
+
// };
|
5805
5805
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("thead", {
|
5806
5806
|
"style": rowStyle
|
5807
5807
|
}, [(0,external_vue_namespaceObject.createVNode)(table_row, null, {
|
@@ -5815,7 +5815,7 @@ function use_render_isSlot(s) {
|
|
5815
5815
|
});
|
5816
5816
|
var classList = [getHeadColumnClass(column, index), getColumnCustomClass(column), column.align || props.headerAlign || props.align];
|
5817
5817
|
return getTH(classList, headStyle, index);
|
5818
|
-
})
|
5818
|
+
})])];
|
5819
5819
|
}
|
5820
5820
|
})])]);
|
5821
5821
|
};
|
package/lib/table/table.css
CHANGED
@@ -1262,7 +1262,8 @@
|
|
1262
1262
|
.bk-table .bk-table-head {
|
1263
1263
|
position: relative;
|
1264
1264
|
z-index: 2;
|
1265
|
-
|
1265
|
+
scrollbar-gutter: stable;
|
1266
|
+
overflow: hidden;
|
1266
1267
|
}
|
1267
1268
|
.bk-table .bk-table-head .col-resize-drag {
|
1268
1269
|
position: absolute;
|
@@ -1274,6 +1275,9 @@
|
|
1274
1275
|
background-color: #3785ff;
|
1275
1276
|
transform: translateX(-50%);
|
1276
1277
|
}
|
1278
|
+
.bk-table .bk-table-head thead {
|
1279
|
+
transform: translateX(var(--scroll-head-left));
|
1280
|
+
}
|
1277
1281
|
.bk-table .bk-table-head .table-head-settings {
|
1278
1282
|
position: absolute;
|
1279
1283
|
top: 0;
|
package/lib/table/table.less
CHANGED
@@ -308,7 +308,8 @@
|
|
308
308
|
.@{bk-prefix}-table-head {
|
309
309
|
position: relative;
|
310
310
|
z-index: 2;
|
311
|
-
|
311
|
+
scrollbar-gutter: stable;
|
312
|
+
overflow: hidden;
|
312
313
|
|
313
314
|
.col-resize-drag {
|
314
315
|
position: absolute;
|
@@ -321,6 +322,10 @@
|
|
321
322
|
transform: translateX(-50%);
|
322
323
|
}
|
323
324
|
|
325
|
+
thead {
|
326
|
+
transform: translateX(var(--scroll-head-left));
|
327
|
+
}
|
328
|
+
|
324
329
|
.table-head-settings {
|
325
330
|
position: absolute;
|
326
331
|
top: 0;
|
@@ -1385,7 +1385,8 @@
|
|
1385
1385
|
.bk-table .bk-table-head {
|
1386
1386
|
position: relative;
|
1387
1387
|
z-index: 2;
|
1388
|
-
|
1388
|
+
scrollbar-gutter: stable;
|
1389
|
+
overflow: hidden;
|
1389
1390
|
}
|
1390
1391
|
.bk-table .bk-table-head .col-resize-drag {
|
1391
1392
|
position: absolute;
|
@@ -1397,6 +1398,9 @@
|
|
1397
1398
|
background-color: #3785ff;
|
1398
1399
|
transform: translateX(-50%);
|
1399
1400
|
}
|
1401
|
+
.bk-table .bk-table-head thead {
|
1402
|
+
transform: translateX(var(--scroll-head-left));
|
1403
|
+
}
|
1400
1404
|
.bk-table .bk-table-head .table-head-settings {
|
1401
1405
|
position: absolute;
|
1402
1406
|
top: 0;
|