bkui-vue 2.0.1-beta.11 → 2.0.1-beta.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.
- package/dist/index.cjs.js +165 -165
- package/dist/index.esm.js +31260 -31265
- package/dist/index.umd.js +165 -165
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/index.js +1 -1
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.js +31 -32
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/color-picker/index.js +44 -44
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/index.js +189 -188
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +18 -18
- package/lib/dialog/index.d.ts +40 -40
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +7 -7
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -166
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +3 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/index.js +14 -14
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/index.js +20 -20
- package/lib/index.d.ts +4 -3
- package/lib/index.js +4 -4
- package/lib/info-box/index.js +13 -13
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -16
- package/lib/input/input.d.ts +15 -15
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/index.d.ts +3 -3
- package/lib/modal/index.js +7 -7
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/index.js +4 -4
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +61 -11
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -16
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +18 -19
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +9 -9
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +4 -4
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -19
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.js +10 -10
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +7 -8
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +0 -1
- package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
- package/lib/search-select/index.js +66 -66
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/selected.d.ts +1 -1
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/index.d.ts +61 -61
- package/lib/select/index.js +69 -73
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.d.ts +24 -24
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +38 -46
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +3 -3
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.js +21 -23
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/swiper/index.js +5 -5
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/table/components/table-column.d.ts +27 -87
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +194 -244
- package/lib/table/index.js +126 -129
- package/lib/table/props.d.ts +33 -33
- package/lib/table/table.css +3 -4
- package/lib/table/table.d.ts +47 -47
- package/lib/table/table.less +4 -12
- package/lib/table/table.variable.css +3 -4
- package/lib/table/use-attributes.d.ts +3 -3
- package/lib/table/use-column.d.ts +9 -129
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +42 -172
- package/lib/table-column/index.js +18 -18
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/timeline/index.js +2 -2
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +36 -36
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +6 -6
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/upload/index.js +25 -26
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +6 -6
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/package.json +17 -55
package/lib/tree/index.js
CHANGED
@@ -17454,15 +17454,15 @@ function _defineProperty(obj, key, value) {
|
|
17454
17454
|
*/
|
17455
17455
|
var EVENTS;
|
17456
17456
|
(function (EVENTS) {
|
17457
|
+
EVENTS["NODE_CHECKED"] = "nodeChecked";
|
17457
17458
|
EVENTS["NODE_CLICK"] = "nodeClick";
|
17458
17459
|
EVENTS["NODE_COLLAPSE"] = "nodeCollapse";
|
17459
|
-
EVENTS["NODE_EXPAND"] = "nodeExpand";
|
17460
|
-
EVENTS["NODE_CHECKED"] = "nodeChecked";
|
17461
|
-
EVENTS["NODE_DRAG_START"] = "nodeDragStart";
|
17462
|
-
EVENTS["NODE_DRAG_OVER"] = "nodeDragOver";
|
17463
17460
|
EVENTS["NODE_DRAG_LEAVE"] = "nodeDragLeave";
|
17461
|
+
EVENTS["NODE_DRAG_OVER"] = "nodeDragOver";
|
17462
|
+
EVENTS["NODE_DRAG_START"] = "nodeDragStart";
|
17464
17463
|
EVENTS["NODE_DROP"] = "nodeDrop";
|
17465
17464
|
EVENTS["NODE_ENTER_VIEW"] = "nodeEnterView";
|
17465
|
+
EVENTS["NODE_EXPAND"] = "nodeExpand";
|
17466
17466
|
})(EVENTS || (EVENTS = {}));
|
17467
17467
|
var EMPTY = function EMPTY() {
|
17468
17468
|
return true;
|
@@ -17475,24 +17475,24 @@ var TreeEmitEventsType = _defineProperty(_defineProperty(_defineProperty(_define
|
|
17475
17475
|
var NODE_ATTRIBUTES;
|
17476
17476
|
(function (NODE_ATTRIBUTES) {
|
17477
17477
|
NODE_ATTRIBUTES["DEPTH"] = "__depth";
|
17478
|
-
NODE_ATTRIBUTES["INDEX"] = "__index";
|
17479
|
-
NODE_ATTRIBUTES["UUID"] = "__uuid";
|
17480
|
-
NODE_ATTRIBUTES["PARENT"] = "__parent";
|
17481
17478
|
NODE_ATTRIBUTES["HAS_CHILD"] = "__has_child";
|
17482
|
-
NODE_ATTRIBUTES["
|
17483
|
-
NODE_ATTRIBUTES["
|
17484
|
-
NODE_ATTRIBUTES["ORDER"] = "__order";
|
17485
|
-
NODE_ATTRIBUTES["IS_OPEN"] = "__is_open";
|
17486
|
-
NODE_ATTRIBUTES["IS_CHECKED"] = "__is_checked";
|
17487
|
-
NODE_ATTRIBUTES["IS_SELECTED"] = "__is_selected";
|
17479
|
+
NODE_ATTRIBUTES["INDEX"] = "__index";
|
17480
|
+
NODE_ATTRIBUTES["IS_ASYNC"] = "__is_async";
|
17488
17481
|
NODE_ATTRIBUTES["IS_ASYNC_INIT"] = "__is_async_init";
|
17489
|
-
NODE_ATTRIBUTES["IS_MATCH"] = "__is_match";
|
17490
|
-
NODE_ATTRIBUTES["IS_NULL"] = "__IS_NULL";
|
17491
17482
|
NODE_ATTRIBUTES["IS_CACHED"] = "__is_cached";
|
17492
|
-
NODE_ATTRIBUTES["
|
17483
|
+
NODE_ATTRIBUTES["IS_CHECKED"] = "__is_checked";
|
17484
|
+
NODE_ATTRIBUTES["IS_INDETERMINATE"] = "__is_indeterminate";
|
17493
17485
|
NODE_ATTRIBUTES["IS_LOADING"] = "__is_loading";
|
17486
|
+
NODE_ATTRIBUTES["IS_MATCH"] = "__is_match";
|
17487
|
+
NODE_ATTRIBUTES["IS_NULL"] = "__IS_NULL";
|
17488
|
+
NODE_ATTRIBUTES["IS_OPEN"] = "__is_open";
|
17489
|
+
NODE_ATTRIBUTES["IS_ROOT"] = "__is_root";
|
17490
|
+
NODE_ATTRIBUTES["IS_SELECTED"] = "__is_selected";
|
17491
|
+
NODE_ATTRIBUTES["ORDER"] = "__order";
|
17492
|
+
NODE_ATTRIBUTES["PARENT"] = "__parent";
|
17493
|
+
NODE_ATTRIBUTES["PATH"] = "__path";
|
17494
17494
|
NODE_ATTRIBUTES["TREE_NODE_ATTR"] = "__attr__";
|
17495
|
-
NODE_ATTRIBUTES["
|
17495
|
+
NODE_ATTRIBUTES["UUID"] = "__uuid";
|
17496
17496
|
})(NODE_ATTRIBUTES || (NODE_ATTRIBUTES = {}));
|
17497
17497
|
var NODE_SOURCE_ATTRS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, NODE_ATTRIBUTES.IS_OPEN, 'isOpen'), NODE_ATTRIBUTES.IS_SELECTED, 'selected'), NODE_ATTRIBUTES.IS_MATCH, 'isMatch'), NODE_ATTRIBUTES.HAS_CHILD, 'hasChild'), NODE_ATTRIBUTES.IS_CHECKED, 'checked'), NODE_ATTRIBUTES.IS_ASYNC, 'async'), NODE_ATTRIBUTES.IS_LOADING, 'loading'), NODE_ATTRIBUTES.IS_ROOT, 'isRoot');
|
17498
17498
|
/**
|
@@ -17501,9 +17501,9 @@ var NODE_SOURCE_ATTRS = _defineProperty(_defineProperty(_defineProperty(_defineP
|
|
17501
17501
|
var NodeContentActionEnum;
|
17502
17502
|
(function (NodeContentActionEnum) {
|
17503
17503
|
NodeContentActionEnum["CLICK"] = "click";
|
17504
|
-
NodeContentActionEnum["SELECTED"] = "selected";
|
17505
|
-
NodeContentActionEnum["EXPAND"] = "expand";
|
17506
17504
|
NodeContentActionEnum["COLLAPSE"] = "collapse";
|
17505
|
+
NodeContentActionEnum["EXPAND"] = "expand";
|
17506
|
+
NodeContentActionEnum["SELECTED"] = "selected";
|
17507
17507
|
})(NodeContentActionEnum || (NodeContentActionEnum = {}));
|
17508
17508
|
;// CONCATENATED MODULE: external "vue-types"
|
17509
17509
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
@@ -17515,18 +17515,18 @@ const external_vue_types_namespaceObject = external_vue_types_x({ ["string"]: ()
|
|
17515
17515
|
|
17516
17516
|
var ColumnTypeEnum;
|
17517
17517
|
(function (ColumnTypeEnum) {
|
17518
|
-
ColumnTypeEnum["ONCE"] = "once";
|
17519
17518
|
ColumnTypeEnum["EVERY"] = "every";
|
17519
|
+
ColumnTypeEnum["ONCE"] = "once";
|
17520
17520
|
})(ColumnTypeEnum || (ColumnTypeEnum = {}));
|
17521
17521
|
var TreeSearchMatchEnum;
|
17522
17522
|
(function (TreeSearchMatchEnum) {
|
17523
|
-
TreeSearchMatchEnum["FUZZY"] = "fuzzy";
|
17524
17523
|
TreeSearchMatchEnum["FULL"] = "full";
|
17524
|
+
TreeSearchMatchEnum["FUZZY"] = "fuzzy";
|
17525
17525
|
})(TreeSearchMatchEnum || (TreeSearchMatchEnum = {}));
|
17526
17526
|
var TreeSearchResultEnum;
|
17527
17527
|
(function (TreeSearchResultEnum) {
|
17528
|
-
TreeSearchResultEnum["TREE"] = "tree";
|
17529
17528
|
TreeSearchResultEnum["LIST"] = "list";
|
17529
|
+
TreeSearchResultEnum["TREE"] = "tree";
|
17530
17530
|
})(TreeSearchResultEnum || (TreeSearchResultEnum = {}));
|
17531
17531
|
var treeProps = {
|
17532
17532
|
/**
|
@@ -18737,9 +18737,9 @@ var use_node_action_this = undefined;
|
|
18737
18737
|
return (0,external_vue_namespaceObject.createVNode)("span", {
|
18738
18738
|
"onClick": handleNodeCheckboxClick
|
18739
18739
|
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
18740
|
-
"size": "small",
|
18741
|
-
"modelValue": isNodeChecked(item),
|
18742
18740
|
"indeterminate": isIndeterminate(item),
|
18741
|
+
"modelValue": isNodeChecked(item),
|
18742
|
+
"size": "small",
|
18743
18743
|
"onChange": function onChange(val, event) {
|
18744
18744
|
return handleNodeItemCheckboxChange(item, !!val, event);
|
18745
18745
|
}
|
@@ -19004,8 +19004,8 @@ var use_node_action_this = undefined;
|
|
19004
19004
|
// @ts-ignore:next-line
|
19005
19005
|
.map(function (index) {
|
19006
19006
|
return (0,external_vue_namespaceObject.createVNode)("span", {
|
19007
|
-
"
|
19008
|
-
"
|
19007
|
+
"style": getNodeLineStyle(maxDeep - index),
|
19008
|
+
"class": "node-virtual-line"
|
19009
19009
|
}, null);
|
19010
19010
|
});
|
19011
19011
|
};
|
@@ -19039,12 +19039,12 @@ var use_node_action_this = undefined;
|
|
19039
19039
|
var _ctx$slots$nodeAppend, _ctx$slots4;
|
19040
19040
|
var showTree = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
19041
19041
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
19042
|
-
"data-tree-node": getNodeId(item),
|
19043
19042
|
"key": getNodeId(item),
|
19044
|
-
"class": getNodeRowClass(item, flatData.schema)
|
19043
|
+
"class": getNodeRowClass(item, flatData.schema),
|
19044
|
+
"data-tree-node": getNodeId(item)
|
19045
19045
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
19046
|
-
"class": getNodeItemClass(item, flatData.schema, props, showTree),
|
19047
19046
|
"style": getNodeItemStyle(item, props, flatData, showTree),
|
19047
|
+
"class": getNodeItemClass(item, flatData.schema, props, showTree),
|
19048
19048
|
"onClick": function onClick(e) {
|
19049
19049
|
return handleNodeContentClick(item, e);
|
19050
19050
|
}
|
@@ -20072,18 +20072,18 @@ var use_tree_init_this = undefined;
|
|
20072
20072
|
resolveClassName = _usePrefix.resolveClassName;
|
20073
20073
|
return function () {
|
20074
20074
|
return (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
20075
|
-
"
|
20075
|
+
"ref": root,
|
20076
20076
|
"style": getTreeStyle(null, props),
|
20077
|
-
"list": renderData.value,
|
20078
|
-
"lineHeight": props.lineHeight,
|
20079
20077
|
"height": props.height,
|
20078
|
+
"class": resolveClassName('tree'),
|
20079
|
+
"contentClassName": resolveClassName('container'),
|
20080
20080
|
"enabled": props.virtualRender,
|
20081
|
-
"rowKey": NODE_ATTRIBUTES.UUID,
|
20082
20081
|
"keepAlive": true,
|
20083
|
-
"
|
20082
|
+
"lineHeight": props.lineHeight,
|
20083
|
+
"list": renderData.value,
|
20084
|
+
"rowKey": NODE_ATTRIBUTES.UUID,
|
20084
20085
|
"throttleDelay": 0,
|
20085
|
-
"onContentScroll": handleContentScroll
|
20086
|
-
"ref": root
|
20086
|
+
"onContentScroll": handleContentScroll
|
20087
20087
|
}, {
|
20088
20088
|
"default": function _default(scoped) {
|
20089
20089
|
return renderTreeContent(scoped.data || []);
|
package/lib/tree/props.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
declare enum TreeSearchMatchEnum {
|
3
|
-
|
4
|
-
|
3
|
+
FULL = "full",
|
4
|
+
FUZZY = "fuzzy"
|
5
5
|
}
|
6
6
|
declare enum TreeSearchResultEnum {
|
7
|
-
|
8
|
-
|
7
|
+
LIST = "list",
|
8
|
+
TREE = "tree"
|
9
9
|
}
|
10
10
|
/**
|
11
11
|
* Tree Prop: prefixIcon function
|
@@ -231,7 +231,7 @@ export declare const treeProps: {
|
|
231
231
|
};
|
232
232
|
type AsyncOption = {
|
233
233
|
callback: (item: any, cb: any) => Promise<any>;
|
234
|
-
cache:
|
234
|
+
cache: boolean;
|
235
235
|
deepAutoOpen?: string;
|
236
236
|
};
|
237
237
|
export type IIntersectionObserver = {
|
@@ -239,7 +239,7 @@ export type IIntersectionObserver = {
|
|
239
239
|
callback: (node: any, level: number, index: number) => void;
|
240
240
|
};
|
241
241
|
export type SearchOption = {
|
242
|
-
value:
|
242
|
+
value: boolean | number | string;
|
243
243
|
match?: `${TreeSearchMatchEnum}` | Function;
|
244
244
|
resultType?: `${TreeSearchResultEnum}`;
|
245
245
|
showChildNodes?: boolean;
|
package/lib/tree/tree.d.ts
CHANGED
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
};
|
46
46
|
async: import("vue-types").VueTypeShape<{
|
47
47
|
callback: (item: any, cb: any) => Promise<any>;
|
48
|
-
cache:
|
48
|
+
cache: boolean;
|
49
49
|
deepAutoOpen?: string;
|
50
50
|
}>;
|
51
51
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -179,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
179
179
|
};
|
180
180
|
async: import("vue-types").VueTypeShape<{
|
181
181
|
callback: (item: any, cb: any) => Promise<any>;
|
182
|
-
cache:
|
182
|
+
cache: boolean;
|
183
183
|
deepAutoOpen?: string;
|
184
184
|
}>;
|
185
185
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -263,15 +263,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
263
263
|
default: boolean | (() => import("./props").IIntersectionObserver);
|
264
264
|
};
|
265
265
|
}>> & {
|
266
|
+
onNodeChecked?: (...args: any[]) => any;
|
266
267
|
onNodeClick?: (...args: any[]) => any;
|
267
268
|
onNodeCollapse?: (...args: any[]) => any;
|
268
|
-
onNodeExpand?: (...args: any[]) => any;
|
269
|
-
onNodeChecked?: (...args: any[]) => any;
|
270
|
-
onNodeDragStart?: (...args: any[]) => any;
|
271
|
-
onNodeDragOver?: (...args: any[]) => any;
|
272
269
|
onNodeDragLeave?: (...args: any[]) => any;
|
270
|
+
onNodeDragOver?: (...args: any[]) => any;
|
271
|
+
onNodeDragStart?: (...args: any[]) => any;
|
273
272
|
onNodeDrop?: (...args: any[]) => any;
|
274
273
|
onNodeEnterView?: (...args: any[]) => any;
|
274
|
+
onNodeExpand?: (...args: any[]) => any;
|
275
275
|
}, {
|
276
276
|
data: any[];
|
277
277
|
height: number;
|
package/lib/tree/use-empty.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
declare const _default: (props: any) => {
|
2
|
-
renderEmpty: (type: '
|
2
|
+
renderEmpty: (type: '403' | '404' | '500' | 'building' | 'empty' | 'login' | 'search-empty') => JSX.Element;
|
3
3
|
};
|
4
4
|
export default _default;
|
@@ -8,7 +8,7 @@ declare const _default: (props: TreePropTypes, ctx: any, flatData: IFlatData, _r
|
|
8
8
|
setNodeAction: (args: any | any[], action: string, value: any) => void;
|
9
9
|
setNodeOpened: (item: any, isOpen?: any, e?: MouseEvent, fireEmit?: boolean) => void;
|
10
10
|
setSelect: (nodes: any, selected?: boolean, autoOpen?: boolean) => void;
|
11
|
-
setOpen: (item: any
|
12
|
-
setNodeAttribute: (node: any, attrName: string | string[], value:
|
11
|
+
setOpen: (item: any | any[], isOpen?: boolean, autoOpenParents?: boolean) => void;
|
12
|
+
setNodeAttribute: (node: any, attrName: string | string[], value: (boolean | number | string)[] | boolean | number | string, loopParent?: boolean) => void;
|
13
13
|
};
|
14
14
|
export default _default;
|
package/lib/tree/use-search.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SearchOption, TreePropTypes } from './props';
|
2
2
|
declare const _default: (props: TreePropTypes) => {
|
3
|
-
searchFn: (itemValue:
|
3
|
+
searchFn: (itemValue: number | string, item: any) => any;
|
4
4
|
refSearch: import("vue").Ref<string | number | boolean | SearchOption>;
|
5
5
|
isSearchActive: import("vue").ComputedRef<boolean>;
|
6
6
|
isSearchDisabled: boolean;
|
package/lib/upload/index.js
CHANGED
@@ -1294,10 +1294,10 @@ var EThemes;
|
|
1294
1294
|
})(EThemes || (EThemes = {}));
|
1295
1295
|
var EUploadStatus;
|
1296
1296
|
(function (EUploadStatus) {
|
1297
|
+
EUploadStatus["FAIL"] = "fail";
|
1297
1298
|
EUploadStatus["NEW"] = "new";
|
1298
|
-
EUploadStatus["UPLOADING"] = "uploading";
|
1299
1299
|
EUploadStatus["SUCCESS"] = "success";
|
1300
|
-
EUploadStatus["
|
1300
|
+
EUploadStatus["UPLOADING"] = "uploading";
|
1301
1301
|
})(EUploadStatus || (EUploadStatus = {}));
|
1302
1302
|
;// CONCATENATED MODULE: ../../packages/upload/src/props.ts
|
1303
1303
|
/*
|
@@ -1634,19 +1634,19 @@ function _isSlot(s) {
|
|
1634
1634
|
};
|
1635
1635
|
var PhotoItem = function PhotoItem(file) {
|
1636
1636
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("img", {
|
1637
|
-
"src": file.url,
|
1638
1637
|
"class": "".concat(classBlock, "__picture-item-thumbnail"),
|
1639
|
-
"alt": ""
|
1638
|
+
"alt": "",
|
1639
|
+
"src": file.url
|
1640
1640
|
}, null), [[external_vue_namespaceObject.vShow, file.status !== 'uploading']]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [file.status === 'uploading' && (0,external_vue_namespaceObject.createVNode)(progress_namespaceObject["default"], {
|
1641
|
+
"width": 50,
|
1641
1642
|
"class": "".concat(classBlock, "__picture-item-progress"),
|
1642
|
-
"type": "circle",
|
1643
|
-
"color": "#3a84ff",
|
1644
1643
|
"bgColor": "#333",
|
1645
|
-
"
|
1644
|
+
"color": "#3a84ff",
|
1645
|
+
"percent": file.percentage,
|
1646
1646
|
"titleStyle": {
|
1647
1647
|
color: '#fff'
|
1648
1648
|
},
|
1649
|
-
"
|
1649
|
+
"type": "circle"
|
1650
1650
|
}, null)]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [!disabled.value && (0,external_vue_namespaceObject.createVNode)("div", {
|
1651
1651
|
"class": "".concat(classBlock, "__picture-item-actions")
|
1652
1652
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Del, {
|
@@ -1700,9 +1700,9 @@ function _isSlot(s) {
|
|
1700
1700
|
return [(0,external_vue_namespaceObject.createVNode)("div", {
|
1701
1701
|
"class": "".concat(classBlock, "__item-icon")
|
1702
1702
|
}, [file.isPic ? (0,external_vue_namespaceObject.createVNode)("img", {
|
1703
|
-
"src": file.url,
|
1704
1703
|
"class": "".concat(classBlock, "__item-thumbnail"),
|
1705
|
-
"alt": ""
|
1704
|
+
"alt": "",
|
1705
|
+
"src": file.url
|
1706
1706
|
}, null) : FileIcon(file)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
1707
1707
|
"class": "".concat(classBlock, "__item-summary")
|
1708
1708
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1715,8 +1715,8 @@ function _isSlot(s) {
|
|
1715
1715
|
"class": "".concat(classBlock, "__item-message-success-icon")
|
1716
1716
|
}, null), file.statusText || t.value.uploadSuccess]), file.status === 'fail' && (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [file.statusText || t.value.uploadFailed])]), file.status === 'uploading' && (0,external_vue_namespaceObject.createVNode)(progress_namespaceObject["default"], {
|
1717
1717
|
"class": "".concat(classBlock, "__item-progress"),
|
1718
|
-
"showText": false,
|
1719
1718
|
"percent": file.percentage,
|
1719
|
+
"showText": false,
|
1720
1720
|
"size": "small"
|
1721
1721
|
}, null), file.status !== 'fail' && (0,external_vue_namespaceObject.createVNode)("div", {
|
1722
1722
|
"class": "".concat(classBlock, "__item-speed")
|
@@ -1895,9 +1895,9 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1895
1895
|
var classNames = (0,shared_namespaceObject.classes)(_defineProperty({}, "".concat(classBlock, "__draggable"), true));
|
1896
1896
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1897
1897
|
"class": classNames,
|
1898
|
-
"
|
1898
|
+
"onDragleave": handleDragleave,
|
1899
1899
|
"onDragover": handleDragover,
|
1900
|
-
"
|
1900
|
+
"onDrop": handleDrop
|
1901
1901
|
}, [slots["default"] ? slots["default"]() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Upload, {
|
1902
1902
|
"class": "".concat(classBlock, "__draggable-icon")
|
1903
1903
|
}, null), (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1920,19 +1920,19 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1920
1920
|
};
|
1921
1921
|
var SinglePicture = function SinglePicture(file) {
|
1922
1922
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("img", {
|
1923
|
-
"src": file.url,
|
1924
1923
|
"class": "".concat(classBlock, "__picture-thumbnail"),
|
1925
|
-
"alt": ""
|
1924
|
+
"alt": "",
|
1925
|
+
"src": file.url
|
1926
1926
|
}, null), [[external_vue_namespaceObject.vShow, file.status !== 'uploading']]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [file.status === 'uploading' && (0,external_vue_namespaceObject.createVNode)(progress_namespaceObject["default"], {
|
1927
|
+
"width": 50,
|
1927
1928
|
"class": "".concat(classBlock, "__picture-progress"),
|
1928
|
-
"type": "circle",
|
1929
|
-
"color": "#3a84ff",
|
1930
1929
|
"bgColor": "#333",
|
1931
|
-
"
|
1930
|
+
"color": "#3a84ff",
|
1931
|
+
"percent": file.percentage,
|
1932
1932
|
"titleStyle": {
|
1933
1933
|
color: '#fff'
|
1934
1934
|
},
|
1935
|
-
"
|
1935
|
+
"type": "circle"
|
1936
1936
|
}, null)]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [!props.disabled && (0,external_vue_namespaceObject.createVNode)("div", {
|
1937
1937
|
"class": "".concat(classBlock, "__picture-actions")
|
1938
1938
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Del, {
|
@@ -1970,12 +1970,12 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1970
1970
|
}, [slots.trigger ? [slots.trigger(), slots === null || slots === void 0 || (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)] : Trigger(), (0,external_vue_namespaceObject.createVNode)("input", {
|
1971
1971
|
"ref": inputEl,
|
1972
1972
|
"class": "".concat(classBlock, "__input-file"),
|
1973
|
-
"tabindex": "-1",
|
1974
|
-
"onChange": handleFileChange,
|
1975
1973
|
"accept": acceptTypes.value,
|
1976
|
-
"multiple": multiple.value,
|
1977
1974
|
"disabled": disabled.value,
|
1978
|
-
"
|
1975
|
+
"multiple": multiple.value,
|
1976
|
+
"tabindex": "-1",
|
1977
|
+
"type": "file",
|
1978
|
+
"onChange": handleFileChange
|
1979
1979
|
}, null)]);
|
1980
1980
|
};
|
1981
1981
|
}
|
@@ -2193,7 +2193,6 @@ var ajaxSliceUpload = /*#__PURE__*/function () {
|
|
2193
2193
|
// 请求分片上传,保存在progressList中
|
2194
2194
|
var sliceSend = function sliceSend(option, file, blockCount, hash, progressList, chunkSize) {
|
2195
2195
|
var _loop = function _loop(i) {
|
2196
|
-
// eslint-disable-next-line no-loop-func
|
2197
2196
|
var pooltask = new Promise(function (resolve, reject) {
|
2198
2197
|
var start = i * chunkSize;
|
2199
2198
|
var end = Math.min(file.size, start + chunkSize);
|
@@ -2829,10 +2828,10 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2829
2828
|
}), slots), slots.tip ? slots.tip() : props.tip && (0,external_vue_namespaceObject.createVNode)("div", {
|
2830
2829
|
"class": "".concat(resolveClassName(CLASS_PREFIX), "__tip")
|
2831
2830
|
}, [props.tip]), (0,external_vue_namespaceObject.createVNode)(upload_list, {
|
2832
|
-
"files": fileList.value,
|
2833
|
-
"theme": props.theme,
|
2834
2831
|
"disabled": props.disabled,
|
2832
|
+
"files": fileList.value,
|
2835
2833
|
"multiple": props.multiple,
|
2834
|
+
"theme": props.theme,
|
2836
2835
|
"onRemove": handleRemove,
|
2837
2836
|
"onRetry": handleRetry
|
2838
2837
|
}, {
|
package/lib/upload/props.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { PropType } from 'vue';
|
2
1
|
import { APIResponse, EThemes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
|
2
|
+
import type { PropType } from 'vue';
|
3
3
|
declare const _default: {
|
4
4
|
theme: {
|
5
5
|
type: PropType<"button" | "picture" | "draggable">;
|
@@ -8,21 +8,21 @@ export declare const enum EThemes {
|
|
8
8
|
}
|
9
9
|
export type Theme = Lowercase<keyof typeof EThemes>;
|
10
10
|
export declare const enum EUploadStatus {
|
11
|
+
FAIL = "fail",
|
11
12
|
NEW = "new",
|
12
|
-
UPLOADING = "uploading",
|
13
13
|
SUCCESS = "success",
|
14
|
-
|
14
|
+
UPLOADING = "uploading"
|
15
15
|
}
|
16
16
|
export type UploadStatus = Lowercase<keyof typeof EUploadStatus>;
|
17
17
|
export type FormDataAttr = {
|
18
18
|
name: string;
|
19
|
-
value:
|
19
|
+
value: [Blob | string, string] | Blob | string;
|
20
20
|
};
|
21
21
|
export type HeaderDataAttr = {
|
22
22
|
name: string;
|
23
23
|
value: string;
|
24
24
|
};
|
25
|
-
export type ExtraFormData = Record<string,
|
25
|
+
export type ExtraFormData = Record<string, [Blob | string, string] | Blob | string>;
|
26
26
|
export type UploadFiles = UploadFile[];
|
27
27
|
export type UploadFile = {
|
28
28
|
name: string;
|
@@ -60,7 +60,7 @@ export interface UploadRequestOptions {
|
|
60
60
|
formDataAttributes?: FormDataAttr | FormDataAttr[];
|
61
61
|
filename: string;
|
62
62
|
file: File;
|
63
|
-
headers?: Headers | Record<string,
|
63
|
+
headers?: Headers | Record<string, null | number | string | undefined>;
|
64
64
|
header?: HeaderDataAttr | HeaderDataAttr[];
|
65
65
|
withCredentials: boolean;
|
66
66
|
sliceUrl: string;
|
@@ -71,7 +71,7 @@ export interface UploadRequestOptions {
|
|
71
71
|
onSuccess: (res: SuccessResponse) => void;
|
72
72
|
onComplete: () => void;
|
73
73
|
}
|
74
|
-
export type UploadRequestHandler = (options: UploadRequestOptions) =>
|
74
|
+
export type UploadRequestHandler = (options: UploadRequestOptions) => Promise<unknown> | XMLHttpRequest;
|
75
75
|
export type HookHandler = (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
76
76
|
export interface UploadHanderHooks {
|
77
77
|
onRemove: HookHandler;
|
@@ -2,7 +2,7 @@ import { SuccessResponse, UploadFile, UploadHanderHooks, UploadProgressEvent, Up
|
|
2
2
|
declare const _default: (props: UploadProps, hooks: UploadHanderHooks) => {
|
3
3
|
fileList: import("vue").Ref<{
|
4
4
|
name: string;
|
5
|
-
status: "success" | "
|
5
|
+
status: "success" | "fail" | "new" | "uploading";
|
6
6
|
statusText?: string;
|
7
7
|
percentage?: number;
|
8
8
|
response?: unknown;
|
package/package.json
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "2.0.1-beta.
|
4
|
-
"workspaces":
|
5
|
-
"packages"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
]
|
10
|
-
},
|
3
|
+
"version": "2.0.1-beta.13",
|
4
|
+
"workspaces": [
|
5
|
+
"packages/**",
|
6
|
+
"scripts/cli",
|
7
|
+
"site"
|
8
|
+
],
|
11
9
|
"files": [
|
12
10
|
"lib",
|
13
11
|
"dist"
|
@@ -17,9 +15,6 @@
|
|
17
15
|
"*.css",
|
18
16
|
"*.less"
|
19
17
|
],
|
20
|
-
"engines": {
|
21
|
-
"node": ">=14.0.0"
|
22
|
-
},
|
23
18
|
"publishConfig": {
|
24
19
|
"access": "public",
|
25
20
|
"registry": "https://registry.npmjs.org/",
|
@@ -41,16 +36,11 @@
|
|
41
36
|
"analyze:lib": "rimraf lib && lerna run --stream --scope cli lib -- -a",
|
42
37
|
"generate:icon": "lerna run --scope @bkui-vue/icon build",
|
43
38
|
"changelog": "conventional-changelog -c .changelog.config.js -p angular -i CHANGELOG.md -s -l",
|
44
|
-
"lint:packages": "eslint ./packages
|
45
|
-
"lint:site": "eslint ./site
|
46
|
-
"lint:scripts": "eslint ./scripts
|
39
|
+
"lint:packages": "npx eslint --fix ./packages",
|
40
|
+
"lint:site": "npx eslint --fix ./site",
|
41
|
+
"lint:scripts": "npx eslint --fix ./scripts",
|
47
42
|
"lint": "run-p lint:site lint:packages lint:scripts",
|
48
|
-
"
|
49
|
-
"fix:site": "eslint ./site --ext .js,.ts,.tsx,.vue --fix --cache",
|
50
|
-
"fix:scripts": "eslint ./scripts --ext .js,.ts,.tsx --fix --cache",
|
51
|
-
"lint:fix": "run-p lint:site lint:packages lint:scripts",
|
52
|
-
"stylelint": "stylelint ./{packages,site}/**/*.{vue,less} --custom-syntax",
|
53
|
-
"stylelint:fix": "stylelint --fix ./{packages,site}/**/*.{vue,less} --custom-syntax",
|
43
|
+
"stylelint": "stylelint --fix ./{packages,site}/**/*.{vue,less} --custom-syntax",
|
54
44
|
"test:unit": "jest --passWithNoTests --config=./jest.config.js",
|
55
45
|
"test:alert": "lerna run --scope @bkui-vue/alert test",
|
56
46
|
"cz": "git-cz"
|
@@ -60,17 +50,14 @@
|
|
60
50
|
"@babel/plugin-transform-runtime": "~7.22.9",
|
61
51
|
"@babel/preset-env": "~7.22.9",
|
62
52
|
"@babel/preset-typescript": "~7.22.5",
|
53
|
+
"@blueking/bkui-lint": "0.0.3",
|
63
54
|
"@commitlint/cli": "~16.2.3",
|
64
55
|
"@commitlint/config-conventional": "~16.2.1",
|
65
56
|
"@types/jest": "~29.5.3",
|
66
57
|
"@types/lodash": "~4.14.196",
|
67
58
|
"@types/node": "~20.4.5",
|
68
59
|
"@types/postcss-less": "~4.0.2",
|
69
|
-
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
70
|
-
"@typescript-eslint/parser": "^5.20.0",
|
71
60
|
"@vue/babel-plugin-jsx": "~1.1.5",
|
72
|
-
"@vue/eslint-config-standard": "~6.1.0",
|
73
|
-
"@vue/eslint-config-typescript": "~10.0.0",
|
74
61
|
"@vue/test-utils": "~2.4.1",
|
75
62
|
"@vue/vue3-jest": "~29.2.4",
|
76
63
|
"babel-jest": "~29.6.2",
|
@@ -80,14 +67,6 @@
|
|
80
67
|
"cross-env": "~7.0.3",
|
81
68
|
"css-loader": "~6.8.1",
|
82
69
|
"cz-lerna-changelog": "~2.0.3",
|
83
|
-
"eslint": "8.26.0",
|
84
|
-
"eslint-config-prettier": "^9.0.0",
|
85
|
-
"eslint-config-tencent": "~1.0.4",
|
86
|
-
"eslint-plugin-codecc": "~0.3.0",
|
87
|
-
"eslint-plugin-import": "~2.28.0",
|
88
|
-
"eslint-plugin-prettier": "~5.0.0",
|
89
|
-
"eslint-plugin-simple-import-sort": "~10.0.0",
|
90
|
-
"eslint-plugin-vue": "~9.17.0",
|
91
70
|
"highlight.js": "~11.8.0",
|
92
71
|
"husky": "~7.0.1",
|
93
72
|
"jest": "~29.6.2",
|
@@ -101,24 +80,14 @@
|
|
101
80
|
"npm-run-all": "~4.1.5",
|
102
81
|
"plop": "~3.1.2",
|
103
82
|
"postcss": "~8.4.27",
|
104
|
-
"postcss-html": "~1.5.0",
|
105
|
-
"postcss-less": "~6.0.0",
|
106
|
-
"prettier": "~3.0.3",
|
107
83
|
"prismjs": "~1.29.0",
|
108
84
|
"resize-observer-polyfill": "~1.5.1",
|
109
85
|
"rimraf": "~5.0.1",
|
110
|
-
"stylelint": "^15.10.3",
|
111
|
-
"stylelint-config-recess-order": "^4.3.0",
|
112
|
-
"stylelint-config-recommended-vue": "1.5.0",
|
113
|
-
"stylelint-config-standard": "^34.0.0",
|
114
|
-
"stylelint-order": "^6.0.3",
|
115
|
-
"stylelint-scss": "^5.1.0",
|
116
86
|
"ts-jest": "~29.1.1",
|
117
87
|
"ts-node": "~10.9.1",
|
118
88
|
"typescript": "~4.9.5",
|
119
89
|
"uuid": "~9.0.1",
|
120
90
|
"vue": "~3.3.4",
|
121
|
-
"vue-eslint-parser": "~9.3.1",
|
122
91
|
"vue-types": "~4.1.1"
|
123
92
|
},
|
124
93
|
"peerDependencies": {
|
@@ -128,21 +97,14 @@
|
|
128
97
|
"module": "lib/index.js",
|
129
98
|
"typings": "lib/index.d.ts",
|
130
99
|
"lint-staged": {
|
131
|
-
"
|
132
|
-
"
|
133
|
-
"git add"
|
134
|
-
],
|
135
|
-
"site/**/*.(vue|ts|tsx|js)": [
|
136
|
-
"eslint ./site --ext .js,.tsx,.ts,.vue --cache --fix --ignore-pattern site/dist/",
|
137
|
-
"git add"
|
100
|
+
"*.{js,json}": [
|
101
|
+
"npx prettier --write"
|
138
102
|
],
|
139
|
-
"
|
140
|
-
"eslint
|
141
|
-
"git add"
|
103
|
+
"*.{ts?(x)}": [
|
104
|
+
"npx eslint --fix --color"
|
142
105
|
],
|
143
|
-
"*.
|
144
|
-
"
|
145
|
-
"git add"
|
106
|
+
"*.vue": [
|
107
|
+
"npx eslint --fix --color"
|
146
108
|
]
|
147
109
|
},
|
148
110
|
"config": {
|