bkui-vue 2.0.1-beta.10 → 2.0.1-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +165 -165
- package/dist/index.esm.js +28601 -28591
- 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 +32 -31
- 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 +188 -189
- 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 +2 -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 +3 -3
- package/lib/index.js +3 -3
- 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 +1 -0
- 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 +11 -61
- 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 +19 -18
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +11 -10
- 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 +19 -18
- 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/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 +8 -7
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +1 -0
- 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 +73 -69
- 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 +46 -38
- 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 +23 -21
- 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 +87 -27
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +244 -194
- package/lib/table/index.js +129 -126
- 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 +129 -9
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +172 -42
- 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 +5 -3
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +41 -37
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +8 -14
- 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 +26 -25
- 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 +49 -13
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";
|
17458
17457
|
EVENTS["NODE_CLICK"] = "nodeClick";
|
17459
17458
|
EVENTS["NODE_COLLAPSE"] = "nodeCollapse";
|
17460
|
-
EVENTS["
|
17461
|
-
EVENTS["
|
17459
|
+
EVENTS["NODE_EXPAND"] = "nodeExpand";
|
17460
|
+
EVENTS["NODE_CHECKED"] = "nodeChecked";
|
17462
17461
|
EVENTS["NODE_DRAG_START"] = "nodeDragStart";
|
17462
|
+
EVENTS["NODE_DRAG_OVER"] = "nodeDragOver";
|
17463
|
+
EVENTS["NODE_DRAG_LEAVE"] = "nodeDragLeave";
|
17463
17464
|
EVENTS["NODE_DROP"] = "nodeDrop";
|
17464
17465
|
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["HAS_CHILD"] = "__has_child";
|
17479
17478
|
NODE_ATTRIBUTES["INDEX"] = "__index";
|
17480
|
-
NODE_ATTRIBUTES["
|
17481
|
-
NODE_ATTRIBUTES["
|
17482
|
-
NODE_ATTRIBUTES["
|
17479
|
+
NODE_ATTRIBUTES["UUID"] = "__uuid";
|
17480
|
+
NODE_ATTRIBUTES["PARENT"] = "__parent";
|
17481
|
+
NODE_ATTRIBUTES["HAS_CHILD"] = "__has_child";
|
17482
|
+
NODE_ATTRIBUTES["PATH"] = "__path";
|
17483
|
+
NODE_ATTRIBUTES["IS_ROOT"] = "__is_root";
|
17484
|
+
NODE_ATTRIBUTES["ORDER"] = "__order";
|
17485
|
+
NODE_ATTRIBUTES["IS_OPEN"] = "__is_open";
|
17483
17486
|
NODE_ATTRIBUTES["IS_CHECKED"] = "__is_checked";
|
17484
|
-
NODE_ATTRIBUTES["
|
17485
|
-
NODE_ATTRIBUTES["
|
17487
|
+
NODE_ATTRIBUTES["IS_SELECTED"] = "__is_selected";
|
17488
|
+
NODE_ATTRIBUTES["IS_ASYNC_INIT"] = "__is_async_init";
|
17486
17489
|
NODE_ATTRIBUTES["IS_MATCH"] = "__is_match";
|
17487
17490
|
NODE_ATTRIBUTES["IS_NULL"] = "__IS_NULL";
|
17488
|
-
NODE_ATTRIBUTES["
|
17489
|
-
NODE_ATTRIBUTES["
|
17490
|
-
NODE_ATTRIBUTES["
|
17491
|
-
NODE_ATTRIBUTES["ORDER"] = "__order";
|
17492
|
-
NODE_ATTRIBUTES["PARENT"] = "__parent";
|
17493
|
-
NODE_ATTRIBUTES["PATH"] = "__path";
|
17491
|
+
NODE_ATTRIBUTES["IS_CACHED"] = "__is_cached";
|
17492
|
+
NODE_ATTRIBUTES["IS_ASYNC"] = "__is_async";
|
17493
|
+
NODE_ATTRIBUTES["IS_LOADING"] = "__is_loading";
|
17494
17494
|
NODE_ATTRIBUTES["TREE_NODE_ATTR"] = "__attr__";
|
17495
|
-
NODE_ATTRIBUTES["
|
17495
|
+
NODE_ATTRIBUTES["IS_INDETERMINATE"] = "__is_indeterminate";
|
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["COLLAPSE"] = "collapse";
|
17505
|
-
NodeContentActionEnum["EXPAND"] = "expand";
|
17506
17504
|
NodeContentActionEnum["SELECTED"] = "selected";
|
17505
|
+
NodeContentActionEnum["EXPAND"] = "expand";
|
17506
|
+
NodeContentActionEnum["COLLAPSE"] = "collapse";
|
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["EVERY"] = "every";
|
17519
17518
|
ColumnTypeEnum["ONCE"] = "once";
|
17519
|
+
ColumnTypeEnum["EVERY"] = "every";
|
17520
17520
|
})(ColumnTypeEnum || (ColumnTypeEnum = {}));
|
17521
17521
|
var TreeSearchMatchEnum;
|
17522
17522
|
(function (TreeSearchMatchEnum) {
|
17523
|
-
TreeSearchMatchEnum["FULL"] = "full";
|
17524
17523
|
TreeSearchMatchEnum["FUZZY"] = "fuzzy";
|
17524
|
+
TreeSearchMatchEnum["FULL"] = "full";
|
17525
17525
|
})(TreeSearchMatchEnum || (TreeSearchMatchEnum = {}));
|
17526
17526
|
var TreeSearchResultEnum;
|
17527
17527
|
(function (TreeSearchResultEnum) {
|
17528
|
-
TreeSearchResultEnum["LIST"] = "list";
|
17529
17528
|
TreeSearchResultEnum["TREE"] = "tree";
|
17529
|
+
TreeSearchResultEnum["LIST"] = "list";
|
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
|
-
"indeterminate": isIndeterminate(item),
|
18741
|
-
"modelValue": isNodeChecked(item),
|
18742
18740
|
"size": "small",
|
18741
|
+
"modelValue": isNodeChecked(item),
|
18742
|
+
"indeterminate": isIndeterminate(item),
|
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
|
+
"class": "node-virtual-line",
|
19008
|
+
"style": getNodeLineStyle(maxDeep - index)
|
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),
|
19042
19043
|
"key": getNodeId(item),
|
19043
|
-
"class": getNodeRowClass(item, flatData.schema)
|
19044
|
-
"data-tree-node": getNodeId(item)
|
19044
|
+
"class": getNodeRowClass(item, flatData.schema)
|
19045
19045
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
19046
|
-
"style": getNodeItemStyle(item, props, flatData, showTree),
|
19047
19046
|
"class": getNodeItemClass(item, flatData.schema, props, showTree),
|
19047
|
+
"style": getNodeItemStyle(item, props, flatData, showTree),
|
19048
19048
|
"onClick": function onClick(e) {
|
19049
19049
|
return handleNodeContentClick(item, e);
|
19050
19050
|
}
|
@@ -19881,6 +19881,8 @@ var use_tree_init_this = undefined;
|
|
19881
19881
|
hasChildNode = _useNodeAttribute.hasChildNode,
|
19882
19882
|
getNodePath = _useNodeAttribute.getNodePath,
|
19883
19883
|
getNodeId = _useNodeAttribute.getNodeId,
|
19884
|
+
getNodeAttr = _useNodeAttribute.getNodeAttr,
|
19885
|
+
getParentNode = _useNodeAttribute.getParentNode,
|
19884
19886
|
getIntersectionResponse = _useNodeAttribute.getIntersectionResponse;
|
19885
19887
|
var _useSearch = use_search(props),
|
19886
19888
|
searchFn = _useSearch.searchFn,
|
@@ -20022,7 +20024,9 @@ var use_tree_init_this = undefined;
|
|
20022
20024
|
scrollToTop: scrollToTop,
|
20023
20025
|
asyncNodeClick: asyncNodeClick,
|
20024
20026
|
getData: getData,
|
20025
|
-
reset: reset
|
20027
|
+
reset: reset,
|
20028
|
+
getNodeAttr: getNodeAttr,
|
20029
|
+
getParentNode: getParentNode
|
20026
20030
|
});
|
20027
20031
|
var _useEmpty = use_empty(props),
|
20028
20032
|
renderEmpty = _useEmpty.renderEmpty;
|
@@ -20068,18 +20072,18 @@ var use_tree_init_this = undefined;
|
|
20068
20072
|
resolveClassName = _usePrefix.resolveClassName;
|
20069
20073
|
return function () {
|
20070
20074
|
return (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
20071
|
-
"
|
20075
|
+
"class": resolveClassName('tree'),
|
20072
20076
|
"style": getTreeStyle(null, props),
|
20077
|
+
"list": renderData.value,
|
20078
|
+
"lineHeight": props.lineHeight,
|
20073
20079
|
"height": props.height,
|
20074
|
-
"class": resolveClassName('tree'),
|
20075
|
-
"contentClassName": resolveClassName('container'),
|
20076
20080
|
"enabled": props.virtualRender,
|
20077
|
-
"keepAlive": true,
|
20078
|
-
"lineHeight": props.lineHeight,
|
20079
|
-
"list": renderData.value,
|
20080
20081
|
"rowKey": NODE_ATTRIBUTES.UUID,
|
20082
|
+
"keepAlive": true,
|
20083
|
+
"contentClassName": resolveClassName('container'),
|
20081
20084
|
"throttleDelay": 0,
|
20082
|
-
"onContentScroll": handleContentScroll
|
20085
|
+
"onContentScroll": handleContentScroll,
|
20086
|
+
"ref": root
|
20083
20087
|
}, {
|
20084
20088
|
"default": function _default(scoped) {
|
20085
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
|
+
FUZZY = "fuzzy",
|
4
|
+
FULL = "full"
|
5
5
|
}
|
6
6
|
declare enum TreeSearchResultEnum {
|
7
|
-
|
8
|
-
|
7
|
+
TREE = "tree",
|
8
|
+
LIST = "list"
|
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: string | number | boolean;
|
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> & {
|
@@ -60,10 +60,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
60
|
default: string;
|
61
61
|
} & {
|
62
62
|
default: string;
|
63
|
-
};
|
64
|
-
* 将制定元素滚动到顶部
|
65
|
-
* @param option
|
66
|
-
*/
|
63
|
+
};
|
67
64
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
68
65
|
default: boolean;
|
69
66
|
} & {
|
@@ -182,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
182
179
|
};
|
183
180
|
async: import("vue-types").VueTypeShape<{
|
184
181
|
callback: (item: any, cb: any) => Promise<any>;
|
185
|
-
cache:
|
182
|
+
cache: Boolean;
|
186
183
|
deepAutoOpen?: string;
|
187
184
|
}>;
|
188
185
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -197,10 +194,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
197
194
|
default: string;
|
198
195
|
} & {
|
199
196
|
default: string;
|
200
|
-
};
|
201
|
-
* 将制定元素滚动到顶部
|
202
|
-
* @param option
|
203
|
-
*/
|
197
|
+
};
|
204
198
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
205
199
|
default: boolean;
|
206
200
|
} & {
|
@@ -269,15 +263,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
269
263
|
default: boolean | (() => import("./props").IIntersectionObserver);
|
270
264
|
};
|
271
265
|
}>> & {
|
272
|
-
onNodeChecked?: (...args: any[]) => any;
|
273
266
|
onNodeClick?: (...args: any[]) => any;
|
274
267
|
onNodeCollapse?: (...args: any[]) => any;
|
275
|
-
|
276
|
-
|
268
|
+
onNodeExpand?: (...args: any[]) => any;
|
269
|
+
onNodeChecked?: (...args: any[]) => any;
|
277
270
|
onNodeDragStart?: (...args: any[]) => any;
|
271
|
+
onNodeDragOver?: (...args: any[]) => any;
|
272
|
+
onNodeDragLeave?: (...args: any[]) => any;
|
278
273
|
onNodeDrop?: (...args: any[]) => any;
|
279
274
|
onNodeEnterView?: (...args: any[]) => any;
|
280
|
-
onNodeExpand?: (...args: any[]) => any;
|
281
275
|
}, {
|
282
276
|
data: any[];
|
283
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: '404' | '403' | '500' | 'building' | 'empty' | 'search-empty' | 'login') => 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 | 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: string | number | boolean | (string | number | boolean)[], 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: string | number, 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";
|
1298
1297
|
EUploadStatus["NEW"] = "new";
|
1299
|
-
EUploadStatus["SUCCESS"] = "success";
|
1300
1298
|
EUploadStatus["UPLOADING"] = "uploading";
|
1299
|
+
EUploadStatus["SUCCESS"] = "success";
|
1300
|
+
EUploadStatus["FAIL"] = "fail";
|
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,
|
1637
1638
|
"class": "".concat(classBlock, "__picture-item-thumbnail"),
|
1638
|
-
"alt": ""
|
1639
|
-
"src": file.url
|
1639
|
+
"alt": ""
|
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,
|
1642
1641
|
"class": "".concat(classBlock, "__picture-item-progress"),
|
1643
|
-
"
|
1642
|
+
"type": "circle",
|
1644
1643
|
"color": "#3a84ff",
|
1645
|
-
"
|
1644
|
+
"bgColor": "#333",
|
1645
|
+
"width": 50,
|
1646
1646
|
"titleStyle": {
|
1647
1647
|
color: '#fff'
|
1648
1648
|
},
|
1649
|
-
"
|
1649
|
+
"percent": file.percentage
|
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,
|
1703
1704
|
"class": "".concat(classBlock, "__item-thumbnail"),
|
1704
|
-
"alt": ""
|
1705
|
-
"src": file.url
|
1705
|
+
"alt": ""
|
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
|
-
"percent": file.percentage,
|
1719
1718
|
"showText": false,
|
1719
|
+
"percent": file.percentage,
|
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
|
+
"onDrop": handleDrop,
|
1899
1899
|
"onDragover": handleDragover,
|
1900
|
-
"
|
1900
|
+
"onDragleave": handleDragleave
|
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,
|
1923
1924
|
"class": "".concat(classBlock, "__picture-thumbnail"),
|
1924
|
-
"alt": ""
|
1925
|
-
"src": file.url
|
1925
|
+
"alt": ""
|
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,
|
1928
1927
|
"class": "".concat(classBlock, "__picture-progress"),
|
1929
|
-
"
|
1928
|
+
"type": "circle",
|
1930
1929
|
"color": "#3a84ff",
|
1931
|
-
"
|
1930
|
+
"bgColor": "#333",
|
1931
|
+
"width": 50,
|
1932
1932
|
"titleStyle": {
|
1933
1933
|
color: '#fff'
|
1934
1934
|
},
|
1935
|
-
"
|
1935
|
+
"percent": file.percentage
|
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,
|
1973
1975
|
"accept": acceptTypes.value,
|
1974
|
-
"disabled": disabled.value,
|
1975
1976
|
"multiple": multiple.value,
|
1976
|
-
"
|
1977
|
-
"type": "file"
|
1978
|
-
"onChange": handleFileChange
|
1977
|
+
"disabled": disabled.value,
|
1978
|
+
"type": "file"
|
1979
1979
|
}, null)]);
|
1980
1980
|
};
|
1981
1981
|
}
|
@@ -2193,6 +2193,7 @@ 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
|
2196
2197
|
var pooltask = new Promise(function (resolve, reject) {
|
2197
2198
|
var start = i * chunkSize;
|
2198
2199
|
var end = Math.min(file.size, start + chunkSize);
|
@@ -2828,10 +2829,10 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2828
2829
|
}), slots), slots.tip ? slots.tip() : props.tip && (0,external_vue_namespaceObject.createVNode)("div", {
|
2829
2830
|
"class": "".concat(resolveClassName(CLASS_PREFIX), "__tip")
|
2830
2831
|
}, [props.tip]), (0,external_vue_namespaceObject.createVNode)(upload_list, {
|
2831
|
-
"disabled": props.disabled,
|
2832
2832
|
"files": fileList.value,
|
2833
|
-
"multiple": props.multiple,
|
2834
2833
|
"theme": props.theme,
|
2834
|
+
"disabled": props.disabled,
|
2835
|
+
"multiple": props.multiple,
|
2835
2836
|
"onRemove": handleRemove,
|
2836
2837
|
"onRetry": handleRetry
|
2837
2838
|
}, {
|
package/lib/upload/props.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { APIResponse, EThemes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
|
2
1
|
import type { PropType } from 'vue';
|
2
|
+
import { APIResponse, EThemes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
|
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",
|
12
11
|
NEW = "new",
|
12
|
+
UPLOADING = "uploading",
|
13
13
|
SUCCESS = "success",
|
14
|
-
|
14
|
+
FAIL = "fail"
|
15
15
|
}
|
16
16
|
export type UploadStatus = Lowercase<keyof typeof EUploadStatus>;
|
17
17
|
export type FormDataAttr = {
|
18
18
|
name: string;
|
19
|
-
value:
|
19
|
+
value: string | Blob | [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, string | Blob | [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, string | number | null | 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) => Promise<unknown
|
74
|
+
export type UploadRequestHandler = (options: UploadRequestOptions) => XMLHttpRequest | Promise<unknown>;
|
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" | "new" | "uploading" | "fail";
|
6
6
|
statusText?: string;
|
7
7
|
percentage?: number;
|
8
8
|
response?: unknown;
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "2.0.1-beta.
|
3
|
+
"version": "2.0.1-beta.12",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
|
-
"packages
|
6
|
+
"packages/!(**.bak)*",
|
7
7
|
"scripts/cli",
|
8
8
|
"site"
|
9
9
|
]
|
@@ -17,6 +17,9 @@
|
|
17
17
|
"*.css",
|
18
18
|
"*.less"
|
19
19
|
],
|
20
|
+
"engines": {
|
21
|
+
"node": ">=14.0.0"
|
22
|
+
},
|
20
23
|
"publishConfig": {
|
21
24
|
"access": "public",
|
22
25
|
"registry": "https://registry.npmjs.org/",
|
@@ -38,11 +41,16 @@
|
|
38
41
|
"analyze:lib": "rimraf lib && lerna run --stream --scope cli lib -- -a",
|
39
42
|
"generate:icon": "lerna run --scope @bkui-vue/icon build",
|
40
43
|
"changelog": "conventional-changelog -c .changelog.config.js -p angular -i CHANGELOG.md -s -l",
|
41
|
-
"lint:packages": "
|
42
|
-
"lint:site": "
|
43
|
-
"lint:scripts": "
|
44
|
+
"lint:packages": "eslint ./packages --ext .js,.ts,.tsx --cache",
|
45
|
+
"lint:site": "eslint ./site --ext .js,.ts,.tsx,.vue --cache",
|
46
|
+
"lint:scripts": "eslint ./scripts --ext .js,.ts,.tsx --cache",
|
44
47
|
"lint": "run-p lint:site lint:packages lint:scripts",
|
45
|
-
"
|
48
|
+
"fix:packages": "eslint ./packages --ext .js,.ts,.tsx --fix --cache",
|
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",
|
46
54
|
"test:unit": "jest --passWithNoTests --config=./jest.config.js",
|
47
55
|
"test:alert": "lerna run --scope @bkui-vue/alert test",
|
48
56
|
"cz": "git-cz"
|
@@ -52,14 +60,17 @@
|
|
52
60
|
"@babel/plugin-transform-runtime": "~7.22.9",
|
53
61
|
"@babel/preset-env": "~7.22.9",
|
54
62
|
"@babel/preset-typescript": "~7.22.5",
|
55
|
-
"@blueking/bkui-lint": "0.0.3",
|
56
63
|
"@commitlint/cli": "~16.2.3",
|
57
64
|
"@commitlint/config-conventional": "~16.2.1",
|
58
65
|
"@types/jest": "~29.5.3",
|
59
66
|
"@types/lodash": "~4.14.196",
|
60
67
|
"@types/node": "~20.4.5",
|
61
68
|
"@types/postcss-less": "~4.0.2",
|
69
|
+
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
70
|
+
"@typescript-eslint/parser": "^5.20.0",
|
62
71
|
"@vue/babel-plugin-jsx": "~1.1.5",
|
72
|
+
"@vue/eslint-config-standard": "~6.1.0",
|
73
|
+
"@vue/eslint-config-typescript": "~10.0.0",
|
63
74
|
"@vue/test-utils": "~2.4.1",
|
64
75
|
"@vue/vue3-jest": "~29.2.4",
|
65
76
|
"babel-jest": "~29.6.2",
|
@@ -69,6 +80,14 @@
|
|
69
80
|
"cross-env": "~7.0.3",
|
70
81
|
"css-loader": "~6.8.1",
|
71
82
|
"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",
|
72
91
|
"highlight.js": "~11.8.0",
|
73
92
|
"husky": "~7.0.1",
|
74
93
|
"jest": "~29.6.2",
|
@@ -82,14 +101,24 @@
|
|
82
101
|
"npm-run-all": "~4.1.5",
|
83
102
|
"plop": "~3.1.2",
|
84
103
|
"postcss": "~8.4.27",
|
104
|
+
"postcss-html": "~1.5.0",
|
105
|
+
"postcss-less": "~6.0.0",
|
106
|
+
"prettier": "~3.0.3",
|
85
107
|
"prismjs": "~1.29.0",
|
86
108
|
"resize-observer-polyfill": "~1.5.1",
|
87
109
|
"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",
|
88
116
|
"ts-jest": "~29.1.1",
|
89
117
|
"ts-node": "~10.9.1",
|
90
118
|
"typescript": "~4.9.5",
|
91
119
|
"uuid": "~9.0.1",
|
92
120
|
"vue": "~3.3.4",
|
121
|
+
"vue-eslint-parser": "~9.3.1",
|
93
122
|
"vue-types": "~4.1.1"
|
94
123
|
},
|
95
124
|
"peerDependencies": {
|
@@ -99,14 +128,21 @@
|
|
99
128
|
"module": "lib/index.js",
|
100
129
|
"typings": "lib/index.d.ts",
|
101
130
|
"lint-staged": {
|
102
|
-
"
|
103
|
-
"
|
131
|
+
"scripts/**/*.(vue|ts|tsx|js)": [
|
132
|
+
"eslint ./scripts --ext .js,.tsx,.ts --cache --fix",
|
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"
|
104
138
|
],
|
105
|
-
"
|
106
|
-
"
|
139
|
+
"packages/**/*.(vue|ts|tsx|js)": [
|
140
|
+
"eslint ./packages --ext .js,.tsx,.ts --cache --fix",
|
141
|
+
"git add"
|
107
142
|
],
|
108
|
-
"*.vue": [
|
109
|
-
"
|
143
|
+
"*.(vue|scss|css|sass|less)": [
|
144
|
+
"stylelint --cache --fix",
|
145
|
+
"git add"
|
110
146
|
]
|
111
147
|
},
|
112
148
|
"config": {
|