@ithinkdt/ui 4.0.0-5 → 4.0.0-51

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.
package/auto-imports.d.ts CHANGED
@@ -1,10 +1,15 @@
1
- export declare const UI: {
2
- from: string
3
- imports: (string | { name: string; type: boolean })[]
1
+ export declare const UIDirectives: {
2
+ type: 'directive'
3
+ resolve: (name: string) => string | undefined
4
4
  }[]
5
- export default UI
6
5
 
7
- export declare const UIDirectives: {
8
- type: 'component' | 'directive'
6
+ export declare const UIComponents: {
7
+ type: 'component'
9
8
  resolve: (name: string) => string | undefined
10
9
  }[]
10
+
11
+ export declare const UI: {
12
+ from: string
13
+ imports: (string | { name: string, type: boolean })[]
14
+ }[]
15
+ export default UI
package/auto-imports.js CHANGED
@@ -1,19 +1,34 @@
1
- export const UI = [
1
+ export const UIDirectives = [
2
2
  {
3
- from: '@ithinkdt/ui',
4
- imports: ['vSpin', 'vTooltip'],
3
+ type: 'directive',
4
+ resolve(name) {
5
+ return ['Spin', 'Tooltip'].includes(name)
6
+ ? { name: `v${name}`, from: '@ithinkdt/ui/directives' }
7
+ : undefined
8
+ },
5
9
  },
6
10
  ]
7
11
 
8
- export default UI
9
-
10
- export const UIDirectives = [
12
+ export const UIComponents = [
11
13
  {
12
- type: 'directive',
14
+ type: 'component',
13
15
  resolve(name) {
14
- return ['Spin', 'Tooltip'].includes(name)
15
- ? { name: `v${name}`, from: '@ithinkdt/ui' }
16
+ return ['DataTable', 'DataForm', 'DataCustom', 'DataFilter', 'DataSelection', 'DataPagination'].includes(name)
17
+ ? { name, from: '@ithinkdt/ui/components' }
16
18
  : undefined
17
19
  },
18
20
  },
19
21
  ]
22
+
23
+ export const UI = [
24
+ {
25
+ from: '@ithinkdt/ui/directives',
26
+ imports: ['vSpin', 'vTooltip'],
27
+ },
28
+ {
29
+ from: '@ithinkdt/ui/components',
30
+ imports: ['DataTable', 'DataForm', 'DataCustom', 'DataFilter', 'DataSelection', 'DataPagination'],
31
+ },
32
+ ]
33
+
34
+ export default UI