@king-design/vue 3.1.6 → 3.2.1

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.
@@ -16,6 +16,7 @@ import { context as FixedColumnsContext } from './useFixedColumns';
16
16
  import { stopPropagation } from '../utils';
17
17
  import { Input } from '../input';
18
18
  import { _$ } from '../../i18n';
19
+ import { ignoreSortable } from './useSortable';
19
20
  export default function ($props, $blocks, $__proto__) {
20
21
  var _this = this;
21
22
  $blocks || ($blocks = {});
@@ -73,7 +74,8 @@ export default function ($props, $blocks, $__proto__) {
73
74
  'ev-mousedown': function evMousedown(e) {
74
75
  e._vNode = _this.$vNode;
75
76
  onStart(e);
76
- }
77
+ },
78
+ 'ev-click': ignoreSortable
77
79
  }) : undefined, _$ce(2, 'div', [_$ce(2, 'div', (_$blocks['title'] = function ($super) {
78
80
  return title;
79
81
  }, __$blocks['title'] = function ($super, data) {
@@ -96,9 +98,7 @@ export default function ($props, $blocks, $__proto__) {
96
98
  'ref': dropdownRef,
97
99
  'children': [_$cc(Icon, {
98
100
  'className': _$cn(k + "-icon-down-squared " + k + "-table-group"),
99
- 'ev-click': function evClick(e) {
100
- return e._ignoreSortable = true;
101
- },
101
+ 'ev-click': ignoreSortable,
102
102
  'hoverable': true,
103
103
  'color': isEmptyValue(groupValue) ? null : 'primary'
104
104
  }), _$cc(DropdownMenu, {
@@ -161,10 +161,10 @@ export default function ($props, $blocks, $__proto__) {
161
161
  })], 4, _$cn(k + "-table-group-footer")) : undefined]
162
162
  })]
163
163
  }, 'dropdown', dropdownRef) : undefined, sortable ? _$ce(2, 'div', [_$cc(Icon, {
164
- 'className': _$cn(k + "-icon-up " + k + "-asc"),
164
+ 'className': _$cn(k + "-icon-up-bold " + k + "-asc"),
165
165
  'size': 'mini'
166
166
  }), _$cc(Icon, {
167
- 'className': _$cn(k + "-icon-down " + k + "-desc"),
167
+ 'className': _$cn(k + "-icon-down-bold " + k + "-desc"),
168
168
  'size': 'mini'
169
169
  })], 4, _$cn((_$cn4 = {}, _$cn4[k + "-column-sort"] = true, _$cn4[k + "-" + type] = type, _$cn4))) : undefined], 0, _$cn(k + "-table-title"))], 0, _$cn(classNameObj), {
170
170
  'style': style,
@@ -1,10 +1,14 @@
1
+ type SortEvent = Event & {
2
+ _ignoreSortable?: boolean;
3
+ };
1
4
  export declare const context: {
2
5
  Provider: import('intact-vue-next').ComponentConstructor<import('intact-vue-next').Component<import("../context").ProviderProps<any>, {}, {}, {}>>;
3
6
  Consumer: import('intact-vue-next').ComponentConstructor<import('intact-vue-next').Component<import("../context").ConsumerProps<any>, {}, {}, {}>>;
4
7
  useContext: () => import('intact-vue-next').RefObject<any>;
5
8
  };
6
9
  export declare function useSortable(): {
7
- onChange: (key: string, event: Event & {
8
- _ignoreSortable?: boolean;
9
- }) => void;
10
+ onChange: (key: string, event: SortEvent) => void;
11
+ ignoreSortable: typeof ignoreSortable;
10
12
  };
13
+ export declare function ignoreSortable(e: SortEvent): void;
14
+ export {};
@@ -26,6 +26,10 @@ export function useSortable() {
26
26
  instance.set('sort', sort);
27
27
  }
28
28
  return {
29
- onChange: onChange
29
+ onChange: onChange,
30
+ ignoreSortable: ignoreSortable
30
31
  };
32
+ }
33
+ export function ignoreSortable(e) {
34
+ e._ignoreSortable = true;
31
35
  }
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @king-design v3.1.6
2
+ * @king-design v3.2.1
3
3
  *
4
4
  * Copyright (c) Kingsoft Cloud
