@pisell/materials 1.0.890 → 1.0.892

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.
Files changed (67) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +148 -164
  7. package/build/lowcode/render/default/view.js +24 -38
  8. package/build/lowcode/view.js +24 -38
  9. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  10. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  11. package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +99 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +80 -0
  15. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +16 -0
  16. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  17. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/fields/index.d.ts +12 -12
  19. package/es/components/filter/index.d.ts +0 -1
  20. package/es/components/pisellCardList/index.d.ts +73 -0
  21. package/es/components/pisellCheckboxGroup/index.d.ts +37 -0
  22. package/es/components/pisellCheckboxGroup/index.js +3 -1
  23. package/es/components/pisellGoodPassCard/index.d.ts +50 -0
  24. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  25. package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
  26. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  27. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  28. package/es/components/productCard/index.d.ts +7 -0
  29. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  30. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  31. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  32. package/es/components/table/View/index.d.ts +1 -0
  33. package/es/index.d.ts +142 -0
  34. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  35. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  36. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
  37. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +39 -0
  38. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +99 -0
  39. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +80 -0
  40. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +16 -0
  41. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  42. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  43. package/lib/components/dataSourceComponents/fields/index.d.ts +12 -12
  44. package/lib/components/filter/index.d.ts +0 -1
  45. package/lib/components/pisellCardList/index.d.ts +73 -0
  46. package/lib/components/pisellCheckboxGroup/index.d.ts +37 -0
  47. package/lib/components/pisellCheckboxGroup/index.js +3 -1
  48. package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
  49. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  50. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  51. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  52. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  53. package/lib/components/productCard/index.d.ts +7 -0
  54. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  55. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  56. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  57. package/lib/components/table/View/index.d.ts +1 -0
  58. package/lib/index.d.ts +142 -0
  59. package/package.json +3 -3
  60. package/es/components/productCard/components/Warning/index.d.ts +0 -7
  61. package/es/components/productCard/status.d.ts +0 -32
  62. package/es/components/productCard/types.d.ts +0 -84
  63. package/es/components/productCard/utils.d.ts +0 -31
  64. package/lib/components/productCard/components/Warning/index.d.ts +0 -7
  65. package/lib/components/productCard/status.d.ts +0 -32
  66. package/lib/components/productCard/types.d.ts +0 -84
  67. package/lib/components/productCard/utils.d.ts +0 -31
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export interface PisellCheckboxGroupOption {
5
+ label: string;
6
+ value: string;
7
+ disabled?: boolean;
8
+ [key: string]: any;
9
+ }
10
+ declare type PisellCheckboxGroupValue = string | string[] | any;
11
+ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
+ platform?: PisellContextType['platform'];
13
+ direction?: 'horizontal' | 'vertical';
14
+ fullWidth?: boolean;
15
+ gap?: number;
16
+ padding?: number;
17
+ options: PisellCheckboxGroupOption[];
18
+ onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
19
+ value?: PisellCheckboxGroupValue;
20
+ renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
21
+ rowKey?: string;
22
+ mode?: 'multiple' | 'single';
23
+ iconPosition?: 'left' | 'right' | 'hide';
24
+ optionClassName?: string;
25
+ optionActiveClassName?: string;
26
+ onChangeDebounce?: boolean;
27
+ }
28
+ /**
29
+ * @title: PisellCheckboxGroup
30
+ * @description: 选中组件
31
+ * @param {PisellCheckboxGroupProps} props
32
+ * @return {*}
33
+ * @Author: zhiwei.Wang
34
+ * @Date: 2024-08-16 10:34
35
+ */
36
+ declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
37
+ export default PisellCheckboxGroup;
@@ -119,7 +119,9 @@ var PisellCheckboxGroup = (props) => {
119
119
  handleSelectItem(key, item);
120
120
  },
121
121
  {
122
- wait: 200
122
+ wait: 400,
123
+ leading: true,
124
+ trailing: false
123
125
  }
124
126
  );
