@hw-component/form 1.9.49 → 1.9.50

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.
@@ -36,6 +36,6 @@ declare const componentConfig: {
36
36
  placeholder: ({ label }: import("./modal").HItemProps) => string[];
37
37
  };
38
38
  treeSelect: ({ request, onlyCheckChild, multiple, treeCheckable, treeData, fieldNames, ...props }: import("../Select/TreeSelect").HTreeSelectProps) => JSX.Element;
39
- text: ({ value }: import("./modal").HFormItemProps) => JSX.Element;
39
+ text: ({ value, addonBefore, addonAfter, ...props }: import("../Text").HFormTextProps) => JSX.Element;
40
40
  };
41
41
  export default componentConfig;
package/es/Form/config.js CHANGED
@@ -29,30 +29,30 @@ var placeholderConfig = {
29
29
  selectType: ["select", "datePicker", "timePicker", "colorInput", "treeSelect"]
30
30
  };
31
31
  var componentConfig = {
32
- select: HSelect,
33
- inputNumber: HInputNumber,
34
- selectInput: HSelectInput,
35
- buttonInput: Index,
36
- checkboxGroup: HCheckboxGroup,
37
- checkBox: Index$1,
38
- radioGroup: HRadioGroup,
39
- switch: HSwitch,
40
- datePicker: HDatePicker,
41
- rangePicker: HRangePicker,
42
- timePicker: HTimePicker,
43
- input: HInput,
44
- upload: HUpload,
45
- urlUpload: HUrlUpload,
46
- submit: HSubmit,
47
- textArea: TextArea,
48
- colorInput: ColorInput,
49
- cascader: Cascader,
50
- verificationCodeInput: VerificationCodeInput,
51
- trimInput: TrimInput,
52
- trimTextArea: TrimTextArea,
53
- inputNumberGroup: HInputNumberGroup,
54
- treeSelect: HTreeSelect,
55
- text: HText
32
+ "select": HSelect,
33
+ "inputNumber": HInputNumber,
34
+ "selectInput": HSelectInput,
35
+ "buttonInput": Index,
36
+ "checkboxGroup": HCheckboxGroup,
37
+ "checkBox": Index$1,
38
+ "radioGroup": HRadioGroup,
39
+ "switch": HSwitch,
40
+ "datePicker": HDatePicker,
41
+ "rangePicker": HRangePicker,
42
+ "timePicker": HTimePicker,
43
+ "input": HInput,
44
+ "upload": HUpload,
45
+ "urlUpload": HUrlUpload,
46
+ "submit": HSubmit,
47
+ "textArea": TextArea,
48
+ "colorInput": ColorInput,
49
+ "cascader": Cascader,
50
+ "verificationCodeInput": VerificationCodeInput,
51
+ "trimInput": TrimInput,
52
+ "trimTextArea": TrimTextArea,
53
+ "inputNumberGroup": HInputNumberGroup,
54
+ "treeSelect": HTreeSelect,
55
+ "text": HText
56
56
  };
57
57
 
58
58
  export { componentConfig as default, placeholderConfig };
