@kengic/vue 0.21.4-beta.1 → 0.21.4

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 (32) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/kengic-vue.js +3125 -3053
  3. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -1
  4. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -1
  5. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -3
  6. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -3
  7. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -1
  8. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -1
  9. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +94 -0
  10. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -1
  11. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -1
  12. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -7
  13. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -1
  14. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -1
  15. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -1
  16. package/dist/src/components/KgImage/KgImage.d.ts +100 -0
  17. package/dist/src/components/KgImage/index.d.ts +1 -0
  18. package/dist/src/components/KgSubmit/KgSubmit.d.ts +13 -4
  19. package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +10 -3
  20. package/dist/src/components/KgSubmit/index.d.ts +1 -1
  21. package/dist/src/components/KgTable/components/KgTable.BodyCell.d.ts +0 -1
  22. package/dist/src/components/KgTable/components/KgTable.HeaderCell.d.ts +0 -1
  23. package/dist/src/components/KgTable/components/KgTable.Info.d.ts +0 -1
  24. package/dist/src/components/KgVar/index.vm.d.ts +2 -2
  25. package/dist/src/components/index.d.ts +2 -1
  26. package/dist/src/config/index.hooks.d.ts +11 -53
  27. package/dist/src/config/index.store.d.ts +38 -3
  28. package/dist/src/consts/index.d.ts +15 -6
  29. package/dist/src/consts/index.vm.d.ts +30 -2
  30. package/dist/src/helpers/ant-design-vue.d.ts +34 -3
  31. package/package.json +16 -17
  32. /package/dist/src/components/KgButton/components/{KgButton.ImportTemplate.d.ts → KgButton.ExportTemplate.d.ts} +0 -0
@@ -80,6 +80,11 @@ export declare const enum KG_FORM_ITEM_CONTROL_TYPE {
80
80
  DATE_WEEK = "DATE_WEEK",
81
81
  DATE_MONTH = "DATE_MONTH",
82
82
  DATE_YEAR = "DATE_YEAR",
83
+ /**
84
+ * <p>图片.</p>
85
+ * <p>点击可以预览.</p>
86
+ */
87
+ IMAGE = "IMAGE",
83
88
  /** 文件上传按钮. */
84
89
  BUTTON_UPLOAD = "BUTTON_UPLOAD"
85
90
  }
@@ -95,7 +100,7 @@ export declare const enum KG_FORM_CONTEXT {
95
100
  /**
96
101
  * 表格单元格的显示类型.
97
102
  * @see VarGridDetail.display_type_properties
98
- * @see IKgGridDetailDisplayTypeProperties
103
+ * @see IKgGridDetailDisplayTypeProps
99
104
  */
100
105
  export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
101
106
  /** 布尔数据, 使用 KgYesOrNo 组件显示. */
@@ -111,12 +116,16 @@ export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
111
116
  /** 显示为超链接, 点击跳转到其他路由. */
112
117
  ROUTE_LINK = "ROUTE_LINK",
113
118
  /**
114
- * 显示描述字段.
115
- * 假如原字段为 'status', 则实际上会显示描述字段 'status_dsc(或者 statusDsc)' 的值.
116
- * 默认, 描述字段是原字段加上 '_dsc(或者 Dsc)' 后缀, 比如原字段为 'status', 则描述字段为 'status_dsc(或者 statusDsc)'.
117
- * 可以通过 {@link IKgGridDetailDisplayTypeProperties.DESC.dscFieldName} 设置自定义的描述字段名.
119
+ * <p>显示描述字段.</p>
120
+ * <p>假如原字段为 'status', 则实际上会显示描述字段 'status_dsc(或者 statusDsc)' 的值,</p>
121
+ * <p>默认, 描述字段是原字段加上 '_dsc(或者 Dsc)' 后缀, 比如原字段为 'status', 则描述字段为 'status_dsc(或者 statusDsc)',</p>
122
+ * <p>可以通过 {@link IKgGridDetailDisplayTypeProps.DESC.dscFieldName} 设置自定义的描述字段名,</p>
123
+ */
124
+ DESC = "DESC",
125
+ /**
126
+ * <p>显示为图片, 点击可以预览.</p>
118
127
  */
119
- DESC = "DESC"
128
+ IMAGE = "IMAGE"
120
129
  }
121
130
  /** 按钮类型. */