125
127
  const handleSelectItem = (key, item) => {
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ApplicableProductDetails {
4
+ amount: string;
5
+ type: string;
6
+ resource_id: number;
7
+ title: string;
8
+ original_amount: string;
9
+ }
10
+ interface Discount {
11
+ id: number;
12
+ product_name: string;
13
+ encoded: string;
14
+ code: string;
15
+ tag: string;
16
+ expire_time?: string;
17
+ product_id: number;
18
+ relation_type: string;
19
+ par_value: string;
20
+ used_par_value: string;
21
+ limit_status: string;
22
+ limited_relation_product_data: any;
23
+ balance: string;
24
+ format_title: any;
25
+ product: any;
26
+ savedAmount: number;
27
+ isDisabled: boolean;
28
+ isSelected?: boolean;
29
+ isAvailable?: boolean;
30
+ isUsed?: boolean;
31
+ applicableProductIds?: number[];
32
+ applicableProductDetails: ApplicableProductDetails[];
33
+ appliedProductDetails: any[];
34
+ }
35
+ export interface PisellGoodPassCardProps {
36
+ /**数据源 */
37
+ dataSource: Array<Discount>;
38
+ /**事件 */
39
+ onChange?: (current: {
40
+ id: string | number;
41
+ isSelected: boolean;
42
+ }) => void;
43
+ /**样式 */
44
+ style: React.CSSProperties;
45
+ /**快捷展示排序 */
46
+ mixedSort?: (val: Discount[]) => Discount[];
47
+ isInModal: boolean;
48
+ }
49
+ declare const index: (props: PisellGoodPassCardProps) => JSX.Element;
50
+ export default index;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
3
  export default MultiDay;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
4
3
  export default Options;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ProductCardTypes } from './types';
