bkui-vue 0.0.1-beta.18 → 0.0.1-beta.20

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 (85) hide show
  1. package/dist/bkui-vue.cjs.js +1811 -722
  2. package/dist/bkui-vue.esm.js +1809 -720
  3. package/dist/bkui-vue.umd.js +1811 -722
  4. package/dist/style.css +249 -0
  5. package/lib/badge/badge.d.ts +1 -1
  6. package/lib/badge/index.d.ts +4 -4
  7. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  8. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  9. package/lib/breadcrumb/index.d.ts +5 -5
  10. package/lib/button/button.d.ts +1 -1
  11. package/lib/button/index.d.ts +4 -4
  12. package/lib/components.d.ts +1 -0
  13. package/lib/date-picker/date-picker.d.ts +2 -2
  14. package/lib/date-picker/index.d.ts +7 -7
  15. package/lib/date-picker/index.js +1 -1
  16. package/lib/dialog/dialog.d.ts +12 -3
  17. package/lib/dialog/index.d.ts +27 -8
  18. package/lib/dialog/index.js +1 -1
  19. package/lib/directives/index.js +1 -1
  20. package/lib/divider/divider.d.ts +1 -1
  21. package/lib/divider/index.d.ts +4 -4
  22. package/lib/exception/exception.d.ts +1 -1
  23. package/lib/exception/index.d.ts +4 -4
  24. package/lib/form/form-item.d.ts +2 -2
  25. package/lib/form/index.d.ts +2 -2
  26. package/lib/icon/arrows-right.d.ts +4 -0
  27. package/lib/icon/arrows-right.js +15 -0
  28. package/lib/icon/bk.d.ts +4 -0
  29. package/lib/icon/bk.js +15 -0
  30. package/lib/icon/index.d.ts +4 -0
  31. package/lib/icon/index.js +1 -1
  32. package/lib/icon/qq.d.ts +4 -0
  33. package/lib/icon/qq.js +15 -0
  34. package/lib/icon/weixin.d.ts +4 -0
  35. package/lib/icon/weixin.js +15 -0
  36. package/lib/input/index.d.ts +4 -4
  37. package/lib/input/input.d.ts +1 -1
  38. package/lib/modal/index.d.ts +24 -1
  39. package/lib/modal/index.js +1 -1
  40. package/lib/modal/modal.d.ts +9 -0
  41. package/lib/modal/props.mixin.d.ts +4 -0
  42. package/lib/pagination/index.d.ts +4 -4
  43. package/lib/pagination/pagination.d.ts +1 -1
  44. package/lib/popover/index.d.ts +7 -7
  45. package/lib/popover/popover.d.ts +2 -2
  46. package/lib/progress/index.d.ts +10 -10
  47. package/lib/progress/progress.d.ts +3 -3
  48. package/lib/shared/bk-mask-manager.d.ts +32 -3
  49. package/lib/shared/bk-pop-manager.d.ts +8 -1
  50. package/lib/shared/index.js +1 -1
  51. package/lib/shared/vue-types.d.ts +2 -6
  52. package/lib/sideslider/index.d.ts +23 -4
  53. package/lib/sideslider/sideslider.d.ts +10 -1
  54. package/lib/steps/index.d.ts +4 -4
  55. package/lib/steps/steps.d.ts +1 -1
  56. package/lib/styles/index.d.ts +1 -0
  57. package/lib/styles/index.js +1 -1
  58. package/lib/tab/index.d.ts +4 -4
  59. package/lib/tab/tab.d.ts +1 -1
  60. package/lib/table/index.d.ts +45 -4
  61. package/lib/table/index.js +1 -1
  62. package/lib/table/props.d.ts +13 -0
  63. package/lib/table/render.d.ts +9 -0
  64. package/lib/table/table.d.ts +22 -3
  65. package/lib/table/utils.d.ts +14 -0
  66. package/lib/tag/index.d.ts +189 -22
  67. package/lib/tag/index.js +1 -1
  68. package/lib/tag/tag.css +91 -0
  69. package/lib/tag/tag.d.ts +83 -7
  70. package/lib/tag/tag.less +103 -2
  71. package/lib/tag/tag.variable.css +91 -0
  72. package/lib/transfer/index.d.ts +27 -0
  73. package/lib/transfer/index.js +1 -0
  74. package/lib/transfer/transfer.css +158 -0
  75. package/lib/transfer/transfer.d.ts +185 -0
  76. package/lib/transfer/transfer.less +171 -0
  77. package/lib/transfer/transfer.variable.css +251 -0
  78. package/lib/tree/index.d.ts +33 -7
  79. package/lib/tree/index.js +1 -1
  80. package/lib/tree/props.d.ts +10 -0
  81. package/lib/tree/tree.d.ts +14 -2
  82. package/lib/tree/util.d.ts +11 -2
  83. package/lib/virtual-render/index.d.ts +7 -7
  84. package/lib/virtual-render/virtual-render.d.ts +2 -2
  85. package/package.json +51 -47
