@airpower/web 0.2.19 → 0.2.22

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 (152) hide show
  1. package/dist/components/button/Button.vue.d.ts +3 -3
  2. package/dist/components/button/index.d.ts +0 -1
  3. package/dist/components/dialog/Dialog.vue.d.ts +2 -2
  4. package/dist/components/dialog/index.d.ts +0 -2
  5. package/dist/components/form/FormField.vue.d.ts +9 -9
  6. package/dist/components/frame/Frame.vue.d.ts +2 -2
  7. package/dist/components/image/Image.vue.d.ts +18 -18
  8. package/dist/components/input/Input.vue.d.ts +9 -9
  9. package/dist/components/input/index.d.ts +0 -1
  10. package/dist/components/menu/ChildMenu.vue.d.ts +2 -2
  11. package/dist/components/menu/Menu.vue.d.ts +2 -2
  12. package/dist/components/menu/index.d.ts +0 -1
  13. package/dist/components/money/Money.vue.d.ts +3 -3
  14. package/dist/components/money/index.d.ts +0 -1
  15. package/dist/components/page/Page.vue.d.ts +3 -2
  16. package/dist/components/panel/Panel.vue.d.ts +1 -1
  17. package/dist/components/payload/Payload.vue.d.ts +2 -2
  18. package/dist/components/payload/index.d.ts +1 -1
  19. package/dist/components/phone/Call.vue.d.ts +1 -1
  20. package/dist/components/select/Select.vue.d.ts +3 -3
  21. package/dist/components/select/Selector.vue.d.ts +6 -2
  22. package/dist/components/table/Table.vue.d.ts +16 -10
  23. package/dist/components/table/component/ColumnSelector.vue.d.ts +2 -2
  24. package/dist/components/table/component/CopyColumn.vue.d.ts +2 -2
  25. package/dist/components/table/component/EnumColumn.vue.d.ts +3 -3
  26. package/dist/components/table/component/Export.vue.d.ts +1 -1
  27. package/dist/components/table/useTableButton.d.ts +1 -1
  28. package/dist/components/table/useTableColumn.d.ts +3 -2
  29. package/dist/components/table/useTableSelect.d.ts +1 -1
  30. package/dist/components/tree/TreeBox.vue.d.ts +5 -5
  31. package/dist/components/upload/Upload.vue.d.ts +10 -10
  32. package/dist/components/upload/index.d.ts +0 -1
  33. package/dist/components/user/User.vue.d.ts +1 -1
  34. package/dist/components/user/index.d.ts +0 -1
  35. package/dist/config/WebConfig.d.ts +5 -1
  36. package/dist/config/WebConstant.d.ts +15 -0
  37. package/dist/{curd/decorator → decorator}/@Field/Field.d.ts +2 -2
  38. package/dist/{curd/decorator → decorator}/@Field/IFieldConfig.d.ts +2 -2
  39. package/dist/{curd/decorator → decorator}/@Form/Form.d.ts +2 -2
  40. package/dist/{curd/decorator → decorator}/@Form/IFormField.d.ts +2 -2
  41. package/dist/{curd/decorator → decorator}/@Search/ISearchField.d.ts +1 -1
  42. package/dist/{curd/decorator → decorator}/@Search/Search.d.ts +2 -2
  43. package/dist/{curd/decorator → decorator}/@Table/IElementTableColumn.d.ts +1 -1
  44. package/dist/{curd/decorator → decorator}/@Table/ITableColumn.d.ts +1 -1
  45. package/dist/{curd/decorator → decorator}/@Table/Table.d.ts +2 -2
  46. package/dist/{components/dialog → dialog}/DialogProps.d.ts +1 -1
  47. package/dist/{components/dialog → dialog}/DialogUtil.d.ts +4 -4
  48. package/dist/{curd/hooks → hooks}/detail/IDetailOption.d.ts +1 -1
  49. package/dist/{curd/hooks → hooks}/detail/IDetailResult.d.ts +2 -2
  50. package/dist/{curd/hooks → hooks}/detail/useDetail.d.ts +3 -2
  51. package/dist/{curd/hooks → hooks}/editor/IEditorOption.d.ts +3 -3
  52. package/dist/{curd/hooks → hooks}/editor/IEditorResult.d.ts +4 -4
  53. package/dist/{curd/hooks → hooks}/editor/useEditor.d.ts +3 -2
  54. package/dist/{curd/hooks → hooks}/table/base/IBaseTableOption.d.ts +2 -2
  55. package/dist/{curd/hooks → hooks}/table/base/IBaseTableResult.d.ts +6 -3
  56. package/dist/{curd/hooks → hooks}/table/base/useBaseTable.d.ts +3 -2
  57. package/dist/{curd/hooks → hooks}/table/list/ITableOption.d.ts +2 -2
  58. package/dist/{curd/hooks → hooks}/table/list/ITableResult.d.ts +3 -3
  59. package/dist/{curd/hooks → hooks}/table/list/useTable.d.ts +3 -2
  60. package/dist/{curd/hooks → hooks}/table/selector/ISelectorOption.d.ts +2 -2
  61. package/dist/{curd/hooks → hooks}/table/selector/ISelectorResult.d.ts +3 -3
  62. package/dist/{curd/hooks → hooks}/table/selector/useSelector.d.ts +3 -2
  63. package/dist/{curd/hooks → hooks}/table/tree/ITableTreeOption.d.ts +3 -3
  64. package/dist/{curd/hooks → hooks}/table/tree/ITableTreeResult.d.ts +3 -3
  65. package/dist/{curd/hooks → hooks}/table/tree/useTableTree.d.ts +4 -3
  66. package/dist/{util/http → http}/Http.d.ts +3 -9
  67. package/dist/{util/http → http}/type.d.ts +2 -1
  68. package/dist/index.d.ts +78 -4
  69. package/dist/{components/menu → interface}/IMenu.d.ts +1 -1
  70. package/dist/{curd/model/tree → interface}/ITree.d.ts +1 -1
  71. package/dist/{components/upload → interface}/IUploadProps.d.ts +2 -2
  72. package/dist/main.js +18420 -10680
  73. package/dist/{base → model}/RootEntity.d.ts +1 -1
  74. package/dist/{curd/model → model}/export/ExportModel.d.ts +1 -1
  75. package/dist/{curd/model → model}/query/QueryRequest.d.ts +1 -1
  76. package/dist/{curd/model → model}/query/QueryRequestPage.d.ts +1 -1
  77. package/dist/{curd/model → model}/query/QueryResponsePage.d.ts +1 -1
  78. package/dist/{util/permission → permission}/PermissionUtil.d.ts +1 -5
  79. package/dist/{util/router → router}/RouterUtil.d.ts +1 -1
  80. package/dist/{curd → service}/AbstractCurdService.d.ts +5 -3
  81. package/dist/{base → service}/AbstractService.d.ts +1 -1
  82. package/dist/{curd → service}/type.d.ts +1 -1
  83. package/dist/tests/App.vue.d.ts +2 -0
  84. package/dist/tests/main.d.ts +1 -0
  85. package/dist/{components/button/type.d.ts → type/index.d.ts} +7 -0
  86. package/dist/{util/validator → validator}/WebValidator.d.ts +2 -2
  87. package/dist/{util/validator → validator}/type.d.ts +1 -1
  88. package/dist/web.css +143 -143
  89. package/package.json +1 -1
  90. package/dist/base/index.d.ts +0 -4
  91. package/dist/components/money/type.d.ts +0 -1
  92. package/dist/config/index.d.ts +0 -1
  93. package/dist/curd/decorator/@Field/index.d.ts +0 -3
  94. package/dist/curd/decorator/@Form/index.d.ts +0 -3
  95. package/dist/curd/decorator/@Model/index.d.ts +0 -2
  96. package/dist/curd/decorator/@Search/index.d.ts +0 -2
  97. package/dist/curd/decorator/@Table/index.d.ts +0 -4
  98. package/dist/curd/decorator/common/index.d.ts +0 -1
  99. package/dist/curd/decorator/index.d.ts +0 -6
  100. package/dist/curd/hooks/detail/index.d.ts +0 -3
  101. package/dist/curd/hooks/editor/index.d.ts +0 -3
  102. package/dist/curd/hooks/index.d.ts +0 -3
  103. package/dist/curd/hooks/table/base/index.d.ts +0 -3
  104. package/dist/curd/hooks/table/index.d.ts +0 -4
  105. package/dist/curd/hooks/table/list/index.d.ts +0 -3
  106. package/dist/curd/hooks/table/selector/index.d.ts +0 -3
  107. package/dist/curd/hooks/table/tree/index.d.ts +0 -3
  108. package/dist/curd/index.d.ts +0 -5
  109. package/dist/curd/model/export/index.d.ts +0 -1
  110. package/dist/curd/model/index.d.ts +0 -3
  111. package/dist/curd/model/query/index.d.ts +0 -6
  112. package/dist/curd/model/tree/index.d.ts +0 -1
  113. package/dist/util/enum/index.d.ts +0 -5
  114. package/dist/util/feedback/index.d.ts +0 -2
  115. package/dist/util/file/index.d.ts +0 -2
  116. package/dist/util/http/enum/index.d.ts +0 -4
  117. package/dist/util/http/index.d.ts +0 -4
  118. package/dist/util/i18n/index.d.ts +0 -1
  119. package/dist/util/index.d.ts +0 -8
  120. package/dist/util/permission/index.d.ts +0 -2
  121. package/dist/util/router/index.d.ts +0 -1
  122. package/dist/util/validator/index.d.ts +0 -2
  123. /package/dist/{curd/decorator → decorator}/@Field/type.d.ts +0 -0
  124. /package/dist/{curd/decorator → decorator}/@Form/FormTrim.d.ts +0 -0
  125. /package/dist/{curd/decorator → decorator}/@Model/IModelConfig.d.ts +0 -0
  126. /package/dist/{curd/decorator → decorator}/@Model/Model.d.ts +0 -0
  127. /package/dist/{curd/decorator/@Table/TableType.d.ts → decorator/@Table/type.d.ts} +0 -0
  128. /package/dist/{curd/decorator → decorator}/common/IBaseField.d.ts +0 -0
  129. /package/dist/{components/input → enum}/DateTimeType.d.ts +0 -0
  130. /package/dist/{util/enum → enum}/DisableEnum.d.ts +0 -0
  131. /package/dist/{util/enum → enum}/IWebEnum.d.ts +0 -0
  132. /package/dist/{util/enum → enum}/WebColor.d.ts +0 -0
  133. /package/dist/{util/enum → enum}/WebEnum.d.ts +0 -0
  134. /package/dist/{util/enum → enum}/type.d.ts +0 -0
  135. /package/dist/{util/feedback → feedback}/FeedbackUtil.d.ts +0 -0
  136. /package/dist/{util/feedback → feedback}/type.d.ts +0 -0
  137. /package/dist/{util/file → file}/WebFileUtil.d.ts +0 -0
  138. /package/dist/{util/http → http}/HttpResponse.d.ts +0 -0
  139. /package/dist/{util/http → http}/enum/HttpContentType.d.ts +0 -0
  140. /package/dist/{util/http → http}/enum/HttpHeader.d.ts +0 -0
  141. /package/dist/{util/http → http}/enum/HttpMethod.d.ts +0 -0
  142. /package/dist/{util/http → http}/enum/HttpStatus.d.ts +0 -0
  143. /package/dist/{util/i18n → i18n}/WebI18n.d.ts +0 -0
  144. /package/dist/{base → interface}/IEntity.d.ts +0 -0
  145. /package/dist/{util/file → interface}/IFile.d.ts +0 -0
  146. /package/dist/{components/payload → interface}/IPayload.d.ts +0 -0
  147. /package/dist/{components/user → interface}/IUser.d.ts +0 -0
  148. /package/dist/{base → model}/RootModel.d.ts +0 -0
  149. /package/dist/{curd/model → model}/query/QueryPage.d.ts +0 -0
  150. /package/dist/{curd/model → model}/query/QuerySort.d.ts +0 -0
  151. /package/dist/{curd/model → model}/query/type.d.ts +0 -0
  152. /package/dist/{util/permission → permission}/PermissionAction.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import { IJson, ITransformerConstructor } from '@airpower/transformer';
