bkui-vue 0.0.1-beta.19 → 0.0.1-beta.21

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.
Files changed (77) hide show
  1. package/README.md +7 -3
  2. package/README_EN.md +7 -3
  3. package/dist/bkui-vue.cjs.js +1429 -365
  4. package/dist/bkui-vue.esm.js +1427 -364
  5. package/dist/bkui-vue.umd.js +1429 -365
  6. package/dist/style.css +376 -85
  7. package/lib/button/button.css +9 -0
  8. package/lib/button/button.d.ts +25 -1
  9. package/lib/button/button.less +18 -10
  10. package/lib/button/button.variable.css +9 -0
  11. package/lib/button/index.d.ts +42 -4
  12. package/lib/button/index.js +1 -1
  13. package/lib/code-diff/code-diff.css +114 -0
  14. package/lib/code-diff/code-diff.d.ts +71 -0
  15. package/lib/code-diff/code-diff.less +144 -0
  16. package/lib/code-diff/code-diff.variable.css +207 -0
  17. package/lib/code-diff/index.d.ts +6 -0
  18. package/lib/components.d.ts +1 -0
  19. package/lib/date-picker/date-picker.d.ts +20 -130
  20. package/lib/date-picker/index.js +1 -1
  21. package/lib/date-picker/interface.d.ts +1 -1
  22. package/lib/date-picker/props.d.ts +111 -0
  23. package/lib/directives/clickoutside.d.ts +3 -23
  24. package/lib/directives/index.js +2 -2
  25. package/lib/icon/arrows-right.d.ts +4 -0
  26. package/lib/icon/arrows-right.js +15 -0
  27. package/lib/icon/bk.d.ts +4 -0
  28. package/lib/icon/bk.js +15 -0
  29. package/lib/icon/index.d.ts +4 -0
  30. package/lib/icon/index.js +1 -1
  31. package/lib/icon/qq.d.ts +4 -0
  32. package/lib/icon/qq.js +15 -0
  33. package/lib/icon/weixin.d.ts +4 -0
  34. package/lib/icon/weixin.js +15 -0
  35. package/lib/input/index.d.ts +58 -4
  36. package/lib/input/index.js +2 -2
  37. package/lib/input/input.css +19 -2
  38. package/lib/input/input.d.ts +31 -1
  39. package/lib/input/input.less +25 -3
  40. package/lib/input/input.variable.css +19 -2
  41. package/lib/loading/index.d.ts +31 -9
  42. package/lib/loading/index.js +1 -1
  43. package/lib/loading/loading.css +98 -71
  44. package/lib/loading/loading.d.ts +23 -8
  45. package/lib/loading/loading.less +62 -49
  46. package/lib/loading/loading.variable.css +98 -71
  47. package/lib/shared/index.js +1 -1
  48. package/lib/shared/vue-types.d.ts +4 -0
  49. package/lib/styles/index.d.ts +1 -0
  50. package/lib/styles/index.js +1 -1
  51. package/lib/table/index.d.ts +42 -1
  52. package/lib/table/index.js +1 -1
  53. package/lib/table/props.d.ts +13 -0
  54. package/lib/table/render.d.ts +9 -0
  55. package/lib/table/table.d.ts +19 -0
  56. package/lib/table/utils.d.ts +8 -0
  57. package/lib/tag/index.d.ts +189 -22
  58. package/lib/tag/index.js +1 -1
  59. package/lib/tag/tag.css +91 -0
  60. package/lib/tag/tag.d.ts +83 -7
  61. package/lib/tag/tag.less +103 -2
  62. package/lib/tag/tag.variable.css +91 -0
  63. package/lib/transfer/index.d.ts +27 -0
  64. package/lib/transfer/index.js +1 -0
  65. package/lib/transfer/transfer.css +158 -0
  66. package/lib/transfer/transfer.d.ts +185 -0
  67. package/lib/transfer/transfer.less +171 -0
  68. package/lib/transfer/transfer.variable.css +251 -0
  69. package/lib/tree/index.d.ts +22 -3
  70. package/lib/tree/index.js +1 -1
  71. package/lib/tree/props.d.ts +11 -0
  72. package/lib/tree/tree.css +1 -12
  73. package/lib/tree/tree.d.ts +10 -1
  74. package/lib/tree/tree.less +10 -24
  75. package/lib/tree/tree.variable.css +1 -12
  76. package/lib/tree/util.d.ts +20 -3
  77. package/package.json +8 -4
@@ -5,21 +5,10 @@
5
5
  line-height: var(--lineHeight);
6
6
  cursor: pointer;
7
7
  }
8
- .bk-tree .bk-tree-node.is-open:not(.is-virtual-render)::after {
9
- position: absolute;
10
- top: calc(var(--lineHeight) / 2 + 6px);
11
- left: 6px;
12
- z-index: 1;
13
- width: 0;
14
- height: calc(var(--lines) * var(--lineHeight) - 6px);
15
- pointer-events: none;
16
- border-left: var(--level-line);
17
- content: '';
18
- }
19
8
  .bk-tree .bk-tree-node:not(.is-root) {
20
9
  margin-left: calc(var(--depth)*var(--indent));
21
10
  }
