@pisell/materials 1.0.595 → 1.0.597

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.
@@ -113,8 +113,6 @@ export var withFormItem = function withFormItem(WrappedComponent, overlayProps)
113
113
  hideLabel = _ref2.hideLabel,
114
114
  innerStyle = _ref2.innerStyle,
115
115
  otherProps = _objectWithoutProperties(_ref2, _excluded2);
116
- console.log('withFormItem typeobj:', typeobj);
117
- console.log('withFormItem overlayProps:', overlayProps);
118
116
  var _useJsonPrefixPath = useJsonPrefixPath(),
119
117
  _useJsonPrefixPath$pa = _useJsonPrefixPath.path,
120
118
  prefixPath = _useJsonPrefixPath$pa === void 0 ? [] : _useJsonPrefixPath$pa;
@@ -158,7 +156,6 @@ export var withFormItem = function withFormItem(WrappedComponent, overlayProps)
158
156
  message: requiredobj.message || getText('pisell-data-source-form-required-message')
159
157
  }));
160
158
  }
161
- console.log('%c [ typeobj ]-197', 'font-size:13px; background:#6c2f3e; color:#b07382;', typeobj);
162
159
  if (typeobj && typeobj.enabled) {
163
160
  console.log('Type validation object:', typeobj);
164
161
  console.log('Validation enabled:', typeobj.enabled);
@@ -336,7 +333,6 @@ export var withFormItem = function withFormItem(WrappedComponent, overlayProps)
336
333
  }
337
334
  return propsLabelCol;
338
335
  }, [hideLabel, propsLabelCol]);