122
131
  export declare const enum KG_BUTTON_TYPE {
@@ -23,7 +23,7 @@ export interface Menu {
23
23
  export declare type IKgLocale = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
24
24
  /**
25
25
  * 按钮确认弹窗的参数.
26
- * <p>对应于 {@link VarButton.modal_props} 字段.</p>
26
+ * <p>对应于 {@link VarButton#modal_props} 字段.</p>
27
27
  */
28
28
  export declare type IKgButtonModalProps = ModalFuncProps & {
29
29
  /** 是否隐藏取消按钮. */
@@ -31,7 +31,7 @@ export declare type IKgButtonModalProps = ModalFuncProps & {
31
31
  };
32
32
  /**
33
33
  * <p>提交弹窗的配置参数.</p>
34
- * <p>对应于 {@link VarSubmitConfig.props} 字段.</p>
34
+ * <p>对应于 {@link VarSubmitConfig#props} 字段.</p>
35
35
  */
36
36
  export interface IKgSubmitConfigProps {
37
37
  /** 创建时, 确认按钮的文本对应的变量名. */
@@ -89,6 +89,20 @@ export interface IKgVariableConfigProps {
89
89
  */
90
90
  allowClear?: boolean;
91
91
  };
92
+ IMAGE: {
93
+ /**
94
+ * 宽度.
95
+ *
96
+ * @default 100
97
+ */
98
+ width?: number;
99
+ /**
100
+ * 宽度.
101
+ *
102
+ * @default 100
103
+ */
104
+ height?: number;
105
+ };
92
106
  }
93
107
  /**
94
108
  * 对应于 {@link VarGridDetail.display_type_properties} 字段, 根据显示类型, 设置额外的参数.
@@ -169,4 +183,18 @@ export interface IKgGridDetailDisplayTypeProps {
169
183
  color?: string;
170
184
  }>;
171
185
  };
186
+ IMAGE: {
187
+ /**
188
+ * 宽度.
189
+ *
190
+ * @default 29
191
+ */
192
+ width?: number;
193
+ /**
194
+ * 宽度.
195
+ *
196
+ * @default 29
197
+ */
198
+ height?: number;
199
+ };
172
200
  }
@@ -1,10 +1,10 @@
1
- import { CSSProperties, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
2
- import { ButtonHTMLType, LegacyButtonType } from 'ant-design-vue/es/button/buttonTypes';
3
1
  import { VueNode } from 'ant-design-vue/es/_util/type';
4
- import { ButtonShape, ButtonType } from 'ant-design-vue/lib/button';
2
+ import { ButtonHTMLType, LegacyButtonType } from 'ant-design-vue/es/button/buttonTypes';
5
3
  import { SizeType } from 'ant-design-vue/es/config-provider';
6
4
  import { RequiredMark } from 'ant-design-vue/es/form/Form';
7
5
  import { ValidateMessages } from 'ant-design-vue/es/form/interface';
6
+ import { ButtonShape, ButtonType } from 'ant-design-vue/lib/button';
7
+ import { CSSProperties, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
8
8
  export declare const formProps: () => {
9
9
  layout: PropType<"horizontal" | "inline" | "vertical">;
10
10
  labelCol: {
@@ -313,4 +313,35 @@ export declare const modalProps: () => {
313
313
  originVNode: VueNode;
314
314
  }) => VueNode>;
315
315
  };
316
+ export declare const imageProps: () => {
317
+ src: StringConstructor;
318
+ wrapperClassName: StringConstructor;
319
+ wrapperStyle: {
320
+ type: PropType<CSSProperties>;
321
+ default: undefined;
322
+ };
323
+ rootClassName: StringConstructor;
324
+ prefixCls: StringConstructor;
325
+ previewPrefixCls: StringConstructor;
326
+ previewMask: {
327
+ type: PropType<false | (() => any)>;
328
+ default: undefined;
329
+ };
330
+ placeholder: StringConstructor;
331
+ fallback: StringConstructor;
332
+ preview: {
333
+ type: PropType<any>;
334
+ default: any;
335
+ };
336
+ onClick: {
337
+ type: PropType<(e: MouseEvent) => void>;
338
+ };
339
+ onError: {
340
+ type: PropType<(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error) => any>;
341
+ };
342
+ id: StringConstructor;
343
+ width: (NumberConstructor | StringConstructor)[];
344
+ height: (NumberConstructor | StringConstructor)[];
345
+ style: StringConstructor;
346
+ };
316
347
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.21.4-beta.1",
3
+ "version": "0.21.4",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
@@ -12,12 +12,12 @@
12
12
  "----- --------------------------------------------": "",
13
13
  "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
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",
15
+ "bump-to:luotao.wms-vue3--dev-3.1": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
16
+ "copy-to:luotao.wms-vue3--dev-3.1": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
17
17
  "bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
18
18
  "copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
19
19
  "- ------------------------------------------------": "",
20
- "cnpm:sync": "npm run switch-node-version && cnpm sync @kengic/vue",
20
+ "cnpm:sync": "npm run switch-node-version && npx cnpm --yes sync @kengic/vue",
21
21
  "switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
22
22
  "-- -----------------------------------------------": "",
23
23
  "bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
@@ -40,19 +40,6 @@
40
40
  "@iconify-icons/mdi": "1.2.48",
41
41
  "@iconify-icons/ph": "1.2.5",
42
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
43
  "@kengic/pont": "1.2.11",
57
44
  "@types/lodash-es": "4.17.9",
58
45
  "@types/node": "18.18.4",
@@ -60,18 +47,30 @@
60
47
  "@types/store": "2.0.3",
61
48
  "@vitejs/plugin-vue": "3.2.0",
62
49
  "@vitejs/plugin-vue-jsx": "1.3.10",
50
+ "@vueuse/core": "8.9.4",
51
+ "@vueuse/shared": "8.9.4",
52
+ "ant-design-vue": "3.2.14",
53
+ "axios": "0.26.1",
63
54
  "chalk": "4.1.2",
55
+ "dayjs": "1.11.10",
56
+ "filesize": "10.1.0",
57
+ "html-to-image": "1.11.11",
64
58
  "less": "4.1.3",
59
+ "lodash-es": "4.17.21",
60
+ "pinia": "2.0.12",
65
61
  "prettier": "2.8.8",
66
62
  "rimraf": "3.0.2",
67
63
  "rollup": "2.79.1",
68
64
  "semver": "7.5.4",
65
+ "store": "2.0.12",
69
66
  "tsx": "3.12.3",
70
67
  "typescript": "~4.8.4",
71
68
  "vite": "3.2.5",
72
69
  "vue": "3.2.43",
70
+ "vue-router": "4.1.6",
73
71
  "vue-tsc": "1.8.27"
74
72
  },
73
+ "devDependencies": {},
75
74
  "main": "./dist/kengic-vue.js",
76
75
  "module": "./dist/kengic-vue.js",
77
76
  "types": "./dist/src/index.d.ts",