@airpower/web 0.2.18 → 0.2.20

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 (140) hide show
  1. package/dist/components/button/Button.vue.d.ts +2 -2
  2. package/dist/components/dialog/Dialog.vue.d.ts +2 -2
  3. package/dist/components/dialog/index.d.ts +0 -2
  4. package/dist/components/form/FormField.vue.d.ts +9 -9
  5. package/dist/components/frame/Frame.vue.d.ts +2 -2
  6. package/dist/components/image/Image.vue.d.ts +18 -18
  7. package/dist/components/input/Input.vue.d.ts +9 -9
  8. package/dist/components/menu/ChildMenu.vue.d.ts +1 -1
  9. package/dist/components/menu/index.d.ts +0 -1
  10. package/dist/components/money/Money.vue.d.ts +2 -2
  11. package/dist/components/page/Page.vue.d.ts +3 -2
  12. package/dist/components/panel/Panel.vue.d.ts +1 -1
  13. package/dist/components/payload/Payload.vue.d.ts +2 -2
  14. package/dist/components/payload/index.d.ts +1 -1
  15. package/dist/components/select/Select.vue.d.ts +3 -3
  16. package/dist/components/select/Selector.vue.d.ts +6 -2
  17. package/dist/components/table/Table.vue.d.ts +16 -10
  18. package/dist/components/table/component/ColumnSelector.vue.d.ts +2 -2
  19. package/dist/components/table/component/CopyColumn.vue.d.ts +2 -2
  20. package/dist/components/table/component/EnumColumn.vue.d.ts +3 -3
  21. package/dist/components/table/component/Export.vue.d.ts +6 -6
  22. package/dist/components/table/useTableButton.d.ts +1 -1
  23. package/dist/components/table/useTableColumn.d.ts +3 -2
  24. package/dist/components/table/useTableSelect.d.ts +1 -1
  25. package/dist/components/tree/TreeBox.vue.d.ts +5 -5
  26. package/dist/components/upload/IUploadProps.d.ts +2 -2
  27. package/dist/components/upload/Upload.vue.d.ts +8 -8
  28. package/dist/config/WebConfig.d.ts +4 -0
  29. package/dist/config/WebConstant.d.ts +15 -0
  30. package/dist/{curd/decorator → decorator}/@Field/Field.d.ts +5 -5
  31. package/dist/{curd/decorator → decorator}/@Field/IFieldConfig.d.ts +2 -2
  32. package/dist/{curd/decorator → decorator}/@Form/Form.d.ts +5 -5
  33. package/dist/{curd/decorator → decorator}/@Form/IFormField.d.ts +2 -2
  34. package/dist/{curd/decorator → decorator}/@Search/ISearchField.d.ts +1 -1
  35. package/dist/{curd/decorator → decorator}/@Search/Search.d.ts +5 -5
  36. package/dist/{curd/decorator → decorator}/@Table/ITableColumn.d.ts +1 -1
  37. package/dist/{curd/decorator → decorator}/@Table/Table.d.ts +5 -5
  38. package/dist/{components/dialog → dialog}/DialogProps.d.ts +1 -1
  39. package/dist/{components/dialog → dialog}/DialogUtil.d.ts +4 -4
  40. package/dist/{curd/hooks → hooks}/detail/IDetailOption.d.ts +1 -1
  41. package/dist/{curd/hooks → hooks}/detail/IDetailResult.d.ts +2 -2
  42. package/dist/{curd/hooks → hooks}/detail/useDetail.d.ts +3 -2
  43. package/dist/{curd/hooks → hooks}/editor/IEditorOption.d.ts +3 -3
  44. package/dist/{curd/hooks → hooks}/editor/IEditorResult.d.ts +4 -4
  45. package/dist/{curd/hooks → hooks}/editor/useEditor.d.ts +3 -2
  46. package/dist/{curd/hooks → hooks}/table/base/IBaseTableOption.d.ts +2 -2
  47. package/dist/{curd/hooks → hooks}/table/base/IBaseTableResult.d.ts +6 -3
  48. package/dist/{curd/hooks → hooks}/table/base/useBaseTable.d.ts +3 -2
  49. package/dist/{curd/hooks → hooks}/table/list/ITableOption.d.ts +2 -2
  50. package/dist/{curd/hooks → hooks}/table/list/ITableResult.d.ts +3 -3
  51. package/dist/{curd/hooks → hooks}/table/list/useTable.d.ts +3 -2
  52. package/dist/{curd/hooks → hooks}/table/selector/ISelectorOption.d.ts +2 -2
  53. package/dist/{curd/hooks → hooks}/table/selector/ISelectorResult.d.ts +3 -3
  54. package/dist/{curd/hooks → hooks}/table/selector/useSelector.d.ts +3 -2
  55. package/dist/{curd/hooks → hooks}/table/tree/ITableTreeOption.d.ts +3 -3
  56. package/dist/{curd/hooks → hooks}/table/tree/ITableTreeResult.d.ts +3 -3
  57. package/dist/{curd/hooks → hooks}/table/tree/useTableTree.d.ts +4 -3
  58. package/dist/{util/http → http}/Http.d.ts +3 -9
  59. package/dist/{util/http → http}/type.d.ts +2 -1
  60. package/dist/index.d.ts +0 -6
  61. package/dist/{components/menu → interface}/IMenu.d.ts +1 -1
  62. package/dist/{curd/model/tree → interface}/ITree.d.ts +1 -1
  63. package/dist/main.js +0 -12069
  64. package/dist/{base → model}/RootEntity.d.ts +1 -1
  65. package/dist/{curd/model → model}/export/ExportModel.d.ts +1 -1
  66. package/dist/{curd/model → model}/query/QueryRequest.d.ts +1 -1
  67. package/dist/{curd/model → model}/query/QueryRequestPage.d.ts +1 -1
  68. package/dist/{curd/model → model}/query/QueryResponsePage.d.ts +1 -1
  69. package/dist/{util/permission → permission}/PermissionUtil.d.ts +1 -5
  70. package/dist/{util/router → router}/RouterUtil.d.ts +1 -1
  71. package/dist/{curd → service}/AbstractCurdService.d.ts +5 -3
  72. package/dist/{base → service}/AbstractService.d.ts +1 -1
  73. package/dist/{curd → service}/type.d.ts +1 -1
  74. package/dist/tests/App.vue.d.ts +2 -0
  75. package/dist/tests/main.d.ts +1 -0
  76. package/dist/{util/validator → validator}/WebValidator.d.ts +2 -2
  77. package/dist/{util/validator → validator}/type.d.ts +1 -1
  78. package/dist/web.css +1 -1091
  79. package/package.json +1 -1
  80. package/dist/base/index.d.ts +0 -4
  81. package/dist/config/index.d.ts +0 -1
  82. package/dist/curd/decorator/@Field/index.d.ts +0 -3
  83. package/dist/curd/decorator/@Form/index.d.ts +0 -3
  84. package/dist/curd/decorator/@Model/index.d.ts +0 -2
  85. package/dist/curd/decorator/@Search/index.d.ts +0 -2
  86. package/dist/curd/decorator/@Table/index.d.ts +0 -4
  87. package/dist/curd/decorator/common/index.d.ts +0 -1
  88. package/dist/curd/decorator/index.d.ts +0 -6
  89. package/dist/curd/hooks/detail/index.d.ts +0 -3
  90. package/dist/curd/hooks/editor/index.d.ts +0 -3
  91. package/dist/curd/hooks/index.d.ts +0 -3
  92. package/dist/curd/hooks/table/base/index.d.ts +0 -3
  93. package/dist/curd/hooks/table/index.d.ts +0 -4
  94. package/dist/curd/hooks/table/list/index.d.ts +0 -3
  95. package/dist/curd/hooks/table/selector/index.d.ts +0 -3
  96. package/dist/curd/hooks/table/tree/index.d.ts +0 -3
  97. package/dist/curd/index.d.ts +0 -5
  98. package/dist/curd/model/export/index.d.ts +0 -1
  99. package/dist/curd/model/index.d.ts +0 -3
  100. package/dist/curd/model/query/index.d.ts +0 -6
  101. package/dist/curd/model/tree/index.d.ts +0 -1
  102. package/dist/util/enum/index.d.ts +0 -5
  103. package/dist/util/feedback/index.d.ts +0 -2
  104. package/dist/util/file/index.d.ts +0 -2
  105. package/dist/util/http/enum/index.d.ts +0 -4
  106. package/dist/util/http/index.d.ts +0 -4
  107. package/dist/util/i18n/index.d.ts +0 -1
  108. package/dist/util/index.d.ts +0 -8
  109. package/dist/util/permission/index.d.ts +0 -2
  110. package/dist/util/router/index.d.ts +0 -1
  111. package/dist/util/validator/index.d.ts +0 -2
  112. /package/dist/{curd/decorator → decorator}/@Field/type.d.ts +0 -0
  113. /package/dist/{curd/decorator → decorator}/@Form/FormTrim.d.ts +0 -0
  114. /package/dist/{curd/decorator → decorator}/@Model/IModelConfig.d.ts +0 -0
  115. /package/dist/{curd/decorator → decorator}/@Model/Model.d.ts +0 -0
  116. /package/dist/{curd/decorator → decorator}/@Table/IElementTableColumn.d.ts +0 -0
  117. /package/dist/{curd/decorator → decorator}/@Table/TableType.d.ts +0 -0
  118. /package/dist/{curd/decorator → decorator}/common/IBaseField.d.ts +0 -0
  119. /package/dist/{util/enum → enum}/DisableEnum.d.ts +0 -0
  120. /package/dist/{util/enum → enum}/IWebEnum.d.ts +0 -0
  121. /package/dist/{util/enum → enum}/WebColor.d.ts +0 -0
  122. /package/dist/{util/enum → enum}/WebEnum.d.ts +0 -0
  123. /package/dist/{util/enum → enum}/type.d.ts +0 -0
  124. /package/dist/{util/feedback → feedback}/FeedbackUtil.d.ts +0 -0
  125. /package/dist/{util/feedback → feedback}/type.d.ts +0 -0
  126. /package/dist/{util/file → file}/WebFileUtil.d.ts +0 -0
  127. /package/dist/{util/http → http}/HttpResponse.d.ts +0 -0
  128. /package/dist/{util/http → http}/enum/HttpContentType.d.ts +0 -0
  129. /package/dist/{util/http → http}/enum/HttpHeader.d.ts +0 -0
  130. /package/dist/{util/http → http}/enum/HttpMethod.d.ts +0 -0
  131. /package/dist/{util/http → http}/enum/HttpStatus.d.ts +0 -0
  132. /package/dist/{util/i18n → i18n}/WebI18n.d.ts +0 -0
  133. /package/dist/{base → interface}/IEntity.d.ts +0 -0
  134. /package/dist/{util/file → interface}/IFile.d.ts +0 -0
  135. /package/dist/{components/payload → interface}/IPayload.d.ts +0 -0
  136. /package/dist/{base → model}/RootModel.d.ts +0 -0
  137. /package/dist/{curd/model → model}/query/QueryPage.d.ts +0 -0
  138. /package/dist/{curd/model → model}/query/QuerySort.d.ts +0 -0
  139. /package/dist/{curd/model → model}/query/type.d.ts +0 -0
  140. /package/dist/{util/permission → permission}/PermissionAction.d.ts +0 -0