package/es/Text/index.js CHANGED
@@ -12,6 +12,7 @@ var HText = (function (_ref) {
12
12
  addonBefore = _ref.addonBefore,
13
13
  addonAfter = _ref.addonAfter,
14
14
  props = _objectWithoutProperties(_ref, _excluded);
15
+ console.log(props, "HText");
15
16
  return jsx(Typography.Text, _objectSpread(_objectSpread({}, props), {}, {
16
17
  children: jsxs(Space, {
17
18
  size: 2,
@@ -36,6 +36,6 @@ declare const componentConfig: {
36
36
  placeholder: ({ label }: import("./modal").HItemProps) => string[];
37
37
  };
38
38
  treeSelect: ({ request, onlyCheckChild, multiple, treeCheckable, treeData, fieldNames, ...props }: import("../Select/TreeSelect").HTreeSelectProps) => JSX.Element;
39
- text: ({ value }: import("./modal").HFormItemProps) => JSX.Element;
39
+ text: ({ value, addonBefore, addonAfter, ...props }: import("../Text").HFormTextProps) => JSX.Element;
40
40
  };
41
41
  export default componentConfig;
@@ -32,30 +32,30 @@ var placeholderConfig = {
32
32
  selectType: ["select", "datePicker", "timePicker", "colorInput", "treeSelect"]
33
33
  };
34
34
  var componentConfig = {
35
- select: index.default,
36
- inputNumber: InputNumber.default,
37
- selectInput: SelectInput.default,
38
- buttonInput: ButtonInput.default,
39
- checkboxGroup: index$1.default,
40
- checkBox: index$2.default,
41
- radioGroup: index$3.default,
42
- switch: index$4.default,
43
- datePicker: index$5.default,
44
- rangePicker: RangePicker.default,
45
- timePicker: TimePicker.default,
46
- input: index$6.default,
47
- upload: index$7.default,
48
- urlUpload: index$8.default,
49
- submit: index$9.default,
50
- textArea: index$a.default,
51
- colorInput: index$b.default,
52
- cascader: index$c.default,
53
- verificationCodeInput: index$d.default,
54
- trimInput: TrimInput.default,
55
- trimTextArea: TrimTextArea.default,
56
- inputNumberGroup: InputNumberGroup.default,
57
- treeSelect: TreeSelect.default,
58
- text: index$e.default
35
+ "select": index.default,
36
+ "inputNumber": InputNumber.default,
37
+ "selectInput": SelectInput.default,
38
+ "buttonInput": ButtonInput.default,
39
+ "checkboxGroup": index$1.default,
40
+ "checkBox": index$2.default,
41
+ "radioGroup": index$3.default,
42
+ "switch": index$4.default,
43
+ "datePicker": index$5.default,
44
+ "rangePicker": RangePicker.default,
45
+ "timePicker": TimePicker.default,
46
+ "input": index$6.default,
47
+ "upload": index$7.default,
48
+ "urlUpload": index$8.default,
49
+ "submit": index$9.default,
50
+ "textArea": index$a.default,
51
+ "colorInput": index$b.default,
52
+ "cascader": index$c.default,
53
+ "verificationCodeInput": index$d.default,
54
+ "trimInput": TrimInput.default,
55
+ "trimTextArea": TrimTextArea.default,
56
+ "inputNumberGroup": InputNumberGroup.default,
57
+ "treeSelect": TreeSelect.default,
58
+ "text": index$e.default
59
59
  };
60
60
 
61
61
  exports.default = componentConfig;
package/lib/Text/index.js CHANGED
@@ -15,6 +15,7 @@ var HText = (function (_ref) {
15
15
  addonBefore = _ref.addonBefore,
16
16
  addonAfter = _ref.addonAfter,
17
17
  props = _objectWithoutProperties(_ref, _excluded);
18
+ console.log(props, "HText");
18
19
  return jsxRuntime.jsx(antd.Typography.Text, _objectSpread(_objectSpread({}, props), {}, {
19
20
  children: jsxRuntime.jsxs(antd.Space, {
20
21
  size: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.9.49",
3
+ "version": "1.9.50",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,30 +42,30 @@ export const placeholderConfig = {
42
42
  ],
43
43
  };
44
44
  const componentConfig = {
45
- select: HSelect,
46
- inputNumber: HInputNumber,
47
- selectInput: HSelectInput,
48
- buttonInput: HButtonInput,
49
- checkboxGroup: HCheckboxGroup,
50
- checkBox: HCheckBox,
51
- radioGroup: HRadioGroup,
52
- switch: HSwitch,
53
- datePicker: HDatePicker,
54
- rangePicker: HRangePicker,
55
- timePicker: HTimePicker,
56
- input: HInput,
57
- upload: HUpload,
58
- urlUpload: HUrlUpload,
59
- submit: HSubmit,
60
- textArea: TextArea,
61
- colorInput: ColorInput,
62
- cascader: Cascader,
63
- verificationCodeInput: VerificationCodeInput,
64
- trimInput: TrimInput,
65
- trimTextArea: TrimTextArea,
66
- inputNumberGroup: HInputNumberGroup,
67
- treeSelect: HTreeSelect,
68
- text: HText,
45
+ "select": HSelect,
46
+ "inputNumber": HInputNumber,
47
+ "selectInput": HSelectInput,
48
+ "buttonInput": HButtonInput,
49
+ "checkboxGroup": HCheckboxGroup,
50
+ "checkBox": HCheckBox,
51
+ "radioGroup": HRadioGroup,
52
+ "switch": HSwitch,
53
+ "datePicker": HDatePicker,
54
+ "rangePicker": HRangePicker,
55
+ "timePicker": HTimePicker,
56
+ "input": HInput,
57
+ "upload": HUpload,
58
+ "urlUpload": HUrlUpload,
59
+ "submit": HSubmit,
60
+ "textArea": TextArea,
61
+ "colorInput": ColorInput,
62
+ "cascader": Cascader,
63
+ "verificationCodeInput": VerificationCodeInput,
64
+ "trimInput": TrimInput,
65
+ "trimTextArea": TrimTextArea,
66
+ "inputNumberGroup": HInputNumberGroup,
67
+ "treeSelect": HTreeSelect,
68
+ "text": HText,
69
69
  };
70
70
 
71
71
  export default componentConfig;
@@ -12,6 +12,7 @@ export default ({
12
12
  addonAfter,
13
13
  ...props
14
14
  }: HFormTextProps) => {
15
+ console.log(props,"HText")
15
16
  return (
16
17
  <Typography.Text {...props}>
17
18
  <Space size={2}>
@@ -264,6 +264,7 @@ export default () => {
264
264
  type: "text",
265
265
  name: "text",
266
266
  itemProps: {
267
+ type:"danger",
267
268
  addonBefore: (
268
269
  <div style={{ height: 100, backgroundColor: "red" }}>
269
270
  nihao
@@ -112,6 +112,24 @@ const data = [
112
112
  name: "urlUpload",
113
113
  type: "urlUpload",
114
114
  },
115
+ {
116
+ label: "文字",
117
+ type: "text",
118
+ name: "text",
119
+ itemProps: {
120
+ type:"danger",
121
+ addonBefore: (
122
+ <div style={{ height: 100, backgroundColor: "red" }}>
123
+ nihao
124
+ </div>
125
+ ),
126
+ addonAfter: (
127
+ <div style={{ height: 200, backgroundColor: "red" }}>
128
+ wohao
129
+ </div>
130
+ ),
131
+ },
132
+ },
115
133
  // {
116
134
  // label: "下拉框",
117
135
  // name: "select",
@@ -192,7 +210,9 @@ export default () => {
192
210
  configData={data}
193
211
  labelWidth={88}
194
212
  infoRequest={() => {
195
- console.log("infoRequest");
213
+ return {
214
+ text:"你好"
215
+ }
196
216
  }}
197
217
  labelAlign={"left"}
198
218
  request={(values, params) => {