@pisell/materials 2.2.85 → 2.2.87

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 (179) 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 +7 -7
  6. package/build/lowcode/preview.js +144 -160
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +25 -35
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +30 -40
  11. package/es/components/batch-editor/index.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  17. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  18. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  19. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  20. package/es/components/dataSourceComponents/fields/index.d.ts +4 -5
  21. package/es/components/date-picker/index.d.ts +0 -1
  22. package/es/components/filter/index.d.ts +0 -1
  23. package/es/components/page/index.d.ts +0 -1
  24. package/es/components/pisellAdjustPrice/index.d.ts +1 -6
  25. package/es/components/pisellAdjustPrice/index.js +63 -8
  26. package/es/components/pisellAdjustPrice/index.less +35 -6
  27. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  28. package/es/components/pisellAdjustPrice/status.js +32 -0
  29. package/es/components/pisellAdjustPrice/type.d.ts +20 -0
  30. package/es/components/pisellAdjustPrice/type.js +1 -0
  31. package/es/components/pisellInput/index.d.ts +0 -1
  32. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  33. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  34. package/es/components/pisellModal/components/index.d.ts +0 -1
  35. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  36. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  37. package/es/components/productCard/components/Header/index.js +4 -3
  38. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  39. package/es/components/productCard/components/Sales/index.js +1 -1
  40. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  41. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  42. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  43. package/es/components/table/Actions/index.d.ts +0 -1
  44. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  45. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  46. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  47. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  48. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  49. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  50. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  51. package/es/components/table/Table/fields/index.d.ts +2 -3
  52. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  53. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  54. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  55. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  56. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  57. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  58. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  59. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  60. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  61. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  62. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  63. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  64. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  65. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  66. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  67. package/es/components/table/Table/utils.d.ts +1 -1
  68. package/es/components/versionSelect/index.d.ts +0 -1
  69. package/es/components/virtual-keyboard/Amount/index.d.ts +10 -0
  70. package/es/components/virtual-keyboard/Amount/index.js +9 -4
  71. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  72. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  73. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  74. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  75. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  76. package/es/utils/index.d.ts +1 -1
  77. package/lib/components/batch-editor/index.d.ts +0 -1
  78. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  79. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  80. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  81. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  82. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  83. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  84. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  85. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  86. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -5
  87. package/lib/components/date-picker/index.d.ts +0 -1
  88. package/lib/components/filter/index.d.ts +0 -1
  89. package/lib/components/page/index.d.ts +0 -1
  90. package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
  91. package/lib/components/pisellAdjustPrice/index.js +118 -57
  92. package/lib/components/pisellAdjustPrice/index.less +35 -6
  93. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  94. package/lib/components/pisellAdjustPrice/status.js +60 -0
  95. package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
  96. package/lib/components/pisellAdjustPrice/type.js +17 -0
  97. package/lib/components/pisellInput/index.d.ts +0 -1
  98. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  99. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  100. package/lib/components/pisellModal/components/index.d.ts +0 -1
  101. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  102. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  103. package/lib/components/productCard/components/Header/index.js +4 -3
  104. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  105. package/lib/components/productCard/components/Sales/index.js +1 -1
  106. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  107. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  108. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  109. package/lib/components/table/Actions/index.d.ts +0 -1
  110. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  111. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  112. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  113. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  114. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  115. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  116. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  117. package/lib/components/table/Table/fields/index.d.ts +2 -3
  118. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  119. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  120. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  121. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  122. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  123. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  124. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  125. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  126. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  127. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  128. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  129. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  130. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  131. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  132. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  133. package/lib/components/table/Table/utils.d.ts +1 -1
  134. package/lib/components/versionSelect/index.d.ts +0 -1
  135. package/lib/components/virtual-keyboard/Amount/index.d.ts +10 -0
  136. package/lib/components/virtual-keyboard/Amount/index.js +8 -3
  137. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  138. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  139. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  140. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  141. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -27
  142. package/lib/utils/index.d.ts +1 -1
  143. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  144. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  145. package/package.json +3 -3
  146. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  147. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  148. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  149. package/es/components/drag-sort-tree/index.d.ts +0 -4
  150. package/es/components/iconfont/index.d.ts +0 -8
  151. package/es/components/login-and-register/index.d.ts +0 -82
  152. package/es/components/pisell-config-provider/index.d.ts +0 -12
  153. package/es/components/pisellEmpty/index.d.ts +0 -19
  154. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -93
  155. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  156. package/es/components/productCard/locales.d.ts +0 -84
  157. package/es/components/productCard/status.d.ts +0 -32
  158. package/es/components/productCard/types.d.ts +0 -84
  159. package/es/components/table/types.d.ts +0 -251
  160. package/es/locales/en-US.d.ts +0 -278
  161. package/es/locales/zh-CN.d.ts +0 -273
  162. package/es/locales/zh-TW.d.ts +0 -273
  163. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  164. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  165. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  166. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  167. package/lib/components/iconfont/index.d.ts +0 -8
  168. package/lib/components/login-and-register/index.d.ts +0 -82
  169. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  170. package/lib/components/pisellEmpty/index.d.ts +0 -19
  171. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -93
  172. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  173. package/lib/components/productCard/locales.d.ts +0 -84
  174. package/lib/components/productCard/status.d.ts +0 -32
  175. package/lib/components/productCard/types.d.ts +0 -84
  176. package/lib/components/table/types.d.ts +0 -251
  177. package/lib/locales/en-US.d.ts +0 -278
  178. package/lib/locales/zh-CN.d.ts +0 -273
  179. package/lib/locales/zh-TW.d.ts +0 -273
