@pisell/materials 1.0.724 → 1.0.726
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 +18 -22
- package/build/lowcode/render/default/view.js +24 -25
- package/build/lowcode/view.js +24 -25
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/MultipleContainersSortList/index.js +11 -13
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/Pagination/index.js +1 -1
- package/es/components/TimeResourceSelector/index.d.ts +21 -0
- package/es/components/batch-editor/index.js +12 -12
- package/es/components/classicLayout/index.js +4 -5
- package/es/components/collapse/index.d.ts +15 -0
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +6 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/drag-sort-tree/TreeItem/index.js +10 -10
- package/es/components/drag-sort-tree/index.d.ts +4 -0
- package/es/components/drawer/index.js +6 -6
- 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/filter/index.js +1 -1
- package/es/components/icon/index.js +5 -5
- package/es/components/input-number-range/index.js +6 -6
- package/es/components/list/index.js +6 -6
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisell-config-provider/context.js +3 -3
- package/es/components/pisell-config-provider/index.d.ts +12 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.js +2 -2
- package/es/components/pisellAdjustPrice/index.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.js +6 -6
- package/es/components/pisellAvatar/index.d.ts +19 -0
- package/es/components/pisellCard/index.d.ts +20 -0
- package/es/components/pisellCheckboxGroup/index.js +9 -7
- package/es/components/pisellCountdown/index.js +8 -8
- package/es/components/pisellCountdown/utils.js +1 -1
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/es/components/pisellDatePicker/datePickerCpt.js +4 -4
- package/es/components/pisellDropdown/index.d.ts +20 -0
- package/es/components/pisellEmpty/index.d.ts +19 -0
- package/es/components/pisellFloatingPanel/index.js +6 -6
- package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
- package/es/components/pisellImageCarousels/index.d.ts +18 -0
- package/es/components/pisellInformationEntry/Input/index.js +1 -1
- package/es/components/pisellInformationEntry/Scan/index.js +2 -2
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +5 -5
- package/es/components/pisellInformationEntry/index.d.ts +33 -0
- package/es/components/pisellInformationEntry/utils.js +2 -2
- package/es/components/pisellInput/components/BankCard/index.js +5 -5
- package/es/components/pisellInput/components/Copy/index.js +5 -5
- package/es/components/pisellInput/components/SecurityCode/index.js +2 -2
- package/es/components/pisellList01/index.d.ts +17 -0
- package/es/components/pisellModal/components/PcModal/index.js +7 -7
- package/es/components/pisellModal/components/functions/index.js +5 -5
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
- package/es/components/pisellRow/index.js +5 -5
- package/es/components/pisellScan/index.js +6 -6
- package/es/components/pisellSectionHeaders/index.d.ts +21 -0
- package/es/components/pisellWalletPassCard/index.d.ts +1 -0
- package/es/components/productCard/components/Action/index.d.ts +4 -0
- package/es/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/es/components/productCard/components/Divider/index.d.ts +4 -0
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/es/components/productCard/components/Header/index.d.ts +4 -0
- package/es/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/components/Note/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/index.d.ts +4 -0
- package/es/components/productCard/components/Packages/utils.d.ts +20 -0
- package/es/components/productCard/components/Sales/index.d.ts +4 -0
- package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/es/components/productCard/components/Time/index.d.ts +4 -0
- package/es/components/productCard/locales.d.ts +45 -0
- package/es/components/productCard/status.d.ts +32 -0
- package/es/components/productCard/types.d.ts +78 -0
- package/es/components/productCard/utils.d.ts +31 -0
- package/es/components/qrcode/index.js +1 -1
- package/es/components/section-footers/index.d.ts +9 -0
- package/es/components/select-time/index.js +2 -2
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.js +7 -7
- package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.js +8 -8
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.js +9 -9
- package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.js +1 -1
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/Detail.js +5 -5
- package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.js +7 -7
- package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.js +7 -7
- package/es/components/table/Actions/component/ExportImport/index.d.ts +8 -0
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/es/components/table/Actions/component/Group/PopoverContent.js +2 -2
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/BasicTable/index.js +9 -9
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
- package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/es/components/table/Gallery/components/VirtualGrid/index.js +5 -5
- package/es/components/table/Gallery/index.d.ts +5 -0
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Table/AddFieldModal/index.js +6 -6
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/oldRangePicker/Edit/index.js +7 -7
- package/es/components/table/Table/fields/oldRangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/rangePicker/Edit/index.js +7 -7
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/Edit/index.js +2 -2
- package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
- package/es/components/table/Table/index.d.ts +4 -0
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/Table/tableConfig/body/index.js +6 -6
- package/es/components/table/Table/tableConfig/header/index.js +5 -5
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +173 -0
- package/es/components/table/TableFilter/numberFilter.d.ts +6 -0
- package/es/components/table/TableFilter/selectFilter.d.ts +10 -0
- package/es/components/table/TableFilter/stringFilter.d.ts +6 -0
- package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
- package/es/components/table/hooks/useTableSetting.d.ts +22 -0
- package/es/components/table/hooks/useTransColumns.js +9 -9
- package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/table/hooks/useTransSortSetting.js +5 -5
- package/es/components/table/serve.js +9 -9
- package/es/components/table/types.d.ts +253 -0
- package/es/components/translation/index.js +10 -10
- package/es/components/translation/utils.js +5 -5
- package/es/components/virtual-keyboard/Amount/index.js +1 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +3 -3
- package/es/components/virtual-keyboard/Keyboard/index.js +8 -8
- package/es/components/virtual-keyboard/Number/index.js +1 -1
- package/es/components/virtual-keyboard/Time/index.d.ts +13 -0
- package/es/components/virtual-keyboard/VirtualInput/index.js +1 -1
- package/es/components/virtual-keyboard/VirtualKeyInput/index.js +4 -4
- package/es/components/walletCard/Guest/index.d.ts +1 -0
- package/es/hooks/useCssVariables.js +1 -1
- package/es/hooks/useResponsive.js +2 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/miniRedux.js +8 -9
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/TimeResourceSelector/index.d.ts +21 -0
- package/lib/components/appVersionControl/utils.js +4 -8
- package/lib/components/buttonGroupEdit/index.js +7 -14
- package/lib/components/collapse/index.d.ts +15 -0
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +3 -6
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +2 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +1 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +1 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +1 -2
- package/lib/components/dataSourceComponents/fields/Input.Mobile/ReadPretty.js +2 -4
- package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +1 -2
- package/lib/components/dataSourceComponents/fields/Input.Phone/ReadPretty.js +2 -4
- package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.js +1 -2
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +6 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.js +1 -2
- package/lib/components/dataSourceComponents/fields/InputNumber/WithMode.js +2 -4
- package/lib/components/dataSourceComponents/fields/InputNumber/utils.js +2 -4
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +4 -8
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +4 -8
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.js +1 -2
- package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.js +1 -2
- package/lib/components/dataSourceComponents/fields/Upload/utils.js +11 -22
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/dataSourceComponents/hooks/useActions.js +3 -6
- package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.js +1 -2
- package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +1 -2
- package/lib/components/dataSourceComponents/provider/variables/utils.js +2 -4
- package/lib/components/date-picker/datePickerCpt.js +1 -2
- package/lib/components/drag-sort-tree/TreeItem/index.js +1 -2
- package/lib/components/drag-sort-tree/index.d.ts +4 -0
- package/lib/components/drag-sort-tree/index.js +1 -2
- 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/filter/index.js +1 -2
- package/lib/components/iconSelect/index.js +1 -2
- package/lib/components/iconSelect/utils.js +1 -2
- package/lib/components/lowCodePage/index.js +1 -2
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisell-config-provider/context.js +1 -1
- package/lib/components/pisell-config-provider/index.d.ts +12 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +1 -0
- package/lib/components/pisellAnchor/index.js +5 -10
- package/lib/components/pisellAvatar/index.d.ts +19 -0
- package/lib/components/pisellCard/index.d.ts +20 -0
- package/lib/components/pisellCheckboxGroup/index.js +1 -2
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
- package/lib/components/pisellDatePicker/datePickerCpt.js +1 -2
- package/lib/components/pisellDraggable/index.js +3 -6
- package/lib/components/pisellDropdown/index.d.ts +20 -0
- package/lib/components/pisellEmpty/index.d.ts +19 -0
- package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
- package/lib/components/pisellImageCarousels/index.d.ts +18 -0
- package/lib/components/pisellInformationEntry/index.d.ts +33 -0
- package/lib/components/pisellList01/index.d.ts +17 -0
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
- package/lib/components/pisellQRScanner/index.js +9 -18
- package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
- package/lib/components/productCard/components/Action/index.d.ts +4 -0
- package/lib/components/productCard/components/AmountFooter/index.d.ts +4 -0
- package/lib/components/productCard/components/AmountFooter/index.js +1 -2
- package/lib/components/productCard/components/Divider/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
- package/lib/components/productCard/components/Header/index.d.ts +4 -0
- package/lib/components/productCard/components/MultiDay/index.d.ts +4 -0
- package/lib/components/productCard/components/MultiDay/index.js +1 -2
- package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/components/Note/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/index.d.ts +4 -0
- package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
- package/lib/components/productCard/components/Sales/index.d.ts +4 -0
- package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
- package/lib/components/productCard/components/Time/index.d.ts +4 -0
- package/lib/components/productCard/locales.d.ts +45 -0
- package/lib/components/productCard/status.d.ts +32 -0
- package/lib/components/productCard/types.d.ts +78 -0
- package/lib/components/productCard/utils.d.ts +31 -0
- package/lib/components/productCard/utils.js +1 -2
- package/lib/components/profileMenu/index.js +1 -2
- package/lib/components/section-footers/index.d.ts +9 -0
- package/lib/components/select/index.js +2 -4
- package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.js +1 -2
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
- package/lib/components/table/Actions/component/ExportImport/index.js +1 -2
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
- package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
- package/lib/components/table/Gallery/index.d.ts +5 -0
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
- package/lib/components/table/Table/fields/oldRangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/utils/index.js +1 -2
- package/lib/components/table/Table/index.d.ts +4 -0
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +173 -0
- package/lib/components/table/Table/utils.js +10 -17
- package/lib/components/table/TableFilter/numberFilter.d.ts +6 -0
- package/lib/components/table/TableFilter/selectFilter.d.ts +10 -0
- package/lib/components/table/TableFilter/stringFilter.d.ts +6 -0
- package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
- package/lib/components/table/hooks/useTransColumns.js +1 -2
- package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
- package/lib/components/table/types.d.ts +253 -0
- package/lib/components/versionModal/index.js +2 -4
- package/lib/components/versionSelect/index.js +6 -12
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +2 -4
- package/lib/components/virtual-keyboard/Time/index.d.ts +13 -0
- package/lib/components/walletCard/Guest/index.d.ts +1 -0
- package/lib/components/walletCard/index.js +5 -10
- package/lib/hooks/useCssVariables.js +1 -2
- package/lib/hooks/useResponsive.js +3 -6
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellList01Props {
|
|
4
|
+
dataSource?: any[];
|
|
5
|
+
showSearch: boolean;
|
|
6
|
+
showCategory: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
renderItem?: (item: any, index: number) => React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
onChange?: (anchor: string) => void;
|
|
12
|
+
onSearch?: (value: any) => void;
|
|
13
|
+
isShowEmpty?: boolean;
|
|
14
|
+
description?: any;
|
|
15
|
+
}
|
|
16
|
+
declare const PisellList01: React.FC<PisellList01Props>;
|
|
17
|
+
export default PisellList01;
|
|
@@ -88,8 +88,7 @@ var PisellQRScanner = ({
|
|
|
88
88
|
};
|
|
89
89
|
const handleFileChange = async (event) => {
|
|
90
90
|
const files = event.target.files;
|
|
91
|
-
if (!files || files.length === 0)
|
|
92
|
-
return;
|
|
91
|
+
if (!files || files.length === 0) return;
|
|
93
92
|
try {
|
|
94
93
|
const file = files[0];
|
|
95
94
|
if (!file.type.startsWith("image/")) {
|
|
@@ -130,8 +129,7 @@ var PisellQRScanner = ({
|
|
|
130
129
|
greenCanvas.width = img.width;
|
|
131
130
|
greenCanvas.height = img.height;
|
|
132
131
|
const greenCtx = greenCanvas.getContext("2d");
|
|
133
|
-
if (!greenCtx)
|
|
134
|
-
throw new Error("无法创建画布上下文");
|
|
132
|
+
if (!greenCtx) throw new Error("无法创建画布上下文");
|
|
135
133
|
greenCtx.drawImage(img, 0, 0);
|
|
136
134
|
const imageData = greenCtx.getImageData(0, 0, greenCanvas.width, greenCanvas.height);
|
|
137
135
|
const data = imageData.data;
|
|
@@ -174,8 +172,7 @@ var PisellQRScanner = ({
|
|
|
174
172
|
wechatCanvas.width = img.width;
|
|
175
173
|
wechatCanvas.height = img.height;
|
|
176
174
|
const wechatCtx = wechatCanvas.getContext("2d");
|
|
177
|
-
if (!wechatCtx)
|
|
178
|
-
throw new Error("无法创建画布上下文");
|
|
175
|
+
if (!wechatCtx) throw new Error("无法创建画布上下文");
|
|
179
176
|
wechatCtx.drawImage(img, 0, 0);
|
|
180
177
|
const imageData = wechatCtx.getImageData(0, 0, wechatCanvas.width, wechatCanvas.height);
|
|
181
178
|
const data = imageData.data;
|
|
@@ -218,8 +215,7 @@ var PisellQRScanner = ({
|
|
|
218
215
|
greenOnlyCanvas.width = img.width;
|
|
219
216
|
greenOnlyCanvas.height = img.height;
|
|
220
217
|
const greenOnlyCtx = greenOnlyCanvas.getContext("2d");
|
|
221
|
-
if (!greenOnlyCtx)
|
|
222
|
-
throw new Error("无法创建画布上下文");
|
|
218
|
+
if (!greenOnlyCtx) throw new Error("无法创建画布上下文");
|
|
223
219
|
greenOnlyCtx.drawImage(img, 0, 0);
|
|
224
220
|
const imageData = greenOnlyCtx.getImageData(0, 0, greenOnlyCanvas.width, greenOnlyCanvas.height);
|
|
225
221
|
const data = imageData.data;
|
|
@@ -250,8 +246,7 @@ var PisellQRScanner = ({
|
|
|
250
246
|
adaptiveCanvas.width = img.width;
|
|
251
247
|
adaptiveCanvas.height = img.height;
|
|
252
248
|
const adaptiveCtx = adaptiveCanvas.getContext("2d");
|
|
253
|
-
if (!adaptiveCtx)
|
|
254
|
-
throw new Error("无法创建画布上下文");
|
|
249
|
+
if (!adaptiveCtx) throw new Error("无法创建画布上下文");
|
|
255
250
|
adaptiveCtx.drawImage(img, 0, 0);
|
|
256
251
|
const imageData = adaptiveCtx.getImageData(0, 0, adaptiveCanvas.width, adaptiveCanvas.height);
|
|
257
252
|
const data = imageData.data;
|
|
@@ -294,8 +289,7 @@ var PisellQRScanner = ({
|
|
|
294
289
|
sharpenCanvas.width = img.width;
|
|
295
290
|
sharpenCanvas.height = img.height;
|
|
296
291
|
const sharpenCtx = sharpenCanvas.getContext("2d");
|
|
297
|
-
if (!sharpenCtx)
|
|
298
|
-
throw new Error("无法创建画布上下文");
|
|
292
|
+
if (!sharpenCtx) throw new Error("无法创建画布上下文");
|
|
299
293
|
sharpenCtx.drawImage(img, 0, 0);
|
|
300
294
|
sharpenCtx.filter = "blur(1px)";
|
|
301
295
|
sharpenCtx.drawImage(img, 0, 0);
|
|
@@ -325,8 +319,7 @@ var PisellQRScanner = ({
|
|
|
325
319
|
invertCanvas.width = img.width;
|
|
326
320
|
invertCanvas.height = img.height;
|
|
327
321
|
const invertCtx = invertCanvas.getContext("2d");
|
|
328
|
-
if (!invertCtx)
|
|
329
|
-
throw new Error("无法创建画布上下文");
|
|
322
|
+
if (!invertCtx) throw new Error("无法创建画布上下文");
|
|
330
323
|
invertCtx.drawImage(img, 0, 0);
|
|
331
324
|
const imageData = invertCtx.getImageData(0, 0, invertCanvas.width, invertCanvas.height);
|
|
332
325
|
const data = imageData.data;
|
|
@@ -358,8 +351,7 @@ var PisellQRScanner = ({
|
|
|
358
351
|
hsvCanvas.width = img.width;
|
|
359
352
|
hsvCanvas.height = img.height;
|
|
360
353
|
const hsvCtx = hsvCanvas.getContext("2d");
|
|
361
|
-
if (!hsvCtx)
|
|
362
|
-
throw new Error("无法创建画布上下文");
|
|
354
|
+
if (!hsvCtx) throw new Error("无法创建画布上下文");
|
|
363
355
|
hsvCtx.drawImage(img, 0, 0);
|
|
364
356
|
const imageData = hsvCtx.getImageData(0, 0, hsvCanvas.width, hsvCanvas.height);
|
|
365
357
|
const data = imageData.data;
|
|
@@ -585,8 +577,7 @@ var PisellQRScanner = ({
|
|
|
585
577
|
}
|
|
586
578
|
};
|
|
587
579
|
}, []);
|
|
588
|
-
if (!visible)
|
|
589
|
-
return null;
|
|
580
|
+
if (!visible) return null;
|
|
590
581
|
return (0, import_react_dom.createPortal)(
|
|
591
582
|
/* @__PURE__ */ import_react.default.createElement(
|
|
592
583
|
"div",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PisellSectionHeadersProps {
|
|
4
|
+
/** 是否占据空间(true: 占据空间, false: 不占据空间) */
|
|
5
|
+
/** 左侧返回区域 */
|
|
6
|
+
backNode?: React.ReactNode;
|
|
7
|
+
/** 中间内容区域 */
|
|
8
|
+
centerNode?: React.ReactNode;
|
|
9
|
+
/** 右侧操作区域 */
|
|
10
|
+
actionNode?: React.ReactNode;
|
|
11
|
+
/** 自定义类名 */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** 自定义样式 */
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
/** 返回按钮点击事件 */
|
|
16
|
+
onBack?: () => void;
|
|
17
|
+
/** 操作区域点击事件 */
|
|
18
|
+
onAction?: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const PisellSectionHeaders: React.FC<PisellSectionHeadersProps>;
|
|
21
|
+
export default PisellSectionHeaders;
|
|
@@ -44,8 +44,7 @@ var prefix = "pisell-lowcode-";
|
|
|
44
44
|
var Footer = ({ item, hideDivider, type, isOnlyTotal }) => {
|
|
45
45
|
const { total, origin_total, symbol, tip, num, discount_reason } = item;
|
|
46
46
|
const isDiscount = (0, import_react.useMemo)(() => {
|
|
47
|
-
if (!origin_total)
|
|
48
|
-
return false;
|
|
47
|
+
if (!origin_total) return false;
|
|
49
48
|
return Number(total) != Number(origin_total);
|
|
50
49
|
}, [total, origin_total]);
|
|
51
50
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !hideDivider ? /* @__PURE__ */ import_react.default.createElement(import_Divider.default, { type: type !== "total" ? "inside" : "" }) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -48,8 +48,7 @@ var MultiDay = ({ dataSource, hideDivider }) => {
|
|
|
48
48
|
const context = (0, import_useEngineContext.default)();
|
|
49
49
|
translationOriginal = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.translationOriginal;
|
|
50
50
|
const lists = (0, import_react.useMemo)(() => {
|
|
51
|
-
if (!(items == null ? void 0 : items.length))
|
|
52
|
-
return [];
|
|
51
|
+
if (!(items == null ? void 0 : items.length)) return [];
|
|
53
52
|
return (0, import_utils2.formatDateRanges)(items);
|
|
54
53
|
}, [items]);
|
|
55
54
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(`${prefix}multi-day-wrap`) }, lists == null ? void 0 : lists.map((m, index) => {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface InputItem {
|
|
2
|
+
start_date: string;
|
|
3
|
+
end_date: string;
|
|
4
|
+
total: number;
|
|
5
|
+
num: number;
|
|
6
|
+
}
|
|
7
|
+
interface OutputItem {
|
|
8
|
+
start_date: string;
|
|
9
|
+
end_date: string;
|
|
10
|
+
total: number;
|
|
11
|
+
num: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function formatDateRanges(list: InputItem[]): OutputItem[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface CollapsibleListProps<T> {
|
|
4
|
+
list: T[];
|
|
5
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
|
|
10
|
+
export default CollapsibleList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 金额是否是负
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {string} type
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2024-11-22 10:01
|
|
8
|
+
*/
|
|
9
|
+
export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
10
|
+
/**
|
|
11
|
+
* @title: 金额格式化
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {number} price
|
|
14
|
+
* @param {string} amountSymbol
|
|
15
|
+
* @param {number} digit
|
|
16
|
+
* @return {*}
|
|
17
|
+
* @Author: WangHan
|
|
18
|
+
* @Date: 2024-11-22 10:58
|
|
19
|
+
*/
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
4
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
5
|
+
'pisell2.product.card.discount.reason': string;
|
|
6
|
+
'pisell2.product.card.discount.note': string;
|
|
7
|
+
'pisell2.product.card.discount.add.note': string;
|
|
8
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
9
|
+
'pisell2.product.card.confirm': string;
|
|
10
|
+
'pisell2.product.card.cancel': string;
|
|
11
|
+
'pisell2.product.card.note.pla': string;
|
|
12
|
+
'pisell2.product.card.items.package': string;
|
|
13
|
+
'pisell2.product.card.view-all': string;
|
|
14
|
+
'pisell2.product.card.view-less': string;
|
|
15
|
+
};
|
|
16
|
+
'zh-CN': {
|
|
17
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
18
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
19
|
+
'pisell2.product.card.discount.reason': string;
|
|
20
|
+
'pisell2.product.card.discount.note': string;
|
|
21
|
+
'pisell2.product.card.discount.add.note': string;
|
|
22
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
23
|
+
'pisell2.product.card.confirm': string;
|
|
24
|
+
'pisell2.product.card.cancel': string;
|
|
25
|
+
'pisell2.product.card.note.pla': string;
|
|
26
|
+
'pisell2.product.card.items.package': string;
|
|
27
|
+
'pisell2.product.card.view-all': string;
|
|
28
|
+
'pisell2.product.card.view-less': string;
|
|
29
|
+
};
|
|
30
|
+
'zh-HK': {
|
|
31
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
32
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
33
|
+
'pisell2.product.card.discount.reason': string;
|
|
34
|
+
'pisell2.product.card.discount.note': string;
|
|
35
|
+
'pisell2.product.card.discount.add.note': string;
|
|
36
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
37
|
+
'pisell2.product.card.confirm': string;
|
|
38
|
+
'pisell2.product.card.cancel': string;
|
|
39
|
+
'pisell2.product.card.note.pla': string;
|
|
40
|
+
'pisell2.product.card.items.package': string;
|
|
41
|
+
'pisell2.product.card.view-all': string;
|
|
42
|
+
'pisell2.product.card.view-less': string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ProductCardTypes, bundleType, optionType, productType } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @title: 套餐数据
|
|
4
|
+
* @description:
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2025-01-02 23:21
|
|
8
|
+
*/
|
|
9
|
+
export declare const defaultBundle: bundleType;
|
|
10
|
+
/**
|
|
11
|
+
* @description: 单规格
|
|
12
|
+
* @return {*}
|
|
13
|
+
* @Author: WangHan
|
|
14
|
+
* @Date: 2025-01-02 23:00
|
|
15
|
+
*/
|
|
16
|
+
export declare const defaultOption: optionType;
|
|
17
|
+
/**
|
|
18
|
+
* @title: 商品商品类型
|
|
19
|
+
* @description:
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: WangHan
|
|
22
|
+
* @Date: 2025-01-02 22:48
|
|
23
|
+
*/
|
|
24
|
+
export declare const defaultProduct: productType;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 默认数据
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2024-12-12 16:49
|
|
31
|
+
*/
|
|
32
|
+
export declare const defaultValue: ProductCardTypes;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare type bundleType = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
num: number;
|
|
5
|
+
price: number;
|
|
6
|
+
total: number;
|
|
7
|
+
origin_total?: number;
|
|
8
|
+
price_type?: string;
|
|
9
|
+
options?: optionType[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @description:
|
|
13
|
+
* @return {*}
|
|
14
|
+
* @Author: WangHan
|
|
15
|
+
* @Date: 2025-01-02 23:00
|
|
16
|
+
*/
|
|
17
|
+
export declare type optionType = {
|
|
18
|
+
id: number;
|
|
19
|
+
name: string;
|
|
20
|
+
num: number;
|
|
21
|
+
price: number;
|
|
22
|
+
total: number;
|
|
23
|
+
origin_total?: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @title: 商品商品类型
|
|
27
|
+
* @description:
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2025-01-02 22:48
|
|
31
|
+
*/
|
|
32
|
+
export declare type productType = {
|
|
33
|
+
_id: string | number;
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
price: number;
|
|
37
|
+
total: number;
|
|
38
|
+
num: number;
|
|
39
|
+
origin_total?: number;
|
|
40
|
+
image?: string;
|
|
41
|
+
isShowNote?: boolean;
|
|
42
|
+
note?: string;
|
|
43
|
+
like_status?: string;
|
|
44
|
+
bundle?: bundleType[];
|
|
45
|
+
options?: optionType[];
|
|
46
|
+
isShowAction?: boolean;
|
|
47
|
+
actionText?: string;
|
|
48
|
+
errorMessage?: string;
|
|
49
|
+
product_option_string?: string;
|
|
50
|
+
discount_reason?: string;
|
|
51
|
+
relation_products?: any[];
|
|
52
|
+
resource_id?: string | number;
|
|
53
|
+
relation_form_name?: string;
|
|
54
|
+
holder_title?: string;
|
|
55
|
+
start_date?: string;
|
|
56
|
+
end_date?: string;
|
|
57
|
+
is_show_duration?: boolean;
|
|
58
|
+
is_show_week?: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 排序总配置
|
|
62
|
+
*/
|
|
63
|
+
export declare type ProductCardTypes = {
|
|
64
|
+
dataSource: productType;
|
|
65
|
+
isShowImage?: boolean;
|
|
66
|
+
isShowHolder?: boolean;
|
|
67
|
+
isShowNote?: boolean;
|
|
68
|
+
isShowPackageNote?: boolean;
|
|
69
|
+
isShowDelete?: boolean;
|
|
70
|
+
disabledEdit?: boolean;
|
|
71
|
+
locale?: string;
|
|
72
|
+
symbol?: string;
|
|
73
|
+
onAction?: (val: any) => void;
|
|
74
|
+
onDelete?: (val: any) => void;
|
|
75
|
+
onNote?: (val: any) => void;
|
|
76
|
+
onLike?: (val: any) => void;
|
|
77
|
+
onCard?: (val: any) => void;
|
|
78
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import 'dayjs/locale/zh-cn';
|
|
2
|
+
import 'dayjs/locale/en';
|
|
3
|
+
import 'dayjs/locale/zh-tw';
|
|
4
|
+
/**
|
|
5
|
+
* @title: 是否英文
|
|
6
|
+
* @description:
|
|
7
|
+
* @param {any} item
|
|
8
|
+
* @return {*}
|
|
9
|
+
* @Author: WangHan
|
|
10
|
+
* @Date: 2024-12-28 22:49
|
|
11
|
+
*/
|
|
12
|
+
export declare const isEn: (item: any) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @title: 跨日预约时间
|
|
15
|
+
* @description:
|
|
16
|
+
* @param {any} item
|
|
17
|
+
* @return {*}
|
|
18
|
+
* @Author: WangHan
|
|
19
|
+
* @Date: 2024-12-28 22:50
|
|
20
|
+
*/
|
|
21
|
+
export declare const formatMultiDayDate: (item: any) => string;
|
|
22
|
+
/**
|
|
23
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
24
|
+
* @description:
|
|
25
|
+
* @param {any} item
|
|
26
|
+
* @param {any} currentDate
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @Author: zhiwei.Wang
|
|
29
|
+
* @Date: 2024-04-26 14:04
|
|
30
|
+
*/
|
|
31
|
+
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
@@ -61,8 +61,7 @@ var formatMultiDayDate = (item) => {
|
|
|
61
61
|
};
|
|
62
62
|
var getServiceTime = (item, currentDate) => {
|
|
63
63
|
var _a, _b, _c, _d;
|
|
64
|
-
if (!(0, import_dayjs.default)(currentDate).isValid())
|
|
65
|
-
return "";
|
|
64
|
+
if (!(0, import_dayjs.default)(currentDate).isValid()) return "";
|
|
66
65
|
const context = (0, import_useEngineContext.default)();
|
|
67
66
|
const utils = context.appHelper.utils || {};
|
|
68
67
|
const locale = (item == null ? void 0 : item.locale) || ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
|
|
@@ -73,8 +73,7 @@ var ProfileMenu = ({
|
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
const finalMenuItems = (0, import_react.useMemo)(() => {
|
|
76
|
-
if (!isShowUserInfo)
|
|
77
|
-
return menuItems;
|
|
76
|
+
if (!isShowUserInfo) return menuItems;
|
|
78
77
|
const userInfoItem = {
|
|
79
78
|
key: "user-info",
|
|
80
79
|
label: /* @__PURE__ */ import_react.default.createElement("div", { className: "profile-menu-user-info-item" }, renderAvatar(avatar), /* @__PURE__ */ import_react.default.createElement("div", { className: "profile-menu-user-info" }, userName && /* @__PURE__ */ import_react.default.createElement("p", { className: "profile-menu-user-info-name" }, userName), email && /* @__PURE__ */ import_react.default.createElement("p", { className: "profile-menu-user-info-email" }, email)))
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface SectionFooterProps {
|
|
3
|
+
left?: React.ReactNode;
|
|
4
|
+
middle?: React.ReactNode;
|
|
5
|
+
right?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
|
|
9
|
+
export default SectionFooters;
|
|
@@ -61,8 +61,7 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
61
61
|
const [state, setState] = (0, import_ahooks.useControllableValue)(props);
|
|
62
62
|
const [searchValue, setSearchValue] = (0, import_react.useState)("");
|
|
63
63
|
const filteredOptions = (0, import_react.useMemo)(() => {
|
|
64
|
-
if (!searchValue)
|
|
65
|
-
return options;
|
|
64
|
+
if (!searchValue) return options;
|
|
66
65
|
return (options || []).filter(
|
|
67
66
|
(option) => {
|
|
68
67
|
var _a;
|
|
@@ -99,8 +98,7 @@ var SelectBase = (0, import_react.forwardRef)((props, ref) => {
|
|
|
99
98
|
}, [mode, selectAll, isShowDropdown]);
|
|
100
99
|
const checkboxChecked = (0, import_react.useMemo)(() => {
|
|
101
100
|
var _a, _b, _c;
|
|
102
|
-
if (mode !== "multiple")
|
|
103
|
-
return false;
|
|
101
|
+
if (mode !== "multiple") return false;
|
|
104
102
|
return (state == null ? void 0 : state.length) === (filteredOptions == null ? void 0 : filteredOptions.length) && ((_a = state == null ? void 0 : state.sort()) == null ? void 0 : _a.join("")) === ((_c = (_b = filteredOptions == null ? void 0 : filteredOptions.map((item) => item.value)) == null ? void 0 : _b.sort()) == null ? void 0 : _c.join(""));
|
|
105
103
|
}, [state, filteredOptions]);
|
|
106
104
|
const dropdownRender = (0, import_react.useCallback)(
|
|
@@ -92,8 +92,7 @@ var PopoverContent = (props) => {
|
|
|
92
92
|
return `${item.key}-${(_a = item.dataIndex) == null ? void 0 : _a.toString()}`;
|
|
93
93
|
},
|
|
94
94
|
onChange: (list) => {
|
|
95
|
-
if (!(0, import_utils.isFixedOrderValid)(list))
|
|
96
|
-
return;
|
|
95
|
+
if (!(0, import_utils.isFixedOrderValid)(list)) return;
|
|
97
96
|
onChange == null ? void 0 : onChange(
|
|
98
97
|
list.map((item, index) => ({
|
|
99
98
|
...item,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExportImportType } from '../../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare type ExportImportProps = {
|
|
5
|
+
exportImport: ExportImportType;
|
|
6
|
+
};
|
|
7
|
+
declare const ExportImport: ({ exportImport }: ExportImportProps) => JSX.Element;
|
|
8
|
+
export default ExportImport;
|
|
@@ -96,8 +96,7 @@ var ExportImport = ({ exportImport }) => {
|
|
|
96
96
|
return types.includes(value) ? 900 : import_status.defaultOptions.importValue ? 600 : 400;
|
|
97
97
|
}, [value]);
|
|
98
98
|
const _title = (0, import_react.useMemo)(() => {
|
|
99
|
-
if (!value)
|
|
100
|
-
return null;
|
|
99
|
+
if (!value) return null;
|
|
101
100
|
const types = import_status.defaultOptions.okShowButtonTypes;
|
|
102
101
|
const lang = (0, import_locale.getCurrentLocale)();
|
|
103
102
|
const isEn = lang === "en-US" || lang === "en";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GallerySettingType, GallerySettingValueType } from "../../../types";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
declare type GalleryItemProps = {
|
|
5
|
+
record: Record<string, any>;
|
|
6
|
+
gallery: GallerySettingType;
|
|
7
|
+
columnsMap: Map<string, Record<string, any>>;
|
|
8
|
+
index: number;
|
|
9
|
+
gallerySetting: GallerySettingValueType;
|
|
10
|
+
columns: Record<string, any>[];
|
|
11
|
+
onClick: React.MouseEventHandler<HTMLDivElement>;
|
|
12
|
+
};
|
|
13
|
+
declare const GalleryItem: (props: GalleryItemProps) => JSX.Element;
|
|
14
|
+
export default GalleryItem;
|
|
@@ -40,17 +40,14 @@ function filterUtil_default({
|
|
|
40
40
|
key,
|
|
41
41
|
item
|
|
42
42
|
}) {
|
|
43
|
-
if (!value)
|
|
44
|
-
return true;
|
|
43
|
+
if (!value) return true;
|
|
45
44
|
const valueDayjsObj = (0, import_dayjs.default)(value);
|
|
46
45
|
if (!valueDayjsObj.isValid()) {
|
|
47
46
|
return true;
|
|
48
47
|
}
|
|
49
48
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
50
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
51
|
-
return false;
|
|
49
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
52
50
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
53
|
-
if (!dataDayjsObj.isValid())
|
|
54
|
-
return false;
|
|
51
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
55
52
|
return dataDayjsObj.isSame(valueDayjsObj, "day");
|
|
56
53
|
}
|