@hzw-tech/utils 0.2.5 → 0.2.6

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/dist/umi.js CHANGED
@@ -9,7 +9,114 @@ function autoImport(chainWebpackConfig, options) {
9
9
  /**
10
10
  * 默认导入的包
11
11
  */
12
- imports: ['react', '@umijs/max', 'antd', '@ant-design/icons'],
12
+ imports: [
13
+ 'react',
14
+ {
15
+ antd: [
16
+ 'Button',
17
+ 'Steps',
18
+ 'Form',
19
+ 'Input',
20
+ 'Select',
21
+ 'Table',
22
+ 'Modal',
23
+ 'message',
24
+ 'notification',
25
+ 'Spin',
26
+ 'Layout',
27
+ 'Row',
28
+ 'Col',
29
+ 'Typography',
30
+ 'Card',
31
+ 'Space',
32
+ 'Divider',
33
+ 'DatePicker',
34
+ 'TimePicker',
35
+ 'Upload',
36
+ 'Switch',
37
+ 'Checkbox',
38
+ 'Radio',
39
+ 'InputNumber',
40
+ 'Slider',
41
+ 'Rate',
42
+ 'Progress',
43
+ 'Transfer',
44
+ 'TreeSelect',
45
+ 'Cascader',
46
+ 'AutoComplete',
47
+ 'Mentions',
48
+ 'Tree',
49
+ 'Tabs',
50
+ 'Anchor',
51
+ 'Affix',
52
+ 'BackTop',
53
+ 'Badge',
54
+ 'Breadcrumb',
55
+ 'Calendar',
56
+ 'Carousel',
57
+ 'Collapse',
58
+ 'Descriptions',
59
+ 'Drawer',
60
+ 'Dropdown',
61
+ 'Empty',
62
+ 'Image',
63
+ 'List',
64
+ 'Menu',
65
+ 'PageHeader',
66
+ 'Pagination',
67
+ 'Popconfirm',
68
+ 'Popover',
69
+ 'Progress',
70
+ 'Result',
71
+ 'Segmented',
72
+ 'Skeleton',
73
+ 'Statistic',
74
+ 'Timeline',
75
+ 'Tooltip',
76
+ 'Tour',
77
+ 'Watermark',
78
+ ],
79
+ },
80
+ {
81
+ '@ant-design/icons': [
82
+ 'UserOutlined',
83
+ 'LockOutlined',
84
+ 'HomeOutlined',
85
+ 'SettingOutlined',
86
+ 'LogoutOutlined',
87
+ 'MenuFoldOutlined',
88
+ 'MenuUnfoldOutlined',
89
+ 'PlusOutlined',
90
+ 'EditOutlined',
91
+ 'DeleteOutlined',
92
+ 'SearchOutlined',
93
+ 'ReloadOutlined',
94
+ 'DownloadOutlined',
95
+ 'UploadOutlined',
96
+ 'CheckCircleOutlined',
97
+ 'CloseCircleOutlined',
98
+ 'InfoCircleOutlined',
99
+ 'ExclamationCircleOutlined',
100
+ 'WarningOutlined',
101
+ ],
102
+ },
103
+ {
104
+ '@umijs/max': [
105
+ 'useAccess',
106
+ 'useModel',
107
+ 'useRequest',
108
+ 'history',
109
+ 'useSearchParams',
110
+ 'useLocation',
111
+ 'useNavigate',
112
+ 'useParams',
113
+ ['request', 'umiRequest'],
114
+ ],
115
+ },
116
+ {
117
+ '@hzw-tech/utils': ['utils', 'css', 'bem', 'request', 'reg', 'validators'],
118
+ },
119
+ ],
13
120
  /**
14
121
  * 其他需要导入的工具方法
15
122
  */
@@ -31,7 +138,7 @@ function autoImport(chainWebpackConfig, options) {
31
138
  }
32
139
 
33
140
  export function scss(options) {
34
- let additionalData = ''
141
+ let additionalData = '@import "@hzw-tech/utils/dist/styles/reference/index.scss";'
35
142
  if (options && options.additionalData) {
36
143
  additionalData = options.additionalData
37
144
  }
package/dist/vite.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module '@hzw-tech/utils/vite' {
1
+ declare module '@hzw-tech/utils/dist/vite' {
2
2
  import type { Options as AutoImportOptions } from 'unplugin-auto-import/types'
3
3
  import type { Plugin } from 'vite'
4
4
 
package/dist/vite.js CHANGED
@@ -25,7 +25,7 @@ function autoImport(options) {
25
25
  }
26
26
 
27
27
  function scss(options) {
28
- let additionalData = ''
28
+ let additionalData = '@import "@hzw-tech/utils/dist/styles/reference/index.scss";'
29
29
  if (options && options.additionalData) {
30
30
  additionalData = options.additionalData
31
31
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hzw-tech/utils",
3
3
  "type": "module",
4
- "version": "0.2.5",
4
+ "version": "0.2.6",
5
5
  "description": "通用前端工具包,包含请求,正则校验,全局ts声明等",
6
6
  "author": "hzw-tech",
7
7
  "license": "MIT",
package/readme.md CHANGED
@@ -9,8 +9,8 @@ hzw,ts前端工具包,包含常用css类以及ts工具方法等。可以用
9
9
 
10
10
  ```bash
11
11
  pnpm i @hzw-tech/utils
12
- //
13
- yarn add @hzw-tech/utils
12
+ # VUE项目
13
+ pnpm i @hzw-tech/utils @tailwindcss/postcss postcss tailwindcss
14
14
  ```
15
15
 
16
16
  ## 2.特性