@@ -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
  /**
@@ -15,16 +15,16 @@ export declare function Field<K extends EnumKey = EnumKey>(config?: FieldConfigO
15
15
  * @param TargetClass 目标类
16
16
  * @param key 属性名
17
17
  */
18
- export declare function getFieldConfig<M extends RootModel, K extends EnumKey = EnumKey>(TargetClass: ITransformerConstructor<M>, key: keyof M): IFieldConfig<K>;
18
+ export declare function getFieldConfig<M extends RootModel, K extends EnumKey = EnumKey>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): IFieldConfig<K>;
19
19
  /**
20
20
  * ### 获取属性的枚举字典
21
21
  * @param TargetClass 目标类
22
22
  * @param key 属性名
23
23
  */
24
- export declare function getDictionary<M extends RootModel, K extends EnumKey = EnumKey>(TargetClass: ITransformerConstructor<M>, key: keyof M): WebEnumConstructor<K> | undefined;
24
+ export declare function getDictionary<M extends RootModel, K extends EnumKey = EnumKey>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): WebEnumConstructor<K> | undefined;
25
25
  /**
26
26
  * ### 获取属性的标题
27
27
  * @param TargetClass 目标类
28
28
  * @param key string 属性名
29
29
  */
30
- export declare function getFieldLabel<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M): string;
30
+ export declare function getFieldLabel<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): string;
@@ -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
  * ### 标记该字段可用于表单配置
