@kengic/vue 0.21.1-beta.2 → 0.21.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +4652 -4266
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +5 -4
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +3 -2
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +5 -4
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +5 -4
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +5 -4
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +3 -3
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +3 -2
- package/dist/src/components/KgButton/index.hooks.d.ts +70 -22
- package/dist/src/components/KgButton/index.store.d.ts +56 -18
- package/dist/src/components/KgModal/KgModal.d.ts +424 -86
- package/dist/src/components/KgModal/KgModal.hooks.d.ts +33 -0
- package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +74 -0
- package/dist/src/components/KgModal/index.d.ts +1 -2
- package/dist/src/components/KgModal/index.vm.d.ts +8 -194
- package/dist/src/components/KgResizable/KgResizable.d.ts +8 -8
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +9 -3
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -10
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +7 -7
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +5 -3
- package/dist/src/components/KgSubmit/components/KgSubmit.VarSubmitConfig.Button.d.ts +7 -0
- package/dist/src/components/KgSubmit/components/{KgSubmit.Header.VarSubmitConfig.d.ts → KgSubmit.VarSubmitConfig.Modal.d.ts} +3 -2
- package/dist/src/components/KgSubmit/index.vm.d.ts +53 -7
- package/dist/src/config/index.hooks.d.ts +6 -29
- package/dist/src/config/index.store.d.ts +6 -4
- package/dist/src/consts/i18n/en.d.ts +1 -1
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -1
- package/dist/src/helpers/tsx.helper.d.ts +16 -6
- package/dist/src/utils/kg.util.d.ts +2 -1
- package/package.json +93 -93
- package/dist/src/components/KgModal/components/KgModal.Close.d.ts +0 -41
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +0 -82
@@ -27,21 +27,23 @@ export declare type IKgOption = {
|
|
27
27
|
[KG_APP.SYS]?: string;
|
28
28
|
};
|
29
29
|
KgModal?: {
|
30
|
-
/**
|
30
|
+
/** 拖拽改变位置. */
|
31
31
|
drag?: {
|
32
32
|
/**
|
33
33
|
* 是否启用功能.
|
34
|
+
*
|
34
35
|
* @default false
|
35
36
|
*/
|
36
37
|
on?: boolean;
|
37
38
|
};
|
38
|
-
/**
|
39
|
-
|
39
|
+
/** 拖拽改变大小. */
|
40
|
+
dragToResize?: {
|
40
41
|
/**
|
41
42
|
* 是否启用功能.
|
43
|
+
*
|
42
44
|
* @default false
|
43
45
|
*/
|
44
|
-
|
46
|
+
isOn?: boolean;
|
45
47
|
};
|
46
48
|
};
|
47
49
|
KgSearch?: {
|
@@ -1,13 +1,23 @@
|
|
1
1
|
import { Slots } from 'vue';
|
2
2
|
/**
|
3
|
-
*
|
3
|
+
* 根据名称渲染单个插槽.
|
4
|
+
*
|
5
|
+
* @param param.slots 插槽对象.
|
6
|
+
* @param param.name 插槽名称.
|
4
7
|
*/
|
5
|
-
export declare function renderSlot(
|
8
|
+
export declare function renderSlot(param: {
|
9
|
+
slots: Slots;
|
10
|
+
name: string;
|
11
|
+
}): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
6
12
|
[key: string]: any;
|
7
13
|
}>[] | null;
|
8
14
|
/**
|
9
|
-
*
|
10
|
-
*
|
11
|
-
* @param
|
15
|
+
* 渲染插槽.
|
16
|
+
*
|
17
|
+
* @param param.slots 插槽对象.
|
18
|
+
* @param param.excludeSlots 要排除的插槽名称.
|
12
19
|
*/
|
13
|
-
export declare function renderSlots(
|
20
|
+
export declare function renderSlots(param: {
|
21
|
+
slots: Slots;
|
22
|
+
excludeSlots?: string[];
|
23
|
+
}): any;
|
package/package.json
CHANGED
@@ -1,93 +1,93 @@
|
|
1
|
-
{
|
2
|
-
"name": "@kengic/vue",
|
3
|
-
"version": "0.21.
|
4
|
-
"scripts": {
|
5
|
-
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
|
-
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
7
|
-
"--------------------------------------------------": "",
|
8
|
-
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
9
|
-
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
10
|
-
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
11
|
-
"publish:all:major": "npm run bump-version:major && npm run publish:all",
|
12
|
-
"----- --------------------------------------------": "",
|
13
|
-
"gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
14
|
-
"--- ----------------------------------------------": "",
|
15
|
-
"bump-to:luotao.wms-vue3--dev-1.0": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
|
16
|
-
"copy-to:luotao.wms-vue3--dev-1.0": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
|
17
|
-
"bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
|
18
|
-
"copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
|
19
|
-
"- ------------------------------------------------": "",
|
20
|
-
"cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
|
21
|
-
"switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
|
22
|
-
"-- -----------------------------------------------": "",
|
23
|
-
"bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
|
24
|
-
"bump-version:major": "npm run switch-node-version && tsx scripts/bump.ts major",
|
25
|
-
"bump-version:minor": "npm run switch-node-version && tsx scripts/bump.ts minor",
|
26
|
-
"bump-version:patch": "npm run switch-node-version && tsx scripts/bump.ts patch",
|
27
|
-
"---- ---------------------------------------------": "",
|
28
|
-
"publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
|
29
|
-
"publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
30
|
-
},
|
31
|
-
"peerDependencies": {
|
32
|
-
"vue": "3.2.43"
|
33
|
-
},
|
34
|
-
"dependencies": {
|
35
|
-
"@ant-design/icons-vue": "6.1.0",
|
36
|
-
"@iconify-icons/akar-icons": "1.2.19",
|
37
|
-
"@iconify-icons/ant-design": "1.2.5",
|
38
|
-
"@iconify-icons/fluent-mdl2": "1.2.1",
|
39
|
-
"@iconify-icons/material-symbols": "1.2.58",
|
40
|
-
"@iconify-icons/mdi": "1.2.48",
|
41
|
-
"@iconify-icons/ph": "1.2.5",
|
42
|
-
"@iconify/vue": "4.1.1",
|
43
|
-
"@vueuse/core": "8.9.4",
|
44
|
-
"@vueuse/shared": "8.9.4",
|
45
|
-
"ant-design-vue": "3.2.14",
|
46
|
-
"axios": "0.26.1",
|
47
|
-
"dayjs": "1.11.10",
|
48
|
-
"filesize": "10.1.0",
|
49
|
-
"html-to-image": "1.11.11",
|
50
|
-
"lodash-es": "4.17.21",
|
51
|
-
"pinia": "2.0.12",
|
52
|
-
"store": "2.0.12",
|
53
|
-
"vue-router": "4.1.6"
|
54
|
-
},
|
55
|
-
"devDependencies": {
|
56
|
-
"@kengic/pont": "1.2.11",
|
57
|
-
"@types/lodash-es": "4.17.9",
|
58
|
-
"@types/node": "18.18.4",
|
59
|
-
"@types/semver": "7.5.3",
|
60
|
-
"@types/store": "2.0.3",
|
61
|
-
"@vitejs/plugin-vue": "3.2.0",
|
62
|
-
"@vitejs/plugin-vue-jsx": "1.3.10",
|
63
|
-
"chalk": "4.1.2",
|
64
|
-
"less": "4.1.3",
|
65
|
-
"prettier": "2.8.8",
|
66
|
-
"rimraf": "3.0.2",
|
67
|
-
"rollup": "2.79.1",
|
68
|
-
"semver": "7.5.4",
|
69
|
-
"tsx": "3.12.3",
|
70
|
-
"typescript": "~4.8.4",
|
71
|
-
"vite": "3.2.5",
|
72
|
-
"vue": "3.2.43",
|
73
|
-
"vue-tsc": "1.8.27"
|
74
|
-
},
|
75
|
-
"main": "./dist/kengic-vue.js",
|
76
|
-
"module": "./dist/kengic-vue.js",
|
77
|
-
"types": "./dist/src/index.d.ts",
|
78
|
-
"exports": {
|
79
|
-
".": {
|
80
|
-
"import": "./dist/kengic-vue.js"
|
81
|
-
},
|
82
|
-
"./dist/index.css": "./dist/index.css"
|
83
|
-
},
|
84
|
-
"prettier": {
|
85
|
-
"endOfLine": "auto",
|
86
|
-
"printWidth": 160,
|
87
|
-
"semi": true,
|
88
|
-
"singleAttributePerLine": true,
|
89
|
-
"singleQuote": true,
|
90
|
-
"tabWidth": 4,
|
91
|
-
"trailingComma": "all"
|
92
|
-
}
|
93
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@kengic/vue",
|
3
|
+
"version": "0.21.3",
|
4
|
+
"scripts": {
|
5
|
+
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
|
+
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
7
|
+
"--------------------------------------------------": "",
|
8
|
+
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
9
|
+
"publish:all:patch": "npm run bump-version:patch && npm run publish:all",
|
10
|
+
"publish:all:minor": "npm run bump-version:minor && npm run publish:all",
|
11
|
+
"publish:all:major": "npm run bump-version:major && npm run publish:all",
|
12
|
+
"----- --------------------------------------------": "",
|
13
|
+
"gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
14
|
+
"--- ----------------------------------------------": "",
|
15
|
+
"bump-to:luotao.wms-vue3--dev-1.0": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
|
16
|
+
"copy-to:luotao.wms-vue3--dev-1.0": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
|
17
|
+
"bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
|
18
|
+
"copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
|
19
|
+
"- ------------------------------------------------": "",
|
20
|
+
"cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
|
21
|
+
"switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
|
22
|
+
"-- -----------------------------------------------": "",
|
23
|
+
"bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
|
24
|
+
"bump-version:major": "npm run switch-node-version && tsx scripts/bump.ts major",
|
25
|
+
"bump-version:minor": "npm run switch-node-version && tsx scripts/bump.ts minor",
|
26
|
+
"bump-version:patch": "npm run switch-node-version && tsx scripts/bump.ts patch",
|
27
|
+
"---- ---------------------------------------------": "",
|
28
|
+
"publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
|
29
|
+
"publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
30
|
+
},
|
31
|
+
"peerDependencies": {
|
32
|
+
"vue": "3.2.43"
|
33
|
+
},
|
34
|
+
"dependencies": {
|
35
|
+
"@ant-design/icons-vue": "6.1.0",
|
36
|
+
"@iconify-icons/akar-icons": "1.2.19",
|
37
|
+
"@iconify-icons/ant-design": "1.2.5",
|
38
|
+
"@iconify-icons/fluent-mdl2": "1.2.1",
|
39
|
+
"@iconify-icons/material-symbols": "1.2.58",
|
40
|
+
"@iconify-icons/mdi": "1.2.48",
|
41
|
+
"@iconify-icons/ph": "1.2.5",
|
42
|
+
"@iconify/vue": "4.1.1",
|
43
|
+
"@vueuse/core": "8.9.4",
|
44
|
+
"@vueuse/shared": "8.9.4",
|
45
|
+
"ant-design-vue": "3.2.14",
|
46
|
+
"axios": "0.26.1",
|
47
|
+
"dayjs": "1.11.10",
|
48
|
+
"filesize": "10.1.0",
|
49
|
+
"html-to-image": "1.11.11",
|
50
|
+
"lodash-es": "4.17.21",
|
51
|
+
"pinia": "2.0.12",
|
52
|
+
"store": "2.0.12",
|
53
|
+
"vue-router": "4.1.6"
|
54
|
+
},
|
55
|
+
"devDependencies": {
|
56
|
+
"@kengic/pont": "1.2.11",
|
57
|
+
"@types/lodash-es": "4.17.9",
|
58
|
+
"@types/node": "18.18.4",
|
59
|
+
"@types/semver": "7.5.3",
|
60
|
+
"@types/store": "2.0.3",
|
61
|
+
"@vitejs/plugin-vue": "3.2.0",
|
62
|
+
"@vitejs/plugin-vue-jsx": "1.3.10",
|
63
|
+
"chalk": "4.1.2",
|
64
|
+
"less": "4.1.3",
|
65
|
+
"prettier": "2.8.8",
|
66
|
+
"rimraf": "3.0.2",
|
67
|
+
"rollup": "2.79.1",
|
68
|
+
"semver": "7.5.4",
|
69
|
+
"tsx": "3.12.3",
|
70
|
+
"typescript": "~4.8.4",
|
71
|
+
"vite": "3.2.5",
|
72
|
+
"vue": "3.2.43",
|
73
|
+
"vue-tsc": "1.8.27"
|
74
|
+
},
|
75
|
+
"main": "./dist/kengic-vue.js",
|
76
|
+
"module": "./dist/kengic-vue.js",
|
77
|
+
"types": "./dist/src/index.d.ts",
|
78
|
+
"exports": {
|
79
|
+
".": {
|
80
|
+
"import": "./dist/kengic-vue.js"
|
81
|
+
},
|
82
|
+
"./dist/index.css": "./dist/index.css"
|
83
|
+
},
|
84
|
+
"prettier": {
|
85
|
+
"endOfLine": "auto",
|
86
|
+
"printWidth": 160,
|
87
|
+
"semi": true,
|
88
|
+
"singleAttributePerLine": true,
|
89
|
+
"singleQuote": true,
|
90
|
+
"tabWidth": 4,
|
91
|
+
"trailingComma": "all"
|
92
|
+
}
|
93
|
+
}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import { PropType } from 'vue';
|
2
|
-
import './KgModal.Close.less';
|
3
|
-
export declare const getProps: () => {
|
4
|
-
/** 是否显示全屏按钮. */
|
5
|
-
kgShowFullscreenButton: {
|
6
|
-
type: PropType<boolean>;
|
7
|
-
default: boolean;
|
8
|
-
};
|
9
|
-
/** 是否显示关闭按钮. */
|
10
|
-
kgShowCloseButton: {
|
11
|
-
type: PropType<boolean>;
|
12
|
-
default: boolean;
|
13
|
-
};
|
14
|
-
};
|
15
|
-
declare const _default: import("vue").DefineComponent<{
|
16
|
-
/** 是否显示全屏按钮. */
|
17
|
-
kgShowFullscreenButton: {
|
18
|
-
type: PropType<boolean>;
|
19
|
-
default: boolean;
|
20
|
-
};
|
21
|
-
/** 是否显示关闭按钮. */
|
22
|
-
kgShowCloseButton: {
|
23
|
-
type: PropType<boolean>;
|
24
|
-
default: boolean;
|
25
|
-
};
|
26
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
27
|
-
/** 是否显示全屏按钮. */
|
28
|
-
kgShowFullscreenButton: {
|
29
|
-
type: PropType<boolean>;
|
30
|
-
default: boolean;
|
31
|
-
};
|
32
|
-
/** 是否显示关闭按钮. */
|
33
|
-
kgShowCloseButton: {
|
34
|
-
type: PropType<boolean>;
|
35
|
-
default: boolean;
|
36
|
-
};
|
37
|
-
}>>, {
|
38
|
-
kgShowFullscreenButton: boolean;
|
39
|
-
kgShowCloseButton: boolean;
|
40
|
-
}>;
|
41
|
-
export default _default;
|
@@ -1,82 +0,0 @@
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
-
import './KgSubmit.Header.less';
|
3
|
-
export declare const getProps: () => {
|
4
|
-
/** 是否全屏. */
|
5
|
-
isFullscreen: {
|
6
|
-
type: PropType<boolean>;
|
7
|
-
default: boolean;
|
8
|
-
};
|
9
|
-
'onUpdate:isFullscreen': PropType<(value: boolean) => void>;
|
10
|
-
/**
|
11
|
-
* 是否显示头部右侧的全屏按钮.
|
12
|
-
* @default undefined
|
13
|
-
*/
|
14
|
-
kgShowFullscreenButton: {
|
15
|
-
type: PropType<boolean>;
|
16
|
-
default: undefined;
|
17
|
-
};
|
18
|
-
/**
|
19
|
-
* 是否显示头部右侧的设置按钮.
|
20
|
-
* @default true
|
21
|
-
*/ kgShowConfigButton: {
|
22
|
-
type: PropType<boolean>;
|
23
|
-
default: boolean;
|
24
|
-
};
|
25
|
-
onKgCancel: PropType<() => void>;
|
26
|
-
};
|
27
|
-
export declare type IKgSubmitHeaderProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
28
|
-
declare const _default: import("vue").DefineComponent<{
|
29
|
-
/** 是否全屏. */
|
30
|
-
isFullscreen: {
|
31
|
-
type: PropType<boolean>;
|
32
|
-
default: boolean;
|
33
|
-
};
|
34
|
-
'onUpdate:isFullscreen': PropType<(value: boolean) => void>;
|
35
|
-
/**
|
36
|
-
* 是否显示头部右侧的全屏按钮.
|
37
|
-
* @default undefined
|
38
|
-
*/
|
39
|
-
kgShowFullscreenButton: {
|
40
|
-
type: PropType<boolean>;
|
41
|
-
default: undefined;
|
42
|
-
};
|
43
|
-
/**
|
44
|
-
* 是否显示头部右侧的设置按钮.
|
45
|
-
* @default true
|
46
|
-
*/ kgShowConfigButton: {
|
47
|
-
type: PropType<boolean>;
|
48
|
-
default: boolean;
|
49
|
-
};
|
50
|
-
onKgCancel: PropType<() => void>;
|
51
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:isFullscreen" | "kgCancel")[], "update:isFullscreen" | "kgCancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
52
|
-
/** 是否全屏. */
|
53
|
-
isFullscreen: {
|
54
|
-
type: PropType<boolean>;
|
55
|
-
default: boolean;
|
56
|
-
};
|
57
|
-
'onUpdate:isFullscreen': PropType<(value: boolean) => void>;
|
58
|
-
/**
|
59
|
-
* 是否显示头部右侧的全屏按钮.
|
60
|
-
* @default undefined
|
61
|
-
*/
|
62
|
-
kgShowFullscreenButton: {
|
63
|
-
type: PropType<boolean>;
|
64
|
-
default: undefined;
|
65
|
-
};
|
66
|
-
/**
|
67
|
-
* 是否显示头部右侧的设置按钮.
|
68
|
-
* @default true
|
69
|
-
*/ kgShowConfigButton: {
|
70
|
-
type: PropType<boolean>;
|
71
|
-
default: boolean;
|
72
|
-
};
|
73
|
-
onKgCancel: PropType<() => void>;
|
74
|
-
}>> & {
|
75
|
-
"onUpdate:isFullscreen"?: ((...args: any[]) => any) | undefined;
|
76
|
-
onKgCancel?: ((...args: any[]) => any) | undefined;
|
77
|
-
}, {
|
78
|
-
kgShowFullscreenButton: boolean;
|
79
|
-
kgShowConfigButton: boolean;
|
80
|
-
isFullscreen: boolean;
|
81
|
-
}>;
|
82
|
-
export default _default;
|