@pisell/materials 6.0.9 → 6.0.11
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/es/components/dataSourceComponents/fields/Input/index.d.ts +4 -0
- package/es/components/dataSourceComponents/fields/Input/index.js +5 -1
- package/es/components/dataSourceComponents/fields/Input.Mobile/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/ReadPretty.js +28 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +11 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +157 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/index.d.ts +3 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +59 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Mobile/type.js +1 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +7 -4
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.js +13 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.less +11 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.d.ts +11 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +97 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +10 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.js +4 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +21 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.js +61 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/type.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/type.js +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +31 -4
- package/es/components/dataSourceComponents/fields/index.js +1 -0
- package/es/components/dataSourceComponents/hooks/useActions.js +14 -5
- package/es/components/login-and-register/index.less +2 -2
- package/es/components/organizationTenantSwitcher/index.less +1 -0
- package/es/components/pisellLayout/content.d.ts +7 -0
- package/es/components/pisellLayout/content.js +12 -0
- package/es/components/pisellLayout/footer.d.ts +7 -0
- package/es/components/pisellLayout/footer.js +12 -0
- package/es/components/pisellLayout/header.d.ts +7 -0
- package/es/components/pisellLayout/header.js +12 -0
- package/es/components/pisellLayout/index.d.ts +14 -0
- package/es/components/pisellLayout/index.js +15 -0
- package/es/components/pisellLayout/sider.d.ts +7 -0
- package/es/components/pisellLayout/sider.js +12 -0
- package/es/index.d.ts +87 -120
- package/es/index.js +88 -144
- package/lib/components/dataSourceComponents/dataSourceForm/serve.js +7 -2
- package/lib/components/dataSourceComponents/fields/Input/index.d.ts +4 -0
- package/lib/components/dataSourceComponents/fields/Input/index.js +4 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/ReadPretty.js +58 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +156 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +55 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +6 -4
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.js +50 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.less +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.d.ts +11 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +107 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +10 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.js +38 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +21 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/serve.js +60 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/type.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/type.js +17 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +31 -4
- package/lib/components/dataSourceComponents/fields/index.js +1 -0
- package/lib/components/dataSourceComponents/hooks/useActions.js +11 -6
- package/lib/components/login-and-register/index.less +2 -2
- package/lib/components/organizationTenantSwitcher/index.less +1 -0
- package/lib/components/pisellLayout/content.d.ts +7 -0
- package/lib/components/pisellLayout/content.js +42 -0
- package/lib/components/pisellLayout/footer.d.ts +7 -0
- package/lib/components/pisellLayout/footer.js +42 -0
- package/lib/components/pisellLayout/header.d.ts +7 -0
- package/lib/components/pisellLayout/header.js +42 -0
- package/lib/components/pisellLayout/index.d.ts +14 -0
- package/lib/components/pisellLayout/index.js +45 -0
- package/lib/components/pisellLayout/sider.d.ts +7 -0
- package/lib/components/pisellLayout/sider.js +42 -0
- package/lib/index.d.ts +87 -120
- package/lib/index.js +134 -157
- package/lowcode/data-source-form/constants.ts +4 -0
- package/lowcode/data-source-form/utils.ts +5 -1
- package/lowcode/form-item-input.mobile/__screenshots__/phone.png +0 -0
- package/lowcode/form-item-input.mobile/meta.ts +311 -0
- package/lowcode/form-item-input.mobile/snippets.ts +21 -0
- package/lowcode/form-item-input.phone/meta.ts +1 -1
- package/lowcode/form-item-input.phone/snippets.ts +2 -2
- package/lowcode/form-item-input.subdomain/meta.ts +304 -0
- package/lowcode/form-item-input.subdomain/snippets.ts +28 -0
- package/lowcode/pisell-content/meta.ts +83 -0
- package/lowcode/pisell-footer/meta.ts +81 -0
- package/lowcode/pisell-header/meta.ts +83 -0
- package/lowcode/pisell-layout/meta.ts +174 -0
- package/lowcode/pisell-sider/meta.ts +142 -0
- package/lowcode/pisell-text/meta.ts +9 -8080
- package/package.json +3 -3
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/dataSourceComponents/fields/Input.Mobile/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
getCountryDataList: () => getCountryDataList,
|
|
23
|
+
useCountries: () => useCountries
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(serve_exports);
|
|
26
|
+
var import_ahooks = require("ahooks");
|
|
27
|
+
var import_utils = require("../../../table/utils");
|
|
28
|
+
var getCountryDataList = async () => {
|
|
29
|
+
const { data } = await import_utils.request.getRequest().get(`/country:list`, {}, {
|
|
30
|
+
isNocobase: true,
|
|
31
|
+
fullResult: true,
|
|
32
|
+
headers: {
|
|
33
|
+
"x-data-source": "pisell2"
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
return data.map((item) => ({
|
|
37
|
+
...item,
|
|
38
|
+
prefix: `+${item.calling_code}`
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
var useCountries = () => {
|
|
42
|
+
const { data } = (0, import_ahooks.useRequest)(getCountryDataList, {
|
|
43
|
+
cacheKey: "phone-countries",
|
|
44
|
+
staleTime: 1e3 * 60 * 5,
|
|
45
|
+
// 5分钟后数据过期
|
|
46
|
+
cacheTime: 1e3 * 60 * 60
|
|
47
|
+
// 1小时后清除缓存
|
|
48
|
+
});
|
|
49
|
+
return { data };
|
|
50
|
+
};
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
getCountryDataList,
|
|
54
|
+
useCountries
|
|
55
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/dataSourceComponents/fields/Input.Mobile/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -7,5 +7,5 @@ export interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'>
|
|
|
7
7
|
onChange?: (value: string) => void;
|
|
8
8
|
isVerification?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const PhoneNumberInputWithMode: React.FC<PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps>;
|
|
11
|
+
export default PhoneNumberInputWithMode;
|
|
@@ -42,7 +42,7 @@ var import_ReadPretty = __toESM(require("./ReadPretty"));
|
|
|
42
42
|
var import_utils2 = require("../../dataSourceForm/utils");
|
|
43
43
|
var import_useTranslationOriginal = __toESM(require("../../../../hooks/useTranslationOriginal"));
|
|
44
44
|
var { Option } = import_select.default;
|
|
45
|
-
var
|
|
45
|
+
var PhoneNumberInput = ({ value: propsValue, onChange, isVerification, disabled, ...props }) => {
|
|
46
46
|
const { data: countries = [] } = (0, import_serve.useCountries)();
|
|
47
47
|
const translationOriginal = (0, import_useTranslationOriginal.default)();
|
|
48
48
|
const value = (0, import_react.useMemo)(() => {
|
|
@@ -104,7 +104,9 @@ var PhoneInput = ({ value: propsValue, onChange, isVerification, disabled, ...pr
|
|
|
104
104
|
if (!phoneNumber || !isVerification) {
|
|
105
105
|
return void 0;
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
const cleanedNumber = concatenatedNumber.replace(/\s|\(|\)/g, "");
|
|
108
|
+
const isValid = (0, import_libphonenumber_js.isValidPhoneNumber)(cleanedNumber) && ((_a = (0, import_libphonenumber_js.parsePhoneNumberFromString)(cleanedNumber)) == null ? void 0 : _a.isValid());
|
|
109
|
+
return isValid ? void 0 : "error";
|
|
108
110
|
}, [concatenatedNumber, phoneNumber, isVerification]);
|
|
109
111
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Space.Compact, { block: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
110
112
|
import_select.default,
|
|
@@ -138,5 +140,5 @@ var PhoneInput = ({ value: propsValue, onChange, isVerification, disabled, ...pr
|
|
|
138
140
|
}
|
|
139
141
|
));
|
|
140
142
|
};
|
|
141
|
-
var
|
|
142
|
-
var WithMode_default =
|
|
143
|
+
var PhoneNumberInputWithMode = (0, import_utils2.withMode)(PhoneNumberInput, import_ReadPretty.default);
|
|
144
|
+
var WithMode_default = PhoneNumberInputWithMode;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.tsx
|
|
30
|
+
var ReadPretty_exports = {};
|
|
31
|
+
__export(ReadPretty_exports, {
|
|
32
|
+
default: () => ReadPretty_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(ReadPretty_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_ReadPretty = require("./ReadPretty.less");
|
|
38
|
+
var InputReadPretty = (props) => {
|
|
39
|
+
const { value, renderMode } = props;
|
|
40
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
41
|
+
"span",
|
|
42
|
+
{
|
|
43
|
+
className: (0, import_classnames.default)("pisell-input-email-read-pretty", {
|
|
44
|
+
"pisell-input-email-read-pretty-table-view": renderMode === "tableView"
|
|
45
|
+
})
|
|
46
|
+
},
|
|
47
|
+
value
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
var ReadPretty_default = InputReadPretty;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from 'antd';
|
|
3
|
+
declare const SubdomainlWithMode: React.FC<InputProps & {
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onBlur?: ((e: React.FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
6
|
+
rootDomain: string;
|
|
7
|
+
customDomain?: string | undefined;
|
|
8
|
+
value?: string | undefined;
|
|
9
|
+
isVerification?: boolean | undefined;
|
|
10
|
+
} & import("../../dataSourceForm/utils").WithModeProps>;
|
|
11
|
+
export default SubdomainlWithMode;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/dataSourceComponents/fields/Input.Subdomain/WithMode.tsx
|
|
30
|
+
var WithMode_exports = {};
|
|
31
|
+
__export(WithMode_exports, {
|
|
32
|
+
default: () => WithMode_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(WithMode_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_serve = require("./serve");
|
|
38
|
+
var import_ReadPretty = __toESM(require("./ReadPretty"));
|
|
39
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
40
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
41
|
+
var Subdomain = (props) => {
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
43
|
+
const {
|
|
44
|
+
onBlur: propsOnBlur,
|
|
45
|
+
onChange: propsOnChange,
|
|
46
|
+
rootDomain = "",
|
|
47
|
+
customDomain,
|
|
48
|
+
value,
|
|
49
|
+
...rest
|
|
50
|
+
} = props;
|
|
51
|
+
const context = (0, import_useEngineContext.default)();
|
|
52
|
+
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");
|
|
53
|
+
const tenantData = (0, import_serve.useTenantData)();
|
|
54
|
+
const parseExternalValue = (val) => {
|
|
55
|
+
if (!val)
|
|
56
|
+
return { subdomain: "", suffix: coreData ? coreData.tenant_domain : "" };
|
|
57
|
+
const parts = val.split(".");
|
|
58
|
+
const subdomain2 = parts.length > 1 ? parts[0] : val;
|
|
59
|
+
const suffix2 = parts.length > 1 ? `.${parts.slice(1).join(".")}` : coreData ? coreData.tenant_domain : "";
|
|
60
|
+
return {
|
|
61
|
+
subdomain: subdomain2,
|
|
62
|
+
suffix: suffix2
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const [subdomain, setSubdomain] = (0, import_react.useState)("");
|
|
66
|
+
const [suffix, setSuffix] = (0, import_react.useState)("");
|
|
67
|
+
(0, import_react.useEffect)(() => {
|
|
68
|
+
if (value) {
|
|
69
|
+
const { subdomain: subdomain2, suffix: suffix2 } = parseExternalValue(value);
|
|
70
|
+
setSubdomain(subdomain2);
|
|
71
|
+
setSuffix(suffix2);
|
|
72
|
+
} else {
|
|
73
|
+
if (rootDomain === "1") {
|
|
74
|
+
setSuffix(coreData ? `.${coreData.tenant_domain}` : "");
|
|
75
|
+
} else if (rootDomain === "2") {
|
|
76
|
+
const { default_domain = "" } = tenantData || {};
|
|
77
|
+
const firstDotIndex = default_domain.indexOf(".");
|
|
78
|
+
const result = `.${default_domain.slice(firstDotIndex + 1)}`;
|
|
79
|
+
setSuffix(result);
|
|
80
|
+
} else {
|
|
81
|
+
setSuffix(customDomain ? customDomain.startsWith(".") ? customDomain : `.${customDomain}` : "");
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, [value, rootDomain, customDomain, tenantData, coreData]);
|
|
85
|
+
const handleChange = (e) => {
|
|
86
|
+
const inputValue = e.target.value.toLowerCase();
|
|
87
|
+
const { subdomain: subdomain2 } = parseExternalValue(inputValue);
|
|
88
|
+
setSubdomain(subdomain2);
|
|
89
|
+
propsOnChange == null ? void 0 : propsOnChange(subdomain2 + suffix);
|
|
90
|
+
};
|
|
91
|
+
const onBlur = (0, import_react.useCallback)((e) => {
|
|
92
|
+
propsOnBlur == null ? void 0 : propsOnBlur(e);
|
|
93
|
+
propsOnChange(subdomain + suffix);
|
|
94
|
+
}, [propsOnBlur, propsOnChange, subdomain, suffix]);
|
|
95
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
96
|
+
import_antd.Input,
|
|
97
|
+
{
|
|
98
|
+
...rest,
|
|
99
|
+
value: subdomain,
|
|
100
|
+
onChange: handleChange,
|
|
101
|
+
onBlur,
|
|
102
|
+
addonAfter: suffix
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
var SubdomainlWithMode = (0, import_utils.withMode)(Subdomain, import_ReadPretty.default);
|
|
107
|
+
var WithMode_default = SubdomainlWithMode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
+
rootDomain: string;
|
|
6
|
+
customDomain?: string | undefined;
|
|
7
|
+
value?: string | undefined;
|
|
8
|
+
isVerification?: boolean | undefined;
|
|
9
|
+
} & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
|
|
10
|
+
export default Subdomain;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/dataSourceComponents/fields/Input.Subdomain/index.tsx
|
|
30
|
+
var Input_exports = {};
|
|
31
|
+
__export(Input_exports, {
|
|
32
|
+
default: () => Input_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(Input_exports);
|
|
35
|
+
var import_utils = require("../../dataSourceForm/utils");
|
|
36
|
+
var import_WithMode = __toESM(require("./WithMode"));
|
|
37
|
+
var Subdomain = (0, import_utils.withFormItem)(import_WithMode.default);
|
|
38
|
+
var Input_default = Subdomain;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取nocobase数据列表 获取域名后缀
|
|
3
|
+
*/
|
|
4
|
+
export declare const getTenantData: () => Promise<TenantData>;
|
|
5
|
+
export interface TenantData {
|
|
6
|
+
id: number;
|
|
7
|
+
name: {
|
|
8
|
+
en: string;
|
|
9
|
+
"zh-CN": string;
|
|
10
|
+
"zh-HK": string;
|
|
11
|
+
original: string;
|
|
12
|
+
};
|
|
13
|
+
default_domain: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
locale: string;
|
|
16
|
+
updated_at: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 自定义 Hook,用于获取租户数据
|
|
20
|
+
*/
|
|
21
|
+
export declare const useTenantData: () => TenantData | undefined;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/dataSourceComponents/fields/Input.Subdomain/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
getTenantData: () => getTenantData,
|
|
23
|
+
useTenantData: () => useTenantData
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(serve_exports);
|
|
26
|
+
var import_ahooks = require("ahooks");
|
|
27
|
+
var import_utils = require("../../../table/utils");
|
|
28
|
+
var getTenantData = async () => {
|
|
29
|
+
try {
|
|
30
|
+
const { data } = await import_utils.request.getRequest().get(`/tenant:get`, {}, {
|
|
31
|
+
isNocobase: true,
|
|
32
|
+
fullResult: true,
|
|
33
|
+
headers: {
|
|
34
|
+
"x-data-source": "pisell2"
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return data;
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error("Failed to fetch tenant data:", error);
|
|
40
|
+
throw error;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var useTenantData = () => {
|
|
44
|
+
const { data, error } = (0, import_ahooks.useRequest)(getTenantData, {
|
|
45
|
+
cacheKey: "tenant-data",
|
|
46
|
+
staleTime: 1e3 * 60 * 5,
|
|
47
|
+
// 5分钟后数据过期
|
|
48
|
+
cacheTime: 1e3 * 60 * 60
|
|
49
|
+
// 1小时后清除缓存
|
|
50
|
+
});
|
|
51
|
+
if (error) {
|
|
52
|
+
console.error("Error fetching tenant data:", error);
|
|
53
|
+
}
|
|
54
|
+
return data;
|
|
55
|
+
};
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
getTenantData,
|
|
59
|
+
useTenantData
|
|
60
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/dataSourceComponents/fields/Input.Subdomain/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
|
@@ -12,8 +12,19 @@ declare const formFieldMap: {
|
|
|
12
12
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
13
13
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
14
14
|
URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
15
|
-
Email: import("react").FC<import("antd").InputProps &
|
|
15
|
+
Email: import("react").FC<import("antd").InputProps & {
|
|
16
|
+
onChange: (value: string) => void;
|
|
17
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
16
18
|
Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
19
|
+
Mobile: import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
20
|
+
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
|
+
onChange: (value: string) => void;
|
|
22
|
+
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
+
rootDomain: string;
|
|
24
|
+
customDomain?: string | undefined;
|
|
25
|
+
value?: string | undefined;
|
|
26
|
+
isVerification?: boolean | undefined;
|
|
27
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
17
28
|
};
|
|
18
29
|
FormItemRadio: import("react").FC<{}> & {
|
|
19
30
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -33,7 +44,10 @@ declare const formFieldMap: {
|
|
|
33
44
|
FormItemTimePicker: import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
34
45
|
'FormItemInput.JSON': import("react").FC<any>;
|
|
35
46
|
'FormItemInput.Phone': import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
36
|
-
'FormItemInput.
|
|
47
|
+
'FormItemInput.Mobile': import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
48
|
+
'FormItemInput.Email': import("react").FC<import("antd").InputProps & {
|
|
49
|
+
onChange: (value: string) => void;
|
|
50
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
37
51
|
'FormItemInput.URL': import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
38
52
|
'FormItemInput.Password': import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
39
53
|
'FormItemRadio.Group': import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -46,13 +60,26 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
46
60
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
47
61
|
} & {
|
|
48
62
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
49
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps &
|
|
63
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
64
|
+
onChange: (value: string) => void;
|
|
65
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
50
66
|
JSON: import("react").FC<any>;
|
|
51
67
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
52
68
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
53
69
|
URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
54
|
-
Email: import("react").FC<import("antd").InputProps &
|
|
70
|
+
Email: import("react").FC<import("antd").InputProps & {
|
|
71
|
+
onChange: (value: string) => void;
|
|
72
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
55
73
|
Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
74
|
+
Mobile: import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
75
|
+
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
76
|
+
onChange: (value: string) => void;
|
|
77
|
+
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
78
|
+
rootDomain: string;
|
|
79
|
+
customDomain?: string | undefined;
|
|
80
|
+
value?: string | undefined;
|
|
81
|
+
isVerification?: boolean | undefined;
|
|
82
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
56
83
|
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
57
84
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
58
85
|
} & {
|
|
@@ -56,6 +56,7 @@ var formFieldMap = {
|
|
|
56
56
|
FormItemTimePicker: import_TimePicker.default,
|
|
57
57
|
"FormItemInput.JSON": import_Input.default.JSON,
|
|
58
58
|
"FormItemInput.Phone": import_Input.default.Phone,
|
|
59
|
+
"FormItemInput.Mobile": import_Input.default.Mobile,
|
|
59
60
|
"FormItemInput.Email": import_Input.default.Email,
|
|
60
61
|
"FormItemInput.URL": import_Input.default.URL,
|
|
61
62
|
"FormItemInput.Password": import_Input.default.Password,
|
|
@@ -181,12 +181,17 @@ var useActions = ({
|
|
|
181
181
|
});
|
|
182
182
|
return Promise.reject();
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
try {
|
|
185
|
+
const res = await (0, import_serve.updateNocobaseData)({
|
|
186
|
+
key: name,
|
|
187
|
+
data: formatCreateUpdateParams(values),
|
|
188
|
+
headers: getHeaders(),
|
|
189
|
+
query: { filterByTk: id, ...extraParams == null ? void 0 : extraParams.update }
|
|
190
|
+
});
|
|
191
|
+
return res;
|
|
192
|
+
} catch (error) {
|
|
193
|
+
return Promise.reject();
|
|
194
|
+
}
|
|
190
195
|
}
|
|
191
196
|
});
|
|
192
197
|
const list = (0, import_ahooks.useMemoizedFn)(
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
// Logo样式
|
|
15
15
|
.saas-login-logo {
|
|
16
|
+
width: fit-content;
|
|
16
17
|
height: 48px;
|
|
17
|
-
margin-bottom: 24px;
|
|
18
18
|
border-radius: 8px;
|
|
19
19
|
|
|
20
20
|
&.left {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
font-size: 24px;
|
|
42
42
|
font-weight: 600;
|
|
43
43
|
color: #101828;
|
|
44
|
-
margin-top:
|
|
44
|
+
margin-top: 24px;
|
|
45
45
|
margin-bottom: 12px;
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LayoutProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface PisellContentProps extends Omit<LayoutProps, 'prefixCls'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const PisellContent: React.FC<PisellContentProps>;
|
|
7
|
+
export default PisellContent;
|