@pisell/materials 1.0.917 → 1.0.919
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 +1 -1
- package/build/lowcode/preview.js +164 -148
- package/build/lowcode/render/default/view.js +33 -19
- package/build/lowcode/view.js +30 -16
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/appVersionControl/index.d.ts +1 -0
- package/es/components/cardPro/index.js +10 -3
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +9 -9
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/hardwareErrorTip/errorCard/index.d.ts +1 -0
- package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +1 -0
- package/es/components/hardwareErrorTip/logCard/index.d.ts +1 -0
- package/es/components/media/index.d.ts +18 -0
- package/es/components/media/index.js +340 -0
- package/es/components/media/index.less +100 -0
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.d.ts +1 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/es/components/pisellInput/index.d.ts +1 -0
- package/es/components/pisellTooltip/index.d.ts +1 -0
- package/es/components/pisellVHFix/index.d.ts +13 -0
- package/es/components/pisellVHFix/index.js +36 -0
- package/es/components/pisellVHFix/index.less +10 -0
- package/es/components/pisellWalletPassCard/index.js +1 -1
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
- package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
- package/es/components/productCard/components/Action/index.d.ts +1 -0
- package/es/components/productCard/components/Header/Actions/index.d.ts +1 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
- package/es/components/productCard/components/Header/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/es/components/productCard/components/Time/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/es/locales/en-US.d.ts +10 -0
- package/es/locales/en-US.js +16 -1
- package/es/locales/zh-CN.d.ts +10 -0
- package/es/locales/zh-CN.js +16 -1
- package/es/locales/zh-TW.d.ts +10 -0
- package/es/locales/zh-TW.js +16 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/appVersionControl/index.d.ts +1 -0
- package/lib/components/cardPro/index.js +3 -2
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +9 -9
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/hardwareErrorTip/errorCard/index.d.ts +1 -0
- package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +1 -0
- package/lib/components/hardwareErrorTip/logCard/index.d.ts +1 -0
- package/lib/components/media/index.d.ts +18 -0
- package/lib/components/media/index.js +265 -0
- package/lib/components/media/index.less +100 -0
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
- package/lib/components/pisellInput/index.d.ts +1 -0
- package/lib/components/pisellTooltip/index.d.ts +1 -0
- package/lib/components/pisellVHFix/index.d.ts +13 -0
- package/lib/components/pisellVHFix/index.js +56 -0
- package/lib/components/pisellVHFix/index.less +10 -0
- package/lib/components/pisellWalletPassCard/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +1 -0
- package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
- package/lib/components/productCard/components/Action/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/Actions/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
- package/lib/locales/en-US.d.ts +10 -0
- package/lib/locales/en-US.js +12 -1
- package/lib/locales/zh-CN.d.ts +10 -0
- package/lib/locales/zh-CN.js +12 -1
- package/lib/locales/zh-TW.d.ts +10 -0
- package/lib/locales/zh-TW.js +12 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.pisell-media {
|
|
2
|
+
.pisell-media-current-files {
|
|
3
|
+
margin-top: 8px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
|
|
8
|
+
.pisell-media-file-item {
|
|
9
|
+
position: relative;
|
|
10
|
+
border: 1px solid #d9d9d9;
|
|
11
|
+
border-radius: 6px;
|
|
12
|
+
padding: 4px;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 8px;
|
|
16
|
+
|
|
17
|
+
.pisell-media-file-actions {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 4px;
|
|
20
|
+
right: 4px;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transition: opacity 0.2s;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:hover .pisell-media-file-actions {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pisell-media-modal {
|
|
32
|
+
.pisell-media-upload {
|
|
33
|
+
margin-bottom: 16px;
|
|
34
|
+
padding-bottom: 16px;
|
|
35
|
+
border-bottom: 1px solid #f0f0f0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pisell-media-list {
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
41
|
+
gap: 12px;
|
|
42
|
+
max-height: 400px;
|
|
43
|
+
overflow-y: auto;
|
|
44
|
+
|
|
45
|
+
.pisell-media-item {
|
|
46
|
+
border: 2px solid transparent;
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
padding: 8px;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
background: #fafafa;
|
|
51
|
+
transition: all 0.2s;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
align-items: center;
|
|
55
|
+
text-align: center;
|
|
56
|
+
min-height: 120px;
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
border-color: #1890ff;
|
|
60
|
+
background: #f0f8ff;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.selected {
|
|
64
|
+
border-color: #1890ff;
|
|
65
|
+
background: #e6f7ff;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pisell-media-item-info {
|
|
69
|
+
margin-top: 8px;
|
|
70
|
+
width: 100%;
|
|
71
|
+
|
|
72
|
+
.pisell-media-item-name {
|
|
73
|
+
font-size: 12px;
|
|
74
|
+
color: #333;
|
|
75
|
+
margin-bottom: 4px;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
text-overflow: ellipsis;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.pisell-media-item-size {
|
|
82
|
+
font-size: 10px;
|
|
83
|
+
color: #999;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.pisell-media-selected {
|
|
90
|
+
margin-top: 16px;
|
|
91
|
+
padding: 8px 12px;
|
|
92
|
+
background: #f6ffed;
|
|
93
|
+
border: 1px solid #b7eb8f;
|
|
94
|
+
border-radius: 6px;
|
|
95
|
+
color: #52c41a;
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
text-align: center;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface PisellVHFixProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
height?: number;
|
|
8
|
+
minHeight?: boolean;
|
|
9
|
+
maxHeight?: boolean;
|
|
10
|
+
minusPixels?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const PisellVHFix: React.FC<PisellVHFixProps>;
|
|
13
|
+
export default PisellVHFix;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { useVH } from "../../hooks/useVH";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
var PisellVHFix = function PisellVHFix(_ref) {
|
|
11
|
+
var children = _ref.children,
|
|
12
|
+
className = _ref.className,
|
|
13
|
+
style = _ref.style,
|
|
14
|
+
_ref$height = _ref.height,
|
|
15
|
+
height = _ref$height === void 0 ? 100 : _ref$height,
|
|
16
|
+
_ref$minHeight = _ref.minHeight,
|
|
17
|
+
minHeight = _ref$minHeight === void 0 ? false : _ref$minHeight,
|
|
18
|
+
_ref$maxHeight = _ref.maxHeight,
|
|
19
|
+
maxHeight = _ref$maxHeight === void 0 ? false : _ref$maxHeight,
|
|
20
|
+
_ref$minusPixels = _ref.minusPixels,
|
|
21
|
+
minusPixels = _ref$minusPixels === void 0 ? 0 : _ref$minusPixels;
|
|
22
|
+
// 启用vh修复
|
|
23
|
+
useVH();
|
|
24
|
+
var containerStyle = _objectSpread(_objectSpread(_objectSpread({}, style), {}, {
|
|
25
|
+
height: minusPixels > 0 ? "calc(var(--vh, 1vh) * ".concat(height, " - ").concat(minusPixels, "px)") : "calc(var(--vh, 1vh) * ".concat(height, ")")
|
|
26
|
+
}, minHeight && {
|
|
27
|
+
minHeight: "calc(var(--vh, 1vh) * ".concat(height, ")")
|
|
28
|
+
}), maxHeight && {
|
|
29
|
+
maxHeight: "calc(var(--vh, 1vh) * ".concat(height, ")")
|
|
30
|
+
});
|
|
31
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: "pisell-vh-fix ".concat(className || ''),
|
|
33
|
+
style: containerStyle
|
|
34
|
+
}, children);
|
|
35
|
+
};
|
|
36
|
+
export default PisellVHFix;
|
|
@@ -539,7 +539,7 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
|
|
|
539
539
|
className: "pisell-card-amount-item-label"
|
|
540
540
|
}, getText('pisell-discount-card-title')), /*#__PURE__*/React.createElement("div", {
|
|
541
541
|
className: "pisell-card-amount-item-value"
|
|
542
|
-
}, ((_props$metadata = props.metadata) === null || _props$metadata === void 0 ? void 0 : _props$metadata.discount_card_type) === 'fixed_amount' ? /*#__PURE__*/React.createElement(React.Fragment, null, getText('pisell-discount-card-fixed-amount-prefix'), /*#__PURE__*/React.createElement(Amount, {
|
|
542
|
+
}, ((_props$metadata = props.metadata) === null || _props$metadata === void 0 ? void 0 : _props$metadata.discount_card_type) === 'fixed_amount' ? /*#__PURE__*/React.createElement(React.Fragment, null, getText('pisell-discount-card-fixed-amount-prefix'), ' ', /*#__PURE__*/React.createElement(Amount, {
|
|
543
543
|
className: "pisell-card-amount-item-value",
|
|
544
544
|
useThousandsSeparator: true,
|
|
545
545
|
value: discount
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import './index.less';
|
|
2
3
|
declare const SelectHolder: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
|
|
3
4
|
export default SelectHolder;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import './index.less';
|
|
2
3
|
declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
|
|
3
4
|
export default Time;
|
|
@@ -198,12 +198,12 @@ export declare const fieldList: ({
|
|
|
198
198
|
field_icon: string;
|
|
199
199
|
field_name: string;
|
|
200
200
|
field_type: string;
|
|
201
|
-
default_value:
|
|
201
|
+
default_value: string;
|
|
202
202
|
} | {
|
|
203
203
|
field_icon: string;
|
|
204
204
|
field_name: string;
|
|
205
205
|
field_type: string;
|
|
206
|
-
default_value:
|
|
206
|
+
default_value: boolean;
|
|
207
207
|
} | {
|
|
208
208
|
field_icon: string;
|
|
209
209
|
field_name: string;
|
|
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
167
167
|
sort?: SortType | undefined;
|
|
168
168
|
mode: "" | "localStorage" | "remote";
|
|
169
169
|
currentViewMode: ModeType;
|
|
170
|
-
}) => ("
|
|
170
|
+
}) => ("order_by" | "group_by" | "column_setting" | "gallery_setting" | "filter_setting" | "view_mode")[];
|
|
171
171
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
172
172
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
173
173
|
export {};
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -316,5 +316,15 @@ declare const _default: {
|
|
|
316
316
|
'pisell-wallet-pass-card-status-conflict': string;
|
|
317
317
|
'pisell-wallet-pass-card-reset': string;
|
|
318
318
|
'pisell-wallet-pass-card-done': string;
|
|
319
|
+
'pisell-list-tab-group-default': string;
|
|
320
|
+
'pisell-list-empty-text-default': string;
|
|
321
|
+
'pisell-list-load-more': string;
|
|
322
|
+
'pisell-list-view-less': string;
|
|
323
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
324
|
+
'pisell-list-scroll-down': string;
|
|
325
|
+
'pisell-list-scroll-right': string;
|
|
326
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
327
|
+
'pisell-list-pagination-previous': string;
|
|
328
|
+
'pisell-list-pagination-next': string;
|
|
319
329
|
};
|
|
320
330
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -385,5 +385,20 @@ export default {
|
|
|
385
385
|
'pisell-wallet-pass-card-status-disabled': 'Disabled',
|
|
386
386
|
'pisell-wallet-pass-card-status-conflict': 'Conflict',
|
|
387
387
|
'pisell-wallet-pass-card-reset': 'Reset',
|
|
388
|
-
'pisell-wallet-pass-card-done': 'Done'
|
|
388
|
+
'pisell-wallet-pass-card-done': 'Done',
|
|
389
|
+
// 列表组件
|
|
390
|
+
'pisell-list-tab-group-default': 'Field',
|
|
391
|
+
'pisell-list-empty-text-default': 'No data available',
|
|
392
|
+
'pisell-list-load-more': 'Load More',
|
|
393
|
+
'pisell-list-view-less': 'View Less',
|
|
394
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
395
|
+
return "Showing ".concat(start, "-").concat(end, " of ").concat(total, " items");
|
|
396
|
+
},
|
|
397
|
+
'pisell-list-scroll-down': 'Scroll Down',
|
|
398
|
+
'pisell-list-scroll-right': 'Scroll Right',
|
|
399
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
400
|
+
return "Page ".concat(current, " of ").concat(total);
|
|
401
|
+
},
|
|
402
|
+
'pisell-list-pagination-previous': 'Previous',
|
|
403
|
+
'pisell-list-pagination-next': 'Next'
|
|
389
404
|
};
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -311,5 +311,15 @@ declare const _default: {
|
|
|
311
311
|
'pisell-wallet-pass-card-status-conflict': string;
|
|
312
312
|
'pisell-wallet-pass-card-reset': string;
|
|
313
313
|
'pisell-wallet-pass-card-done': string;
|
|
314
|
+
'pisell-list-tab-group-default': string;
|
|
315
|
+
'pisell-list-empty-text-default': string;
|
|
316
|
+
'pisell-list-load-more': string;
|
|
317
|
+
'pisell-list-view-less': string;
|
|
318
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
319
|
+
'pisell-list-scroll-down': string;
|
|
320
|
+
'pisell-list-scroll-right': string;
|
|
321
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
322
|
+
'pisell-list-pagination-previous': string;
|
|
323
|
+
'pisell-list-pagination-next': string;
|
|
314
324
|
};
|
|
315
325
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -376,5 +376,20 @@ export default {
|
|
|
376
376
|
'pisell-wallet-pass-card-status-disabled': '已禁用',
|
|
377
377
|
'pisell-wallet-pass-card-status-conflict': '冲突',
|
|
378
378
|
'pisell-wallet-pass-card-reset': '清空',
|
|
379
|
-
'pisell-wallet-pass-card-done': '保存'
|
|
379
|
+
'pisell-wallet-pass-card-done': '保存',
|
|
380
|
+
// 列表组件
|
|
381
|
+
'pisell-list-tab-group-default': '字段',
|
|
382
|
+
'pisell-list-empty-text-default': '暂无数据',
|
|
383
|
+
'pisell-list-load-more': '查看更多',
|
|
384
|
+
'pisell-list-view-less': '查看更少',
|
|
385
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
386
|
+
return "\u663E\u793A\u7B2C ".concat(start, "-").concat(end, " \u6761\uFF0C\u5171 ").concat(total, " \u6761");
|
|
387
|
+
},
|
|
388
|
+
'pisell-list-scroll-down': '向下滚动',
|
|
389
|
+
'pisell-list-scroll-right': '向右滚动',
|
|
390
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
391
|
+
return "\u7B2C ".concat(current, " \u9875 \u5171 ").concat(total, " \u9875");
|
|
392
|
+
},
|
|
393
|
+
'pisell-list-pagination-previous': '上一页',
|
|
394
|
+
'pisell-list-pagination-next': '下一页'
|
|
380
395
|
};
|
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -311,5 +311,15 @@ declare const _default: {
|
|
|
311
311
|
'pisell-wallet-pass-card-status-conflict': string;
|
|
312
312
|
'pisell-wallet-pass-card-reset': string;
|
|
313
313
|
'pisell-wallet-pass-card-done': string;
|
|
314
|
+
'pisell-list-tab-group-default': string;
|
|
315
|
+
'pisell-list-empty-text-default': string;
|
|
316
|
+
'pisell-list-load-more': string;
|
|
317
|
+
'pisell-list-view-less': string;
|
|
318
|
+
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
319
|
+
'pisell-list-scroll-down': string;
|
|
320
|
+
'pisell-list-scroll-right': string;
|
|
321
|
+
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
322
|
+
'pisell-list-pagination-previous': string;
|
|
323
|
+
'pisell-list-pagination-next': string;
|
|
314
324
|
};
|
|
315
325
|
export default _default;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -377,5 +377,20 @@ export default {
|
|
|
377
377
|
'pisell-wallet-pass-card-status-disabled': '已禁用',
|
|
378
378
|
'pisell-wallet-pass-card-status-conflict': '衝突',
|
|
379
379
|
'pisell-wallet-pass-card-reset': '清空',
|
|
380
|
-
'pisell-wallet-pass-card-done': '保存'
|
|
380
|
+
'pisell-wallet-pass-card-done': '保存',
|
|
381
|
+
// 列表組件
|
|
382
|
+
'pisell-list-tab-group-default': '字段',
|
|
383
|
+
'pisell-list-empty-text-default': '暫無數據',
|
|
384
|
+
'pisell-list-load-more': '查看更多',
|
|
385
|
+
'pisell-list-view-less': '查看更少',
|
|
386
|
+
'pisell-list-pagination-total': function pisellListPaginationTotal(start, end, total) {
|
|
387
|
+
return "\u986F\u793A\u7B2C ".concat(start, "-").concat(end, " \u689D\uFF0C\u5171 ").concat(total, " \u689D");
|
|
388
|
+
},
|
|
389
|
+
'pisell-list-scroll-down': '向下滾動',
|
|
390
|
+
'pisell-list-scroll-right': '向右滾動',
|
|
391
|
+
'pisell-list-pagination-page-of': function pisellListPaginationPageOf(current, total) {
|
|
392
|
+
return "\u7B2C ".concat(current, " \u9801 \u5171 ").concat(total, " \u9801");
|
|
393
|
+
},
|
|
394
|
+
'pisell-list-pagination-previous': '上一頁',
|
|
395
|
+
'pisell-list-pagination-next': '下一頁'
|
|
381
396
|
};
|
package/es/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => any;
|
|
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
|
|
|
5
5
|
className: string;
|
|
6
6
|
defaultCurrent: number;
|
|
7
7
|
showTotal: (total: number, range: [number, number]) => string;
|
|
8
|
-
itemRender: (page: number, type: "
|
|
8
|
+
itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
|
|
9
9
|
responsive: boolean;
|
|
10
10
|
size: string;
|
|
11
11
|
};
|
|
@@ -51,13 +51,14 @@ var CardPro = (props) => {
|
|
|
51
51
|
isShowHead,
|
|
52
52
|
className,
|
|
53
53
|
coverHeight,
|
|
54
|
-
badge
|
|
54
|
+
badge,
|
|
55
|
+
style
|
|
55
56
|
} = props;
|
|
56
57
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
57
58
|
import_antd.Card,
|
|
58
59
|
{
|
|
59
60
|
title: null,
|
|
60
|
-
style: { padding: 0 },
|
|
61
|
+
style: { padding: 0, ...style },
|
|
61
62
|
className: (0, import_classnames.default)(
|
|
62
63
|
"pisell-cardPro-wrap",
|
|
63
64
|
className,
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean |
|
|
20
|
+
title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean |
|
|
29
|
+
subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -53,7 +53,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
53
53
|
width: number;
|
|
54
54
|
align: "center" | "left" | "right";
|
|
55
55
|
fixed: false | "left" | "right";
|
|
56
|
-
type: "
|
|
56
|
+
type: "button" | "link";
|
|
57
57
|
items: OperationItem[];
|
|
58
58
|
} | undefined;
|
|
59
59
|
operationContent?: {
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|