@innoways/drip-form-theme-antd 3.0.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,170 @@
1
+ # Change Log
2
+
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Initial version
8
+
9
+ ## 2.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - Initial changelog
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @jdfed/hooks@2.0.0
19
+ - @jdfed/utils@2.0.0
20
+
21
+ ## 1.0.0
22
+
23
+ ### Major Changes
24
+
25
+ - Initial changelog
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+ - @jdfed/hooks@1.0.0
31
+ - @jdfed/utils@1.0.0
32
+
33
+ All notable changes to this project will be documented in this file.
34
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
35
+
36
+ ### [0.8.2](https://github.com/jdfed/drip-form/compare/v0.8.1...v0.8.2) (2022-07-15)
37
+
38
+ **Note:** Version bump only for package @jdfed/drip-form-theme-antd
39
+
40
+ ### [0.8.1](https://github.com/jdfed/drip-form/compare/v0.8.0...v0.8.1) (2022-06-29)
41
+
42
+ ### Bug Fixes
43
+
44
+ - **generator:** compatibility with old data ([#215](https://github.com/jdfed/drip-form/issues/215)) ([3ac1ab9](https://github.com/jdfed/drip-form/commit/3ac1ab9a5c794d216e9e6117fcc96fffb69b5a40)), closes [#214](https://github.com/jdfed/drip-form/issues/214)
45
+
46
+ ## [0.8.0](https://github.com/jdfed/drip-form/compare/v0.7.0...v0.8.0) (2022-06-01)
47
+
48
+ ### Features
49
+
50
+ - **thema:** checkbox supports select all ([#205](https://github.com/jdfed/drip-form/issues/205)) ([b80e38a](https://github.com/jdfed/drip-form/commit/b80e38a37588f283282c8d124c21a99fb065d910))
51
+ - form support view mode ([bf61f3f](https://github.com/jdfed/drip-form/commit/bf61f3f958343d47d8a20af30a4f7e2e4d2f9026))
52
+ - nullField add styleType configuration ([#158](https://github.com/jdfed/drip-form/issues/158)) ([dca0687](https://github.com/jdfed/drip-form/commit/dca0687a89200278cdd4018dbc49f683a4ec0906))
53
+
54
+ ### Bug Fixes
55
+
56
+ - **generator:** change the default values for part of the property configuration ([#212](https://github.com/jdfed/drip-form/issues/212)) ([cdf5389](https://github.com/jdfed/drip-form/commit/cdf53899bcebcf14824dd44245bf919b91fd4bd2))
57
+ - **theme:** upload component cannot preview images after exportToString is enabled ([#197](https://github.com/jdfed/drip-form/issues/197)) ([a02a78a](https://github.com/jdfed/drip-form/commit/a02a78a65217966287a40518fd8af6806780aa4f))
58
+
59
+ ## [0.7.0](https://github.com/jdfed/drip-form/compare/v0.6.0...v0.7.0) (2022-03-14)
60
+
61
+ ### Features
62
+
63
+ - add generator configuration for antd theme ([#156](https://github.com/jdfed/drip-form/issues/156)) ([bec30a0](https://github.com/jdfed/drip-form/commit/bec30a05d16678514a5bee1fe1921dc46eb3454d))
64
+ - **generator:** timePicker add default configuration ([bac3e72](https://github.com/jdfed/drip-form/commit/bac3e7271e6094045b86800aa79693edc61291ad))
65
+
66
+ ## [0.6.0](https://github.com/jdfed/drip-form/compare/v0.5.0...v0.6.0) (2022-01-24)
67
+
68
+ ### Features
69
+
70
+ - 数组容器删除子项支持二次确认配置 ([33eeff8](https://github.com/jdfed/drip-form/commit/33eeff86cef300af209889e82cd10fa663c300d4))
71
+
72
+ ### style
73
+
74
+ - 修复颜色选择器样式 ([91a32f0](https://github.com/jdfed/drip-form/commit/91a32f0dacc9a5017058aef5f01fa043d3cc5d4c))
75
+
76
+ ## [0.5.0](https://github.com/jdfed/drip-form/compare/v0.4.0...v0.5.0) (2022-01-13)
77
+
78
+ ### Features
79
+
80
+ - setError 支持配置 action.ignore ([#125](https://github.com/jdfed/drip-form/issues/125)) ([b84aa5e](https://github.com/jdfed/drip-form/commit/b84aa5eead2b3f384d70bb45ce2961fcb1afbd1d))
81
+
82
+ ### Bug Fixes
83
+
84
+ - 修复日期、时间选择器配置占位符、默认值无效问题 ([#123](https://github.com/jdfed/drip-form/issues/123)) ([e7e8543](https://github.com/jdfed/drip-form/commit/e7e85436fe32fb9da5af8bd927e2f30e243f4508))
85
+
86
+ ## 0.4.0 (2022-01-11)
87
+
88
+ ### Features
89
+
90
+ - upload support img size limit ([#102](https://github.com/jdfed/drip-form/issues/102)) ([acbd278](https://github.com/jdfed/drip-form/commit/acbd27861a44004abf3afb7ae5ca5d210c70c28d))
91
+ - uploader support maxCount ([#72](https://github.com/jdfed/drip-form/issues/72)) ([0c01435](https://github.com/jdfed/drip-form/commit/0c0143593a3e4da4eb2ff1d438cbd88c5aa999ff))
92
+ - upload 支持输出 string 类型([#52](https://github.com/jdfed/drip-form/issues/52)) ([#117](https://github.com/jdfed/drip-form/issues/117)) ([447489a](https://github.com/jdfed/drip-form/commit/447489a395c98ca63bcf76213c9778a73dffe010))
93
+
94
+ ### Bug Fixes
95
+
96
+ - upload preview error ([#83](https://github.com/jdfed/drip-form/issues/83)) ([fab9052](https://github.com/jdfed/drip-form/commit/fab90527dbedca35cc2119bca93106f9fa58ee28))
97
+ - upload 组件 jdAction 域名匹配规则 ([347b31a](https://github.com/jdfed/drip-form/commit/347b31a44227dd47195b89ef20d335cdcd0d023f))
98
+
99
+ ## 0.3.0 (2022-01-11)
100
+
101
+ ### Features
102
+
103
+ - upload support img size limit ([#102](https://github.com/jdfed/drip-form/issues/102)) ([acbd278](https://github.com/jdfed/drip-form/commit/acbd27861a44004abf3afb7ae5ca5d210c70c28d))
104
+ - uploader support maxCount ([#72](https://github.com/jdfed/drip-form/issues/72)) ([0c01435](https://github.com/jdfed/drip-form/commit/0c0143593a3e4da4eb2ff1d438cbd88c5aa999ff))
105
+ - upload 支持输出 string 类型([#52](https://github.com/jdfed/drip-form/issues/52)) ([#117](https://github.com/jdfed/drip-form/issues/117)) ([447489a](https://github.com/jdfed/drip-form/commit/447489a395c98ca63bcf76213c9778a73dffe010))
106
+
107
+ ### Bug Fixes
108
+
109
+ - upload preview error ([#83](https://github.com/jdfed/drip-form/issues/83)) ([fab9052](https://github.com/jdfed/drip-form/commit/fab90527dbedca35cc2119bca93106f9fa58ee28))
110
+ - upload 组件 jdAction 域名匹配规则 ([347b31a](https://github.com/jdfed/drip-form/commit/347b31a44227dd47195b89ef20d335cdcd0d023f))
111
+
112
+ ## 0.2.0 (2022-01-07)
113
+
114
+ ### Features
115
+
116
+ - upload support img size limit ([#102](https://github.com/jdfed/drip-form/issues/102)) ([acbd278](https://github.com/jdfed/drip-form/commit/acbd27861a44004abf3afb7ae5ca5d210c70c28d))
117
+ - uploader support maxCount ([#72](https://github.com/jdfed/drip-form/issues/72)) ([0c01435](https://github.com/jdfed/drip-form/commit/0c0143593a3e4da4eb2ff1d438cbd88c5aa999ff))
118
+
119
+ ### Bug Fixes
120
+
121
+ - upload preview error ([#83](https://github.com/jdfed/drip-form/issues/83)) ([fab9052](https://github.com/jdfed/drip-form/commit/fab90527dbedca35cc2119bca93106f9fa58ee28))
122
+
123
+ **Note:** Version bump only for package @jdfed/drip-form-theme-antd
124
+
125
+ ## 0.1.0 (2021-11-24)
126
+
127
+ ### Features
128
+
129
+ - 补充 Uploader 的组件能力以支持京东图片服务 ([09bfe47](https://github.com/jdfed/drip-form/commit/09bfe477700d7c9b727253b16056b8b1e4100232))
130
+ - 单选选项卡后跟悬浮提示 ([df2d2e4](https://github.com/jdfed/drip-form/commit/df2d2e48b6a74da1e2d8048add0d3598317636ad))
131
+ - 迁移 babel-form 至 drip-form ([7687505](https://github.com/jdfed/drip-form/commit/768750518a8fdd9de93234fb8fbd5fc1cbd555b6))
132
+ - 嵌套表单 ([b939eed](https://github.com/jdfed/drip-form/commit/b939eed9bf23db5efa9a6c8177a24b397f4e8ba8))
133
+ - 嵌套对象必填支持&useQuery 支持 getkey ([d33a002](https://github.com/jdfed/drip-form/commit/d33a002567c7061ee28f5063738cba71c53872bf))
134
+ - 删除 Spin loading ([1a6d7df](https://github.com/jdfed/drip-form/commit/1a6d7df9e638d49bb3b938c2bbc46fb274bb6ea3))
135
+ - 异步校验 loading 态 ([6efb51a](https://github.com/jdfed/drip-form/commit/6efb51ad5f75a4a14b41a7b460eb51438d6807f2))
136
+ - 支持 set、get、merge ([dc267b6](https://github.com/jdfed/drip-form/commit/dc267b6a23d7d9a8b5bf3edff303adfed7a98056))
137
+ - bug 修复+容器组件 title 配置 ([7fc0a05](https://github.com/jdfed/drip-form/commit/7fc0a054e1e3edc824d7153d6bb4b7a1540585f0))
138
+ - checkbox 增加提示 ([134f176](https://github.com/jdfed/drip-form/commit/134f176e44c18aba2d881190d9837560acf64aeb))
139
+ - colorPicker 添加 defaultValue 字段控制默认颜色(默认[#000000](https://github.com/jdfed/drip-form/issues/000000)) ([471f287](https://github.com/jdfed/drip-form/commit/471f28758b918ce2cc218f48851a8a7b1c3c7cd5))
140
+ - container 外部封装高阶拖拽组件 ([45f8427](https://github.com/jdfed/drip-form/commit/45f842764601aaa44b267a39f3530827be11c0a3))
141
+ - objectContainer 支持折叠 ([cae8d71](https://github.com/jdfed/drip-form/commit/cae8d715dfa6899b96484764310c0bce06880442))
142
+
143
+ ### Bug Fixes
144
+
145
+ - 1.输入框,组件撑满容器宽度;2.多选文案校验修改 ([0b1017e](https://github.com/jdfed/drip-form/commit/0b1017e9e7d61a4e3a74e5f980b84932701706f3))
146
+ - 更新版本 ([7de7c83](https://github.com/jdfed/drip-form/commit/7de7c83b4d4225bb3d8010e81c4877625c719422))
147
+ - 滑动输入框,垂直展示 ts style 修改 ([2aea851](https://github.com/jdfed/drip-form/commit/2aea851eb54c25052b74ec341d695ea24e2402c6))
148
+ - 滑动输入框,垂直展示,设置默认高度 ([93b2e02](https://github.com/jdfed/drip-form/commit/93b2e02106a1ff9ec1aaf5f8696ca6d0cf1dde8a))
149
+ - 滑动输入框,垂直展示,自定义高度 ([ed4214b](https://github.com/jdfed/drip-form/commit/ed4214b512e9c726863fb1c3e3fc108463d1243d))
150
+ - 修复@ant-design/icon 按需加载失效 ([2ca16a0](https://github.com/jdfed/drip-form/commit/2ca16a01e273a8a4e085703be6f807f949786b0f))
151
+ - 修复导出包无法被 vite 或 snowpack 使用的问题 ([37f6636](https://github.com/jdfed/drip-form/commit/37f6636124ecd3223eac7152fb19a4accf2c5ca8))
152
+ - 修复默认导出声明 ([f32e7a2](https://github.com/jdfed/drip-form/commit/f32e7a2eb3f597b19bb5b5c24716ecdb5e5ecb17))
153
+ - 修复一系列问题 ([52d3e42](https://github.com/jdfed/drip-form/commit/52d3e4258f962958189f1c8ced9b8c20dcf24653))
154
+ - 修复 description.title 为 reactNode 时显示异常 ([1bfc76d](https://github.com/jdfed/drip-form/commit/1bfc76d063241e8f140b6d4d1964d1ff494c1f47))
155
+ - 修复 exports 被删除后无法打包的问题 ([9d54151](https://github.com/jdfed/drip-form/commit/9d54151a8445fd0b7849b1ce2f806f4db8ef07a1))
156
+ - 一系列问题 ([52f612a](https://github.com/jdfed/drip-form/commit/52f612a37c20c55ae5957365aa249e9ffff96db3))
157
+ - babel 配置&eslit 报错 ([d121deb](https://github.com/jdfed/drip-form/commit/d121deb192f221c68dc7fb315943d98e7df9b992))
158
+ - loading ([a724a19](https://github.com/jdfed/drip-form/commit/a724a19b1f085d3cf5d14de2ed3d145ddada4f5c))
159
+ - loading 删除多余参数 ([c56ca48](https://github.com/jdfed/drip-form/commit/c56ca4889c5655b2952807ea69d61e600f5bfe8c))
160
+ - loading 加 examplae ([fd6e0c4](https://github.com/jdfed/drip-form/commit/fd6e0c429183651f83d66e67675e571dbf5929e7))
161
+ - loading 只支持全局 ([f0a8e9d](https://github.com/jdfed/drip-form/commit/f0a8e9d4f4afabd26bc1c7eb8a60789c7f11f20c))
162
+ - radio 或 checkbox 的 value 是空字符串时,formData 未拿到数据 #C2021012635832 ([8fb05fc](https://github.com/jdfed/drip-form/commit/8fb05fc62c034fb854e7b7fd32667c9d7e78c664)), closes [#C2021012635832](https://github.com/jdfed/drip-form/issues/C2021012635832)
163
+ - stylus 引号 postcss 无法解析问题 ([03cdac0](https://github.com/jdfed/drip-form/commit/03cdac0f8cc6486e69ad931202f3da2add27c2b9))
164
+ - **antd:** 修复 select 组件 mode 为 tags 时出现空 tag ([a1f224a](https://github.com/jdfed/drip-form/commit/a1f224a307d63d3caf8fa317602347a8095d9c99))
165
+ - **radiotext:** rename import url of useField ([45fac01](https://github.com/jdfed/drip-form/commit/45fac01009c590b7b3acdf94210a4f48324f1f07))
166
+
167
+ ### style
168
+
169
+ - 修复颜色选择器弹框 input 文字颜色覆盖问题 ([620076d](https://github.com/jdfed/drip-form/commit/620076d6c13dc682864893454030b88afdc59b98))
170
+ - nullField 默认添加 work-break:break-all 属性 ([4cbe65f](https://github.com/jdfed/drip-form/commit/4cbe65ffa1cc7039132176ab2088c778af044195))
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @jdfed/drip-form-theme-antd
2
+
3
+ ## 安装
4
+
5
+ `jnpm install @jdfed/drip-form-theme-antd`
6
+
7
+ ## 支持组件
8
+
9
+ - 持续更新
10
+
11
+ | 组件名 | 状态 |
12
+ | ---------------------- | :----: |
13
+ | Text 文本输入 | 已支持 |
14
+ | Number 数字输入 | 已支持 |
15
+ | Select 选择器 | 已支持 |
16
+ | Radio 单选框 | 已支持 |
17
+ | Null 空表单 | 已支持 |
18
+ | Switch 开关 | 已支持 |
19
+ | Slider 滑动输入条 | 已支持 |
20
+ | TimePicker 时间选择器 | 已支持 |
21
+ | DatePicker 日期选择器 | 已支持 |
22
+ | ColorPicker 颜色选择器 | 已支持 |
23
+ | Checkbox 多选框 | 已支持 |
24
+ | Uploader 上传 | 已支持 |
25
+ | Cascader 级联选择 | 已支持 |
26
+ | TreeSelect 树形选择器 | 已支持 |
27
+
28
+ ## 相关依赖
29
+
30
+ 由于`antd`主题包导出样式为`less`,此举是为了便于通过`webpack`配置以消除其样式对全局样式的污染问题
31
+
32
+ `less-loader`的配置需使用者根据自身项目情况进行配置
33
+
34
+ 如果使用`webpack`进行构建,请参考`docs/`下的《如何避免 antd 的全局样式污染》
@@ -0,0 +1,43 @@
1
+ /**
2
+ * 针对antd css打包的配置,默认main为less打包,根据根目录的babel配置
3
+ */
4
+ module.exports = (api) => {
5
+ const isTest = api.env('test')
6
+
7
+ return {
8
+ presets: [
9
+ isTest
10
+ ? '@babel/preset-env'
11
+ : [
12
+ '@babel/preset-env',
13
+ {
14
+ modules: false,
15
+ },
16
+ ],
17
+ '@babel/preset-typescript',
18
+ '@babel/preset-react',
19
+ ],
20
+ plugins: [
21
+ '@babel/plugin-transform-runtime',
22
+ [
23
+ '@babel/plugin-proposal-decorators',
24
+ {
25
+ legacy: true,
26
+ },
27
+ ],
28
+ '@babel/plugin-syntax-dynamic-import',
29
+ '@babel/plugin-proposal-class-properties',
30
+ 'babel-plugin-typescript-to-proptypes',
31
+ [
32
+ 'import',
33
+ {
34
+ libraryName: 'antd',
35
+ libraryDirectory: 'es',
36
+ style: 'css',
37
+ },
38
+ 'antd',
39
+ ],
40
+ ],
41
+ sourceMaps: true,
42
+ }
43
+ }