@kengic/vue 0.2.0 → 0.2.1-beta.0

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.
@@ -1,5 +1,5 @@
1
1
  import './KgControl.less';
2
- import { Dayjs } from 'dayjs';
2
+ import dayjs from 'dayjs';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  kgVarName: {
5
5
  type: import("vue").PropType<string>;
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
37
37
  default: string;
38
38
  };
39
39
  kgShowTime: {
40
- type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<Dayjs>>;
40
+ type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<dayjs.Dayjs>>;
41
41
  default: undefined;
42
42
  };
43
43
  value: import("vue").PropType<import("./index.vm").KgControlValue>;
@@ -81,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
81
81
  default: string;
82
82
  };
83
83
  kgShowTime: {
84
- type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<Dayjs>>;
84
+ type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<dayjs.Dayjs>>;
85
85
  default: undefined;
86
86
  };
87
87
  value: import("vue").PropType<import("./index.vm").KgControlValue>;
@@ -100,6 +100,6 @@ declare const _default: import("vue").DefineComponent<{
100
100
  kgDescriptionColumn: string;
101
101
  kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
102
102
  kgActionType: import("axios").Method;
103
- kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<Dayjs>;
103
+ kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<dayjs.Dayjs>;
104
104
  }>;
105
105
  export default _default;
@@ -25,7 +25,8 @@ declare const _default: import("vue").DefineComponent<{
25
25
  kgDescriptionColumn: {
26
26
  type: import("vue").PropType<string>;
27
27
  default: string;
28
- }; /** 样式. */
28
+ };
29
+ /** 样式. */
29
30
  kgAction: import("vue").PropType<string>;
30
31
  kgActionParameter: import("vue").PropType<string>;
31
32
  kgValidateInfo: {
@@ -69,7 +70,8 @@ declare const _default: import("vue").DefineComponent<{
69
70
  kgDescriptionColumn: {
70
71
  type: import("vue").PropType<string>;
71
72
  default: string;
72
- }; /** 样式. */
73
+ };
74
+ /** 样式. */
73
75
  kgAction: import("vue").PropType<string>;
74
76
  kgActionParameter: import("vue").PropType<string>;
75
77
  kgValidateInfo: {
@@ -4,7 +4,7 @@ import { Method } from 'axios';
4
4
  import { ValidateInfo } from 'ant-design-vue/lib/form/useForm';
5
5
  import { Dayjs } from 'dayjs';
6
6
  import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
7
- export declare type KgControlValue = string | number | Array<string | number> | Dayjs;
7
+ export declare type KgControlValue = string | number | Array<string | number>;
8
8
  export declare const getProps: () => {
9
9
  /** 变量名称. */
10
10
  kgVarName: {
@@ -28,13 +28,13 @@ export declare const enum KG_CONTROL_TYPES_ENUM {
28
28
  SELECT = "Select_Basic",
29
29
  /** 下拉列表多选. */
30
30
  SELECT_MULTIPLE = "Select_Multiple",
31
- DATE_PICKER_DATE = "DatePick_Date",
32
- DATE_PICKER_DATE_RANGE = "DatePick_DateRange",
33
- DATE_PICKER_DATETIME = "DatePick_DateTime",
34
- DATE_PICKER_DATETIME_RANGE = "DatePick_DateTimeRange",
35
- DATE_PICKER_WEEK = "DatePick_Week",
36
- DATE_PICKER_MONTH = "DatePick_Month",
37
- DATE_PICKER_YEAR = "DatePick_Year",
31
+ DATE_DATE = "DatePick_Date",
32
+ DATE_DATE_RANGE = "DatePick_DateRange",
33
+ DATE_DATETIME = "DatePick_DateTime",
34
+ DATE_DATETIME_RANGE = "DatePick_DateTimeRange",
35
+ DATE_WEEK = "DatePick_Week",
36
+ DATE_MONTH = "DatePick_Month",
37
+ DATE_YEAR = "DatePick_Year",
38
38
  /** 单位. */
39
39
  UOM = "Uom",
40
40
  /** 秒表计时. */
@@ -1,3 +1,4 @@
1
+ import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
1
2
  /**
2
3
  * 通用工具.
3
4
  */
@@ -35,4 +36,14 @@ export declare class KgUtil {
35
36
  * @param warehouseID 仓库编号.
36
37
  */
37
38
  private static parseParamFromString;
39
+ /**
40
+ * 确认弹窗.
41
+ * 设置了多个属性的默认值, 简化使用.
42
+ * https://www.antdv.com/components/modal
43
+ * @param props
44
+ */
45
+ static confirm(props: ModalFuncProps): {
46
+ destroy: () => void;
47
+ update: (newConfig: ModalFuncProps) => void;
48
+ };
38
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.2.0",
3
+ "version": "0.2.1-beta.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",