3
+ import './index.less';
4
+ declare const ProductCard: React.FC<ProductCardTypes> & {
5
+ V2: any;
6
+ };
7
+ export default ProductCard;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type ColumnsSettingProps = {
2
3
  value?: Record<string, any>[];
3
4
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
package/lib/index.d.ts ADDED
@@ -0,0 +1,142 @@
1
+ export { Affix, Alert, Anchor, Avatar, Breadcrumb, Card, Carousel, Col, ColorPicker, Descriptions, Divider, Empty, Grid, InputNumber, Mentions, Menu, Pagination, Popconfirm, Popover, Progress, Rate, Result, Row, Space, Spin, Statistic, Steps, Switch, Tag, Timeline, Tooltip, Transfer, Tree, message, notification, version, } from 'antd';
2
+ export { default as AppVersionControl } from './components/appVersionControl';
3
+ export { default as AutoComplete } from './components/auto-complete';
4
+ export { default as AutoCompleteNumber } from './components/auto-complete-number';
5
+ export { default as Badge } from './components/badge';
6
+ export { default as BatchEditor } from './components/batch-editor';
7
+ export { default as Button } from './components/button';
8
+ export { default as ButtonGroupEdit } from './components/buttonGroupEdit';
9
+ export { default as ButtonGroupPreview } from './components/buttonGroupPreview';
10
+ export { default as Calendar } from './components/calendar';
11
+ export { default as CardMetricItem } from './components/cardMetricItem';
12
+ export { default as CardPro } from './components/cardPro';
13
+ export { default as Cascader } from './components/cascader';
14
+ export { default as Checkbox } from './components/checkbox';
15
+ export { default as ClassicLayout } from './components/classicLayout';
16
+ export { default as Collapse } from './components/collapse';
17
+ export { default as Component } from './components/component';
18
+ export { default as ConfigProvider } from './components/config-provider';
19
+ export { default as CropPhoto } from './components/cropPhoto';
20
+ export { default as CustomSelect } from './components/customSelect';
21
+ export { default as DataSourceForm } from './components/dataSourceComponents/dataSourceForm';
22
+ export { default as FormGroup } from './components/dataSourceComponents/dataSourceForm/group';
23
+ export { default as JsonWrapper } from './components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider';
24
+ export { default as SubmitButton } from './components/dataSourceComponents/dataSourceForm/submitButton';
25
+ export { default as DataSourceMenu } from './components/dataSourceComponents/dataSourceMenu';
26
+ export { default as DataSourceImage } from './components/dataSourceComponents/dataSourceShow/dataSourceImage';
27
+ export { default as DataSourceQRCode } from './components/dataSourceComponents/dataSourceShow/dataSourceQRCode';
28
+ export { default as DataSourceTypography } from './components/dataSourceComponents/dataSourceShow/dataSourceTypography';
29
+ export { default as DataSourceTable } from './components/dataSourceComponents/dataSourceTable';
30
+ export { default as DataSourceWrapper } from './components/dataSourceComponents/dataSourceWrapper';
31
+ export { default as FormItemCheckbox } from './components/dataSourceComponents/fields/Checkbox';
32
+ export { default as FormItemColorPicker } from './components/dataSourceComponents/fields/ColorPicker';
33
+ export { default as FormItemDatePicker } from './components/dataSourceComponents/fields/DatePicker';
34
+ export { default as FormItemIconSelect } from './components/dataSourceComponents/fields/IconSelect';
35
+ export { default as FormItemInput } from './components/dataSourceComponents/fields/Input';
36
+ export { default as FormItemInputNumber } from './components/dataSourceComponents/fields/InputNumber';
37
+ export { default as FormItemRadio } from './components/dataSourceComponents/fields/Radio';
38
+ export { default as FormItemSelect } from './components/dataSourceComponents/fields/Select';
39
+ export { default as FormItemTimePicker } from './components/dataSourceComponents/fields/TimePicker';
40
+ export { default as FormItemTranslation } from './components/dataSourceComponents/fields/Translation';
41
+ export { default as FormItemUpload } from './components/dataSourceComponents/fields/Upload';
42
+ export { default as DatePicker } from './components/date-picker';
43
+ export { default as Div } from './components/div';
44
+ export { default as DragSortTree } from './components/drag-sort-tree';
45
+ export { default as Drawer } from './components/drawer';
46
+ export { default as Dropdown } from './components/dropdown';
47
+ export { default as Filter } from './components/filter';
48
+ export { default as Form } from './components/form';
49
+ export { default as Icon } from './components/icon';
50
+ export { default as IconSelect } from './components/iconSelect';
51
+ export { default as Iconfont } from './components/iconfont';
52
+ export { default as Image } from './components/image';
53
+ export { default as Input } from './components/input';
54
+ export { default as InputNumberRange } from './components/input-number-range';
55
+ export { default as List } from './components/list';
56
+ export { default as loginAndRegister } from './components/login-and-register';
57
+ export { default as LowCodePage } from './components/lowCodePage';
58
+ export { default as Modal } from './components/modal';
59
+ export { default as OrganizationTenantSwitcher } from './components/organizationTenantSwitcher';
60
+ export { default as Page } from './components/page';
61
+ export { default as PageHeader } from './components/page-header';
62
+ export { default as PisellConfigProvider } from './components/pisell-config-provider';
63
+ export { default as PisellContext, globalConfig, } from './components/pisell-config-provider/context';
64
+ export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
65
+ export { default as PisellAdjustPrice } from './components/pisellAdjustPrice';
66
+ export { default as PisellAdjustPriceInputNumber } from './components/pisellAdjustPrice/PisellAdjustPriceInputNumber';
67
+ export { default as PisellAlert } from './components/pisellAlert';
68
+ export { default as PisellAnchor } from './components/pisellAnchor';
69
+ export { default as PisellAvatar } from './components/pisellAvatar';
70
+ export { default as PisellCard } from './components/pisellCard';
71
+ export { default as PisellCardList } from './components/pisellCardList';
72
+ export { default as PisellCheckboxGroup } from './components/pisellCheckboxGroup';
73
+ export { default as PisellContainer } from './components/pisellContainer';
74
+ export { default as PisellCountdown } from './components/pisellCountdown';
75
+ export { default as PisellCustomCheckboxGroup } from './components/pisellCustomCheckboxGroup';
76
+ export { default as PisellDatePicker } from './components/pisellDatePicker';
77
+ export { default as PisellDraggable } from './components/pisellDraggable';
78
+ export { default as PisellDropdown } from './components/pisellDropdown';
79
+ export { default as PisellEmpty } from './components/pisellEmpty';
80
+ export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
81
+ export { default as PisellHeaderProgressBar } from './components/pisellHeaderProgressBar';
82
+ export { default as PisellImageCarousels } from './components/pisellImageCarousels';
83
+ export { default as PisellInformationEntry } from './components/pisellInformationEntry';
84
+ export { default as PisellInput } from './components/pisellInput';
85
+ export { getBankCardTypeImg } from './components/pisellInput/components/BankCard/utils';
86
+ export { default as PisellLayout } from './components/pisellLayout';
87
+ export { default as PisellContent } from './components/pisellLayout/content';
88
+ export { default as PisellFooter } from './components/pisellLayout/footer';
89
+ export { default as PisellHeader } from './components/pisellLayout/header';
90
+ export { default as PisellSider } from './components/pisellLayout/sider';
91
+ export { default as PisellList01 } from './components/pisellList01';
92
+ export { default as PisellLoading } from './components/pisellLoading';
93
+ export { default as PisellMenu } from './components/pisellMenu';
94
+ export type { PisellMenuProps } from './components/pisellMenu/types';
95
+ export { default as PisellModal } from './components/pisellModal';
96
+ export { default as PisellQRScanner } from './components/pisellQRScanner';
97
+ export type { PisellQRScannerProps } from './components/pisellQRScanner';
98
+ export { default as PisellQrcode } from './components/pisellQrcode';
99
+ export { default as PisellRow } from './components/pisellRow';
100
+ export { default as PisellScan } from './components/pisellScan';
101
+ export { default as PisellSectionHeaders } from './components/pisellSectionHeaders';
102
+ export { default as PisellStatisticList } from './components/pisellStatisticList';
103
+ export { default as PisellTags } from './components/pisellTags';
104
+ export { default as PisellText } from './components/pisellText';
105
+ export { default as PisellToast } from './components/pisellToast';
106
+ export { default as PisellTooltip } from './components/pisellTooltip';
107
+ export { default as PisellUpload } from './components/pisellUpload';
108
+ export { default as PisellViewGrid } from './components/pisellViewGrid';
109
+ export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
110
+ export { default as ProductCard } from './components/productCard';
111
+ export { default as ProfileMenu } from './components/profileMenu';
112
+ export { default as QRCode } from './components/qrcode';
113
+ export { default as Radio } from './components/radio';
114
+ export { default as RecordView } from './components/record-view';
115
+ export { default as SectionFooters } from './components/section-footers';
116
+ export { default as Segmented } from './components/segmented';
117
+ export { default as Select } from './components/select';
118
+ export { default as SelectTime } from './components/select-time';
119
+ export { default as Skeleton } from './components/skeleton';
120
+ export { default as Slider } from './components/slider';
121
+ export { default as Sort } from './components/sort';
122
+ export { default as SortableList } from './components/sortableList';
123
+ export { default as Table } from './components/table';
124
+ export { default as Tabs } from './components/tabs';
125
+ export { default as TimePicker } from './components/time-picker';
126
+ export { default as Translation } from './components/translation';
127
+ export { default as TreeSelect } from './components/tree-select';
128
+ export { default as Typography } from './components/typography';
129
+ export { default as Upload } from './components/upload';
130
+ export { default as VirtualKeyboard } from './components/virtual-keyboard';
131
+ export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
132
+ export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
133
+ export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
134
+ export { default as WalletCard } from './components/walletCard';
135
+ export { default as PublishVersionModal } from './components/versionModal';
136
+ export { default as PisellDropSort } from './components/pisellDropSort';
137
+ export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
138
+ export { default as PisellAppCard } from './components/pisellAppCard';
139
+ export type { PisellAppCardProps } from './components/pisellAppCard/types';
140
+ export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
141
+ export { default as PisellGoodPassCard } from './components/pisellGoodPassCard';
142
+ export { default as HardwareErrorTip } from './components/hardwareErrorTip';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.890",
3
+ "version": "1.0.892",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -74,8 +74,8 @@
74
74
  "swiper": "^8.4.7",
75
75
  "vod-js-sdk-v6": "^1.4.11",
76
76
  "@pisell/date-picker": "1.0.122",
77
- "@pisell/utils": "1.0.50",
78
- "@pisell/icon": "0.0.10"
77
+ "@pisell/icon": "0.0.10",
78
+ "@pisell/utils": "1.0.50"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "react": "^18.0.0",
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import '../../index.less';
3
- declare const Warning: React.FC<{
4
- errorMessage: string | Array<string>;
5
- osWarnTips: Array<string>;
6
- }>;
7
- export default Warning;
@@ -1,32 +0,0 @@
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;
@@ -1,84 +0,0 @@
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
- isShowChangeHolder?: boolean;
74
- isShowChangeResource?: boolean;
75
- isShowChangeDate?: boolean;
76
- onAction?: (val: any) => void;
77
- onDelete?: (val: any) => void;
78
- onNote?: (val: any) => void;
79
- onLike?: (val: any) => void;
80
- onCard?: (val: any) => void;
81
- onChangeResource?: (val: any) => void;
82
- osWarnTips?: Array<string>;
83
- [key: string]: any;
84
- };
@@ -1,31 +0,0 @@
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;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import '../../index.less';
3
- declare const Warning: React.FC<{
4
- errorMessage: string | Array<string>;
5
- osWarnTips: Array<string>;
6
- }>;
7
- export default Warning;
@@ -1,32 +0,0 @@
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;
@@ -1,84 +0,0 @@
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
- isShowChangeHolder?: boolean;
74
- isShowChangeResource?: boolean;
75
- isShowChangeDate?: boolean;
76
- onAction?: (val: any) => void;
77
- onDelete?: (val: any) => void;
78
- onNote?: (val: any) => void;
79
- onLike?: (val: any) => void;
80
- onCard?: (val: any) => void;
81
- onChangeResource?: (val: any) => void;
82
- osWarnTips?: Array<string>;
83
- [key: string]: any;
84
- };
@@ -1,31 +0,0 @@
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;