@@ -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,7 +29,7 @@ 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;
@@ -46,3 +46,12 @@ export declare const getNodeItemClass: (item: any, schema: any, props: TreePropT
46
46
  'is-open': any;
47
47
  'is-virtual-render': boolean;
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;
@@ -7,11 +7,11 @@ declare const BkVirtualRender: {
7
7
  width: string | number;
8
8
  height: string | number;
9
9
  list: unknown[];
10
+ lineHeight: any;
11
+ minHeight: number;
10
12
  className: string | {
11
13
  [key: string]: any;
12
14
  };
13
- minHeight: number;
14
- lineHeight: any;
15
15
  contentClassName: string | {
16
16
  [key: string]: any;
17
17
  };
@@ -135,7 +135,7 @@ declare const BkVirtualRender: {
135
135
  } & {
136
136
  default: number;
137
137
  };
138
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "enabled" | "width" | "height" | "list" | "className" | "minHeight" | "lineHeight" | "contentClassName" | "contentStyle" | "scrollXName" | "scrollYName" | "groupItemCount" | "preloadItemCount" | "renderAs" | "contentAs" | "scrollOffsetTop" | "scrollPosition" | "abosuteHeight" | "throttleDelay">;
138
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "enabled" | "width" | "height" | "list" | "lineHeight" | "minHeight" | "className" | "contentClassName" | "contentStyle" | "scrollXName" | "scrollYName" | "groupItemCount" | "preloadItemCount" | "renderAs" | "contentAs" | "scrollOffsetTop" | "scrollPosition" | "abosuteHeight" | "throttleDelay">;
139
139
  $attrs: {
140
140
  [x: string]: unknown;
141
141
  };
@@ -263,11 +263,11 @@ declare const BkVirtualRender: {
263
263
  width: string | number;
264
264
  height: string | number;
265
265
  list: unknown[];
266
+ lineHeight: any;
267
+ minHeight: number;
266
268
  className: string | {
267
269
  [key: string]: any;
268
270
  };
269
- minHeight: number;
270
- lineHeight: any;
271
271
  contentClassName: string | {
272
272
  [key: string]: any;
273
273
  };
@@ -531,11 +531,11 @@ declare const BkVirtualRender: {
531
531
  width: string | number;
532
532
  height: string | number;
533
533
  list: unknown[];
534
+ lineHeight: any;
535
+ minHeight: number;
534
536
  className: string | {
535
537
  [key: string]: any;
536
538
  };
537
- minHeight: number;
538
- lineHeight: any;
539
539
  contentClassName: string | {
540
540
  [key: string]: any;
541
541
  };
@@ -219,11 +219,11 @@ declare const _default: import("vue").DefineComponent<{
219
219
  width: string | number;
220
220
  height: string | number;
221
221
  list: unknown[];
222
+ lineHeight: any;
223
+ minHeight: number;
222
224
  className: string | {
223
225
  [key: string]: any;
224
226
  };
225
- minHeight: number;
226
- lineHeight: any;
227
227
  contentClassName: string | {
228
228
  [key: string]: any;
229
229
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.18",
3
+ "version": "0.0.1-beta.20",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*"
@@ -25,81 +25,85 @@
25
25
  "generate:declation": "rimraf lib && tsc -p ./scripts/tsconfig.declaration.json"
26
26
  },
27
27
  "devDependencies": {
28
- "@babel/core": "~7.14.8",
29
- "@babel/eslint-parser": "~7.14.9",
30
- "@babel/plugin-transform-runtime": "~7.14.5",
31
- "@babel/plugin-transform-typescript": "~7.14.6",
32
- "@babel/preset-env": "~7.14.9",
33
- "@babel/preset-typescript": "~7.14.5",
34
- "@commitlint/cli": "~13.1.0",
35
- "@commitlint/config-conventional": "~13.1.0",
28
+ "@babel/core": "~7.17.9",
29
+ "@babel/eslint-parser": "~7.17.0",
30
+ "@babel/plugin-transform-runtime": "~7.17.0",
31
+ "@babel/plugin-transform-typescript": "~7.16.8",
32
+ "@babel/preset-env": "~7.16.11",
33
+ "@babel/preset-typescript": "~7.16.7",
34
+ "@commitlint/cli": "~16.2.3",
35
+ "@commitlint/config-conventional": "~16.2.1",
36
36
  "@rollup/plugin-babel": "~5.3.0",
37
- "@rollup/plugin-commonjs": "~20.0.0",
37
+ "@rollup/plugin-commonjs": "~21.0.3",
38
38
  "@rollup/plugin-json": "~4.1.0",
39
- "@rollup/plugin-node-resolve": "~13.0.4",
40
- "@types/jest": "~26.0.23",
41
- "@typescript-eslint/eslint-plugin": "~4.29.0",
42
- "@typescript-eslint/parser": "~4.29.0",
43
- "@vitejs/plugin-vue": "~1.3.0",
44
- "@vitejs/plugin-vue-jsx": "~1.1.7",
45
- "@vue/babel-plugin-jsx": "~1.0.5",
39
+ "@rollup/plugin-node-resolve": "~13.1.3",
40
+ "@types/jest": "~27.4.1",
41
+ "@types/node": "~17.0.23",
42
+ "@typescript-eslint/eslint-plugin": "~5.18.0",
43
+ "@typescript-eslint/parser": "~5.18.0",
44
+ "@vitejs/plugin-vue": "~2.3.1",
45
+ "@vitejs/plugin-vue-jsx": "~1.3.9",
46
+ "@vue/babel-plugin-jsx": "~1.1.1",
46
47
  "@vue/babel-preset-jsx": "~1.2.4",
47
- "@vue/compiler-sfc": "~3.1.5",
48
- "@vue/component-compiler-utils": "~3.2.0",
48
+ "@vue/compiler-sfc": "~3.2.31",
49
+ "@vue/component-compiler-utils": "~3.3.0",
49
50
  "@vue/eslint-config-standard": "~6.1.0",
50
- "@vue/eslint-config-typescript": "~7.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
- "babel-jest": "~27.0.6",
56
+ "babel-jest": "~27.5.1",
54
57
  "chalk": "~4.1.2",
55
58
  "clipboard": "~2.0.8",
56
59
  "commitizen": "~4.2.4",
57
- "conventional-changelog-cli": "~2.1.1",
60
+ "conventional-changelog-cli": "~2.2.2",
58
61
  "cross-env": "~7.0.3",
59
62
  "cz-lerna-changelog": "~2.0.3",
60
63
  "eslint": "~7.32.0",
61
- "eslint-config-tencent": "~1.0.2",
64
+ "eslint-config-tencent": "~1.0.4",
62
65
  "eslint-plugin-codecc": "~0.0.4",
63
- "eslint-plugin-import": "~2.23.4",
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
- "jest": "~27.0.6",
73
+ "jest": "~27.5.1",
70
74
  "jest-transform-stub": "~2.0.0",
71
75
  "lerna": "~4.0.0",
72
76
  "less": "~4.1.1",
73
- "lint-staged": "~11.1.1",
77
+ "lint-staged": "~12.3.7",
74
78
  "markdown-it-container": "~3.0.0",
75
79
  "normalize-wheel": "~1.0.1",
76
80
  "ora": "~5.4.1",
77
- "plop": "~2.7.4",
78
- "postcss": "~8.3.6",
79
- "postcss-less": "~5.0.0",
81
+ "plop": "~3.0.5",
82
+ "postcss": "~8.4.12",
83
+ "postcss-less": "~6.0.0",
84
+ "prettier": "~2.6.2",
80
85
  "prismjs": "~1.27.0",
81
86
  "rimraf": "~3.0.2",
82
- "rollup": "~2.55.1",
87
+ "rollup": "~2.70.1",
83
88
  "rollup-plugin-progress": "~1.1.2",
84
89
  "rollup-plugin-svg": "~2.0.0",
85
90
  "rollup-plugin-terser": "~7.0.2",
86
- "rollup-plugin-typescript2": "~0.30.0",
87
- "stylelint": "~13.13.1",
88
- "stylelint-order": "~4.1.0",
89
- "stylelint-scss": "~3.20.1",
90
- "ts-jest": "~27.0.4",
91
- "ts-node": "~10.1.0",
91
+ "rollup-plugin-typescript2": "~0.31.2",
92
+ "stylelint": "~14.6.1",
93
+ "stylelint-order": "~5.0.0",
94
+ "stylelint-scss": "~4.2.0",
95
+ "ts-jest": "~27.1.4",
96
+ "ts-node": "~10.7.0",
92
97
  "ttypescript": "~1.5.12",
93
- "typescript": "~4.3.5",
94
- "vite": "~2.4.4",
98
+ "typescript": "~4.6.3",
99
+ "vite": "~2.9.1",
95
100
  "vite-plugin-md": "~0.12.4",
96
- "vue": "^3",
97
- "vue-jest": "~5.0.0-alpha.8",
98
- "vue-router": "~4.0.10",
99
- "vue-types": "~4.0.1"
101
+ "vue": "^3.2.0",
102
+ "vue-router": "~4.0.14",
103
+ "vue-types": "~4.1.1"
100
104
  },
101
105
  "peerDependencies": {
102
- "vue": "3.2.x"
106
+ "vue": "^3.2.0"
103
107
  },
104
108
  "main": "dist/bkui-vue.umd.js",
105
109
  "module": "dist/bkui-vue.esm.js",
@@ -118,9 +122,9 @@
118
122
  }
119
123
  },
120
124
  "dependencies": {
121
- "@popperjs/core": "~2.11.0",
122
- "date-fns": "~2.25.0",
125
+ "@popperjs/core": "~2.11.5",
126
+ "date-fns": "~2.28.0",
123
127
  "js-calendar": "~1.2.3",
124
- "vue-types": "~4.0.1"
128
+ "vue-types": "~4.1.1"
125
129
  }
126
130
  }