@@ -12,15 +12,15 @@ export declare function Form(config?: FieldConfigOptionalKey<IFormField>): (targ
12
12
  * @param TargetClass 目标类
13
13
  * @param key 属性名
14
14
  */
15
- export declare function getFormConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M): IFormField;
15
+ export declare function getFormConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): IFormField;
16
16
  /**
17
17
  * ### 获取标记了表单配置的字段列表
18
18
  * @param TargetClass 目标类
19
19
  */
20
- export declare function getFormFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M>;
20
+ export declare function getFormFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M | string>;
21
21
  /**
22
22
  * ### 获取指定类的表单字段配置项列表
23
23
  * @param TargetClass 目标类
24
24
  * @param keyList 选择字段列表
25
25
  */
26
- export declare function getFormConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M>): IFormField[];
26
+ export declare function getFormConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M | string>): IFormField[];
@@ -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 '../../components';
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
  * ### 标记该字段可用于表单配置
@@ -12,15 +12,15 @@ export declare function Search(config?: FieldConfigOptionalKey<ISearchField>): (
12
12
  * @param TargetClass 目标类
13
13
  * @param key 属性名
14
14
  */
15
- export declare function getSearchConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M): ISearchField;
15
+ export declare function getSearchConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): ISearchField;
16
16
  /**
17
17
  * ### 获取标记了搜索配置的字段列表
18
18
  * @param TargetClass 目标类
19
19
  */
