@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.
- package/__tests__/__snapshots__/Vue Next Demos.md +21 -15
- package/components/config/index.spec.js +22 -14
- package/components/layout/aside.vdt.js +1 -1
- package/components/layout/styles.js +2 -17
- package/components/menu/index.d.ts +1 -0
- package/components/menu/index.js +2 -1
- package/components/menu/index.spec.js +59 -28
- package/components/menu/item.vdt.js +3 -3
- package/components/menu/menu.d.ts +2 -0
- package/components/menu/menu.js +12 -1
- package/components/menu/menu.vdt.js +9 -4
- package/components/menu/styles.d.ts +15 -12
- package/components/menu/styles.js +38 -38
- package/components/menu/title.d.ts +7 -0
- package/components/menu/title.js +22 -0
- package/components/menu/title.vdt.js +25 -0
- package/components/radio/styles.js +1 -1
- package/components/select/index.spec.js +1 -1
- package/components/select/option.vdt.js +1 -0
- package/components/select/select.js +4 -1
- package/components/table/column.vdt.js +6 -6
- package/components/table/useSortable.d.ts +7 -3
- package/components/table/useSortable.js +5 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/styles/theme.js +1 -2
- package/yarn-error.log +38 -38
|
@@ -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':
|
|
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:
|
|
8
|
-
|
|
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 {};
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v3.1
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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: '#
|
|
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--
|
|
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.
|
|
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.
|
|
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.
|
|
713
|
-
version "3.0.
|
|
714
|
-
resolved "https://registry.npmjs.org/intact-shared/-/intact-shared-3.0.
|
|
715
|
-
integrity sha512-
|
|
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.
|
|
718
|
-
version "3.0.
|
|
719
|
-
resolved "https://registry.npmjs.org/intact-vue-next/-/intact-vue-next-3.0.
|
|
720
|
-
integrity sha512-
|
|
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.
|
|
723
|
-
intact-shared "^3.0.
|
|
722
|
+
intact "^3.0.30"
|
|
723
|
+
intact-shared "^3.0.30"
|
|
724
724
|
tslib "^2.3.1"
|
|
725
725
|
|
|
726
|
-
intact@^3.0.
|
|
727
|
-
version "3.0.
|
|
728
|
-
resolved "https://registry.npmjs.org/intact/-/intact-3.0.
|
|
729
|
-
integrity sha512-
|
|
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.
|
|
732
|
-
misstime "^3.0.
|
|
731
|
+
intact-shared "^3.0.30"
|
|
732
|
+
misstime "^3.0.30"
|
|
733
733
|
tslib "^2.2.0"
|
|
734
|
-
vdt "^3.0.
|
|
735
|
-
vdt-compiler "^3.0.
|
|
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.
|
|
812
|
-
version "3.0.
|
|
813
|
-
resolved "https://registry.npmjs.org/misstime/-/misstime-3.0.
|
|
814
|
-
integrity sha512-
|
|
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.
|
|
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.
|
|
958
|
-
version "3.0.
|
|
959
|
-
resolved "https://registry.npmjs.org/vdt-compiler/-/vdt-compiler-3.0.
|
|
960
|
-
integrity sha512-
|
|
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.
|
|
963
|
-
misstime "^3.0.
|
|
962
|
+
intact-shared "^3.0.30"
|
|
963
|
+
misstime "^3.0.30"
|
|
964
964
|
tslib "^2.2.0"
|
|
965
965
|
|
|
966
|
-
vdt@^3.0.
|
|
967
|
-
version "3.0.
|
|
968
|
-
resolved "https://registry.npmjs.org/vdt/-/vdt-3.0.
|
|
969
|
-
integrity sha512-
|
|
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.
|
|
972
|
-
misstime "^3.0.
|
|
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:
|