@kengic/vue 0.26.6-beta.25 → 0.26.6-beta.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,9 @@
1
1
  import { Q } from '@thymine/xunee';
2
2
  import { Ref } from 'vue';
3
- import { IKgCanvasContextMenu, KgCanvasContextMenuProps } from './KgCanvas.ContextMenu';
3
+ import { IKgCanvasContextMenu, KgCanvasContextMenuProps } from './KgCanvasContextMenu';
4
+ /**
5
+ * 用户属性.
6
+ */
4
7
  export declare type IKgCanvasElementProperties = {
5
8
  /**
6
9
  * 编码, 全局唯一.
@@ -10,6 +13,10 @@ export declare type IKgCanvasElementProperties = {
10
13
  * 数据.
11
14
  */
12
15
  data?: any;
16
+ /**
17
+ * 是否启用提示文本.
18
+ */
19
+ isEnableTooltip?: boolean;
13
20
  /**
14
21
  * 样式.
15
22
  */
@@ -28,7 +28,7 @@ export declare type IKgCanvasContextMenu = {
28
28
  export declare const getProps: () => {
29
29
  eid: PropType<string>;
30
30
  kgElement: PropType<Q.Element<any>>;
31
- kgElementUI: PropType<Q.ElementUI>;
31
+ kgElementUi: PropType<Q.ElementUI>;
32
32
  kgGraph: PropType<Q.Graph>;
33
33
  /**
34
34
  * 是否显示.
@@ -44,7 +44,7 @@ export declare const getProps: () => {
44
44
  */
45
45
  kgMenus: PropType<IKgCanvasContextMenu[]>;
46
46
  /**
47
- * 鼠标右键点击事件对象.
47
+ * 鼠标事件对象.
48
48
  */
49
49
  kgMouseEvent: PropType<MouseEvent>;
50
50
  kgUi: PropType<Q.BaseUI>;
@@ -54,7 +54,7 @@ export declare type KgCanvasContextMenuProps = Partial<ExtractPropTypes<ReturnTy
54
54
  declare const _default: import("vue").DefineComponent<{
55
55
  eid: PropType<string>;
56
56
  kgElement: PropType<Q.Element<any>>;
57
- kgElementUI: PropType<Q.ElementUI>;
57
+ kgElementUi: PropType<Q.ElementUI>;
58
58
  kgGraph: PropType<Q.Graph>;
59
59
  /**
60
60
  * 是否显示.
@@ -70,7 +70,7 @@ declare const _default: import("vue").DefineComponent<{
70
70
  */
71
71
  kgMenus: PropType<IKgCanvasContextMenu[]>;
72
72
  /**
73
- * 鼠标右键点击事件对象.
73
+ * 鼠标事件对象.
74
74
  */
75
75
  kgMouseEvent: PropType<MouseEvent>;
76
76
  kgUi: PropType<Q.BaseUI>;
@@ -78,7 +78,7 @@ declare const _default: import("vue").DefineComponent<{
78
78
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:kgIsVisible"[], "update:kgIsVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
79
79
  eid: PropType<string>;
80
80
  kgElement: PropType<Q.Element<any>>;
81
- kgElementUI: PropType<Q.ElementUI>;
81
+ kgElementUi: PropType<Q.ElementUI>;
82
82
  kgGraph: PropType<Q.Graph>;
83
83
  /**
84
84
  * 是否显示.
@@ -94,7 +94,7 @@ declare const _default: import("vue").DefineComponent<{
94
94
  */
95
95
  kgMenus: PropType<IKgCanvasContextMenu[]>;
96
96
  /**
97
- * 鼠标右键点击事件对象.
97
+ * 鼠标事件对象.
98
98
  */
99
99
  kgMouseEvent: PropType<MouseEvent>;
100
100
  kgUi: PropType<Q.BaseUI>;
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  import './KgCanvas.css';
3
3
  export declare const getProps: () => any;
4
- export declare type KgCanvasFullscreenProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
4
+ export declare type KgCanvasToolbarFullscreenProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
5
5
  declare const _default: import("vue").DefineComponent<any, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
6
6
  [x: string]: any;
7
7
  }>;
@@ -0,0 +1,31 @@
1
+ import { Q } from '@thymine/xunee';
2
+ import { ExtractPropTypes, PropType } from 'vue';
3
+ import './KgCanvas.css';
4
+ export declare const getProps: () => {
5
+ kgElement: PropType<Q.Element<any>>;
6
+ kgElementUi: PropType<Q.ElementUI>;
7
+ kgGraph: PropType<Q.Graph>;
8
+ /**
9
+ * 鼠标事件对象.
10
+ */
11
+ kgMouseEvent: PropType<MouseEvent>;
12
+ };
13
+ export declare type KgCanvasTooltipProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
14
+ declare const _default: import("vue").DefineComponent<{
15
+ kgElement: PropType<Q.Element<any>>;
16
+ kgElementUi: PropType<Q.ElementUI>;
17
+ kgGraph: PropType<Q.Graph>;
18
+ /**
19
+ * 鼠标事件对象.
20
+ */
21
+ kgMouseEvent: PropType<MouseEvent>;
22
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
23
+ kgElement: PropType<Q.Element<any>>;
24
+ kgElementUi: PropType<Q.ElementUI>;
25
+ kgGraph: PropType<Q.Graph>;
26
+ /**
27
+ * 鼠标事件对象.
28
+ */
29
+ kgMouseEvent: PropType<MouseEvent>;
30
+ }>>, {}>;
31
+ export default _default;
@@ -1,4 +1,4 @@
1
1
  export { default as KgCanvas } from './KgCanvas';
2
- export { type IKgCanvasContextMenu } from './KgCanvas.ContextMenu';
2
+ export { type IKgCanvasContextMenu } from './KgCanvasContextMenu';
3
3
  export * from './index.hooks';
4
4
  export { type IKgCanvasElementProperties } from './KgCanvas.service';
@@ -2,7 +2,7 @@ import { Q } from '@thymine/xunee';
2
2
  import { StoreDefinition } from 'pinia';
3
3
  import { Ref } from 'vue';
4
4
  import { IKgEventListener } from '../../consts';
5
- import { type IKgCanvasContextMenu } from './KgCanvas.ContextMenu';
5
+ import { type IKgCanvasContextMenu } from './KgCanvasContextMenu';
6
6
  /**
7
7
  * 事件类型.
8
8
  * 'onInit': 图形组件初始完成
@@ -131,10 +131,11 @@ export declare const getProps: () => {
131
131
  default: undefined;
132
132
  };
133
133
  okButtonProps: PropType<Partial<ExtractPropTypes<{
134
+ /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
134
135
  prefixCls: StringConstructor;
135
136
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
136
137
  htmlType: {
137
- type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
138
+ type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
138
139
  default: string;
139
140
  };
140
141
  shape: {
@@ -179,10 +180,11 @@ export declare const getProps: () => {
179
180
  };
180
181
  }>>>;
181
182
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
183
+ /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
182
184
  prefixCls: StringConstructor;
183
185
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
184
186
  htmlType: {
185
- type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
187
+ type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
186
188
  default: string;
187
189
  };
188
190
  shape: {
@@ -395,10 +397,11 @@ declare const _default: import("vue").DefineComponent<{
395
397
  default: undefined;
396
398
  };
397
399
  okButtonProps: PropType<Partial<ExtractPropTypes<{
400
+ /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
398
401
  prefixCls: StringConstructor;
399
402
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
400
403
  htmlType: {
401
- type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
404
+ type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
402
405
  default: string;
403
406
  };
404
407
  shape: {
@@ -443,10 +446,11 @@ declare const _default: import("vue").DefineComponent<{
443
446
  };
444
447
  }>>>;
445
448
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
449
+ /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
446
450
  prefixCls: StringConstructor;
447
451
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
448
452
  htmlType: {
449
- type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
453
+ type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
450
454
  default: string;
451
455
  };
452
456
  shape: {
@@ -657,10 +661,11 @@ declare const _default: import("vue").DefineComponent<{
657
661
  default: undefined;
658
662
  };
659
663
  okButtonProps: PropType<Partial<ExtractPropTypes<{
664
+ /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
660
665
  prefixCls: StringConstructor;
661
666
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
662
667
  htmlType: {
663
- type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
668
+ type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
664
669
  default: string;
665
670
  };
666
671
  shape: {
@@ -705,10 +710,11 @@ declare const _default: import("vue").DefineComponent<{
705
710
  };
706
711
  }>>>;
707
712
  cancelButtonProps: PropType<Partial<ExtractPropTypes<{
713
+ /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
708
714
  prefixCls: StringConstructor;
709
715
  type: PropType<import("ant-design-vue/lib/button").ButtonType>;
710
716
  htmlType: {
711
- type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>; /** 页面上专门添加了一个特殊的元素, 通过它可以获取其他元素对象. */
717
+ type: PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
712
718
  default: string;
713
719
  };
714
720
  shape: {
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.6-beta.25",
3
+ "version": "0.26.6-beta.28",
4
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",
5
+ "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
+ "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
7
7
  "--------------------------------------------------": "",
8
8
  "publish:all:major": "npm run bump:major && npm run publish:all",
9
9
  "publish:all:minor": "npm run bump:minor && npm run publish:all",
10
10
  "publish:all:patch": "npm run bump:patch && npm run publish:all",
11
11
  "publish:all:beta": "npm run bump:beta && npm run publish:all",
12
12
  "----- --------------------------------------------": "",
13
- "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
13
+ "gen:apis:WMS": "npm run use-node && kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
14
  "- ------------------------------------------------": "",
15
- "switch-node-version": "nvm use 18.20.4 && corepack enable && corepack prepare pnpm@7.30.5 --activate && corepack use pnpm@7.30.5",
15
+ "use-node": "nvm use 18.20.4 && corepack enable && corepack prepare pnpm@7.30.5 --activate && corepack use pnpm@7.30.5",
16
16
  "cnpm:sync": "npx cnpm --yes sync @kengic/vue",
17
17
  "-- -----------------------------------------------": "",
18
- "bump:major": "npm run switch-node-version && tsx scripts/bump.ts major",
19
- "bump:minor": "npm run switch-node-version && tsx scripts/bump.ts minor",
20
- "bump:patch": "npm run switch-node-version && tsx scripts/bump.ts patch",
21
- "bump:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
18
+ "bump:major": "npm run use-node && tsx scripts/bump.ts major",
19
+ "bump:minor": "npm run use-node && tsx scripts/bump.ts minor",
20
+ "bump:patch": "npm run use-node && tsx scripts/bump.ts patch",
21
+ "bump:beta": "npm run use-node && tsx scripts/bump.ts beta",
22
22
  "---- ---------------------------------------------": "",
23
- "publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
24
- "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
23
+ "publish:all": "npm run use-node && tsx scripts/publish.ts",
24
+ "publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
25
25
  "------- ------------------------------------------": "",
26
26
  "copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
27
27
  "--- ----------------------------------------------": "",
28
- "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
28
+ "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "vue": "3.2.43"
@@ -40,7 +40,7 @@
40
40
  "@iconify-icons/mdi": "1.2.48",
41
41
  "@iconify-icons/ph": "1.2.5",
42
42
  "@iconify/vue": "4.1.1",
43
- "@kengic/core": "6.0.1-beta.29",
43
+ "@kengic/core": "6.0.1-beta.30",
44
44
  "@kengic/pont": "1.2.17-beta.1",
45
45
  "@rys-fe/vite-plugin-theme": "0.8.6",
46
46
  "@thymine/xunee": "0.4.9-beta.8",