20
- export declare function getSearchFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M>;
20
+ export declare function getSearchFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M | string>;
21
21
  /**
22
22
  * ### 获取指定类的搜索字段配置项列表
23
23
  * @param TargetClass 目标类
24
24
  * @param keyList 选择字段列表
25
25
  */
26
- export declare function getSearchConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M>): ISearchField[];
26
+ export declare function getSearchConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M | string>): ISearchField[];
@@ -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
  * ### 为属性标记是表格字段
@@ -12,15 +12,15 @@ export declare function Table(config?: FieldConfigOptionalKey<ITableColumn>): (t
12
12
  * @param TargetClass 目标类
13
13
  * @param key 属性名
14
14
  */
15
- export declare function getTableConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M): ITableColumn;
15
+ export declare function getTableConfig<M extends RootModel>(TargetClass: ITransformerConstructor<M>, key: keyof M | string): ITableColumn;
16
16
  /**
17
17
  * ### 获取标记了表格配置的字段列表
18
18
  * @param TargetClass 目标类
19
19
  */
20
- export declare function getTableFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M>;
20
+ export declare function getTableFieldList<M extends RootModel>(TargetClass: ITransformerConstructor<M>): Array<keyof M | string>;
21
21
  /**
22
22
  * ### 获取字段标记的表格字段配置列表
23
23
  * @param TargetClass 目标类
24
24
  * @param keyList 字段列表
25
25
  */
26
- export declare function getTableConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M>): Array<ITableColumn>;
26
+ export declare function getTableConfigList<M extends RootModel>(TargetClass: ITransformerConstructor<M>, keyList?: Array<keyof M | string>): Array<ITableColumn>;
@@ -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 { IUploadProps } from '../components/upload';
4
+ import { IFile } from '../interface/IFile';
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 +0,0 @@
1
- export * from './base';
2
- export * from './components';
3
- export * from './config';
4
- export * from './curd';
5
- export * from './shared';
6
- export * from './util';
@@ -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
  *