2
- import { RootEntity } from '../../base';
3
- import { IFile } from '../../util';
2
+ import { IFile } from '../../interface/IFile';
3
+ import { RootEntity } from '../../model/RootEntity';
4
4
  declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{
6
6
  title: string;
@@ -9,31 +9,31 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
9
9
  confirmText: string;
10
10
  onConfirm: (file: F | null) => void;
11
11
  onCancel: Function;
12
+ extensions: string[];
13
+ uploadUrl: string;
14
+ tips: string;
12
15
  onCustomConfirm: Function;
13
16
  onCustomSuccess: Function;
14
17
  maxSize: number;
15
18
  uploadName: string;
16
19
  uploadSuccess: string;
17
- uploadUrl: string;
18
- extensions: string[];
19
- tips: string;
20
20
  }> & Omit<{
21
21
  readonly title: string;
22
22
  readonly data: IJson<any>;
23
23
  readonly header: IJson<any>;
24
24
  readonly onConfirm: (file: F | null) => void;
25
25
  readonly onCancel: Function;
26
+ readonly entity: ITransformerConstructor<F>;
27
+ readonly extensions: string[];
28
+ readonly uploadUrl: string;
29
+ readonly tips: string;
26
30
  readonly onCustomConfirm: Function;
27
31
  readonly onCustomSuccess: Function;
28
32
  readonly maxSize: number;
29
33
  readonly uploadName: string;
30
34
  readonly uploadSuccess: string;
31
- readonly uploadUrl: string;
32
- readonly extensions: string[];
33
- readonly entity: ITransformerConstructor<F>;
34
- readonly tips: string;
35
35
  readonly confirmText?: string | undefined;
36
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "data" | "header" | "confirmText" | "onConfirm" | "onCancel" | "onCustomConfirm" | "onCustomSuccess" | "maxSize" | "uploadName" | "uploadSuccess" | "uploadUrl" | "extensions" | "tips">, "entity" | ("title" | "data" | "header" | "confirmText" | "onConfirm" | "onCancel" | "onCustomConfirm" | "onCustomSuccess" | "maxSize" | "uploadName" | "uploadSuccess" | "uploadUrl" | "extensions" | "tips")> & {} & Partial<{}>> & import('vue').PublicProps;
36
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "data" | "header" | "confirmText" | "onConfirm" | "onCancel" | "extensions" | "uploadUrl" | "tips" | "onCustomConfirm" | "onCustomSuccess" | "maxSize" | "uploadName" | "uploadSuccess">, "entity" | ("title" | "data" | "header" | "confirmText" | "onConfirm" | "onCancel" | "extensions" | "uploadUrl" | "tips" | "onCustomConfirm" | "onCustomSuccess" | "maxSize" | "uploadName" | "uploadSuccess")> & {} & Partial<{}>> & import('vue').PublicProps;
37
37
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
38
38
  attrs: any;
39
39
  slots: {};
@@ -1,3 +1,2 @@
1
1
  import { default as AUpload } from './Upload.vue';
2
2
  export { AUpload, };
3
- export * from './IUploadProps';
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { IUser } from './IUser';
2
+ import { IUser } from '../../interface/IUser';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
5
  slots: {
@@ -1,3 +1,2 @@
1
1
  import { default as AUser } from './User.vue';
2
2
  export { AUser, };
3
- export * from './IUser';
@@ -1,4 +1,4 @@
1
- import { MoneyDirection } from '../components';
1
+ import { MoneyDirection } from '../type';
2
2
  /**
3
3
  * # 全局配置
4
4
  *
@@ -236,6 +236,10 @@ export declare class WebConfig {
236
236
  };
237
237
  };
238
238
  };
239
+ /**
240
+ * ### 权限缓存 `Key`
241
+ */
242
+ static permissionCacheKey: string;
239
243
  /**
240
244
  * ### 接口根地址
241
245
  * 以 `/` 结尾
@@ -0,0 +1,15 @@
1
+ /**
2
+ * # 一些常量
3
+ *
4
+ * @author Hamm.cn
5
+ */
6
+ export declare class WebConstant {
7
+ /**
8
+ * ### HTTP 请求前缀
9
+ */
10
+ static readonly PREFIX_HTTP = "http://";
11
+ /**
12
+ * ### HTTPS 请求前缀
13
+ */
14
+ static readonly PREFIX_HTTPS = "https://";
15
+ }
@@ -1,7 +1,7 @@
1
1
  import { EnumKey } from '@airpower/enum/dist/enum/type';
2
2
  import { DecoratorTarget, ITransformerConstructor } from '@airpower/transformer';
3
- import { RootModel } from '../../../base';
4
- import { WebEnumConstructor } from '../../../util';
3
+ import { WebEnumConstructor } from '../../enum/type';
4
+ import { RootModel } from '../../model/RootModel';
5
5
  import { IFieldConfig } from './IFieldConfig';
6
6
  import { FieldConfigOptionalKey } from './type';
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { EnumKey } from '@airpower/enum/dist/enum/type';
2
- import { WebEnumConstructor } from '../../../util';
3
- import { IBaseField } from '../common';
2
+ import { WebEnumConstructor } from '../../enum/type';
3
+ import { IBaseField } from '../common/IBaseField';
4
4
  /**
5
5
  * # 字段配置
6
6
  *
@@ -1,6 +1,6 @@
1
1
  import { DecoratorTarget, ITransformerConstructor } from '@airpower/transformer';
2
- import { RootModel } from '../../../base';
3
- import { FieldConfigOptionalKey } from '../@Field';
2
+ import { RootModel } from '../../model/RootModel';
3
+ import { FieldConfigOptionalKey } from '../@Field/type';
4
4
  import { IFormField } from './IFormField';
5
5
  /**
6
6
  * ### 标记该字段可用于表单配置
@@ -1,6 +1,6 @@
1
1
  import { DateTimeFormatter } from '@airpower/util';
2
- import { DateTimeType } from '../../../components';
3
- import { IBaseField } from '../common';
2
+ import { DateTimeType } from '../../enum/DateTimeType';
3
+ import { IBaseField } from '../common/IBaseField';
4
4
  import { FormTrim } from './FormTrim';
5
5
  /**
6
6
  * # 表单的字段配置接口
@@ -1,4 +1,4 @@
1
- import { IBaseField } from '../common';
1
+ import { IBaseField } from '../common/IBaseField';
2
2
  /**
3
3
  * # 表单的字段配置接口
4
4
  * @author Hamm.cn
@@ -1,6 +1,6 @@
1
1
  import { DecoratorTarget, ITransformerConstructor } from '@airpower/transformer';
2
- import { RootModel } from '../../../base';
3
- import { FieldConfigOptionalKey } from '../@Field';
2
+ import { RootModel } from '../../model/RootModel';
3
+ import { FieldConfigOptionalKey } from '../@Field/type';
4
4
  import { ISearchField } from './ISearchField';
5
5
  /**
6
6
  * ### 标记该字段可用于表单配置
@@ -1,4 +1,4 @@
1
- import { TableAlign, TableFixed, TableSortable } from './TableType';
1
+ import { TableAlign, TableFixed, TableSortable } from './type';
2
2
  /**
3
3
  * # ElementPlus支持的列配置项
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { DateTimeFormatter, DesensitizeType } from '@airpower/util';
2
- import { IBaseField } from '../common';
2
+ import { IBaseField } from '../common/IBaseField';
3
3
  import { IElementTableColumn } from './IElementTableColumn';
4
4
  /**
5
5
  * # 表格的字段配置接口
@@ -1,6 +1,6 @@
1
1
  import { DecoratorTarget, ITransformerConstructor } from '@airpower/transformer';
2
- import { RootModel } from '../../../base';
3
- import { FieldConfigOptionalKey } from '../@Field';
2
+ import { RootModel } from '../../model/RootModel';
3
+ import { FieldConfigOptionalKey } from '../@Field/type';
4
4
  import { ITableColumn } from './ITableColumn';
5
5
  /**
6
6
  * ### 为属性标记是表格字段
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { RootEntity } from '../../base';
2
+ import { RootEntity } from '../model/RootEntity';
3
3
  /**
4
4
  * # 弹窗的配置
5
5
  *
@@ -1,9 +1,9 @@
1
1
  import { IJson } from '@airpower/transformer';
2
2
  import { Component } from 'vue';
3
- import { RootEntity } from '../../base';
4
- import { ExportModel } from '../../curd';
5
- import { IFile } from '../../util';
6
- import { IUploadProps } from '../upload';
3
+ import { IFile } from '../interface/IFile';
4
+ import { IUploadProps } from '../interface/IUploadProps';
5
+ import { ExportModel } from '../model/export/ExportModel';
6
+ import { RootEntity } from '../model/RootEntity';
7
7
  /**
8
8
  * # 弹窗工具类
9
9
  * @author Hamm.cn
@@ -1,4 +1,4 @@
1
- import { RootEntity } from '../../../base';
1
+ import { RootEntity } from '../../model/RootEntity';
2
2
  /**
3
3
  * # `Detail` 的 `Hook` 可选配置
4
4
  * @author Hamm.cn
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { RootEntity } from '../../../base';
3
- import { AbstractCurdService } from '../../index';
2
+ import { RootEntity } from '../../model/RootEntity';
3
+ import { AbstractCurdService } from '../../service/AbstractCurdService';
4
4
  /**
5
5
  * # 详情的 `Hook` 标准返回
6
6
  * @author Hamm.cn
@@ -1,6 +1,7 @@
1
1
  import { IJson } from '@airpower/transformer';
2
- import { RootEntity } from '../../../base';
3
- import { AbstractCurdService, CurdServiceConstructor } from '../../index';
2
+ import { RootEntity } from '../../model/RootEntity';
3
+ import { AbstractCurdService } from '../../service/AbstractCurdService';
4
+ import { CurdServiceConstructor } from '../../service/type';
4
5
  import { IDetailOption } from './IDetailOption';
5
6
  import { IDetailResult } from './IDetailResult';
6
7
  /**
@@ -1,6 +1,6 @@
1
- import { RootEntity } from '../../../base';
2
- import { WebValidateRule } from '../../../util';
3
- import { IDetailOption } from '../detail';
1
+ import { RootEntity } from '../../model/RootEntity';
2
+ import { WebValidateRule } from '../../validator/type';
3
+ import { IDetailOption } from '../detail/IDetailOption';
4
4
  /**
5
5
  * # `Editor` 的 `Hook` 可选配置
6
6
  * @author Hamm.cn
@@ -1,9 +1,9 @@
1
1
  import { FormInstance } from 'element-plus';
2
2
  import { Ref } from 'vue';
3
- import { RootEntity } from '../../../base';
4
- import { WebValidateRule } from '../../../util';
5
- import { AbstractCurdService } from '../../index';
6
- import { IDetailResult } from '../detail';
3
+ import { RootEntity } from '../../model/RootEntity';
4
+ import { AbstractCurdService } from '../../service/AbstractCurdService';
5
+ import { WebValidateRule } from '../../validator/type';
6
+ import { IDetailResult } from '../detail/IDetailResult';
7
7
  /**
8
8
  * # `Editor` 的 `Hook` 标准返回
9
9
  * @author Hamm.cn
@@ -1,6 +1,7 @@
1
1
  import { IJson } from '@airpower/transformer';
2
- import { RootEntity } from '../../../base';
3
- import { AbstractCurdService, CurdServiceConstructor } from '../../index';
2
+ import { RootEntity } from '../../model/RootEntity';
3
+ import { AbstractCurdService } from '../../service/AbstractCurdService';
4
+ import { CurdServiceConstructor } from '../../service/type';
4
5
  import { IEditorOption } from './IEditorOption';
5
6
  import { IEditorResult } from './IEditorResult';
6
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { Component } from 'vue';
2
- import { RootEntity } from '../../../../base';
3
- import { QueryRequestPage } from '../../../model';
2
+ import { QueryRequestPage } from '../../../model/query/QueryRequestPage';
3
+ import { RootEntity } from '../../../model/RootEntity';
4
4
  /**
5
5
  * # 表格相关的根级配置项
6
6
  * @author Hamm.cn
@@ -1,7 +1,10 @@
1
1
  import { Ref } from 'vue';
2
- import { RootEntity } from '../../../../base';
3
- import { AbstractCurdService } from '../../../index';
4
- import { QueryPage, QueryRequestPage, QueryResponsePage, QuerySort } from '../../../model';
2
+ import { QueryPage } from '../../../model/query/QueryPage';
3
+ import { QueryRequestPage } from '../../../model/query/QueryRequestPage';
4
+ import { QueryResponsePage } from '../../../model/query/QueryResponsePage';
5
+ import { QuerySort } from '../../../model/query/QuerySort';
6
+ import { RootEntity } from '../../../model/RootEntity';
7
+ import { AbstractCurdService } from '../../../service/AbstractCurdService';
5
8
  /**
6
9
  * # `TableHook` 的基础返回结构
7
10
  * @author Hamm.cn
@@ -1,5 +1,6 @@
1
- import { RootEntity } from '../../../../base';
2
- import { AbstractCurdService, CurdServiceConstructor } from '../../../index';
1
+ import { RootEntity } from '../../../model/RootEntity';
2
+ import { AbstractCurdService } from '../../../service/AbstractCurdService';
3
+ import { CurdServiceConstructor } from '../../../service/type';
3
4
  import { IBaseTableOption } from './IBaseTableOption';
4
5
  import { IBaseTableResult } from './IBaseTableResult';
5
6
  /**
@@ -1,5 +1,5 @@
1
- import { RootEntity } from '../../../../base';
2
- import { IBaseTableOption } from '../base';
1
+ import { RootEntity } from '../../../model/RootEntity';
2
+ import { IBaseTableOption } from '../base/IBaseTableOption';
3
3
  /**
4
4
  * # `TableList` 的 `Hook` 可选配置
5
5
  * @author Hamm.cn
@@ -1,6 +1,6 @@
1
- import { RootEntity } from '../../../../base';
2
- import { AbstractCurdService } from '../../../index';
3
- import { IBaseTableResult } from '../base';
1
+ import { RootEntity } from '../../../model/RootEntity';
2
+ import { AbstractCurdService } from '../../../service/AbstractCurdService';
3
+ import { IBaseTableResult } from '../base/IBaseTableResult';
4
4
  /**
5
5
  * # 表格的 `Hook` 标准返回
6
6
  * @author Hamm.cn
@@ -1,5 +1,6 @@
1
- import { RootEntity } from '../../../../base';
2
- import { AbstractCurdService, CurdServiceConstructor } from '../../../index';
1
+ import { RootEntity } from '../../../model/RootEntity';
2
+ import { AbstractCurdService } from '../../../service/AbstractCurdService';
3
+ import { CurdServiceConstructor } from '../../../service/type';
3
4
  import { ITableOption } from './ITableOption';
4
5
  import { ITableResult } from './ITableResult';
5
6
  /**
@@ -1,5 +1,5 @@
1
- import { RootEntity } from '../../../../base';
2
- import { IBaseTableOption } from '../base';
1
+ import { RootEntity } from '../../../model/RootEntity';
2
+ import { IBaseTableOption } from '../base/IBaseTableOption';
3
3
  /**
4
4
  * # `Selector` 的 `Hook` 可选配置
5
5
  * @author Hamm.cn
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
- import { RootEntity } from '../../../../base';
3
- import { AbstractCurdService } from '../../../index';
4
- import { IBaseTableResult } from '../base';
2
+ import { RootEntity } from '../../../model/RootEntity';
3
+ import { AbstractCurdService } from '../../../service/AbstractCurdService';
4
+ import { IBaseTableResult } from '../base/IBaseTableResult';
5
5
  /**
6
6
  * # 选择器 `Hook` 的标准返回
7
7
  * @author Hamm.cn
@@ -1,6 +1,7 @@
1
1
  import { IJson } from '@airpower/transformer';
2
- import { RootEntity } from '../../../../base';
3
- import { AbstractCurdService, CurdServiceConstructor } from '../../../index';
2
+ import { RootEntity } from '../../../model/RootEntity';
3
+ import { AbstractCurdService } from '../../../service/AbstractCurdService';
4
+ import { CurdServiceConstructor } from '../../../service/type';
4
5
  import { ISelectorOption } from './ISelectorOption';
5
6
  import { ISelectorResult } from './ISelectorResult';
6
7
  /**
@@ -1,6 +1,6 @@
1
- import { RootEntity } from '../../../../base';
2
- import { ITree } from '../../../model';
3
- import { ITableOption } from '../list';
1
+ import { ITree } from '../../../interface/ITree';
2
+ import { RootEntity } from '../../../model/RootEntity';
3
+ import { ITableOption } from '../list/ITableOption';
4
4
  /**
5
5
  * # `TableTreeList` 的 `Hook` 可选配置
6
6
  * @author Hamm.cn
@@ -1,6 +1,6 @@
1
- import { RootEntity } from '../../../../base';
2
- import { AbstractCurdService } from '../../../index';
3
- import { ITableResult } from '../list';
1
+ import { RootEntity } from '../../../model/RootEntity';
2
+ import { AbstractCurdService } from '../../../service/AbstractCurdService';
3
+ import { ITableResult } from '../list/ITableResult';
4
4
  /**
5
5
  * # 树表格的 `Hook` 标准返回
6
6
  * @author Hamm.cn
@@ -1,6 +1,7 @@
1
- import { RootEntity } from '../../../../base';
2
- import { AbstractCurdService, CurdServiceConstructor } from '../../../index';
3
- import { ITree } from '../../../model';
1
+ import { ITree } from '../../../interface/ITree';
2
+ import { RootEntity } from '../../../model/RootEntity';
3
+ import { AbstractCurdService } from '../../../service/AbstractCurdService';
4
+ import { CurdServiceConstructor } from '../../../service/type';
4
5
  import { ITableTreeOption } from './ITableTreeOption';
5
6
  import { ITableTreeResult } from './ITableTreeResult';
6
7
  /**
@@ -1,5 +1,7 @@
1
1
  import { IJson, ITransformerConstructor, Transformer } from '@airpower/transformer';
2
- import { HttpContentType, HttpHeader, HttpMethod } from './enum';
2
+ import { HttpContentType } from './enum/HttpContentType';
3
+ import { HttpHeader } from './enum/HttpHeader';
4
+ import { HttpMethod } from './enum/HttpMethod';
3
5
  import { HttpResponse } from './HttpResponse';
4
6
  /**
5
7
  * # 网络请求类
@@ -7,14 +9,6 @@ import { HttpResponse } from './HttpResponse';
7
9
  * @author Hamm.cn
8
10
  */
9
11
  export declare class Http {
10
- /**
11
- * ### HTTP 请求前缀
12
- */
13
- static readonly PREFIX_HTTP = "http://";
14
- /**
15
- * ### HTTPS 请求前缀
16
- */
17
- static readonly PREFIX_HTTPS = "https://";
18
12
  /**
19
13
  * ### 请求方法
20
14
  */
@@ -1,4 +1,5 @@
1
- import { HttpHeader, HttpStatus } from './enum';
1
+ import { HttpHeader } from './enum/HttpHeader';
2
+ import { HttpStatus } from './enum/HttpStatus';
2
3
  /**
3
4
  * # 请求头KEY类型
4
5
  */
package/dist/index.d.ts CHANGED
@@ -1,6 +1,80 @@
1
- export * from './base';
2
1
  export * from './components';
3
- export * from './config';
4
- export * from './curd';
2
+ export * from './config/WebConfig';
3
+ export * from './decorator/@Field/Field';
4
+ export * from './decorator/@Field/IFieldConfig';
5
+ export * from './decorator/@Field/type';
6
+ export * from './decorator/@Form/Form';
7
+ export * from './decorator/@Form/FormTrim';
8
+ export * from './decorator/@Form/IFormField';
9
+ export * from './decorator/@Model/IModelConfig';
10
+ export * from './decorator/@Model/Model';
11
+ export * from './decorator/@Search/ISearchField';
12
+ export * from './decorator/@Search/Search';
13
+ export * from './decorator/@Table/ITableColumn';
14
+ export * from './decorator/@Table/ITableColumn';
15
+ export * from './decorator/@Table/Table';
16
+ export * from './decorator/@Table/type';
17
+ export * from './decorator/common/IBaseField';
18
+ export * from './dialog/DialogProps';
19
+ export * from './dialog/DialogUtil';
20
+ export * from './enum/DateTimeType';
21
+ export * from './enum/DisableEnum';
22
+ export * from './enum/IWebEnum';
23
+ export * from './enum/type';
24
+ export * from './enum/WebColor';
25
+ export * from './enum/WebEnum';
26
+ export * from './feedback/FeedbackUtil';
27
+ export * from './feedback/type';
28
+ export * from './file/WebFileUtil';
29
+ export * from './hooks/detail/IDetailOption';
30
+ export * from './hooks/detail/IDetailResult';
31
+ export * from './hooks/detail/useDetail';
32
+ export * from './hooks/editor/IEditorOption';
33
+ export * from './hooks/editor/IEditorResult';
34
+ export * from './hooks/editor/useEditor';
35
+ export * from './hooks/table/base/IBaseTableOption';
36
+ export * from './hooks/table/base/IBaseTableResult';
37
+ export * from './hooks/table/base/useBaseTable';
38
+ export * from './hooks/table/list/ITableOption';
39
+ export * from './hooks/table/list/ITableResult';
40
+ export * from './hooks/table/list/useTable';
41
+ export * from './hooks/table/selector/ISelectorOption';
42
+ export * from './hooks/table/selector/ISelectorResult';
43
+ export * from './hooks/table/selector/useSelector';
44
+ export * from './hooks/table/tree/ITableTreeOption';
45
+ export * from './hooks/table/tree/ITableTreeResult';
46
+ export * from './hooks/table/tree/useTableTree';
47
+ export * from './http/enum/HttpContentType';
48
+ export * from './http/enum/HttpHeader';
49
+ export * from './http/enum/HttpMethod';
50
+ export * from './http/enum/HttpStatus';
51
+ export * from './http/Http';
52
+ export * from './http/HttpResponse';
53
+ export * from './http/type';
54
+ export * from './i18n/WebI18n';
55
+ export * from './interface/IEntity';
56
+ export * from './interface/IFile';
57
+ export * from './interface/IMenu';
58
+ export * from './interface/IPayload';
59
+ export * from './interface/ITree';
60
+ export * from './interface/IUploadProps';
61
+ export * from './interface/IUser';
62
+ export * from './model/export/ExportModel';
63
+ export * from './model/query/QueryPage';
64
+ export * from './model/query/QueryRequest';
65
+ export * from './model/query/QueryRequestPage';
66
+ export * from './model/query/QueryResponsePage';
67
+ export * from './model/query/QuerySort';
68
+ export * from './model/query/type';
69
+ export * from './model/RootEntity';
70
+ export * from './model/RootModel';
71
+ export * from './permission/PermissionAction';
72
+ export * from './permission/PermissionUtil';
73
+ export * from './router/RouterUtil';
74
+ export * from './service/AbstractCurdService';
75
+ export * from './service/AbstractService';
76
+ export * from './service/type';
5
77
  export * from './shared';
6
- export * from './util';
78
+ export * from './type';
79
+ export * from './validator/type';
80
+ export * from './validator/WebValidator';
@@ -1,4 +1,4 @@
1
- import { ITree } from '../../curd';
1
+ import { ITree } from './ITree';
2
2
  /**
3
3
  * # 菜单接口
4
4
  *
@@ -1,4 +1,4 @@
1
- import { IEntity } from '../../../base';
1
+ import { IEntity } from './IEntity';
2
2
  /**
3
3
  * # 树形结构
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import { IJson, ITransformerConstructor } from '@airpower/transformer';
2
- import { RootEntity } from '../../base';
3
- import { IFile } from '../../util';
2
+ import { RootEntity } from '../model/RootEntity';
3
+ import { IFile } from './IFile';
4
4
  /**
5
5
  * # 上传配置项
6
6
  * @author Hamm.cn