5
5
  * Released under the MIT License
@@ -60,7 +60,7 @@ export * from './components/tree';
60
60
  export * from './components/treeSelect';
61
61
  export * from './components/upload';
62
62
  export * from './components/wave';
63
- export declare const version = "3.1.6";
63
+ export declare const version = "3.2.1";
64
64
 
65
65
 
66
66
  export {normalize} from 'intact-vue-next';
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @king-design v3.1.6
2
+ * @king-design v3.2.1
3
3
  *
4
4
  * Copyright (c) Kingsoft Cloud
5
5
  * Released under the MIT License
@@ -61,7 +61,7 @@ export * from './components/tree';
61
61
  export * from './components/treeSelect';
62
62
  export * from './components/upload';
63
63
  export * from './components/wave';
64
- export var version = '3.1.6';
64
+ export var version = '3.2.1';
65
65
  /* generate end */
66
66
 
67
67
  export {normalize} from 'intact-vue-next';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@king-design/vue",
3
- "version": "3.1.6",
3
+ "version": "3.2.1",
4
4
  "description": "King-Design UI components for Vue3.0.",
5
5
  "keywords": [
6
6
  "component",
@@ -37,7 +37,7 @@
37
37
  "@emotion/css": "^11.5.0",
38
38
  "dayjs": "^1.10.7",
39
39
  "enquire.js": "^2.1.6",
40
- "intact-vue-next": "3.0.29",
40
+ "intact-vue-next": "3.0.31",
41
41
  "monaco-editor": "^0.26.1",
42
42
  "mxgraphx": "^4.0.7",
43
43
  "resize-observer-polyfill": "^1.5.1",
package/styles/theme.js CHANGED
@@ -32,7 +32,7 @@ export function defaultTheme() {
32
32
  info: '#0091ea',
33
33
  bg: '#f3f5f6',
34
34
  title: '#151b1e',
35
- darkBorder: '#d0d5d9',
35
+ darkBorder: '#2f2f36',
36
36
  placeholder: '#bec3c5',
37
37
  get link() {
38
38
  return theme.color.primary;
@@ -41,7 +41,6 @@ export function defaultTheme() {
41
41
  return palette(theme.color.primary, -1);
42
42
  },
43
43
  hoverBg: '#f3f5f6',
44
- // get hoverBg() { return palette(theme.color.primary, -4) },
45
44
  disabled: '#bec3c5',
46
45
  disabledBg: '#f0f2f4',
47
46
  disabledBorder: '#d0d5d9',
package/yarn-error.log CHANGED
@@ -2,7 +2,7 @@ Arguments:
2
2
  /home/javey/.nvm/versions/node/v14.21.3/bin/node /usr/share/yarn/bin/yarn.js --registry=https://registry.npmjs.org
3
3
 
4
4
  PATH:
5
- /tmp/yarn--1707124642263-0.11486790332316166:/home/javey/Workspaces/kpc/node_modules/.bin:/home/javey/.config/yarn/link/node_modules/.bin:/home/javey/.nvm/versions/node/v14.21.3/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/lib/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/bin/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/bin:/home/javey/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/javey/.yarn/bin:/home/javey/.local/bin:/home/javey/.yarn/bin:/home/javey/.local/bin
5
+ /tmp/yarn--1709196756448-0.38987287096922607:/home/javey/Workspaces/kpc/node_modules/.bin:/home/javey/.config/yarn/link/node_modules/.bin:/home/javey/.nvm/versions/node/v14.21.3/libexec/lib/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/lib/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/bin/node_modules/npm/bin/node-gyp-bin:/home/javey/.nvm/versions/node/v14.21.3/bin:/home/javey/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/javey/.yarn/bin:/home/javey/.local/bin:/home/javey/.yarn/bin:/home/javey/.local/bin
6
6
 
7
7
  Yarn version:
8
8
  1.22.19
@@ -22,7 +22,7 @@ Trace:
22
22
  npm manifest:
23
23
  {
24
24
  "name": "@king-design/vue",
25
- "version": "3.1.5",
25
+ "version": "3.2.0",
26
26
  "description": "King-Design UI components for Vue3.0.",
27
27
  "keywords": [
28
28
  "component",
@@ -59,7 +59,7 @@ npm manifest:
59
59
  "@emotion/css": "^11.5.0",
60
60
  "dayjs": "^1.10.7",
61
61
  "enquire.js": "^2.1.6",
62
- "intact-vue-next": "3.0.29",
62
+ "intact-vue-next": "3.0.31",
63
63
  "monaco-editor": "^0.26.1",
64
64
  "mxgraphx": "^4.0.7",
65
65
  "resize-observer-polyfill": "^1.5.1",
@@ -709,30 +709,30 @@ Lockfile:
709
709
  parent-module "^1.0.0"
710
710
  resolve-from "^4.0.0"
711
711
 
712
- intact-shared@^3.0.28:
713
- version "3.0.28"
714
- resolved "https://registry.npmjs.org/intact-shared/-/intact-shared-3.0.28.tgz#096cc0b3cffe27ddadeb92284d3279742600c112"
715
- integrity sha512-dQzBQeBhJKEousfX5OSJjHEazaDpVwyujhpTvjsXXl9HGzEcd8mvH6OHGRjREo3Y6UInQBxxhvE1CpMJMF7AVA==
712
+ intact-shared@^3.0.30:
713
+ version "3.0.30"
714
+ resolved "https://registry.npmjs.org/intact-shared/-/intact-shared-3.0.30.tgz#ba07cad0f88a3ad6dfae4a2e3dd7c8bac0b1713b"
715
+ integrity sha512-Umk8DDJSNvGKnccSH3VhkHiaLEVabgAupFmDACMbT2pW8phjVRqJxTzTOeyCX+1NEPkxouEAvtNKPWngVsLquw==
716
716
 
717
- intact-vue-next@3.0.28:
718
- version "3.0.28"
719
- resolved "https://registry.npmjs.org/intact-vue-next/-/intact-vue-next-3.0.28.tgz#de0cfa7d31b5dcb696452014eea7105072629e4e"
720
- integrity sha512-bFzBP10yBBnv/iR270eMJcQ2OHSWS9Qm3gRFDcBq0gZGhRDm3pDOFQGQHdIVU2bjzGgi5ZDkrx5FJao1U9g1zw==
717
+ intact-vue-next@3.0.30:
718
+ version "3.0.30"
719
+ resolved "https://registry.npmjs.org/intact-vue-next/-/intact-vue-next-3.0.30.tgz#6e5301d52b19bed602b434424502a311712f464e"
720
+ integrity sha512-MqRhCxS0j7T8x+dRsnPaDGRE+i7A6XJ7gpxtMa33IYCNsOY/a/mGNRT3cvXvjY43+OunwV5IrT6x4w/fwAiaPQ==
721
721
  dependencies:
722
- intact "^3.0.28"
723
- intact-shared "^3.0.28"
722
+ intact "^3.0.30"
723
+ intact-shared "^3.0.30"
724
724
  tslib "^2.3.1"
725
725
 
726
- intact@^3.0.28:
727
- version "3.0.28"
728
- resolved "https://registry.npmjs.org/intact/-/intact-3.0.28.tgz#7df812363559f733677be0932bc3a4b13d9abcff"
729
- integrity sha512-XYHqlt/Anu7r3GeN8BZnMkJmAZdWY3uOhgZWKBVkuwYUol6gHQ3e3anU56MW1jj3XOeb2PYkI+Bisgvl6yFXKQ==
726
+ intact@^3.0.30:
727
+ version "3.0.30"
728
+ resolved "https://registry.npmjs.org/intact/-/intact-3.0.30.tgz#b6eff7635dddb2d351710853891799f5b32e2666"
729
+ integrity sha512-1hdp7oiELdVdeCCh8+CFlkGx5NoNe5HNE3Gaz84tt0DE17BS87rH6h3ByPChqYvEgfuvN8l2/Iobl5PNJWOuGQ==
730
730
  dependencies:
731
- intact-shared "^3.0.28"
732
- misstime "^3.0.28"
731
+ intact-shared "^3.0.30"
732
+ misstime "^3.0.30"
733
733
  tslib "^2.2.0"
734
- vdt "^3.0.28"
735
- vdt-compiler "^3.0.28"
734
+ vdt "^3.0.30"
735
+ vdt-compiler "^3.0.30"
736
736
 
737
737
  is-arrayish@^0.2.1:
738
738
  version "0.2.1"
@@ -808,12 +808,12 @@ Lockfile:
808
808
  resolved "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
809
809
  integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
810
810
 
811
- misstime@^3.0.28:
812
- version "3.0.28"
813
- resolved "https://registry.npmjs.org/misstime/-/misstime-3.0.28.tgz#ce14de9f9c6bfd13076c6f8a18b649bdcd71c964"
814
- integrity sha512-ZmPuhLkEJPIiLCODF9ogj5fCp/klhtdXqfakmfOFLdYHCWPVEiEEZh/LPR8VWXcJLqv/3TtMbAC3bfvKG0RwgQ==
811
+ misstime@^3.0.30:
812
+ version "3.0.30"
813
+ resolved "https://registry.npmjs.org/misstime/-/misstime-3.0.30.tgz#59a307e3b099cf988e03eef25d67921ec2131db5"
814
+ integrity sha512-UoDxIiRZl0i4IOPyJpDLc/rxxPEU9Co3H5rwrZeTxrQFQBTbaP/JxUYJ76hnYqeSDOC9doN7jeSrHH+3oTqfig==
815
815
  dependencies:
816
- intact-shared "^3.0.28"
816
+ intact-shared "^3.0.30"
817
817
 
818
818
  monaco-editor@^0.26.1:
819
819
  version "0.26.1"
@@ -954,22 +954,22 @@ Lockfile:
954
954
  resolved "https://registry.npmmirror.com/tslib/-/tslib-2.6.1.tgz#fd8c9a0ff42590b25703c0acb3de3d3f4ede0410"
955
955
  integrity sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==
956
956
 
957
- vdt-compiler@^3.0.28:
958
- version "3.0.28"
959
- resolved "https://registry.npmjs.org/vdt-compiler/-/vdt-compiler-3.0.28.tgz#951267b032d047b2263c595c5cb14a4223c7662f"
960
- integrity sha512-oSPETiiVHyOxo22UH9R2OhAByG9e22BZKOyx0OnL4xJ8FDYsV7Tef68m6PojL2QRv2EUuC8KthkLI+8DKYyGLQ==
957
+ vdt-compiler@^3.0.30:
958
+ version "3.0.30"
959
+ resolved "https://registry.npmjs.org/vdt-compiler/-/vdt-compiler-3.0.30.tgz#557368a09ac602e2c5ef90fd421bc6c86f92df19"
960
+ integrity sha512-W8kAoGqz56+rauoJfhRDOFO1tV6RNPsZIXeCATWIgmv8+DnciJXU8WgrbqDW9IQbYCXrOnMGZZXaZJATPkNXGg==
961
961
  dependencies:
962
- intact-shared "^3.0.28"
963
- misstime "^3.0.28"
962
+ intact-shared "^3.0.30"
963
+ misstime "^3.0.30"
964
964
  tslib "^2.2.0"
965
965
 
966
- vdt@^3.0.28:
967
- version "3.0.28"
968
- resolved "https://registry.npmjs.org/vdt/-/vdt-3.0.28.tgz#5484e16088fc11181d7be5b23a11f5e9f8e871b0"
969
- integrity sha512-YX1kL1twBXWh4zRy9fXYYnbxtx4IAuug1WwOW+vkEY9+BlvIr8B+3cP6m6Lm5c+hURYZl99Hgzs6Okbbq6ct0w==
966
+ vdt@^3.0.30:
967
+ version "3.0.30"
968
+ resolved "https://registry.npmjs.org/vdt/-/vdt-3.0.30.tgz#12dbf2644a96cf2d6428cb1f17e02aa4076f7a98"
969
+ integrity sha512-HkkgHTDWHBiffZtVRnQb3rKs0p1/VoPkeMQH+5nbqYesAFhFOiF1jpvrQn6cRWZvcRsQMcJWNZT46V8t6eL8KQ==
970
970
  dependencies:
971
- intact-shared "^3.0.28"
972
- misstime "^3.0.28"
971
+ intact-shared "^3.0.30"
972
+ misstime "^3.0.30"
973
973
  tslib "^2.2.0"
974
974
 
975
975
  vue-loader@^16.1.2: