@pisell/materials 2.2.68 → 2.2.70

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 (191) 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 +150 -150
  7. package/build/lowcode/render/default/view.js +28 -24
  8. package/build/lowcode/view.js +29 -25
  9. package/es/components/auto-complete-number/index.d.ts +1 -0
  10. package/es/components/badge/index.d.ts +1 -0
  11. package/es/components/batch-editor/fields/index.d.ts +1 -0
  12. package/es/components/calendar/index.d.ts +1 -0
  13. package/es/components/cardPro/index.d.ts +1 -0
  14. package/es/components/checkbox/index.d.ts +1 -0
  15. package/es/components/classicLayout/index.d.ts +1 -0
  16. package/es/components/config-provider/index.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  18. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  20. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  22. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  23. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  25. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  26. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  27. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  28. package/es/components/dataSourceComponents/fields/index.d.ts +18 -18
  29. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  30. package/es/components/dropdown/index.d.ts +1 -0
  31. package/es/components/page/index.d.ts +1 -0
  32. package/es/components/pisellAvatar/index.d.ts +19 -0
  33. package/es/components/pisellCard/index.d.ts +1 -0
  34. package/es/components/pisellCardList/index.d.ts +2 -0
  35. package/es/components/pisellCardList/index.js +4 -0
  36. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  37. package/es/components/pisellDatePicker/index.d.ts +1 -0
  38. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  39. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  40. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -0
  41. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  42. package/es/components/pisellMenu/types.d.ts +26 -0
  43. package/es/components/pisellTooltip/index.d.ts +1 -0
  44. package/es/components/pisellUpload/index.d.ts +1 -0
  45. package/es/components/pisellWalletPassCard/index.d.ts +2 -0
  46. package/es/components/pisellWalletPassCard/index.js +80 -13
  47. package/es/components/productCard/components/Action/index.d.ts +1 -0
  48. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
  49. package/es/components/productCard/components/Divider/index.d.ts +1 -0
  50. package/es/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  51. package/es/components/productCard/components/Time/index.js +2 -2
  52. package/es/components/productCard/locales.d.ts +63 -0
  53. package/es/components/productCard/status.d.ts +32 -0
  54. package/es/components/productCard/types.d.ts +83 -0
  55. package/es/components/radio/index.d.ts +1 -0
  56. package/es/components/segmented/index.d.ts +1 -0
  57. package/es/components/select-time/RightPanel/index.d.ts +1 -0
  58. package/es/components/select-time/index.d.ts +1 -0
  59. package/es/components/skeleton/index.d.ts +1 -0
  60. package/es/components/slider/index.d.ts +1 -0
  61. package/es/components/sort/components/InlineMenu/index.d.ts +1 -0
  62. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  63. package/es/components/table/Summary/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/date/Config/index.d.ts +1 -0
  65. package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  66. package/es/components/table/Table/fields/image/Config/index.d.ts +1 -0
  67. package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  68. package/es/components/table/Table/fields/link/Config/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/number/Config/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  73. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  74. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  75. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  76. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  77. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  78. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  79. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  80. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  81. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  82. package/es/components/table/Table/fields/search/Config/index.d.ts +1 -0
  83. package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  84. package/es/components/table/Table/fields/select/Config/index.d.ts +1 -0
  85. package/es/components/table/Table/fields/select/Show/index.d.ts +1 -0
  86. package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  87. package/es/components/table/Table/fields/text/Config/index.d.ts +1 -0
  88. package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  89. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  90. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  91. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  92. package/es/components/table/TableFilter/SortIcon.d.ts +1 -0
  93. package/es/components/time-picker/index.d.ts +1 -0
  94. package/es/components/upload/index.d.ts +1 -0
  95. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
  96. package/es/components/virtual-keyboard/Time/utils.d.ts +1 -0
  97. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +1 -0
  98. package/es/components/walletCard/Guest/index.d.ts +1 -0
  99. package/lib/components/auto-complete-number/index.d.ts +1 -0
  100. package/lib/components/badge/index.d.ts +1 -0
  101. package/lib/components/batch-editor/fields/index.d.ts +1 -0
  102. package/lib/components/calendar/index.d.ts +1 -0
  103. package/lib/components/cardPro/index.d.ts +1 -0
  104. package/lib/components/checkbox/index.d.ts +1 -0
  105. package/lib/components/classicLayout/index.d.ts +1 -0
  106. package/lib/components/config-provider/index.d.ts +1 -0
  107. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  108. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
  109. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
  110. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
  111. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
  112. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
  113. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
  114. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
  115. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  116. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
  117. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
  118. package/lib/components/dataSourceComponents/fields/index.d.ts +18 -18
  119. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -0
  120. package/lib/components/dropdown/index.d.ts +1 -0
  121. package/lib/components/page/index.d.ts +1 -0
  122. package/lib/components/pisellAvatar/index.d.ts +19 -0
  123. package/lib/components/pisellCard/index.d.ts +1 -0
  124. package/lib/components/pisellCardList/index.d.ts +2 -0
  125. package/lib/components/pisellCardList/index.js +4 -0
  126. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -0
  127. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  128. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  129. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  130. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -0
  131. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -0
  132. package/lib/components/pisellMenu/types.d.ts +26 -0
  133. package/lib/components/pisellTooltip/index.d.ts +1 -0
  134. package/lib/components/pisellUpload/index.d.ts +1 -0
  135. package/lib/components/pisellWalletPassCard/index.d.ts +2 -0
  136. package/lib/components/pisellWalletPassCard/index.js +43 -11
  137. package/lib/components/productCard/components/Action/index.d.ts +1 -0
  138. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
  139. package/lib/components/productCard/components/Divider/index.d.ts +1 -0
  140. package/lib/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  141. package/lib/components/productCard/components/Time/index.js +6 -2
  142. package/lib/components/productCard/locales.d.ts +63 -0
  143. package/lib/components/productCard/status.d.ts +32 -0
  144. package/lib/components/productCard/types.d.ts +83 -0
  145. package/lib/components/radio/index.d.ts +1 -0
  146. package/lib/components/segmented/index.d.ts +1 -0
  147. package/lib/components/select-time/RightPanel/index.d.ts +1 -0
  148. package/lib/components/select-time/index.d.ts +1 -0
  149. package/lib/components/skeleton/index.d.ts +1 -0
  150. package/lib/components/slider/index.d.ts +1 -0
  151. package/lib/components/sort/components/InlineMenu/index.d.ts +1 -0
  152. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +1 -0
  153. package/lib/components/table/Summary/index.d.ts +1 -0
  154. package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -0
  155. package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -0
  156. package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -0
  157. package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -0
  158. package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -0
  159. package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -0
  160. package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -0
  161. package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -0
  162. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +1 -0
  163. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +1 -0
  164. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +1 -0
  165. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +1 -0
  166. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +1 -0
  167. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -0
  168. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -0
  169. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -0
  170. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -0
  171. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -0
  172. package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -0
  173. package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -0
  174. package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -0
  175. package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -0
  176. package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -0
  177. package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -0
  178. package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -0
  179. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +1 -0
  180. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +1 -0
  181. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +1 -0
  182. package/lib/components/table/TableFilter/SortIcon.d.ts +1 -0
  183. package/lib/components/time-picker/index.d.ts +1 -0
  184. package/lib/components/upload/index.d.ts +1 -0
  185. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -0
  186. package/lib/components/virtual-keyboard/Time/utils.d.ts +1 -0
  187. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +1 -0
  188. package/lib/components/walletCard/Guest/index.d.ts +1 -0
  189. package/lowcode/pisell-card-list/meta.ts +5 -0
  190. package/lowcode/pisell-wallet-pass-card/meta.ts +6 -1
  191. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import './index.less';
3
4
  import { PisellContextType } from "../../../pisell-config-provider/context";
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import type { MenuProps } from 'antd';
3
+ export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ mode?: 'vertical' | 'horizontal' | 'inline';
7
+ theme?: 'light' | 'dark';
8
+ defaultOpenKeys?: string[];
9
+ defaultSelectedKeys?: string[];
10
+ inlineCollapsed?: boolean;
11
+ openKeys?: string[];
12
+ selectedKeys?: string[];
13
+ onOpenChange?: (openKeys: string[]) => void;
14
+ dataSource?: any;
15
+ __designMode?: string;
16
+ other?: PisellMenuProps;
17
+ }
18
+ export interface MenuItemType {
19
+ key: string;
20
+ label: string;
21
+ path: string;
22
+ children?: MenuItemType[];
23
+ icon?: string | React.ReactNode;
24
+ hide?: boolean;
25
+ type?: 'group' | 'divider';
26
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TooltipPropsWithTitle } from 'antd/es/tooltip';
2
3
  import { PisellContextType } from "../pisell-config-provider/context";
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { UploadProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface PisellUploadProps extends UploadProps {
@@ -75,6 +75,8 @@ export interface PisellWalletPassCardProps {
75
75
  };
76
76
  };
77
77
  };
78
+ /** 编辑编辑按钮后,弹窗展示之前 */
79
+ beforeEdit?: (value: any) => Promise<any> | boolean | void;
78
80
  /** 编辑弹窗点击提交 */
79
81
  onConfirmEdit?: (value: any) => void;
80
82
  [key: string]: any;
@@ -90,6 +90,7 @@ var PisellWalletPassCard = (props) => {
90
90
  discount,
91
91
  showActions,
92
92
  actions,
93
+ beforeEdit,
93
94
  onConfirmEdit,
94
95
  originData,
95
96
  style = {}
@@ -113,19 +114,50 @@ var PisellWalletPassCard = (props) => {
113
114
  });
114
115
  setIsShowDetail(true);
115
116
  };
116
- const onEdit = () => {
117
+ const onEdit = async () => {
117
118
  var _a, _b;
118
- if (disabled || disabledReason || !((_a = actions == null ? void 0 : actions.edit) == null ? void 0 : _a.visible) || !((_b = actions == null ? void 0 : actions.edit) == null ? void 0 : _b.enableDialog))
119
+ if (disabled || disabledReason || !((_a = actions == null ? void 0 : actions.edit) == null ? void 0 : _a.visible) || !((_b = actions == null ? void 0 : actions.edit) == null ? void 0 : _b.enableDialog)) {
119
120
  return;
120
- form.setFieldsValue({
121
- name,
122
- storeName,
123
- balance,
124
- redeem,
125
- code,
126
- validDate: (0, import_dayjs.default)(validDate)
127
- });
128
- setIsShowEdit(true);
121
+ }
122
+ const executeEdit = () => {
123
+ form.setFieldsValue({
124
+ name,
125
+ storeName,
126
+ balance,
127
+ redeem,
128
+ code,
129
+ validDate: (0, import_dayjs.default)(validDate)
130
+ });
131
+ setIsShowEdit(true);
132
+ };
133
+ if (!beforeEdit) {
134
+ executeEdit();
135
+ return;
136
+ }
137
+ try {
138
+ const result = beforeEdit({
139
+ id,
140
+ name,
141
+ storeName,
142
+ balance,
143
+ redeem,
144
+ code,
145
+ validDate,
146
+ originData
147
+ });
148
+ if (result instanceof Promise) {
149
+ const shouldProceed = await result;
150
+ if (shouldProceed !== false) {
151
+ executeEdit();
152
+ }
153
+ return;
154
+ }
155
+ if (result !== false) {
156
+ executeEdit();
157
+ }
158
+ } catch (error) {
159
+ console.error("Before edit check failed:", error);
160
+ }
129
161
  };
130
162
  const handleTouchStart = () => {
131
163
  var _a;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Action: ({ item, onAction }: any) => JSX.Element;
3
4
  export default Action;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
3
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Divider: ({ type }: any) => JSX.Element;
3
4
  export default Divider;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
+ style?: any;
5
+ status: string;
6
+ onLike?: any;
7
+ className?: string | undefined;
8
+ isShowChangeResource?: boolean | undefined;
9
+ }) => JSX.Element;
10
+ export default Like;
@@ -130,7 +130,7 @@ var Time = ({
130
130
  );
131
131
  const resourceCom = (0, import_react.useCallback)(
132
132
  (item2) => {
133
- if (!isShowChangeResource) {
133
+ if ((item2 == null ? void 0 : item2.hasOwnProperty("isShowChangeResource")) && !item2.isShowChangeResource || !isShowChangeResource) {
134
134
  return item2 == null ? void 0 : item2.name;
135
135
  }
136
136
  return /* @__PURE__ */ import_react.default.createElement(
@@ -174,7 +174,11 @@ var Time = ({
174
174
  resource_id,
175
175
  resources,
176
176
  relation_form_name,
177
- is_hide_like
177
+ is_hide_like,
178
+ resourceErrorText,
179
+ allowClearResource,
180
+ isErrorResource,
181
+ isShowChangeResource
178
182
  ]);
179
183
  const isShow = (0, import_react.useMemo)(() => {
180
184
  return start_date && end_date || holderCom || likeAndResourceCom;
@@ -0,0 +1,63 @@
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.hour.minute': (hour: number, minute: number) => string;
20
+ 'pisell2.product.card.sales': string;
21
+ };
22
+ 'zh-CN': {
23
+ 'pisell2.product.card.edit': string;
24
+ 'pisell2.product.card.day': (val: number) => string;
25
+ 'pisell2.product.card.day.event': (val: number) => string;
26
+ 'pisell2.product.card.minute': (val: number) => string;
27
+ 'pisell2.product.card.discount.reason': string;
28
+ 'pisell2.product.card.discount.note': string;
29
+ 'pisell2.product.card.discount.add.note': string;
30
+ 'pisell2.product.card.discount.edit.note': string;
31
+ 'pisell2.product.card.confirm': string;
32
+ 'pisell2.product.card.cancel': string;
33
+ 'pisell2.product.card.note.pla': string;
34
+ 'pisell2.product.card.items.package': string;
35
+ 'pisell2.product.card.view-all': string;
36
+ 'pisell2.product.card.view-less': string;
37
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
38
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
39
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
40
+ 'pisell2.product.card.sales': string;
41
+ };
42
+ 'zh-HK': {
43
+ 'pisell2.product.card.edit': string;
44
+ 'pisell2.product.card.day': (val: number) => string;
45
+ 'pisell2.product.card.day.event': (val: number) => string;
46
+ 'pisell2.product.card.minute': (val: number) => string;
47
+ 'pisell2.product.card.discount.reason': string;
48
+ 'pisell2.product.card.discount.note': string;
49
+ 'pisell2.product.card.discount.add.note': string;
50
+ 'pisell2.product.card.discount.edit.note': string;
51
+ 'pisell2.product.card.confirm': string;
52
+ 'pisell2.product.card.cancel': string;
53
+ 'pisell2.product.card.note.pla': string;
54
+ 'pisell2.product.card.items.package': string;
55
+ 'pisell2.product.card.view-all': string;
56
+ 'pisell2.product.card.view-less': string;
57
+ 'pisell2.product.card.add.holder.button.text': (val: string) => string;
58
+ 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
59
+ 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
60
+ 'pisell2.product.card.sales': string;
61
+ };
62
+ };
63
+ 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,83 @@
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
+ [key: string]: any;
83
+ };
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Radio: (props: any) => JSX.Element;
2
3
  export default Radio;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SegmentedProps } from "antd";
2
3
  import "./index.less";
3
4
  declare const Segmented: (props: SegmentedProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface RightPanelProps {
3
4
  value: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
2
3
  import { PopoverProps, TimePickerProps } from "antd";
3
4
  import "./index.less";
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Skeleton: (props: any) => JSX.Element;
2
3
  export default Skeleton;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SliderOuter: (props: any) => JSX.Element;
2
3
  export default SliderOuter;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuProps } from "antd";
2
3
  import "./index.less";
3
4
  interface InlineMenuProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './PopoverContent.less';
2
3
  declare type FieldType = string | number;
3
4
  export declare type GroupValue = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Summary: ({ summary }: any) => JSX.Element | null;
3
4
  export default Summary;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Config: () => JSX.Element;
2
3
  export default Config;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Sort: () => JSX.Element;
2
3
  export default Sort;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface SortIconProps {
2
3
  sortOrder: null | "ascend" | "descend";
3
4
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const TimePicker: (props: any) => JSX.Element;
2
3
  export default TimePicker;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Upload: (props: any) => JSX.Element;
2
3
  export default Upload;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./Presets.less";
2
3
  export declare type PresetsItem = {
3
4
  label: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const formatStringToTime: (value: string) => {
2
3
  valueArray: string[];
3
4
  valueString: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import './index.less';
3
4
  export interface VirtualKeyInputProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Guest: (props: any) => JSX.Element;
3
4
  export default Guest;
@@ -250,6 +250,11 @@ export default {
250
250
  name: 'onChange',
251
251
  template:
252
252
  "onChange(event,${extParams}){\n// 选择变化时的回调\nconsole.log('onChange',event);}",
253
+ },
254
+ {
255
+ name: 'beforeEdit',
256
+ template:
257
+ "beforeEdit(value, index){\n// 点击编辑按钮后,弹窗展示前\nconsole.log('beforeEdit');}",
253
258
  },
254
259
  {
255
260
  name: 'onConfirmEdit',
@@ -222,9 +222,14 @@ export default {
222
222
  configure: {
223
223
  supports: {
224
224
  style: true, events: [
225
+ {
226
+ name: 'beforeEdit',
227
+ template:
228
+ "beforeEdit(value){\n// 点击编辑按钮后,弹窗展示前\nconsole.log('beforeEdit');}",
229
+ },
225
230
  {
226
231
  name: 'onConfirmEdit',
227
- templete:
232
+ template:
228
233
  "onConfirmEdit(value){\n// 编辑弹窗点击确认\nconsole.log('onConfirmEdit');}",
229
234
  },
230
235
  ]