@pisell/private-materials 6.11.22 → 6.11.23
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/components/productSelect/locales.d.ts +10 -0
- package/es/components/productSelect/locales.js +15 -5
- package/es/components/schedules/model.d.ts +9 -1
- package/es/plus/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/plus/productSelect/locales.d.ts +10 -0
- package/es/plus/productSelect/locales.js +15 -5
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/productSelect/components/pisellPriceText/index.js +6 -4
- package/lib/components/productSelect/locales.d.ts +10 -0
- package/lib/components/productSelect/locales.js +15 -5
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
- package/lib/plus/productSelect/locales.d.ts +10 -0
- package/lib/plus/productSelect/locales.js +15 -5
- package/package.json +2 -2
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -110,4 +111,11 @@ export declare const walkInData: {
|
|
|
110
111
|
id: number;
|
|
111
112
|
nickname: string;
|
|
112
113
|
};
|
|
113
|
-
export declare const Provider: any, Context:
|
|
114
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
115
|
+
state: FormState;
|
|
116
|
+
} & {
|
|
117
|
+
dispatch: (params: {
|
|
118
|
+
type: string;
|
|
119
|
+
payload: any;
|
|
120
|
+
}) => void;
|
|
121
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -30,4 +31,11 @@ export interface PayGroup {
|
|
|
30
31
|
front_order_uuid?: string;
|
|
31
32
|
orderDetail: any;
|
|
32
33
|
}
|
|
33
|
-
export declare const Provider: any, Context:
|
|
34
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
35
|
+
state: FormState;
|
|
36
|
+
} & {
|
|
37
|
+
dispatch: (params: {
|
|
38
|
+
type: string;
|
|
39
|
+
payload: any;
|
|
40
|
+
}) => void;
|
|
41
|
+
}>;
|
|
@@ -8,6 +8,7 @@ import React, { useMemo } from 'react';
|
|
|
8
8
|
import { PisellText } from '@pisell/materials';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
11
|
+
import locales from "../../locales";
|
|
11
12
|
var index = function index(props) {
|
|
12
13
|
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3;
|
|
13
14
|
var context = useEngineContext();
|
|
@@ -15,10 +16,13 @@ var index = function index(props) {
|
|
|
15
16
|
var locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
|
|
16
17
|
var _useMemo = useMemo(function () {
|
|
17
18
|
if (!props.isMini) return ['', ''];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
|
|
20
|
+
// 获取翻译文本
|
|
21
|
+
var localText = locales[locale] || locales.en;
|
|
22
|
+
var prefixText = localText['pisell2.product-select.price.prefix'] || '';
|
|
23
|
+
var suffixText = localText['pisell2.product-select.price.suffix'] || '';
|
|
24
|
+
return [prefixText, suffixText];
|
|
25
|
+
}, [props.isMini, locale]),
|
|
22
26
|
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
23
27
|
_prefix = _useMemo2[0],
|
|
24
28
|
_suffix = _useMemo2[1];
|
|
@@ -3,26 +3,36 @@ declare const _default: {
|
|
|
3
3
|
'pisell2.product-select.search': string;
|
|
4
4
|
'pisell2.product-select.stock': string;
|
|
5
5
|
'pisell2.product-select.empty': string;
|
|
6
|
+
'pisell2.product-select.price.prefix': string;
|
|
7
|
+
'pisell2.product-select.price.suffix': string;
|
|
6
8
|
};
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': string;
|
|
9
11
|
'pisell2.product-select.stock': string;
|
|
10
12
|
'pisell2.product-select.empty': string;
|
|
13
|
+
'pisell2.product-select.price.prefix': string;
|
|
14
|
+
'pisell2.product-select.price.suffix': string;
|
|
11
15
|
};
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': string;
|
|
14
18
|
'pisell2.product-select.stock': string;
|
|
15
19
|
'pisell2.product-select.empty': string;
|
|
20
|
+
'pisell2.product-select.price.prefix': string;
|
|
21
|
+
'pisell2.product-select.price.suffix': string;
|
|
16
22
|
};
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': string;
|
|
19
25
|
'pisell2.product-select.stock': string;
|
|
20
26
|
'pisell2.product-select.empty': string;
|
|
27
|
+
'pisell2.product-select.price.prefix': string;
|
|
28
|
+
'pisell2.product-select.price.suffix': string;
|
|
21
29
|
};
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': string;
|
|
24
32
|
'pisell2.product-select.stock': string;
|
|
25
33
|
'pisell2.product-select.empty': string;
|
|
34
|
+
'pisell2.product-select.price.prefix': string;
|
|
35
|
+
'pisell2.product-select.price.suffix': string;
|
|
26
36
|
};
|
|
27
37
|
};
|
|
28
38
|
export default _default;
|
|
@@ -2,26 +2,36 @@ export default {
|
|
|
2
2
|
en: {
|
|
3
3
|
'pisell2.product-select.search': 'Search',
|
|
4
4
|
'pisell2.product-select.stock': 'Stock',
|
|
5
|
-
'pisell2.product-select.empty': 'No Data'
|
|
5
|
+
'pisell2.product-select.empty': 'No Data',
|
|
6
|
+
'pisell2.product-select.price.prefix': 'From',
|
|
7
|
+
'pisell2.product-select.price.suffix': ''
|
|
6
8
|
},
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': '搜索',
|
|
9
11
|
'pisell2.product-select.stock': '库存',
|
|
10
|
-
'pisell2.product-select.empty': '暂无数据'
|
|
12
|
+
'pisell2.product-select.empty': '暂无数据',
|
|
13
|
+
'pisell2.product-select.price.prefix': '',
|
|
14
|
+
'pisell2.product-select.price.suffix': '起'
|
|
11
15
|
},
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': '搜索',
|
|
14
18
|
'pisell2.product-select.stock': '庫存',
|
|
15
|
-
'pisell2.product-select.empty': '暂无数据'
|
|
19
|
+
'pisell2.product-select.empty': '暂无数据',
|
|
20
|
+
'pisell2.product-select.price.prefix': '',
|
|
21
|
+
'pisell2.product-select.price.suffix': '起'
|
|
16
22
|
},
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': '検索',
|
|
19
25
|
'pisell2.product-select.stock': '在庫',
|
|
20
|
-
'pisell2.product-select.empty': 'データがありません'
|
|
26
|
+
'pisell2.product-select.empty': 'データがありません',
|
|
27
|
+
'pisell2.product-select.price.prefix': '',
|
|
28
|
+
'pisell2.product-select.price.suffix': 'から'
|
|
21
29
|
},
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': 'Pesquisar',
|
|
24
32
|
'pisell2.product-select.stock': 'Estoque',
|
|
25
|
-
'pisell2.product-select.empty': 'Sem Dados'
|
|
33
|
+
'pisell2.product-select.empty': 'Sem Dados',
|
|
34
|
+
'pisell2.product-select.price.prefix': 'A partir de',
|
|
35
|
+
'pisell2.product-select.price.suffix': ''
|
|
26
36
|
}
|
|
27
37
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -8,6 +8,7 @@ import React, { useMemo } from 'react';
|
|
|
8
8
|
import { PisellText } from '@pisell/materials';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
11
|
+
import locales from "../../locales";
|
|
11
12
|
import "./index.less";
|
|
12
13
|
var index = function index(props) {
|
|
13
14
|
var _context$appHelper$ut;
|
|
@@ -18,10 +19,13 @@ var index = function index(props) {
|
|
|
18
19
|
var locale = ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en';
|
|
19
20
|
var _useMemo = useMemo(function () {
|
|
20
21
|
if (!props.isMini) return ['', ''];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
|
|
23
|
+
// 获取翻译文本
|
|
24
|
+
var localText = locales[locale] || locales.en;
|
|
25
|
+
var prefixText = customPrefixText || localText['pisell2.product-select.price.prefix'] || 'From';
|
|
26
|
+
var suffixText = customSuffixText || localText['pisell2.product-select.price.suffix'] || '';
|
|
27
|
+
return [prefixText, suffixText];
|
|
28
|
+
}, [props.isMini, customPrefixText, customSuffixText, locale]),
|
|
25
29
|
_useMemo2 = _slicedToArray(_useMemo, 2),
|
|
26
30
|
_prefix = _useMemo2[0],
|
|
27
31
|
_suffix = _useMemo2[1];
|
|
@@ -3,26 +3,36 @@ declare const _default: {
|
|
|
3
3
|
'pisell2.product-select.search': string;
|
|
4
4
|
'pisell2.product-select.stock': string;
|
|
5
5
|
'pisell2.product-select.empty': string;
|
|
6
|
+
'pisell2.product-select.price.prefix': string;
|
|
7
|
+
'pisell2.product-select.price.suffix': string;
|
|
6
8
|
};
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': string;
|
|
9
11
|
'pisell2.product-select.stock': string;
|
|
10
12
|
'pisell2.product-select.empty': string;
|
|
13
|
+
'pisell2.product-select.price.prefix': string;
|
|
14
|
+
'pisell2.product-select.price.suffix': string;
|
|
11
15
|
};
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': string;
|
|
14
18
|
'pisell2.product-select.stock': string;
|
|
15
19
|
'pisell2.product-select.empty': string;
|
|
20
|
+
'pisell2.product-select.price.prefix': string;
|
|
21
|
+
'pisell2.product-select.price.suffix': string;
|
|
16
22
|
};
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': string;
|
|
19
25
|
'pisell2.product-select.stock': string;
|
|
20
26
|
'pisell2.product-select.empty': string;
|
|
27
|
+
'pisell2.product-select.price.prefix': string;
|
|
28
|
+
'pisell2.product-select.price.suffix': string;
|
|
21
29
|
};
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': string;
|
|
24
32
|
'pisell2.product-select.stock': string;
|
|
25
33
|
'pisell2.product-select.empty': string;
|
|
34
|
+
'pisell2.product-select.price.prefix': string;
|
|
35
|
+
'pisell2.product-select.price.suffix': string;
|
|
26
36
|
};
|
|
27
37
|
};
|
|
28
38
|
export default _default;
|
|
@@ -2,26 +2,36 @@ export default {
|
|
|
2
2
|
en: {
|
|
3
3
|
'pisell2.product-select.search': 'Search',
|
|
4
4
|
'pisell2.product-select.stock': 'Stock',
|
|
5
|
-
'pisell2.product-select.empty': 'No Data'
|
|
5
|
+
'pisell2.product-select.empty': 'No Data',
|
|
6
|
+
'pisell2.product-select.price.prefix': 'From',
|
|
7
|
+
'pisell2.product-select.price.suffix': ''
|
|
6
8
|
},
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': '搜索',
|
|
9
11
|
'pisell2.product-select.stock': '库存',
|
|
10
|
-
'pisell2.product-select.empty': '暂无数据'
|
|
12
|
+
'pisell2.product-select.empty': '暂无数据',
|
|
13
|
+
'pisell2.product-select.price.prefix': '',
|
|
14
|
+
'pisell2.product-select.price.suffix': '起'
|
|
11
15
|
},
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': '搜索',
|
|
14
18
|
'pisell2.product-select.stock': '庫存',
|
|
15
|
-
'pisell2.product-select.empty': '暂无数据'
|
|
19
|
+
'pisell2.product-select.empty': '暂无数据',
|
|
20
|
+
'pisell2.product-select.price.prefix': '',
|
|
21
|
+
'pisell2.product-select.price.suffix': '起'
|
|
16
22
|
},
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': '検索',
|
|
19
25
|
'pisell2.product-select.stock': '在庫',
|
|
20
|
-
'pisell2.product-select.empty': 'データなし'
|
|
26
|
+
'pisell2.product-select.empty': 'データなし',
|
|
27
|
+
'pisell2.product-select.price.prefix': '',
|
|
28
|
+
'pisell2.product-select.price.suffix': 'から'
|
|
21
29
|
},
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': 'Pesquisar',
|
|
24
32
|
'pisell2.product-select.stock': 'Estoque',
|
|
25
|
-
'pisell2.product-select.empty': 'Sem Dados'
|
|
33
|
+
'pisell2.product-select.empty': 'Sem Dados',
|
|
34
|
+
'pisell2.product-select.price.prefix': 'A partir de',
|
|
35
|
+
'pisell2.product-select.price.suffix': ''
|
|
26
36
|
}
|
|
27
37
|
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
amountSymbol: string;
|
|
3
4
|
apis: {
|
|
@@ -110,4 +111,11 @@ export declare const walkInData: {
|
|
|
110
111
|
id: number;
|
|
111
112
|
nickname: string;
|
|
112
113
|
};
|
|
113
|
-
export declare const Provider: any, Context:
|
|
114
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
115
|
+
state: FormState;
|
|
116
|
+
} & {
|
|
117
|
+
dispatch: (params: {
|
|
118
|
+
type: string;
|
|
119
|
+
payload: any;
|
|
120
|
+
}) => void;
|
|
121
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -30,4 +31,11 @@ export interface PayGroup {
|
|
|
30
31
|
front_order_uuid?: string;
|
|
31
32
|
orderDetail: any;
|
|
32
33
|
}
|
|
33
|
-
export declare const Provider: any, Context:
|
|
34
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
35
|
+
state: FormState;
|
|
36
|
+
} & {
|
|
37
|
+
dispatch: (params: {
|
|
38
|
+
type: string;
|
|
39
|
+
payload: any;
|
|
40
|
+
}) => void;
|
|
41
|
+
}>;
|
|
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_materials = require("@pisell/materials");
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
38
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
39
|
+
var import_locales = __toESM(require("../../locales"));
|
|
39
40
|
var index = (props) => {
|
|
40
41
|
var _a, _b, _c, _d;
|
|
41
42
|
const context = (0, import_useEngineContext.default)();
|
|
@@ -43,10 +44,11 @@ var index = (props) => {
|
|
|
43
44
|
const locale = ((_b = (_a = context.appHelper.utils) == null ? void 0 : _a.storage) == null ? void 0 : _b.get("umi_locale")) || "en";
|
|
44
45
|
const [_prefix, _suffix] = (0, import_react.useMemo)(() => {
|
|
45
46
|
if (!props.isMini) return ["", ""];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
const localText = import_locales.default[locale] || import_locales.default.en;
|
|
48
|
+
const prefixText = localText["pisell2.product-select.price.prefix"] || "";
|
|
49
|
+
const suffixText = localText["pisell2.product-select.price.suffix"] || "";
|
|
50
|
+
return [prefixText, suffixText];
|
|
51
|
+
}, [props.isMini, locale]);
|
|
50
52
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-price-text", props.className) }, props.prefix, _prefix ? /* @__PURE__ */ import_react.default.createElement(
|
|
51
53
|
"span",
|
|
52
54
|
{
|
|
@@ -3,26 +3,36 @@ declare const _default: {
|
|
|
3
3
|
'pisell2.product-select.search': string;
|
|
4
4
|
'pisell2.product-select.stock': string;
|
|
5
5
|
'pisell2.product-select.empty': string;
|
|
6
|
+
'pisell2.product-select.price.prefix': string;
|
|
7
|
+
'pisell2.product-select.price.suffix': string;
|
|
6
8
|
};
|
|
7
9
|
'zh-CN': {
|
|
8
10
|
'pisell2.product-select.search': string;
|
|
9
11
|
'pisell2.product-select.stock': string;
|
|
10
12
|
'pisell2.product-select.empty': string;
|
|
13
|
+
'pisell2.product-select.price.prefix': string;
|
|
14
|
+
'pisell2.product-select.price.suffix': string;
|
|
11
15
|
};
|
|
12
16
|
'zh-HK': {
|
|
13
17
|
'pisell2.product-select.search': string;
|
|
14
18
|
'pisell2.product-select.stock': string;
|
|
15
19
|
'pisell2.product-select.empty': string;
|
|
20
|
+
'pisell2.product-select.price.prefix': string;
|
|
21
|
+
'pisell2.product-select.price.suffix': string;
|
|
16
22
|
};
|
|
17
23
|
ja: {
|
|
18
24
|
'pisell2.product-select.search': string;
|
|
19
25
|
'pisell2.product-select.stock': string;
|
|
20
26
|
'pisell2.product-select.empty': string;
|
|
27
|
+
'pisell2.product-select.price.prefix': string;
|
|
28
|
+
'pisell2.product-select.price.suffix': string;
|
|
21
29
|
};
|
|
22
30
|
pt: {
|
|
23
31
|
'pisell2.product-select.search': string;
|
|
24
32
|
'pisell2.product-select.stock': string;
|
|
25
33
|
'pisell2.product-select.empty': string;
|
|
34
|
+
'pisell2.product-select.price.prefix': string;
|
|
35
|
+
'pisell2.product-select.price.suffix': string;
|
|
26
36
|
};
|
|
27
37
|
};
|
|
28
38
|
export default _default;
|
|
@@ -26,26 +26,36 @@ var locales_default = {
|
|
|
26
26
|
en: {
|
|
27
27
|
"pisell2.product-select.search": "Search",
|
|
28
28
|
"pisell2.product-select.stock": "Stock",
|
|
29
|
-
"pisell2.product-select.empty": "No Data"
|
|
29
|
+
"pisell2.product-select.empty": "No Data",
|
|
30
|
+
"pisell2.product-select.price.prefix": "From",
|
|
31
|
+
"pisell2.product-select.price.suffix": ""
|
|
30
32
|
},
|
|
31
33
|
"zh-CN": {
|
|
32
34
|
"pisell2.product-select.search": "搜索",
|
|
33
35
|
"pisell2.product-select.stock": "库存",
|
|
34
|
-
"pisell2.product-select.empty": "暂无数据"
|
|
36
|
+
"pisell2.product-select.empty": "暂无数据",
|
|
37
|
+
"pisell2.product-select.price.prefix": "",
|
|
38
|
+
"pisell2.product-select.price.suffix": "起"
|
|
35
39
|
},
|
|
36
40
|
"zh-HK": {
|
|
37
41
|
"pisell2.product-select.search": "搜索",
|
|
38
42
|
"pisell2.product-select.stock": "庫存",
|
|
39
|
-
"pisell2.product-select.empty": "暂无数据"
|
|
43
|
+
"pisell2.product-select.empty": "暂无数据",
|
|
44
|
+
"pisell2.product-select.price.prefix": "",
|
|
45
|
+
"pisell2.product-select.price.suffix": "起"
|
|
40
46
|
},
|
|
41
47
|
ja: {
|
|
42
48
|
"pisell2.product-select.search": "検索",
|
|
43
49
|
"pisell2.product-select.stock": "在庫",
|
|
44
|
-
"pisell2.product-select.empty": "データがありません"
|
|
50
|
+
"pisell2.product-select.empty": "データがありません",
|
|
51
|
+
"pisell2.product-select.price.prefix": "",
|
|
52
|
+
"pisell2.product-select.price.suffix": "から"
|
|
45
53
|
},
|
|
46
54
|
pt: {
|
|
47
55
|
"pisell2.product-select.search": "Pesquisar",
|
|
48
56
|
"pisell2.product-select.stock": "Estoque",
|
|
49
|
-
"pisell2.product-select.empty": "Sem Dados"
|
|
57
|
+
"pisell2.product-select.empty": "Sem Dados",
|
|
58
|
+
"pisell2.product-select.price.prefix": "A partir de",
|
|
59
|
+
"pisell2.product-select.price.suffix": ""
|
|
50
60
|
}
|
|
51
61
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -36,6 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_materials = require("@pisell/materials");
|
|
37
37
|
var import_classnames = __toESM(require("classnames"));
|
|
38
38
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
39
|
+
var import_locales = __toESM(require("../../locales"));
|
|
39
40
|
var import_index = require("./index.less");
|
|
40
41
|
var index = (props) => {
|
|
41
42
|
var _a, _b;
|
|
@@ -44,11 +45,11 @@ var index = (props) => {
|
|
|
44
45
|
const locale = ((_b = (_a = context.appHelper.utils) == null ? void 0 : _a.storage) == null ? void 0 : _b.get("umi_locale")) || "en";
|
|
45
46
|
const [_prefix, _suffix] = (0, import_react.useMemo)(() => {
|
|
46
47
|
if (!props.isMini) return ["", ""];
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return [
|
|
51
|
-
}, [
|
|
48
|
+
const localText = import_locales.default[locale] || import_locales.default.en;
|
|
49
|
+
const prefixText = customPrefixText || localText["pisell2.product-select.price.prefix"] || "From";
|
|
50
|
+
const suffixText = customSuffixText || localText["pisell2.product-select.price.suffix"] || "";
|
|
51
|
+
return [prefixText, suffixText];
|
|
52
|
+
}, [props.isMini, customPrefixText, customSuffixText, locale]);
|
|
52
53
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-price-text", props.className) }, props.prefix, _prefix ? /* @__PURE__ */ import_react.default.createElement(
|
|
53
54
|
"span",
|
|
54
55
|
{
|