@pisell/materials 1.0.584 → 1.0.586

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.
@@ -3,7 +3,7 @@ import { InputProps } from 'antd';
3
3
  declare const SubdomainlWithMode: React.FC<InputProps & {
4
4
  onChange: (value: string) => void;
5
5
  onBlur?: ((e: React.FocusEvent<HTMLInputElement>) => void) | undefined;
6
- rootDomain: string;
6
+ rootDomain: 'xzero' | 'saas' | 'custom';
7
7
  customDomain?: string | undefined;
8
8
  value?: string | undefined;
9
9
  isVerification?: boolean | undefined;
@@ -14,29 +14,35 @@ 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
  var Subdomain = function Subdomain(props) {
18
21
  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;
19
22
  var propsOnBlur = props.onBlur,
20
23
  propsOnChange = props.onChange,
21
24
  _props$rootDomain = props.rootDomain,
22
- rootDomain = _props$rootDomain === void 0 ? '' : _props$rootDomain,
25
+ rootDomain = _props$rootDomain === void 0 ? 'xzero' : _props$rootDomain,
23
26
  customDomain = props.customDomain,
24
27
  value = props.value,
25
28
  tenantId = props.tenantId,
26
29
  rest = _objectWithoutProperties(props, _excluded);
27
30
  var context = useEngineContext();
28
31
  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');
29
- var tenantData = useTenantData(coreData ? coreData === null || coreData === void 0 ? void 0 : (_coreData$tenant = coreData.tenant) === null || _coreData$tenant === void 0 ? void 0 : _coreData$tenant.id : ''); // 传递 tenantId
30
32
 
31
- // 解析外部传入的value
33
+ // 仅在 rootDomain 为 'saas' 时调用 useTenantData
34
+ 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;
35
+
36
+ // 解析外部传入的 value
32
37
  var parseExternalValue = function parseExternalValue(val) {
33
38
  if (!val) return {
34
39
  subdomain: '',
35
40
  suffix: coreData ? coreData.tenant_domain : ''
36
41
  };
37
- var parts = val.split('.');
38
- var subdomain = parts.length > 1 ? parts[0] : val;
39
- var suffix = parts.length > 1 ? ".".concat(parts.slice(1).join('.')) : coreData ? coreData.tenant_domain : '';
42
+ var parts = val.split('.'); // 按点分割完整域名
43
+ var subdomain = parts.length > 1 ? parts[0] : val; // 第一个部分为子域名
44
+ var suffix = parts.length > 1 ? ".".concat(parts.slice(1).join('.')) : coreData ? coreData.tenant_domain : ''; // 确保 suffix 包含点
45
+
40
46
  return {
41
47
  subdomain: subdomain,
42
48
  suffix: suffix
@@ -47,11 +53,12 @@ var Subdomain = function Subdomain(props) {
47
53
  var _useState = useState(''),
48
54
  _useState2 = _slicedToArray(_useState, 2),
49
55
  subdomain = _useState2[0],
50
- setSubdomain = _useState2[1];
56
+ setSubdomain = _useState2[1]; // 子域名状态
51
57
  var _useState3 = useState(''),
52
58
  _useState4 = _slicedToArray(_useState3, 2),
53
59
  suffix = _useState4[0],
54
- setSuffix = _useState4[1];
60
+ setSuffix = _useState4[1]; // 后缀状态
61
+
55
62
  useEffect(function () {
56
63
  if (value) {
57
64
  // 如果传入值存在,解析并更新子域名和后缀
@@ -62,32 +69,38 @@ var Subdomain = function Subdomain(props) {
62
69
  setSuffix(_suffix);
63
70
  } else {
64
71
  // 根据 rootDomain 获取后缀
65
- if (rootDomain === '1') {
66
- setSuffix(coreData ? ".".concat(coreData.tenant_domain) : '');
67
- } else if (rootDomain === '2') {
68
- setSuffix(tenantData ? ".".concat(tenantData['saas.domain']) : '');
72
+ if (rootDomain === 'xzero') {
73
+ setSuffix(coreData ? ".".concat(coreData.tenant_domain) : ''); // 获取 xzero 的后缀
74
+ } else if (rootDomain === 'saas') {
75
+ setSuffix(tenantData ? ".".concat(tenantData['saas.domain']) : ''); // 获取 saas 的后缀
69
76
  } else {
70
- setSuffix(customDomain ? customDomain.startsWith('.') ? customDomain : ".".concat(customDomain) : '');
77
+ setSuffix(customDomain ? customDomain.startsWith('.') ? customDomain : ".".concat(customDomain) : ''); // 获取自定义域名的后缀
71
78
  }
72
79
  }
73
80
  }, [value, rootDomain, customDomain, tenantData, coreData]);
74
81
  var handleChange = function handleChange(e) {
75
- var inputValue = e.target.value.toLowerCase();
82
+ var inputValue = e.target.value.toLowerCase(); // 转为小写
76
83
  var _parseExternalValue2 = parseExternalValue(inputValue),
77
- subdomain = _parseExternalValue2.subdomain;
78
- setSubdomain(subdomain);
79
- propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(subdomain + suffix);
84
+ subdomain = _parseExternalValue2.subdomain; // 解析输入的值以获取子域名
85
+ setSubdomain(subdomain); // 更新子域名
86
+ propsOnChange === null || propsOnChange === void 0 ? void 0 : propsOnChange(subdomain + suffix); // 传递更新后的完整域名
80
87
  };
88
+
81
89
  var onBlur = useCallback(function (e) {
82
- propsOnBlur === null || propsOnBlur === void 0 ? void 0 : propsOnBlur(e);
83
- propsOnChange(subdomain + suffix);
90
+ propsOnBlur === null || propsOnBlur === void 0 ? void 0 : propsOnBlur(e); // 处理失去焦点事件
91
+ propsOnChange(subdomain + suffix); // 传递完整的域名
84
92
  }, [propsOnBlur, propsOnChange, subdomain, suffix]);
85
93
  return /*#__PURE__*/React.createElement(AntInput, _extends({}, rest, {
86
- value: subdomain,
87
- onChange: handleChange,
88
- onBlur: onBlur,
89
- addonAfter: suffix
94
+ value: subdomain // 输入框显示子域名
95
+ ,
96
+ onChange: handleChange // 绑定变化事件
97
+ ,
98
+ onBlur: onBlur // 绑定失去焦点事件
99
+ ,
100
+ addonAfter: suffix // 显示域名后缀
90
101
  }));
91
102
  };
103
+
104
+ // 使用 withMode 高阶组件包装 Subdomain 组件
92
105
  var SubdomainlWithMode = withMode(Subdomain, ReadPretty);
93
- export default SubdomainlWithMode;
106
+ export default SubdomainlWithMode; // 导出组件
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: string;
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  isVerification?: boolean | undefined;
@@ -20,7 +20,7 @@ declare const formFieldMap: {
20
20
  Subdomain: import("react").FC<import("antd").InputProps & {
21
21
  onChange: (value: string) => void;
22
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: string;
23
+ rootDomain: "custom" | "xzero" | "saas";
24
24
  customDomain?: string | undefined;
25
25
  value?: string | undefined;
26
26
  isVerification?: boolean | undefined;
@@ -76,7 +76,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
76
76
  Subdomain: import("react").FC<import("antd").InputProps & {
77
77
  onChange: (value: string) => void;
78
78
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
79
- rootDomain: string;
79
+ rootDomain: "custom" | "xzero" | "saas";
80
80
  customDomain?: string | undefined;
81
81
  value?: string | undefined;
82
82
  isVerification?: boolean | undefined;
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  en: {
3
3
  'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
4
5
  'pisell2.product.card.discount.reason': string;
5
6
  'pisell2.product.card.discount.note': string;
6
7
  'pisell2.product.card.discount.add.note': string;
@@ -14,6 +15,7 @@ declare const _default: {
14
15
  };
15
16
  'zh-CN': {
16
17
  'pisell2.product.card.day': (val: number) => string;
18
+ 'pisell2.product.card.day.event': (val: number) => string;
17
19
  'pisell2.product.card.discount.reason': string;
18
20
  'pisell2.product.card.discount.note': string;
19
21
  'pisell2.product.card.discount.add.note': string;
@@ -27,6 +29,7 @@ declare const _default: {
27
29
  };
28
30
  'zh-HK': {
29
31
  'pisell2.product.card.day': (val: number) => string;
32
+ 'pisell2.product.card.day.event': (val: number) => string;
30
33
  'pisell2.product.card.discount.reason': string;
31
34
  'pisell2.product.card.discount.note': string;
32
35
  'pisell2.product.card.discount.add.note': string;
@@ -3,6 +3,9 @@ export default {
3
3
  'pisell2.product.card.day': function pisell2ProductCardDay(val) {
4
4
  return "".concat(val > 1 ? 'days' : 'day');
5
5
  },
6
+ 'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
7
+ return "".concat(val > 1 ? 'events' : 'event');
8
+ },
6
9
  'pisell2.product.card.discount.reason': 'Discount reason',
7
10
  'pisell2.product.card.discount.note': 'Note',
8
11
  'pisell2.product.card.discount.add.note': 'Add note',
@@ -18,6 +21,9 @@ export default {
18
21
  'pisell2.product.card.day': function pisell2ProductCardDay(val) {
19
22
  return '天';
20
23
  },
24
+ 'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
25
+ return '活动';
26
+ },
21
27
  'pisell2.product.card.discount.reason': '折扣原因',
22
28
  'pisell2.product.card.discount.note': '备注',
23
29
  'pisell2.product.card.discount.add.note': '添加备注',
@@ -33,6 +39,9 @@ export default {
33
39
  'pisell2.product.card.day': function pisell2ProductCardDay(val) {
34
40
  return '天';
35
41
  },
42
+ 'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
43
+ return '活動';
44
+ },
36
45
  'pisell2.product.card.discount.reason': '折扣原因',
37
46
  'pisell2.product.card.discount.note': '備註',
38
47
  'pisell2.product.card.discount.add.note': '添加備註',
@@ -68,7 +68,7 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
68
68
  dayjs.locale(localeTypes[locale]);
69
69
  var startDate = dayjs(item === null || item === void 0 ? void 0 : item.start_date);
70
70
  var endDate = dayjs(item === null || item === void 0 ? void 0 : item.end_date);
71
- var diffInDays = endDate.diff(startDate, 'day');
71
+ var diffInDays = (item === null || item === void 0 ? void 0 : item.custom_day_count) || endDate.diff(startDate, 'day');
72
72
  var _format = isEn ? 'ddd, DD/MM/YYYY' : 'YYYY-MM-DD,ddd';
73
73
 
74
74
  // 是否自定义格式
@@ -83,6 +83,12 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
83
83
  endDate = dayjs("".concat(item === null || item === void 0 ? void 0 : item.end_date, " ").concat(item === null || item === void 0 ? void 0 : item.end_time));
84
84
  }
85
85
  var date = "".concat(startDate.format(_format), " ~ ").concat(endDate.format(_format));
86
- var duration = "".concat(diffInDays, " ").concat(locales.getText('pisell2.product.card.day')(diffInDays));
86
+
87
+ // 自定义文案
88
+ var text = locales.getText('pisell2.product.card.day')(diffInDays);
89
+ if (item !== null && item !== void 0 && item.custom_day_count) {
90
+ text = locales.getText('pisell2.product.card.day.event')(diffInDays);
91
+ }
92
+ var duration = "".concat(diffInDays, " ").concat(text);
87
93
  return "".concat(date, " (").concat(duration, ")");
88
94
  };
@@ -3,7 +3,7 @@ import { InputProps } from 'antd';
3
3
  declare const SubdomainlWithMode: React.FC<InputProps & {
4
4
  onChange: (value: string) => void;
5
5
  onBlur?: ((e: React.FocusEvent<HTMLInputElement>) => void) | undefined;
6
- rootDomain: string;
6
+ rootDomain: 'xzero' | 'saas' | 'custom';
7
7
  customDomain?: string | undefined;
8
8
  value?: string | undefined;
9
9
  isVerification?: boolean | undefined;
@@ -43,16 +43,16 @@ var Subdomain = (props) => {
43
43
  const {
44
44
  onBlur: propsOnBlur,
45
45
  onChange: propsOnChange,
46
- rootDomain = "",
46
+ rootDomain = "xzero",
47
+ // 默认值为 'xzero'
47
48
  customDomain,
48
49
  value,
49
50
  tenantId,
50
- // 假设您在 props 中传递了 tenantId
51
51
  ...rest
52
52
  } = props;
53
53
  const context = (0, import_useEngineContext.default)();
54
54
  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");
55
- const tenantData = (0, import_serve.useTenantData)(coreData ? (_i = coreData == null ? void 0 : coreData.tenant) == null ? void 0 : _i.id : "");
55
+ const tenantData = rootDomain === "saas" ? (0, import_serve.useTenantData)(coreData ? (_i = coreData == null ? void 0 : coreData.tenant) == null ? void 0 : _i.id : "") : void 0;
56
56
  const parseExternalValue = (val) => {
57
57
  if (!val)
58
58
  return { subdomain: "", suffix: coreData ? coreData.tenant_domain : "" };
@@ -72,9 +72,9 @@ var Subdomain = (props) => {
72
72
  setSubdomain(subdomain2);
73
73
  setSuffix(suffix2);
74
74
  } else {
75
- if (rootDomain === "1") {
75
+ if (rootDomain === "xzero") {
76
76
  setSuffix(coreData ? `.${coreData.tenant_domain}` : "");
77
- } else if (rootDomain === "2") {
77
+ } else if (rootDomain === "saas") {
78
78
  setSuffix(tenantData ? `.${tenantData["saas.domain"]}` : "");
79
79
  } else {
80
80
  setSuffix(customDomain ? customDomain.startsWith(".") ? customDomain : `.${customDomain}` : "");
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: string;
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  isVerification?: boolean | undefined;
@@ -20,7 +20,7 @@ declare const formFieldMap: {
20
20
  Subdomain: import("react").FC<import("antd").InputProps & {
21
21
  onChange: (value: string) => void;
22
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: string;
23
+ rootDomain: "custom" | "xzero" | "saas";
24
24
  customDomain?: string | undefined;
25
25
  value?: string | undefined;
26
26
  isVerification?: boolean | undefined;
@@ -76,7 +76,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
76
76
  Subdomain: import("react").FC<import("antd").InputProps & {
77
77
  onChange: (value: string) => void;
78
78
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
79
- rootDomain: string;
79
+ rootDomain: "custom" | "xzero" | "saas";
80
80
  customDomain?: string | undefined;
81
81
  value?: string | undefined;
82
82
  isVerification?: boolean | undefined;
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  en: {
3
3
  'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
4
5
  'pisell2.product.card.discount.reason': string;
5
6
  'pisell2.product.card.discount.note': string;
6
7
  'pisell2.product.card.discount.add.note': string;
@@ -14,6 +15,7 @@ declare const _default: {
14
15
  };
15
16
  'zh-CN': {
16
17
  'pisell2.product.card.day': (val: number) => string;
18
+ 'pisell2.product.card.day.event': (val: number) => string;
17
19
  'pisell2.product.card.discount.reason': string;
18
20
  'pisell2.product.card.discount.note': string;
19
21
  'pisell2.product.card.discount.add.note': string;
@@ -27,6 +29,7 @@ declare const _default: {
27
29
  };
28
30
  'zh-HK': {
29
31
  'pisell2.product.card.day': (val: number) => string;
32
+ 'pisell2.product.card.day.event': (val: number) => string;
30
33
  'pisell2.product.card.discount.reason': string;
31
34
  'pisell2.product.card.discount.note': string;
32
35
  'pisell2.product.card.discount.add.note': string;
@@ -25,6 +25,7 @@ module.exports = __toCommonJS(locales_exports);
25
25
  var locales_default = {
26
26
  "en": {
27
27
  "pisell2.product.card.day": (val) => `${val > 1 ? "days" : "day"}`,
28
+ "pisell2.product.card.day.event": (val) => `${val > 1 ? "events" : "event"}`,
28
29
  "pisell2.product.card.discount.reason": "Discount reason",
29
30
  "pisell2.product.card.discount.note": "Note",
30
31
  "pisell2.product.card.discount.add.note": "Add note",
@@ -38,6 +39,7 @@ var locales_default = {
38
39
  },
39
40
  "zh-CN": {
40
41
  "pisell2.product.card.day": (val) => "天",
42
+ "pisell2.product.card.day.event": (val) => "活动",
41
43
  "pisell2.product.card.discount.reason": "折扣原因",
42
44
  "pisell2.product.card.discount.note": "备注",
43
45
  "pisell2.product.card.discount.add.note": "添加备注",
@@ -51,6 +53,7 @@ var locales_default = {
51
53
  },
52
54
  "zh-HK": {
53
55
  "pisell2.product.card.day": (val) => "天",
56
+ "pisell2.product.card.day.event": (val) => "活動",
54
57
  "pisell2.product.card.discount.reason": "折扣原因",
55
58
  "pisell2.product.card.discount.note": "備註",
56
59
  "pisell2.product.card.discount.add.note": "添加備註",
@@ -75,7 +75,7 @@ var getServiceTime = (item, currentDate) => {
75
75
  import_dayjs.default.locale(localeTypes[locale]);
76
76
  let startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
77
77
  let endDate = (0, import_dayjs.default)(item == null ? void 0 : item.end_date);
78
- const diffInDays = endDate.diff(startDate, "day");
78
+ const diffInDays = (item == null ? void 0 : item.custom_day_count) || endDate.diff(startDate, "day");
79
79
  let _format = isEn2 ? "ddd, DD/MM/YYYY" : "YYYY-MM-DD,ddd";
80
80
  if ((item == null ? void 0 : item.hasOwnProperty("format")) && ((_b = item == null ? void 0 : item.format) == null ? void 0 : _b.length) > 0) {
81
81
  _format = isEn2 ? (_c = item == null ? void 0 : item.format) == null ? void 0 : _c[0] : (_d = item == null ? void 0 : item.format) == null ? void 0 : _d[1];
@@ -85,7 +85,11 @@ var getServiceTime = (item, currentDate) => {
85
85
  endDate = (0, import_dayjs.default)(`${item == null ? void 0 : item.end_date} ${item == null ? void 0 : item.end_time}`);
86
86
  }
87
87
  const date = `${startDate.format(_format)} ~ ${endDate.format(_format)}`;
88
- const duration = `${diffInDays} ${import_utils.locales.getText("pisell2.product.card.day")(diffInDays)}`;
88
+ let text = import_utils.locales.getText("pisell2.product.card.day")(diffInDays);
89
+ if (item == null ? void 0 : item.custom_day_count) {
90
+ text = import_utils.locales.getText("pisell2.product.card.day.event")(diffInDays);
91
+ }
92
+ const duration = `${diffInDays} ${text}`;
89
93
  return `${date} (${duration})`;
90
94
  };
91
95
  // Annotate the CommonJS export names for ESM import in node:
@@ -54,20 +54,20 @@ export default {
54
54
  options: [
55
55
  {
56
56
  title: 'xZero',
57
- value: '1',
57
+ value: 'xzero',
58
58
  },
59
59
  {
60
60
  title: 'SaaS platform',
61
- value: '2',
61
+ value: 'saas',
62
62
  },
63
63
  {
64
64
  title: 'Custom',
65
- value: '3',
65
+ value: 'custom',
66
66
  },
67
67
  ],
68
68
  },
69
69
  },
70
- defaultValue: '1',
70
+ defaultValue: 'xzero',
71
71
  },
72
72
  {
73
73
  name: 'customDomain',
@@ -95,7 +95,7 @@ export default {
95
95
  },
96
96
  },
97
97
  condition: (target) => {
98
- return target.getProps().getPropValue('rootDomain') === '3';
98
+ return target.getProps().getPropValue('rootDomain') === 'custom';
99
99
  },
100
100
  },
101
101
  generalItemMap['defaultValue'],
@@ -9,7 +9,7 @@ export default [
9
9
  title: '子域名输入',
10
10
  props: {
11
11
  placeholder: inputPlaceholder,
12
- rootDomain:'1',
12
+ rootDomain:'xzero',
13
13
  typeobj: {
14
14
  type: 'pattern',
15
15
  pattern:'^[a-z0-9]([a-z0-9-]*[a-z0-9])?$',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.584",
3
+ "version": "1.0.586",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",