bkui-vue 0.0.2-beta.44 → 0.0.2-beta.46
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 +55 -55
- package/dist/index.esm.js +5777 -5725
- package/dist/index.umd.js +55 -55
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/collapse/index.d.ts +1 -1
- package/lib/container/index.d.ts +1 -1
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/exception/index.d.ts +1 -1
- package/lib/form/index.d.ts +2 -2
- package/lib/image/index.js +1 -1
- package/lib/input/input.css +6 -6
- package/lib/input/input.less +4 -5
- package/lib/input/input.variable.css +6 -6
- package/lib/loading/index.d.ts +1 -1
- package/lib/menu/index.d.ts +1 -1
- package/lib/modal/index.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +1 -1
- package/lib/pagination/index.d.ts +1 -1
- package/lib/radio/index.d.ts +1 -1
- package/lib/search-select/index.d.ts +1 -1
- package/lib/search-select/index.js +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/popover.d.ts +2 -2
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/table/components/table-column.d.ts +8 -8
- package/lib/table/index.d.ts +11 -7
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +19 -2
- package/lib/table/table.d.ts +7 -5
- package/lib/table/use-column.d.ts +3 -2
- package/lib/table/utils.d.ts +7 -7
- package/lib/table-column/index.d.ts +12 -12
- package/lib/table-column/index.js +1 -1
- package/lib/tag-input/tag-input.d.ts +14 -16
- package/lib/tree/tree.d.ts +0 -10
- package/lib/volar.components.d.ts +24 -24
- package/package.json +16 -15
package/lib/table/props.d.ts
CHANGED
@@ -111,7 +111,7 @@ export type Field = {
|
|
111
111
|
};
|
112
112
|
export type LabelFunctionString = ((_column: any, _index: any) => string | JSX.Element) | string;
|
113
113
|
export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
|
114
|
-
export type RenderFunctionString = ({ cell, data, row, column, index, rows
|
114
|
+
export type RenderFunctionString = ({ cell, data, row, column, index, rows }: {
|
115
115
|
cell: any;
|
116
116
|
data: any;
|
117
117
|
row: any;
|
@@ -120,7 +120,7 @@ export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
|
|
120
120
|
rows: any;
|
121
121
|
}) => string | JSX.Element;
|
122
122
|
export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
|
123
|
-
export type SpanFunctionString = (({ column, colIndex, row, rowIndex
|
123
|
+
export type SpanFunctionString = (({ column, colIndex, row, rowIndex }: {
|
124
124
|
column: any;
|
125
125
|
colIndex: any;
|
126
126
|
row: any;
|
@@ -204,6 +204,16 @@ export type Colgroups = Column & {
|
|
204
204
|
resizeWidth: number;
|
205
205
|
listeners: Map<string, Function>;
|
206
206
|
};
|
207
|
+
export declare enum IColSortBehavior {
|
208
|
+
/**
|
209
|
+
* 列排序是相互依赖的
|
210
|
+
*/
|
211
|
+
interdependent = "interdependent",
|
212
|
+
/**
|
213
|
+
* 列排序是独立的
|
214
|
+
*/
|
215
|
+
independent = "independent"
|
216
|
+
}
|
207
217
|
export declare const tableProps: {
|
208
218
|
/**
|
209
219
|
* 渲染列表
|
@@ -482,5 +492,12 @@ export declare const tableProps: {
|
|
482
492
|
prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
|
483
493
|
default: () => import("vue").CSSProperties;
|
484
494
|
};
|
495
|
+
/**
|
496
|
+
* 列排序行为
|
497
|
+
* independent:列与列之间的排序是独立的,互斥的
|
498
|
+
* interdependent:列排序是相互影响、依赖的
|
499
|
+
*
|
500
|
+
*/
|
501
|
+
colSortBehavior: import("vue-types").VueTypeDef<IColSortBehavior>;
|
485
502
|
};
|
486
503
|
export {};
|
package/lib/table/table.d.ts
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import { SORT_OPTION } from './const';
|
2
|
+
import { IColSortBehavior } from './props';
|
1
3
|
declare const _default: import("vue").DefineComponent<{
|
2
4
|
data: import("vue-types").VueTypeDef<any[]> & {
|
3
5
|
default: () => any[];
|
@@ -131,6 +133,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
131
133
|
prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
|
132
134
|
default: () => import("vue").CSSProperties;
|
133
135
|
};
|
136
|
+
colSortBehavior: import("vue-types").VueTypeDef<IColSortBehavior>;
|
134
137
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
135
138
|
columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
|
136
139
|
columnFilter: (_args: {
|
@@ -141,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
141
144
|
columnSort: (_args: {
|
142
145
|
column: import("./props").Column;
|
143
146
|
index: number;
|
144
|
-
type:
|
147
|
+
type: SORT_OPTION;
|
145
148
|
}) => boolean;
|
146
149
|
colFilterSave: (_args: {
|
147
150
|
column: import("./props").Column;
|
@@ -174,9 +177,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
174
177
|
isAll: boolean;
|
175
178
|
}) => boolean;
|
176
179
|
pageLimitChange: (_arg: number) => boolean;
|
177
|
-
pageValueChange: (_arg: number) => boolean;
|
178
|
-
* 保证每次计算宽度正确
|
179
|
-
*/
|
180
|
+
pageValueChange: (_arg: number) => boolean;
|
180
181
|
settingChange: (_args: {
|
181
182
|
checked: string[];
|
182
183
|
size: string;
|
@@ -345,6 +346,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
345
346
|
prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
|
346
347
|
default: () => import("vue").CSSProperties;
|
347
348
|
};
|
349
|
+
colSortBehavior: import("vue-types").VueTypeDef<IColSortBehavior>;
|
348
350
|
}>> & {
|
349
351
|
onSelect?: (_args: {
|
350
352
|
row: Record<string, any>;
|
@@ -356,7 +358,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
356
358
|
onColumnSort?: (_args: {
|
357
359
|
column: import("./props").Column;
|
358
360
|
index: number;
|
359
|
-
type:
|
361
|
+
type: SORT_OPTION;
|
360
362
|
}) => any;
|
361
363
|
onColumnFilter?: (_args: {
|
362
364
|
checked: string[];
|
@@ -33,7 +33,7 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
33
33
|
sort: import("vue-types").VueTypeDef<import("./props").ISortPropShape>;
|
34
34
|
filter: import("vue-types").VueTypeDef<import("./props").IFilterPropShape>;
|
35
35
|
colspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
|
36
|
-
default: (({ column, colIndex, row, rowIndex
|
36
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
37
37
|
column: any;
|
38
38
|
colIndex: any;
|
39
39
|
row: any;
|
@@ -41,7 +41,7 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
41
41
|
}) => number) | (() => Number);
|
42
42
|
};
|
43
43
|
rowspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
|
44
|
-
default: (({ column, colIndex, row, rowIndex
|
44
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
45
45
|
column: any;
|
46
46
|
colIndex: any;
|
47
47
|
row: any;
|
@@ -57,5 +57,6 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
57
57
|
default: number;
|
58
58
|
};
|
59
59
|
}>>[];
|
60
|
+
getActiveColumn: () => any;
|
60
61
|
};
|
61
62
|
export default _default;
|
package/lib/table/utils.d.ts
CHANGED
@@ -86,13 +86,13 @@ export declare const resolveHeadConfig: (props: TablePropTypes) => {
|
|
86
86
|
color?: string;
|
87
87
|
};
|
88
88
|
/**
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
89
|
+
* 获取当前行指定列的内容
|
90
|
+
* @param row 当前行
|
91
|
+
* @param key 指定列名
|
92
|
+
* @param column 列配置
|
93
|
+
* @param index 当前行Index
|
94
|
+
* @returns
|
95
|
+
*/
|
96
96
|
export declare const getRowText: (row: any, key: string, column: Column) => any;
|
97
97
|
/**
|
98
98
|
* 格式化prop配置为标准数组格式
|
@@ -105,7 +105,7 @@ declare const BkTableColumn: {
|
|
105
105
|
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape>;
|
106
106
|
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape>;
|
107
107
|
colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
108
|
-
default: (({ column, colIndex, row, rowIndex
|
108
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
109
109
|
column: any;
|
110
110
|
colIndex: any;
|
111
111
|
row: any;
|
@@ -113,7 +113,7 @@ declare const BkTableColumn: {
|
|
113
113
|
}) => number) | (() => Number);
|
114
114
|
};
|
115
115
|
rowspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
116
|
-
default: (({ column, colIndex, row, rowIndex
|
116
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
117
117
|
column: any;
|
118
118
|
colIndex: any;
|
119
119
|
row: any;
|
@@ -140,7 +140,7 @@ declare const BkTableColumn: {
|
|
140
140
|
resizable?: boolean;
|
141
141
|
index?: number;
|
142
142
|
columnKey?: string;
|
143
|
-
colspan?: (({ column, colIndex, row, rowIndex
|
143
|
+
colspan?: (({ column, colIndex, row, rowIndex }: {
|
144
144
|
column: any;
|
145
145
|
colIndex: any;
|
146
146
|
row: any;
|
@@ -156,7 +156,7 @@ declare const BkTableColumn: {
|
|
156
156
|
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
157
157
|
};
|
158
158
|
};
|
159
|
-
rowspan?: (({ column, colIndex, row, rowIndex
|
159
|
+
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
160
160
|
column: any;
|
161
161
|
colIndex: any;
|
162
162
|
row: any;
|
@@ -260,7 +260,7 @@ declare const BkTableColumn: {
|
|
260
260
|
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape>;
|
261
261
|
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape>;
|
262
262
|
colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
263
|
-
default: (({ column, colIndex, row, rowIndex
|
263
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
264
264
|
column: any;
|
265
265
|
colIndex: any;
|
266
266
|
row: any;
|
@@ -268,7 +268,7 @@ declare const BkTableColumn: {
|
|
268
268
|
}) => number) | (() => Number);
|
269
269
|
};
|
270
270
|
rowspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
271
|
-
default: (({ column, colIndex, row, rowIndex
|
271
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
272
272
|
column: any;
|
273
273
|
colIndex: any;
|
274
274
|
row: any;
|
@@ -295,7 +295,7 @@ declare const BkTableColumn: {
|
|
295
295
|
resizable?: boolean;
|
296
296
|
index?: number;
|
297
297
|
columnKey?: string;
|
298
|
-
colspan?: (({ column, colIndex, row, rowIndex
|
298
|
+
colspan?: (({ column, colIndex, row, rowIndex }: {
|
299
299
|
column: any;
|
300
300
|
colIndex: any;
|
301
301
|
row: any;
|
@@ -311,7 +311,7 @@ declare const BkTableColumn: {
|
|
311
311
|
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
312
312
|
};
|
313
313
|
};
|
314
|
-
rowspan?: (({ column, colIndex, row, rowIndex
|
314
|
+
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
315
315
|
column: any;
|
316
316
|
colIndex: any;
|
317
317
|
row: any;
|
@@ -391,7 +391,7 @@ declare const BkTableColumn: {
|
|
391
391
|
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape>;
|
392
392
|
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape>;
|
393
393
|
colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
394
|
-
default: (({ column, colIndex, row, rowIndex
|
394
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
395
395
|
column: any;
|
396
396
|
colIndex: any;
|
397
397
|
row: any;
|
@@ -399,7 +399,7 @@ declare const BkTableColumn: {
|
|
399
399
|
}) => number) | (() => Number);
|
400
400
|
};
|
401
401
|
rowspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
402
|
-
default: (({ column, colIndex, row, rowIndex
|
402
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
403
403
|
column: any;
|
404
404
|
colIndex: any;
|
405
405
|
row: any;
|
@@ -426,7 +426,7 @@ declare const BkTableColumn: {
|
|
426
426
|
resizable?: boolean;
|
427
427
|
index?: number;
|
428
428
|
columnKey?: string;
|
429
|
-
colspan?: (({ column, colIndex, row, rowIndex
|
429
|
+
colspan?: (({ column, colIndex, row, rowIndex }: {
|
430
430
|
column: any;
|
431
431
|
colIndex: any;
|
432
432
|
row: any;
|
@@ -442,7 +442,7 @@ declare const BkTableColumn: {
|
|
442
442
|
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
443
443
|
};
|
444
444
|
};
|
445
|
-
rowspan?: (({ column, colIndex, row, rowIndex
|
445
|
+
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
446
446
|
column: any;
|
447
447
|
colIndex: any;
|
448
448
|
row: any;
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,((e,o,t)=>(()=>{"use strict";var n={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=t}},r={};function p(e){var o=r[e];if(void 0!==o)return o.exports;var t=r[e]={exports:{}};return n[e](t,t.exports,p),t.exports}p.d=(e,o)=>{for(var t in o)p.o(o,t)&&!p.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},p.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{p.r(i),p.d(i,{default:()=>H});var e,o,t,n=p(4212),r=p(748);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,o,t){return(o=function(e){var o=function(e,o){if("object"!==u(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(o||(o={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(t||(t={}));var s,l,y=[t.AUTO,t.HIGHLIGHT];o.NONE,o.ROW,o.COL,o.OUTER,o.HORIZONTAL,function(e){e.DEF1="def1",e.DEF2="def2"}(s||(s={})),f(e={},s.DEF1,"#FAFBFD"),f(e,s.DEF2,"#F0F1F5"),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(l||(l={})),l.ASC,l.DESC,l.NULL,l.CUSTOM;var d,a,T,c,b=p(210);!function(e){e.CURRENT="current",e.ALL="all"}(d||(d={})),function(e){e.STATIC="static",e.AUTO="auto"}(a||(a={})),(0,b.toType)("showOverflowTooltipMode",{default:a.AUTO}),function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(T||(T={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.NONE=""}(c||(c={}));var P,m,O,v=(0,b.toType)("columnType",{default:T.NONE}),h=(0,b.toType)("columnType",{default:c.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(P||(P={})),(0,b.toType)("full",{default:P.FULL}),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(m||(m={})),(0,b.toType)("columnSize",{default:m.SMALL}),function(e){e.LEFT="left",e.RIGHT="right"}(O||(O={}));var g,S,C=(0,b.string)(),E=(0,b.toType)("IOverflowTooltipPropType",{default:!1,type:[Boolean,Object]}),j=(0,b.toType)("ISortPropShape",{default:!1,type:[Boolean,String,Object]}),L=(0,b.toType)("IFilterPropShape",{default:!1,type:[Boolean,Object]});!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(g||(g={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(S||(S={}));var I,N=(0,b.toType)("IColumnType",{default:{width:"100%",label:""},type:[Object]}),D=((0,b.toType)("ITableSettingPropType",{default:!1,type:[Boolean,Object]}),(0,b.toType)("LabelFunctionStringType",{})),F=(0,b.toType)("RenderFunctionStringType",{}),x=(0,b.toType)("SpanFunctionStringType",{}),A=(0,b.toType)("RowClassFunctionStringType",{}),w=(0,b.toType)("RowHeightFunctionNumberType",{}),U=((0,b.toType)("FunctionNumberType",{}),function(e){return(0,b.toType)("StringNumberType",{}).def(e)});(0,b.toType)("IColumnPropType",{default:{label:void 0,minWidth:80},type:[Object]}),function(e){e.interdependent="interdependent",e.independent="independent"}(I||(I={})),n.PropTypes.arrayOf(n.PropTypes.any).def([]),n.PropTypes.arrayOf(N).def([]),n.PropTypes.oneOfType([n.PropTypes.number.def(-1),n.PropTypes.arrayOf(n.PropTypes.number.def(-1))]),(0,b.toType)("columnPick",{}).def(g.DISABLED),U("auto"),n.PropTypes.bool.def(!1),U(84),U("auto"),w.def(42),n.PropTypes.number.def(42),n.PropTypes.bool.def(!0),(0,b.toType)("ITheadType",{}).def({color:s.DEF1,height:42,isShow:!0}),n.PropTypes.bool.def(!1),n.PropTypes.oneOfType([n.PropTypes.arrayOf((0,b.toType)("boderType",{})),n.PropTypes.string]).def([o.ROW]),n.PropTypes.oneOfType([n.PropTypes.bool.def(!1),n.PropTypes.object.def({})]).def(!1),n.PropTypes.number.def(60),n.PropTypes.bool.def(!1),n.PropTypes.string,n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.object,n.PropTypes.bool]).def(void 0),n.PropTypes.bool.def(!1),n.PropTypes.string.def(""),n.PropTypes.func.def(void 0),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func]).def("__$table_row_index"),n.PropTypes.bool.def(!1),n.PropTypes.oneOf(y).def(t.HIGHLIGHT),n.PropTypes.shape({}).def({}),n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return!0})),n.PropTypes.bool.def(!0)]).def(!0),(0,b.toType)("ResizerWay",{default:S.DEBOUNCE}),n.PropTypes.bool.def(!0),n.PropTypes.style().def({}),(0,b.toType)("IColSortBehavior",{default:I.independent});var R={label:D,field:D,render:F,width:n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]),minWidth:U(80),columnKey:n.PropTypes.string.def(""),showOverflowTooltip:E,type:v,resizable:n.PropTypes.bool.def(!0),fixed:n.PropTypes.oneOfType([n.PropTypes.bool,C]).def(!1),sort:j,filter:L,colspan:x.def(1),rowspan:x.def(1),align:h,className:A,prop:D,index:n.PropTypes.number.def(void 0)};const B=(0,r.defineComponent)({name:"TableColumn",props:R,setup:function(e){return{initColumns:(0,r.inject)("InitColumns",(function(e){}),!1),bkTableCache:(0,r.inject)("BKTableCahce",{queueStack:function(e,o){return null==o?void 0:o()}}),column:(0,r.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}))}},unmounted:function(){this.updateColumnDefine(!0)},mounted:function(){this.updateColumnDefine()},methods:{updateColumnDefine:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];void 0===this.$props.index||"number"!=typeof this.$props.index?this.updateColumnDefineByParent():this.updateColumnDefineByIndex(e)},updateColumnDefineByParent:function(){var e=this;"function"==typeof this.bkTableCache.queueStack&&this.bkTableCache.queueStack("Bk_COlumn_Update_Define",(function(){var o=e._.parent.vnode.children.default()||[],t=[];!function e(o){Array.isArray(o)&&o.forEach((function(o){var n,p,i;if(Array.isArray(o))e(o);else{var u=!0;if("TableColumn"===(null===(n=o.type)||void 0===n?void 0:n.name)){u=Object.hasOwnProperty.call(o.props||{},"key");var f=Object.assign(Object.assign({},o.props),{field:o.props.prop||o.props.field,render:null===(p=o.children)||void 0===p?void 0:p.default});t.push((0,r.unref)(f))}(null===(i=o.children)||void 0===i?void 0:i.length)&&u&&e(o.children)}}))}(o),e.initColumns(t)}))},updateColumnDefineByIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=Object.assign(Object.assign({},this.$props),{field:this.$props.prop||this.$props.field,render:this.$slots.default});this.initColumns((0,r.unref)(o),e)}},render:function(){var e,o;return(0,r.createVNode)(r.Fragment,null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e,{row:{}})])}}),H=(0,n.withInstall)(B)})(),i})()));
|
@@ -232,13 +232,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
232
232
|
} & {
|
233
233
|
default: boolean;
|
234
234
|
};
|
235
|
-
/**
|
236
|
-
* 不显示条件:
|
237
|
-
* 1. 设置不可清除
|
238
|
-
* 2. 禁用时
|
239
|
-
* 3. tag标签为空时
|
240
|
-
* 4. 设置了showClearOnlyHover,且没有hover的时候
|
241
|
-
*/
|
242
235
|
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
243
236
|
default: boolean;
|
244
237
|
} & {
|
@@ -281,7 +274,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
281
274
|
default: boolean;
|
282
275
|
};
|
283
276
|
tagOverflowTips: {
|
284
|
-
type: import("vue").PropType<Partial<import("../directives/src/tooltips").IOptions>>;
|
277
|
+
type: import("vue").PropType<Partial<import("../directives/src/tooltips").IOptions>>; /**
|
278
|
+
* 不显示条件:
|
279
|
+
* 1. 设置不可清除
|
280
|
+
* 2. 禁用时
|
281
|
+
* 3. tag标签为空时
|
282
|
+
* 4. 设置了showClearOnlyHover,且没有hover的时候
|
283
|
+
*/
|
285
284
|
default: () => {};
|
286
285
|
};
|
287
286
|
}, {
|
@@ -572,13 +571,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
572
571
|
} & {
|
573
572
|
default: boolean;
|
574
573
|
};
|
575
|
-
/**
|
576
|
-
* 不显示条件:
|
577
|
-
* 1. 设置不可清除
|
578
|
-
* 2. 禁用时
|
579
|
-
* 3. tag标签为空时
|
580
|
-
* 4. 设置了showClearOnlyHover,且没有hover的时候
|
581
|
-
*/
|
582
574
|
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
583
575
|
default: boolean;
|
584
576
|
} & {
|
@@ -621,7 +613,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
621
613
|
default: boolean;
|
622
614
|
};
|
623
615
|
tagOverflowTips: {
|
624
|
-
type: import("vue").PropType<Partial<import("../directives/src/tooltips").IOptions>>;
|
616
|
+
type: import("vue").PropType<Partial<import("../directives/src/tooltips").IOptions>>; /**
|
617
|
+
* 不显示条件:
|
618
|
+
* 1. 设置不可清除
|
619
|
+
* 2. 禁用时
|
620
|
+
* 3. tag标签为空时
|
621
|
+
* 4. 设置了showClearOnlyHover,且没有hover的时候
|
622
|
+
*/
|
625
623
|
default: () => {};
|
626
624
|
};
|
627
625
|
}>> & {
|
package/lib/tree/tree.d.ts
CHANGED
@@ -46,11 +46,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
} & {
|
47
47
|
default: number;
|
48
48
|
};
|
49
|
-
/**
|
50
|
-
* 设置指定节点是否选中
|
51
|
-
* @param item Node item | Node Id
|
52
|
-
* @param checked
|
53
|
-
*/
|
54
49
|
search: import("vue-types").VueTypeDef<string | number | boolean | import("./props").SearchOption> & {
|
55
50
|
default: string | number | boolean | (() => import("./props").SearchOption);
|
56
51
|
};
|
@@ -174,11 +169,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
174
169
|
} & {
|
175
170
|
default: number;
|
176
171
|
};
|
177
|
-
/**
|
178
|
-
* 设置指定节点是否选中
|
179
|
-
* @param item Node item | Node Id
|
180
|
-
* @param checked
|
181
|
-
*/
|
182
172
|
search: import("vue-types").VueTypeDef<string | number | boolean | import("./props").SearchOption> & {
|
183
173
|
default: string | number | boolean | (() => import("./props").SearchOption);
|
184
174
|
};
|
@@ -1,28 +1,28 @@
|
|
1
1
|
/*
|
2
|
-
* Tencent is pleased to support the open source community by making
|
3
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
|
-
*
|
5
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6
|
-
*
|
7
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
|
-
*
|
9
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
10
|
-
*
|
11
|
-
* ---------------------------------------------------
|
12
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
13
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
14
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
15
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
16
|
-
*
|
17
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
18
|
-
* the Software.
|
19
|
-
*
|
20
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
21
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
23
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
|
-
* IN THE SOFTWARE.
|
25
|
-
*/
|
2
|
+
* Tencent is pleased to support the open source community by making
|
3
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
|
+
*
|
5
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6
|
+
*
|
7
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
|
+
*
|
9
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
10
|
+
*
|
11
|
+
* ---------------------------------------------------
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
13
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
14
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
15
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
16
|
+
*
|
17
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
18
|
+
* the Software.
|
19
|
+
*
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
21
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
23
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
|
+
* IN THE SOFTWARE.
|
25
|
+
*/
|
26
26
|
declare module '@vue/runtime-core' {
|
27
27
|
interface GlobalComponents {
|
28
28
|
BkBreadcrumbItem: typeof import('./breadcrumb/breadcrumb-item').default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "0.0.2-beta.
|
3
|
+
"version": "0.0.2-beta.46",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*",
|
@@ -49,8 +49,8 @@
|
|
49
49
|
"@types/lodash": "~4.14.196",
|
50
50
|
"@types/node": "~20.4.5",
|
51
51
|
"@types/postcss-less": "~4.0.2",
|
52
|
-
"@typescript-eslint/eslint-plugin": "
|
53
|
-
"@typescript-eslint/parser": "
|
52
|
+
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
53
|
+
"@typescript-eslint/parser": "^5.20.0",
|
54
54
|
"@vitejs/plugin-vue": "~4.2.3",
|
55
55
|
"@vitejs/plugin-vue-jsx": "~3.0.1",
|
56
56
|
"@vue/babel-plugin-jsx": "~1.1.5",
|
@@ -65,15 +65,14 @@
|
|
65
65
|
"cross-env": "~7.0.3",
|
66
66
|
"css-loader": "~6.8.1",
|
67
67
|
"cz-lerna-changelog": "~2.0.3",
|
68
|
-
"eslint": "
|
68
|
+
"eslint": "8.26.0",
|
69
|
+
"eslint-config-prettier": "^9.0.0",
|
69
70
|
"eslint-config-tencent": "~1.0.4",
|
70
71
|
"eslint-plugin-codecc": "~0.3.0",
|
71
72
|
"eslint-plugin-import": "~2.28.0",
|
72
|
-
"eslint-plugin-
|
73
|
-
"eslint-plugin-
|
74
|
-
"eslint-plugin-
|
75
|
-
"eslint-plugin-simple-import-sort": "~7.0.0",
|
76
|
-
"eslint-plugin-vue": "~8.6.0",
|
73
|
+
"eslint-plugin-prettier": "~5.0.0",
|
74
|
+
"eslint-plugin-simple-import-sort": "~10.0.0",
|
75
|
+
"eslint-plugin-vue": "~9.17.0",
|
77
76
|
"highlight.js": "~11.8.0",
|
78
77
|
"husky": "~7.0.1",
|
79
78
|
"jest": "~29.6.2",
|
@@ -89,21 +88,23 @@
|
|
89
88
|
"postcss": "~8.4.27",
|
90
89
|
"postcss-html": "~1.5.0",
|
91
90
|
"postcss-less": "~6.0.0",
|
92
|
-
"prettier": "~
|
91
|
+
"prettier": "~3.0.3",
|
93
92
|
"prismjs": "~1.29.0",
|
94
93
|
"resize-observer-polyfill": "~1.5.1",
|
95
94
|
"rimraf": "~5.0.1",
|
96
|
-
"stylelint": "
|
97
|
-
"stylelint-config-
|
98
|
-
"stylelint-
|
99
|
-
"stylelint-
|
95
|
+
"stylelint": "^15.10.3",
|
96
|
+
"stylelint-config-recess-order": "^4.3.0",
|
97
|
+
"stylelint-config-recommended-vue": "1.5.0",
|
98
|
+
"stylelint-config-standard": "^34.0.0",
|
99
|
+
"stylelint-order": "^6.0.3",
|
100
|
+
"stylelint-scss": "^5.1.0",
|
100
101
|
"ts-jest": "~29.1.1",
|
101
102
|
"ts-node": "~10.9.1",
|
102
103
|
"typescript": "~4.9.5",
|
103
104
|
"vite": "~4.4.7",
|
104
105
|
"vite-plugin-vue-markdown": "~0.23.7",
|
105
106
|
"vue": "~3.3.4",
|
106
|
-
"vue-eslint-parser": "~
|
107
|
+
"vue-eslint-parser": "~9.3.1",
|
107
108
|
"vue-i18n": "~9.2.2",
|
108
109
|
"vue-router": "~4.2.4",
|
109
110
|
"vue-types": "~4.1.1"
|