339
- console.log('%c [ rules ]-487', 'font-size:13px; background:#29ea5f; color:#6dffa3;', rules);
340
336
  return /*#__PURE__*/React.createElement(Form.Item, _extends({
341
337
  required: required,
342
338
  style: _objectSpread(_objectSpread({
@@ -8,12 +8,15 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { useCallback, useState, useEffect } from 'react';
12
- import { Input as AntInput, Form } from 'antd';
11
+ import React, { useCallback, useState, useEffect, useMemo } from 'react';
12
+ import { Input as AntInput } from 'antd';
13
13
  import { useTenantData } from "./serve";
14
14
  import ReadPretty from "./ReadPretty";
15
15
  import { withMode } from "../../dataSourceForm/utils";
16
16
  import useEngineContext from "../../../../hooks/useEngineContext";
17
+
18
+ // 定义组件的属性类型
19
+
17
20
  /**
18
21
  * 子域名输入组件
19
22
  *
@@ -47,7 +50,6 @@ import useEngineContext from "../../../../hooks/useEngineContext";
47
50
  * />
48
51
  */
49
52
  var Subdomain = function Subdomain(props) {
50
- var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5, _context$appHelper$ut6, _context$appHelper$ut7, _context$appHelper$ut8, _coreData$tenant;
51
53
  var propsOnBlur = props.onBlur,
52
54
  propsOnChange = props.onChange,
53
55
  _props$rootDomain = props.rootDomain,
@@ -57,94 +59,103 @@ var Subdomain = function Subdomain(props) {
57
59
  tenantId = props.tenantId,
58
60
  fieldKey = props.fieldKey,
59
61
  rest = _objectWithoutProperties(props, _excluded);
62
+
63
+ // 1. 所有的 hooks 调用放在最前面
60
64
  var context = useEngineContext();
61
- var coreData = (_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getApp) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.data) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.store) === null || _context$appHelper$ut5 === void 0 ? void 0 : (_context$appHelper$ut6 = _context$appHelper$ut5.getStore) === null || _context$appHelper$ut6 === void 0 ? void 0 : (_context$appHelper$ut7 = _context$appHelper$ut6.call(_context$appHelper$ut5)) === null || _context$appHelper$ut7 === void 0 ? void 0 : (_context$appHelper$ut8 = _context$appHelper$ut7.getDataByModel) === null || _context$appHelper$ut8 === void 0 ? void 0 : _context$appHelper$ut8.call(_context$appHelper$ut7, 'core', 'core');
65
+ var _useState = useState(''),
66
+ _useState2 = _slicedToArray(_useState, 2),
67
+ subdomain = _useState2[0],
68
+ setSubdomain = _useState2[1];
69
+ var _useState3 = useState(''),
70
+ _useState4 = _slicedToArray(_useState3, 2),
71
+ suffix = _useState4[0],
72
+ setSuffix = _useState4[1];
62
73
 
63
- // 仅在 rootDomain 为 'saas' 时调用 useTenantData
64
- var tenantData = rootDomain === 'saas' ? useTenantData(coreData ? coreData === null || coreData === void 0 ? void 0 : (_coreData$tenant = coreData.tenant) === null || _coreData$tenant === void 0 ? void 0 : _coreData$tenant.id : '') : undefined;
65
- var form = Form.useFormInstance(); // 获取表单实例
74
+ // 2. 获取 coreData
75
+ var coreData = useMemo(function () {
76
+ var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5, _context$appHelper$ut6, _context$appHelper$ut7, _context$appHelper$ut8;
77
+ return (_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getApp) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.data) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.store) === null || _context$appHelper$ut5 === void 0 ? void 0 : (_context$appHelper$ut6 = _context$appHelper$ut5.getStore) === null || _context$appHelper$ut6 === void 0 ? void 0 : (_context$appHelper$ut7 = _context$appHelper$ut6.call(_context$appHelper$ut5)) === null || _context$appHelper$ut7 === void 0 ? void 0 : (_context$appHelper$ut8 = _context$appHelper$ut7.getDataByModel) === null || _context$appHelper$ut8 === void 0 ? void 0 : _context$appHelper$ut8.call(_context$appHelper$ut7, 'core', 'core');
78
+ }, [context]);
79
+
80
+ // 3. 获取 tenantData
81
+ var tenantData = useMemo(function () {
82
+ var _coreData$tenant;
83
+ if (rootDomain === 'saas' && coreData !== null && coreData !== void 0 && (_coreData$tenant = coreData.tenant) !== null && _coreData$tenant !== void 0 && _coreData$tenant.id) {
84
+ return useTenantData(coreData.tenant.id);
85
+ }
86
+ return undefined;
87
+ }, [rootDomain, coreData]);
66
88
 
67
- // 解析外部传入的 value
68
- var parseExternalValue = function parseExternalValue(val) {
89
+ // 4. parseExternalValue 函数
90
+ var parseExternalValue = useCallback(function (val) {
69
91
  if (!val) return {
70
92
  subdomain: '',
71
93
  suffix: coreData ? coreData.tenant_domain : ''
72
94
  };
73
- var parts = val.split('.'); // 按点分割完整域名
74
- var subdomain = parts.length > 1 ? parts[0] : val; // 第一个部分为子域名
75
- var suffix = parts.length > 1 ? ".".concat(parts.slice(1).join('.')) : coreData ? coreData.tenant_domain : ''; // 确保 suffix 包含点
76
-
95
+ var parts = val.split('.');
96
+ var subdomain = parts.length > 1 ? parts[0] : val;
97
+ var suffix = parts.length > 1 ? ".".concat(parts.slice(1).join('.')) : coreData ? coreData.tenant_domain : '';
77
98
  return {
78
99
  subdomain: subdomain,
79
100
  suffix: suffix
80
101
  };
81
- };
82
-
83
- // 使用状态管理子域名和后缀
84
- var _useState = useState(''),
85
- _useState2 = _slicedToArray(_useState, 2),
86
- subdomain = _useState2[0],
87
- setSubdomain = _useState2[1]; // 子域名状态
88
- var _useState3 = useState(''),
89
- _useState4 = _slicedToArray(_useState3, 2),
90
- suffix = _useState4[0],
91
- setSuffix = _useState4[1]; // 后缀状态
102
+ }, [coreData]);
92
103
 
104
+ // 5. 处理 value 和 domain 变化
93
105
  useEffect(function () {
94
- if (value) {
95
- // 如果传入值存在,解析并更新子域名和后缀
96
- var _parseExternalValue = parseExternalValue(value),
97
- _subdomain = _parseExternalValue.subdomain,
98
- _suffix = _parseExternalValue.suffix;
99
- setSubdomain(_subdomain);
100
- setSuffix(_suffix);
101
- } else {
102
- // 根据 rootDomain 获取后缀
103
- if (rootDomain === 'xzero') {
104
- setSuffix(coreData ? ".".concat(coreData.tenant_domain) : ''); // 获取 xzero 的后缀
105
- } else if (rootDomain === 'saas') {
106
- setSuffix(tenantData ? ".".concat(tenantData['saas.domain']) : ''); // 获取 saas 的后缀
106
+ try {
107
+ if (value) {
108
+ var _parseExternalValue = parseExternalValue(value),
109
+ newSubdomain = _parseExternalValue.subdomain,
110
+ newSuffix = _parseExternalValue.suffix;
111
+ setSubdomain(newSubdomain);
112
+ setSuffix(newSuffix);
107
113
  } else {
108
- setSuffix(customDomain ? customDomain.startsWith('.') ? customDomain : ".".concat(customDomain) : ''); // 获取自定义域名的后缀
114
+ var _newSuffix = '';
115
+ switch (rootDomain) {
116
+ case 'xzero':
117
+ _newSuffix = coreData ? ".".concat(coreData.tenant_domain) : '';
118
+ break;
119
+ case 'saas':
120
+ _newSuffix = tenantData ? ".".concat(tenantData['saas.domain']) : '';
121
+ break;
122
+ default:
123
+ _newSuffix = customDomain ? customDomain.startsWith('.') ? customDomain : ".".concat(customDomain) : '';
124
+ }
125
+ setSuffix(_newSuffix);
109
126
  }
127
+ } catch (error) {
128
+ console.error('Error updating domain:', error);
110
129
  }
111
- }, [value, rootDomain, customDomain, tenantData, coreData]);
130
+ }, [value, rootDomain, customDomain, tenantData, coreData, parseExternalValue]);
112
131
 
113
- /**
114
- * 处理输入框值变化的事件
115
- * @param e - 输入框change事件对象
116
- * 功能:
117
- * 1. 将输入值转换为小写
118
- * 2. 解析并更新子域名
119
- * 3. 触发外部onChange回调
120
- */
121
- var handleChange = function handleChange(e) {
122
- var inputValue = e.target.value.toLowerCase();
123
- var _parseExternalValue2 = parseExternalValue(inputValue),
124
- subdomain = _parseExternalValue2.subdomain;
125
- setSubdomain(subdomain);
126
- propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(subdomain + suffix);
127
- };
132
+ // 6. 处理输入变化
133
+ var handleChange = useCallback(function (e) {
134
+ try {
135
+ var inputValue = e.target.value.toLowerCase();
136
+ var _parseExternalValue2 = parseExternalValue(inputValue),
137
+ newSubdomain = _parseExternalValue2.subdomain;
138
+ setSubdomain(newSubdomain);
139
+ propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(newSubdomain + suffix);
140
+ } catch (error) {
141
+ console.error('Error handling change:', error);
142
+ }
143
+ }, [suffix, propsOnChange, parseExternalValue]);
128
144
 
129
- /**
130
- * 处理输入框失去焦点的事件
131
- * @param e - 失焦事件对象
132
- * 功能:
133
- * 1. 触发外部onBlur回调
134
- * 2. 触发外部onChange回调,传递完整域名(子域名+后缀)
135
- */
145
+ // 7. 处理失焦
136
146
  var onBlur = useCallback(function (e) {
137
- propsOnBlur === null || propsOnBlur === void 0 ? void 0 : propsOnBlur(e);
138
- propsOnChange(subdomain + suffix);
147
+ try {
148
+ propsOnBlur === null || propsOnBlur === void 0 ? void 0 : propsOnBlur(e);
149
+ propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(subdomain + suffix);
150
+ } catch (error) {
151
+ console.error('Error handling blur:', error);
152
+ }
139
153
  }, [propsOnBlur, propsOnChange, subdomain, suffix]);
140
154
  return /*#__PURE__*/React.createElement(AntInput, _extends({}, rest, {
141
- value: subdomain // 输入框显示子域名
142
- ,
143
- onChange: handleChange // 绑定变化事件
144
- ,
145
- onBlur: onBlur // 绑定失去焦点事件
146
- ,
147
- addonAfter: suffix // 显示域名后缀
155
+ value: subdomain,
156
+ onChange: handleChange,
157
+ onBlur: onBlur,
158
+ addonAfter: suffix
148
159
  }));
149
160
  };
150
161
 
@@ -179,7 +179,7 @@ export default {
179
179
  'pisell-data-source-form-max-value-message': function pisellDataSourceFormMaxValueMessage(maxValue) {
180
180
  return "\u503C\u5FC5\u987B\u5C0F\u4E8E\u6216\u7B49\u4E8E".concat(maxValue);
181
181
  },
182
- 'pisell-data-source-form-mobile-message': '请输入正确的手机号',
182
+ 'pisell-data-source-form-mobile-message': '请输入正确的手机号码',
183
183
  'pisell-data-source-form-pattern-message': '请输入正确的格式',
184
184
  // 数字格式化
185
185
  'pisell-number-format-thousand': '千',
@@ -180,7 +180,7 @@ export default {
180
180
  'pisell-data-source-form-max-value-message': function pisellDataSourceFormMaxValueMessage(maxValue) {
181
181
  return "\u503C\u5FC5\u9808\u5C0F\u65BC\u6216\u7B49\u65BC".concat(maxValue);
182
182
  },
183
- 'pisell-data-source-form-mobile-message': '請輸入正確的手機號',
183
+ 'pisell-data-source-form-mobile-message': '請輸入正確的手機號碼',
184
184
  // 數字格式化
185
185
  'pisell-number-format-thousand': '千',
186
186
  'pisell-number-format-million': '百萬',
@@ -119,8 +119,6 @@ var withFormItem = (WrappedComponent, overlayProps) => {
119
119
  ...otherProps
120
120
  }) => {
121
121
  var _a;
122
- console.log("withFormItem typeobj:", typeobj);
123
- console.log("withFormItem overlayProps:", overlayProps);
124
122
  const { path: prefixPath = [] } = (0, import_useJsonPrefixPath.default)();
125
123
  const { dataSource } = (0, import_useDataSource.default)();
126
124
  const { fields } = dataSource || {};
@@ -167,7 +165,6 @@ var withFormItem = (WrappedComponent, overlayProps) => {
167
165
  message: requiredobj.message || (0, import_locales.getText)("pisell-data-source-form-required-message")
168
166
  });
169
167
  }
170
- console.log("%c [ typeobj ]-197", "font-size:13px; background:#6c2f3e; color:#b07382;", typeobj);
171
168
  if (typeobj && typeobj.enabled) {
172
169
  console.log("Type validation object:", typeobj);
173
170
  console.log("Validation enabled:", typeobj.enabled);
@@ -386,7 +383,6 @@ var withFormItem = (WrappedComponent, overlayProps) => {
386
383
  }
387
384
  return propsLabelCol;
388
385
  }, [hideLabel, propsLabelCol]);
389
- console.log("%c [ rules ]-487", "font-size:13px; background:#29ea5f; color:#6dffa3;", rules);
390
386
  return /* @__PURE__ */ import_react.default.createElement(
391
387
  import_form.default.Item,
392
388
  {
@@ -39,12 +39,10 @@ var import_ReadPretty = __toESM(require("./ReadPretty"));
39
39
  var import_utils = require("../../dataSourceForm/utils");
40
40
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
41
41
  var Subdomain = (props) => {
42
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
43
42
  const {
44
43
  onBlur: propsOnBlur,
45
44
  onChange: propsOnChange,
46
45
  rootDomain = "xzero",
47
- // 默认值为 'xzero'
48
46
  customDomain,
49
47
  value,
50
48
  tenantId,
@@ -52,46 +50,68 @@ var Subdomain = (props) => {
52
50
  ...rest
53
51
  } = props;
54
52
  const context = (0, import_useEngineContext.default)();
55
- const coreData = (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = context.appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.data) == null ? void 0 : _d.store) == null ? void 0 : _e.getStore) == null ? void 0 : _f.call(_e)) == null ? void 0 : _g.getDataByModel) == null ? void 0 : _h.call(_g, "core", "core");
56
- const tenantData = rootDomain === "saas" ? (0, import_serve.useTenantData)(coreData ? (_i = coreData == null ? void 0 : coreData.tenant) == null ? void 0 : _i.id : "") : void 0;
57
- const form = import_antd.Form.useFormInstance();
58
- const parseExternalValue = (val) => {
53
+ const [subdomain, setSubdomain] = (0, import_react.useState)("");
54
+ const [suffix, setSuffix] = (0, import_react.useState)("");
55
+ const coreData = (0, import_react.useMemo)(() => {
56
+ var _a, _b, _c, _d, _e, _f, _g, _h;
57
+ return (_h = (_g = (_f = (_e = (_d = (_c = (_b = (_a = context.appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.data) == null ? void 0 : _d.store) == null ? void 0 : _e.getStore) == null ? void 0 : _f.call(_e)) == null ? void 0 : _g.getDataByModel) == null ? void 0 : _h.call(_g, "core", "core");
58
+ }, [context]);
59
+ const tenantData = (0, import_react.useMemo)(() => {
60
+ var _a;
61
+ if (rootDomain === "saas" && ((_a = coreData == null ? void 0 : coreData.tenant) == null ? void 0 : _a.id)) {
62
+ return (0, import_serve.useTenantData)(coreData.tenant.id);
63
+ }
64
+ return void 0;
65
+ }, [rootDomain, coreData]);
66
+ const parseExternalValue = (0, import_react.useCallback)((val) => {
59
67
  if (!val)
60
68
  return { subdomain: "", suffix: coreData ? coreData.tenant_domain : "" };
61
69
  const parts = val.split(".");
62
70
  const subdomain2 = parts.length > 1 ? parts[0] : val;
63
71
  const suffix2 = parts.length > 1 ? `.${parts.slice(1).join(".")}` : coreData ? coreData.tenant_domain : "";
64
- return {
65
- subdomain: subdomain2,
66
- suffix: suffix2
67
- };
68
- };
69
- const [subdomain, setSubdomain] = (0, import_react.useState)("");
70
- const [suffix, setSuffix] = (0, import_react.useState)("");
72
+ return { subdomain: subdomain2, suffix: suffix2 };
73
+ }, [coreData]);
71
74
  (0, import_react.useEffect)(() => {
72
- if (value) {
73
- const { subdomain: subdomain2, suffix: suffix2 } = parseExternalValue(value);
74
- setSubdomain(subdomain2);
75
- setSuffix(suffix2);
76
- } else {
77
- if (rootDomain === "xzero") {
78
- setSuffix(coreData ? `.${coreData.tenant_domain}` : "");
79
- } else if (rootDomain === "saas") {
80
- setSuffix(tenantData ? `.${tenantData["saas.domain"]}` : "");
75
+ try {
76
+ if (value) {
77
+ const { subdomain: newSubdomain, suffix: newSuffix } = parseExternalValue(value);
78
+ setSubdomain(newSubdomain);
79
+ setSuffix(newSuffix);
81
80
  } else {
82
- setSuffix(customDomain ? customDomain.startsWith(".") ? customDomain : `.${customDomain}` : "");
81
+ let newSuffix = "";
82
+ switch (rootDomain) {
83
+ case "xzero":
84
+ newSuffix = coreData ? `.${coreData.tenant_domain}` : "";
85
+ break;
86
+ case "saas":
87
+ newSuffix = tenantData ? `.${tenantData["saas.domain"]}` : "";
88
+ break;
89
+ default:
90
+ newSuffix = customDomain ? customDomain.startsWith(".") ? customDomain : `.${customDomain}` : "";
91
+ }
92
+ setSuffix(newSuffix);
83
93
  }
94
+ } catch (error) {
95
+ console.error("Error updating domain:", error);
96
+ }
97
+ }, [value, rootDomain, customDomain, tenantData, coreData, parseExternalValue]);
98
+ const handleChange = (0, import_react.useCallback)((e) => {
99
+ try {
100
+ const inputValue = e.target.value.toLowerCase();
101
+ const { subdomain: newSubdomain } = parseExternalValue(inputValue);
102
+ setSubdomain(newSubdomain);
103
+ propsOnChange == null ? void 0 : propsOnChange(newSubdomain + suffix);
104
+ } catch (error) {
105
+ console.error("Error handling change:", error);
84
106
  }
85
- }, [value, rootDomain, customDomain, tenantData, coreData]);
86
- const handleChange = (e) => {
87
- const inputValue = e.target.value.toLowerCase();
88
- const { subdomain: subdomain2 } = parseExternalValue(inputValue);
89
- setSubdomain(subdomain2);
90
- propsOnChange == null ? void 0 : propsOnChange(subdomain2 + suffix);
91
- };
107
+ }, [suffix, propsOnChange, parseExternalValue]);
92
108
  const onBlur = (0, import_react.useCallback)((e) => {
93
- propsOnBlur == null ? void 0 : propsOnBlur(e);
94
- propsOnChange(subdomain + suffix);
109
+ try {
110
+ propsOnBlur == null ? void 0 : propsOnBlur(e);
111
+ propsOnChange == null ? void 0 : propsOnChange(subdomain + suffix);
112
+ } catch (error) {
113
+ console.error("Error handling blur:", error);
114
+ }
95
115
  }, [propsOnBlur, propsOnChange, subdomain, suffix]);
96
116
  return /* @__PURE__ */ import_react.default.createElement(
97
117
  import_antd.Input,
@@ -177,7 +177,7 @@ var zh_CN_default = {
177
177
  "pisell-data-source-form-max-length-message": (maxLength) => `长度必须最多为${maxLength}个字符`,
178
178
  "pisell-data-source-form-min-value-message": (minValue) => `值必须大于或等于${minValue}`,
179
179
  "pisell-data-source-form-max-value-message": (maxValue) => `值必须小于或等于${maxValue}`,
180
- "pisell-data-source-form-mobile-message": "请输入正确的手机号",
180
+ "pisell-data-source-form-mobile-message": "请输入正确的手机号码",
181
181
  "pisell-data-source-form-pattern-message": "请输入正确的格式",
182
182
  // 数字格式化
183
183
  "pisell-number-format-thousand": "千",
@@ -178,7 +178,7 @@ var zh_TW_default = {
178
178
  "pisell-data-source-form-max-length-message": (maxLength) => `長度必須最多為${maxLength}个字符`,
179
179
  "pisell-data-source-form-min-value-message": (minValue) => `值必須大於或等於${minValue}`,
180
180
  "pisell-data-source-form-max-value-message": (maxValue) => `值必須小於或等於${maxValue}`,
181
- "pisell-data-source-form-mobile-message": "請輸入正確的手機號",
181
+ "pisell-data-source-form-mobile-message": "請輸入正確的手機號碼",
182
182
  // 數字格式化
183
183
  "pisell-number-format-thousand": "千",
184
184
  "pisell-number-format-million": "百萬",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.595",
3
+ "version": "1.0.597",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -70,8 +70,8 @@
70
70
  "swiper": "^8.4.7",
71
71
  "react-barcode": "^1.5.3",
72
72
  "@pisell/date-picker": "1.0.115",
73
- "@pisell/icon": "0.0.10",
74
- "@pisell/utils": "1.0.43"
73
+ "@pisell/utils": "1.0.43",
74
+ "@pisell/icon": "0.0.10"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "react": "^18.0.0",