@@ -1,82 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- /**
4
- * loginAndRegister组件的属性接口
5
- */
6
- export interface loginAndRegisterProps {
7
- /** Logo相关配置 */
8
- showLogo?: boolean;
9
- logo?: string;
10
- logoPosition?: 'left' | 'center' | 'right';
11
- logoSize?: {
12
- width?: number;
13
- height?: number;
14
- };
15
- /** 标题相关配置 */
16
- title?: string;
17
- showTitle?: boolean;
18
- titleAlign?: 'left' | 'center' | 'right';
19
- /** 副标题相关配置 */
20
- subtitle?: string;
21
- showSubtitle?: boolean;
22
- subtitleAlign?: 'left' | 'center' | 'right';
23
- /** 登录方式配置 */
24
- loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
25
- defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
26
- /** 表单配置 */
27
- emailLabel?: string;
28
- passwordLabel?: string;
29
- emailPlaceholder?: string;
30
- passwordPlaceholder?: string;
31
- emailRules?: any[];
32
- buttonText?: string;
33
- rememberMeText?: string;
34
- forgotPasswordText?: string;
35
- showRememberMe?: boolean;
36
- showForgotPassword?: boolean;
37
- /** 社交登录配置 */
38
- socialLoginTexts?: {
39
- google?: string;
40
- facebook?: string;
41
- apple?: string;
42
- };
43
- /** 底部配置 */
44
- showFooter?: boolean;
45
- showSignUp?: boolean;
46
- signUpText?: string;
47
- signUpLink?: string;
48
- signUpPosition?: 'left' | 'center' | 'right';
49
- otherLinks?: Array<{
50
- text: string;
51
- url: string;
52
- }>;
53
- otherLinksPosition?: 'left' | 'center' | 'right';
54
- /** 登录/注册切换配置 */
55
- showTabs?: boolean;
56
- loginTabText?: string;
57
- registerTabText?: string;
58
- /** 注册表单配置 */
59
- registerEmailPlaceholder?: string;
60
- registerPasswordPlaceholder?: string;
61
- registerButtonText?: string;
62
- /** 事件回调 */
63
- onLogin?: (values: {
64
- email: string;
65
- loginMethod: string;
66
- }) => void;
67
- onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
68
- onSignUp?: () => void;
69
- onRegister?: (values: {
70
- email: string;
71
- password: string;
72
- }) => void;
73
- /** 新增背景图片属性 */
74
- backgroundImage?: string;
75
- }
76
- /**
77
- * Saas登录组件
78
- * @param props - 组件属性
79
- * @returns React组件
80
- */
81
- declare const loginAndRegister: React.FC<loginAndRegisterProps>;
82
- export default loginAndRegister;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from './context';
3
- interface PisellConfigProviderType {
4
- platform?: PisellContextType['platform'];
5
- children: React.ReactNode;
6
- /** 货币符号 */
7
- symbol?: string;
8
- /** 当前语言环境 */
9
- locale?: string;
10
- }
11
- declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
12
- export default PisellConfigProvider;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { EmptyProps } from 'antd';
3
- import { PisellContextType } from '../pisell-config-provider/context';
4
- import './index.less';
5
- export interface PisellEmptyProps extends EmptyProps {
6
- /** 平台 */
7
- platform?: PisellContextType['platform'];
8
- /** 额外内容描述 */
9
- extraDescription?: React.ReactNode;
10
- /** 额外内容描述 */
11
- icon?: React.ReactNode;
12
- /** 自定义底部额外操作区域 */
13
- footer?: React.ReactNode;
14
- [key: string]: any;
15
- /** 最大宽度 */
16
- maxWidth?: number;
17
- }
18
- declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
19
- export default PisellEmpty;
@@ -1,93 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.product.card.discount.reason': string;
4
- 'pisell2.cart.sku-card.more': string;
5
- 'pisell2.cart.sku-card.packages.title': string;
6
- 'pisell2.cart.sku-card.sales.title': string;
7
- 'pisell2.product.card.day': (val: number) => string;
8
- 'pisell2.product.card.day.event': (val: number) => string;
9
- 'pisell2.product.card.minute': (val: number) => string;
10
- 'pisell2.product.card.discount.note': string;
11
- 'pisell2.product.card.edit': string;
12
- 'pisell2.product.card.discount.add.note': string;
13
- 'pisell2.product.card.discount.edit.note': string;
14
- 'pisell2.product.card.confirm': string;
15
- 'pisell2.product.card.cancel': string;
16
- 'pisell2.product.card.note.pla': string;
17
- 'pisell2.product.card.items.package': string;
18
- 'pisell2.product.card.view-all': string;
19
- 'pisell2.product.card.view-less': string;
20
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
21
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
22
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
23
- 'pisell2.product.card.add.holder.modal.title.1': string;
24
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
25
- 'pisell2.product.card.sales': string;
26
- 'pisell2.product.card.add.holder.modal.cancel': string;
27
- 'pisell2.product.card.add.holder.modal.clear': string;
28
- 'pisell2.product.card.add.holder.modal.apply': string;
29
- 'pisell2.product.card.add.holder.modal.add': string;
30
- 'pisell2.product.card.closing-soon.warning': string;
31
- };
32
- 'zh-CN': {
33
- 'pisell2.product.card.discount.reason': string;
34
- 'pisell2.cart.sku-card.more': string;
35
- 'pisell2.cart.sku-card.packages.title': string;
36
- 'pisell2.cart.sku-card.sales.title': string;
37
- 'pisell2.product.card.edit': string;
38
- 'pisell2.product.card.day': (val: number) => string;
39
- 'pisell2.product.card.day.event': (val: number) => string;
40
- 'pisell2.product.card.minute': (val: number) => string;
41
- 'pisell2.product.card.discount.note': string;
42
- 'pisell2.product.card.discount.add.note': string;
43
- 'pisell2.product.card.discount.edit.note': string;
44
- 'pisell2.product.card.confirm': string;
45
- 'pisell2.product.card.cancel': string;
46
- 'pisell2.product.card.note.pla': string;
47
- 'pisell2.product.card.items.package': string;
48
- 'pisell2.product.card.view-all': string;
49
- 'pisell2.product.card.view-less': string;
50
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
51
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
52
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
53
- 'pisell2.product.card.add.holder.modal.title.1': string;
54
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
55
- 'pisell2.product.card.sales': string;
56
- 'pisell2.product.card.add.holder.modal.cancel': string;
57
- 'pisell2.product.card.add.holder.modal.clear': string;
58
- 'pisell2.product.card.add.holder.modal.apply': string;
59
- 'pisell2.product.card.add.holder.modal.add': string;
60
- 'pisell2.product.card.closing-soon.warning': string;
61
- };
62
- 'zh-HK': {
63
- 'pisell2.product.card.discount.reason': string;
64
- 'pisell2.cart.sku-card.more': string;
65
- 'pisell2.cart.sku-card.packages.title': string;
66
- 'pisell2.cart.sku-card.sales.title': string;
67
- 'pisell2.product.card.edit': string;
68
- 'pisell2.product.card.day': (val: number) => string;
69
- 'pisell2.product.card.day.event': (val: number) => string;
70
- 'pisell2.product.card.minute': (val: number) => string;
71
- 'pisell2.product.card.discount.note': string;
72
- 'pisell2.product.card.discount.add.note': string;
73
- 'pisell2.product.card.discount.edit.note': string;
74
- 'pisell2.product.card.confirm': string;
75
- 'pisell2.product.card.cancel': string;
76
- 'pisell2.product.card.note.pla': string;
77
- 'pisell2.product.card.items.package': string;
78
- 'pisell2.product.card.view-all': string;
79
- 'pisell2.product.card.view-less': string;
80
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
81
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
82
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
83
- 'pisell2.product.card.add.holder.modal.title.1': string;
84
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
85
- 'pisell2.product.card.sales': string;
86
- 'pisell2.product.card.add.holder.modal.cancel': string;
87
- 'pisell2.product.card.add.holder.modal.clear': string;
88
- 'pisell2.product.card.add.holder.modal.apply': string;
89
- 'pisell2.product.card.add.holder.modal.add': string;
90
- 'pisell2.product.card.closing-soon.warning': string;
91
- };
92
- };
93
- export default _default;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
3
- export default DeleteButton;
@@ -1,84 +0,0 @@
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.minute': (val: number) => string;
6
- 'pisell2.product.card.discount.reason': string;
7
- 'pisell2.product.card.discount.note': string;
8
- 'pisell2.product.card.edit': string;
9
- 'pisell2.product.card.discount.add.note': string;
10
- 'pisell2.product.card.discount.edit.note': string;
11
- 'pisell2.product.card.confirm': string;
12
- 'pisell2.product.card.cancel': string;
13
- 'pisell2.product.card.note.pla': string;
14
- 'pisell2.product.card.items.package': string;
15
- 'pisell2.product.card.view-all': string;
16
- 'pisell2.product.card.view-less': string;
17
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
18
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
19
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
20
- 'pisell2.product.card.add.holder.modal.title.1': string;
21
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
22
- 'pisell2.product.card.sales': string;
23
- 'pisell2.product.card.add.holder.modal.cancel': string;
24
- 'pisell2.product.card.add.holder.modal.clear': string;
25
- 'pisell2.product.card.add.holder.modal.apply': string;
26
- 'pisell2.product.card.add.holder.modal.add': string;
27
- 'pisell2.product.card.closing-soon.warning': string;
28
- };
29
- 'zh-CN': {
30
- 'pisell2.product.card.edit': string;
31
- 'pisell2.product.card.day': (val: number) => string;
32
- 'pisell2.product.card.day.event': (val: number) => string;
33
- 'pisell2.product.card.minute': (val: number) => string;
34
- 'pisell2.product.card.discount.reason': string;
35
- 'pisell2.product.card.discount.note': string;
36
- 'pisell2.product.card.discount.add.note': string;
37
- 'pisell2.product.card.discount.edit.note': string;
38
- 'pisell2.product.card.confirm': string;
39
- 'pisell2.product.card.cancel': string;
40
- 'pisell2.product.card.note.pla': string;
41
- 'pisell2.product.card.items.package': string;
42
- 'pisell2.product.card.view-all': string;
43
- 'pisell2.product.card.view-less': string;
44
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
45
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
46
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
47
- 'pisell2.product.card.add.holder.modal.title.1': string;
48
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
49
- 'pisell2.product.card.sales': string;
50
- 'pisell2.product.card.add.holder.modal.cancel': string;
51
- 'pisell2.product.card.add.holder.modal.clear': string;
52
- 'pisell2.product.card.add.holder.modal.apply': string;
53
- 'pisell2.product.card.add.holder.modal.add': string;
54
- 'pisell2.product.card.closing-soon.warning': string;
55
- };
56
- 'zh-HK': {
57
- 'pisell2.product.card.edit': string;
58
- 'pisell2.product.card.day': (val: number) => string;
59
- 'pisell2.product.card.day.event': (val: number) => string;
60
- 'pisell2.product.card.minute': (val: number) => string;
61
- 'pisell2.product.card.discount.reason': string;
62
- 'pisell2.product.card.discount.note': string;
63
- 'pisell2.product.card.discount.add.note': string;
64
- 'pisell2.product.card.discount.edit.note': string;
65
- 'pisell2.product.card.confirm': string;
66
- 'pisell2.product.card.cancel': string;
67
- 'pisell2.product.card.note.pla': string;
68
- 'pisell2.product.card.items.package': string;
69
- 'pisell2.product.card.view-all': string;
70
- 'pisell2.product.card.view-less': string;
71
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
72
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
73
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
74
- 'pisell2.product.card.add.holder.modal.title.1': string;
75
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
76
- 'pisell2.product.card.sales': string;
77
- 'pisell2.product.card.add.holder.modal.cancel': string;
78
- 'pisell2.product.card.add.holder.modal.clear': string;
79
- 'pisell2.product.card.add.holder.modal.apply': string;
80
- 'pisell2.product.card.add.holder.modal.add': string;
81
- 'pisell2.product.card.closing-soon.warning': string;
82
- };
83
- };
84
- export default _default;
@@ -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,251 +0,0 @@
1
- import { FilterType } from "../filter/types";
2
- import { SortItemProps } from "../sort/types";
3
- import React from "react";
4
- export declare type StorageMode = "" | "localStorage";
5
- /**
6
- * 排序总配置
7
- */
8
- export declare type SortType = {
9
- /** 排序是否展示 */
10
- show: boolean;
11
- /** 排序存储模式 */
12
- storageMode: StorageMode;
13
- list: SortItemProps[];
14
- };
15
- /**
16
- * 列展示总配置
17
- */
18
- export declare type ColumnSettingType = {
19
- /** 列设置是否展示 */
20
- show: boolean;
21
- /** 列设置存储模式 */
22
- storageMode: StorageMode;
23
- };
24
- declare type DataSourceListItemType = {
25
- isCustom: boolean;
26
- columnKey?: string;
27
- label?: string;
28
- name?: string | string[];
29
- isHidden?: boolean;
30
- };
31
- /**
32
- * 数据源分组总配置
33
- */
34
- export declare type DataSourceGroupType = {
35
- /** 分组设置是否展示 */
36
- show: boolean;
37
- /** 分组设置存储模式 */
38
- storageMode: StorageMode;
39
- /** */
40
- list: DataSourceListItemType[];
41
- };
42
- /**
43
- * Gallery封面总配置
44
- */
45
- declare type GalleryCoverType = {
46
- /** 封面是否展示 */
47
- show: boolean;
48
- /**
49
- * 封面图片可以使用的字段
50
- */
51
- fields: string[];
52
- /**
53
- * 封面高度
54
- */
55
- height: number;
56
- /** 图片裁剪方式 */
57
- objectFit: "fill" | "cover";
58
- };
59
- /**
60
- * Gallery标题总配置
61
- */
62
- declare type GalleryTitleType = {
63
- /** 标题使用的字段 */
64
- field: string;
65
- /** 标题行数 */
66
- line: number;
67
- };
68
- /**
69
- * Gallery头部区域总配置
70
- */
71
- declare type GalleryHeaderType = {
72
- /** 头部区域插槽 */
73
- slot?: (record: Record<string, any>, index: number) => React.ReactNode;
74
- /** 头部区域其他字段设置 */
75
- fields: {
76
- /** 头部区域其他字段是否展示 */
77
- show: boolean;
78
- /** 头部区域其他字段 */
79
- list: string[];
80
- };
81
- };
82
- /**
83
- * Gallery内容区域总配置
84
- */
85
- declare type GalleryContentType = {
86
- /** 内容区域字段配置 */
87
- fields: {
88
- columnKey: string;
89
- show: boolean;
90
- }[];
91
- };
92
- export declare type GallerySettingValueType = {
93
- coverField: string | "noCover";
94
- coverObjectFit: "fill" | "cover";
95
- compactMode: "default" | "compact";
96
- isShowLabel: boolean;
97
- };
98
- /**
99
- * Gallery底部区域总配置
100
- */
101
- declare type GalleryFooterType = {
102
- /** 底部区域自定义渲染 */
103
- render: (record: Record<string, any>, index: number) => React.ReactNode;
104
- /** 底部区域高度 */
105
- height: number;
106
- };
107
- /**
108
- * Gallery模式总配置
109
- */
110
- export declare type GallerySettingType = {
111
- /** 卡片最小宽度 */
112
- cardMinWidth: number;
113
- /** 卡片最大宽度 */
114
- cardMaxWidth: number;
115
- /** 水平间隔 */
116
- horizontalGutter: number;
117
- /** 垂直间隔 */
118
- verticalGutter: number;
119
- /** 封面配置 */
120
- cover: GalleryCoverType;
121
- /** 标题配置 */
122
- title: GalleryTitleType;
123
- /** 头部区域 */
124
- header: GalleryHeaderType;
125
- /** 内容区域 */
126
- content: GalleryContentType;
127
- /** 固定高度 */
128
- fixedHeight: boolean;
129
- /** 固定的卡片高度 */
130
- cardHeight: number;
131
- /** 固定顶部 */
132
- fixedHeader: boolean;
133
- /** 固定底部 */
134
- fixedFooter: boolean;
135
- /** 底部区域 */
136
- footer: GalleryFooterType;
137
- /** 卡片点击时间 */
138
- onItem: (record: Record<string, any>, index: number) => void;
139
- };
140
- /** 视图模式 */
141
- export declare type ModeType = "grid" | "gallery" | "kanban";
142
- /**
143
- * 视图模式总配置
144
- */
145
- export declare type GridViewType = {
146
- /** 默认视图模式 */
147
- defaultViewMode: ModeType;
148
- /** 开启多视图模式可进行页面内转换 */
149
- multiple: boolean;
150
- /** 当前可用的视图模式列表 */
151
- modeList: ModeType[];
152
- };
153
- declare type SortDetail = {
154
- fromIndex: number;
155
- toIndex: number;
156
- dataSource: Record<string, any>[];
157
- fromId: number | string;
158
- toId: number | string;
159
- fromItem: Record<string, any>;
160
- toItem: Record<string, any>;
161
- };
162
- /** 导入导出模式 */
163
- export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
164
- /**
165
- * @title: 导出导入api
166
- * @description:
167
- * @return {*}
168
- * @Author: WangHan
169
- * @Date: 2024-09-11 15:44
170
- */
171
- export declare type ApiProps = {
172
- export?: string;
173
- import?: string;
174
- export_file: string;
175
- import_log?: string;
176
- template?: string;
177
- };
178
- /**
179
- * 导入导出配置
180
- */
181
- export declare type ExportImportType = {
182
- /** 是否展示 */
183
- show: boolean;
184
- /** 当前所选项 */
185
- selectLists: string[];
186
- /** 导入模版链接 */
187
- templateFileUrl: string;
188
- /** 标题 */
189
- title: string;
190
- hiddenKeys?: string[];
191
- apiUrl?: ApiProps;
192
- otherParams?: any;
193
- };
194
- export declare type GridViewProps = {
195
- columns: any;
196
- dataSource: any[];
197
- dispatch: any;
198
- /**
199
- * 画册模式的配置
200
- */
201
- gallery: GallerySettingType;
202
- /**
203
- * 视图设置
204
- */
205
- view: GridViewType;
206
- style: React.CSSProperties;
207
- pagination: any;
208
- filter: FilterType;
209
- buttons: React.ReactNode | any[];
210
- actionButtons: any;
211
- sort: SortType;
212
- title?: React.ReactNode | (() => React.ReactNode);
213
- showTitle?: boolean;
214
- subTitle?: React.ReactNode | (() => React.ReactNode);
215
- showSubTitle?: boolean;
216
- exportImport: ExportImportType;
217
- onValuesChange: (changedValues: any, values: any) => void;
218
- summary: any;
219
- utils: any;
220
- rowKey: ((record: Record<string, any>) => string) | string;
221
- columnSetting?: ColumnSettingType;
222
- dataSourceGroup?: DataSourceGroupType;
223
- loading: boolean;
224
- dragSort: boolean;
225
- onSortChange?: (detail: SortDetail) => boolean;
226
- __id?: string;
227
- __designMode?: "design";
228
- /**
229
- * 当前本地配置的key 用此hash是否改变用来判断是否清空本地配置 不填默认使用columns数据生成hash
230
- */
231
- currentSettingKey?: string;
232
- /**
233
- * 当前本地配置的唯一值, 不填默认使用currentSettingKey
234
- */
235
- currentComponentId?: string;
236
- /**
237
- * 当前表格中数据发生变化事件 包含本地筛选和外部传入数据变化
238
- * @param currentDataSource
239
- */
240
- onDataSourceChange?: (currentDataSource: Record<string, any>[]) => void;
241
- tabs: {
242
- show: boolean;
243
- type: 'default' | 'button' | 'buttonGroup' | 'dropdown';
244
- items: {
245
- name: string;
246
- filterBy?: Record<string, any>;
247
- sortBy?: string;
248
- }[];
249
- };
250
- };
251
- export {};