@vtx/components 4.0.0-beta.29 → 4.0.0-beta.30

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.
@@ -63,16 +63,13 @@ export default function FormItem(props) {
63
63
  return placeholder;
64
64
  }
65
65
  if (typeof label === 'string') {
66
- if (!['Input', 'Select', 'DatePicker', 'TimePicker', 'RangePicker', 'VtxDatePicker', 'VtxRangePicker', 'VtxTimePicker', 'VtxTimeRangePicker', 'VtxInput', 'InputNumber', 'VtxSelect', 'TextArea'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
67
- // console.log(type?.displayName)
68
- }
69
66
  if (['Input', 'InputNumber', 'VtxInput', 'TextArea', 'VtxEditor'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
70
- return '请输入' + label;
71
- // return '请输入'
67
+ // return '请输入' + label
68
+ return '请输入';
72
69
  }
73
70
  if (['Select', 'VtxColorPicker', 'VtxSelect', 'VtxCombogrid', 'VtxTreeSelect', 'VtxZtreeSelect', 'VtxSearchMapInput'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
74
- return '请选择' + label;
75
- // return '请选择'
71
+ // return '请选择' + label
72
+ return '请选择';
76
73
  }
77
74
  if (['DatePicker', 'RangePicker', 'TimePicker', 'VtxDatePicker', 'VtxRangePicker', 'VtxTimePicker', 'VtxTimeRangePicker'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
78
75
  return undefined;
@@ -69,16 +69,13 @@ function FormItem(props) {
69
69
  return placeholder;
70
70
  }
71
71
  if (typeof label === 'string') {
72
- if (!['Input', 'Select', 'DatePicker', 'TimePicker', 'RangePicker', 'VtxDatePicker', 'VtxRangePicker', 'VtxTimePicker', 'VtxTimeRangePicker', 'VtxInput', 'InputNumber', 'VtxSelect', 'TextArea'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
73
- // console.log(type?.displayName)
74
- }
75
72
  if (['Input', 'InputNumber', 'VtxInput', 'TextArea', 'VtxEditor'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
76
- return '请输入' + label;
77
- // return '请输入'
73
+ // return '请输入' + label
74
+ return '请输入';
78
75
  }
79
76
  if (['Select', 'VtxColorPicker', 'VtxSelect', 'VtxCombogrid', 'VtxTreeSelect', 'VtxZtreeSelect', 'VtxSearchMapInput'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
80
- return '请选择' + label;
81
- // return '请选择'
77
+ // return '请选择' + label
78
+ return '请选择';
82
79
  }
83
80
  if (['DatePicker', 'RangePicker', 'TimePicker', 'VtxDatePicker', 'VtxRangePicker', 'VtxTimePicker', 'VtxTimeRangePicker'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
84
81
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/components",
3
- "version": "4.0.0-beta.29",
3
+ "version": "4.0.0-beta.30",
4
4
  "description": "React components for Vortex",
5
5
  "keywords": [
6
6
  "react",