22
- .bk-tree .bk-tree-node:not(.is-root)::before {
11
+ .bk-tree .bk-tree-node:not(.is-root).level-line::before {
23
12
  position: absolute;
24
13
  top: calc(50% + 1px);
25
14
  left: calc(0px - var(--indent) + 6px);
@@ -4,7 +4,7 @@ import { TreePropTypes } from './props';
4
4
  * @param arrData
5
5
  * @returns
6
6
  */
7
- export declare const getFlatdata: (props: TreePropTypes, treeData?: Array<any> | undefined) => {}[];
7
+ export declare const getFlatdata: (props: TreePropTypes, treeData?: Array<any>, cachedSchema?: any[]) => (any[] | Map<string, any>)[];
8
8
  /**
9
9
  * 获取当前节点显示Label
10
10
  * @param item 当前节点
@@ -29,11 +29,10 @@ export declare const getTreeStyle: (item: any, props: TreePropTypes) => {
29
29
  * @param props
30
30
  * @returns
31
31
  */
32
- export declare const getNodeItemStyle: (item: any, props: TreePropTypes, schema?: any) => {
32
+ export declare const getNodeItemStyle: (item: any, props: TreePropTypes, flatData?: any) => {
33
33
  '--level-line'?: any;
34
34
  '--depth': any;
35
35
  paddingLeft: number;
36
- '--lines': number;
37
36
  };
38
37
  /**
39
38
  * 获取当前渲染节点Class List
@@ -45,4 +44,22 @@ export declare const getNodeItemClass: (item: any, schema: any, props: TreePropT
45
44
  'bk-tree-node': boolean;
46
45
  'is-open': any;
47
46
  'is-virtual-render': boolean;
47
+ 'level-line': any;
48
48
  };
49
+ /**
50
+ * 根据路径更新指定节点Child-Data
51
+ * @param path 节点路径
52
+ * @param treeData Tree Data
53
+ * @param childKey Child Key
54
+ * @param nodekey 节点key
55
+ * @param nodeValue 节点值
56
+ */
57
+ export declare const updateTreeNode: (path: string, treeData: any[], childKey: string, nodekey: string, nodeValue: any) => void;
58
+ /**
59
+ * 根据路径更新指定节点Child-Data
60
+ * @param path 节点路径
61
+ * @param treeData Tree Data
62
+ * @param childKey Child Key
63
+ * @param assignVal value
64
+ */
65
+ export declare const assignTreeNode: (path: string, treeData: any[], childKey: string, assignVal: any) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.19",
3
+ "version": "0.0.1-beta.21",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*"
@@ -38,6 +38,7 @@
38
38
  "@rollup/plugin-json": "~4.1.0",
39
39
  "@rollup/plugin-node-resolve": "~13.1.3",
40
40
  "@types/jest": "~27.4.1",
41
+ "@types/node": "~17.0.23",
41
42
  "@typescript-eslint/eslint-plugin": "~5.18.0",
42
43
  "@typescript-eslint/parser": "~5.18.0",
43
44
  "@vitejs/plugin-vue": "~2.3.1",
@@ -47,8 +48,10 @@
47
48
  "@vue/compiler-sfc": "~3.2.31",
48
49
  "@vue/component-compiler-utils": "~3.3.0",
49
50
  "@vue/eslint-config-standard": "~6.1.0",
50
- "@vue/eslint-config-typescript": "~10.0.0",
51
+ "@vue/eslint-config-typescript": "~9.1.0",
51
52
  "@vue/test-utils": "~2.0.0-rc.12",
53
+ "@vue/vue3-jest": "~27.0.0-alpha.4",
54
+ "acorn": "~8.7.0",
52
55
  "acorn-jsx": "~5.3.1",
53
56
  "babel-jest": "~27.5.1",
54
57
  "chalk": "~4.1.2",
@@ -62,8 +65,9 @@
62
65
  "eslint-plugin-codecc": "~0.0.4",
63
66
  "eslint-plugin-import": "~2.26.0",
64
67
  "eslint-plugin-node": "~11.1.0",
68
+ "eslint-plugin-prettier": "~4.0.0",
65
69
  "eslint-plugin-promise": "~5.1.0",
66
- "eslint-plugin-vue": "~7.15.1",
70
+ "eslint-plugin-vue": "~7.20.0",
67
71
  "highlight.js": "~11.5.0",
68
72
  "husky": "~7.0.1",
69
73
  "jest": "~27.5.1",
@@ -77,6 +81,7 @@
77
81
  "plop": "~3.0.5",
78
82
  "postcss": "~8.4.12",
79
83
  "postcss-less": "~6.0.0",
84
+ "prettier": "~2.6.2",
80
85
  "prismjs": "~1.27.0",
81
86
  "rimraf": "~3.0.2",
82
87
  "rollup": "~2.70.1",
@@ -94,7 +99,6 @@
94
99
  "vite": "~2.9.1",
95
100
  "vite-plugin-md": "~0.12.4",
96
101
  "vue": "^3.2.0",
97
- "vue-jest": "~5.0.0-alpha.10",
98
102
  "vue-router": "~4.0.14",
99
103
  "vue-types": "~4.1.1"
100
104
  },