@pisell/materials 2.2.93 → 2.2.95

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 (151) 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 +2 -2
  6. package/build/lowcode/preview.js +5 -5
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +13 -13
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/appVersionControl/index.d.ts +0 -1
  12. package/es/components/batch-editor/index.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  18. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  19. package/es/components/date-picker/index.d.ts +0 -1
  20. package/es/components/iconfont/index.js +1 -1
  21. package/es/components/page/index.d.ts +0 -1
  22. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  23. package/es/components/pisellGoodPassCard/index.js +8 -7
  24. package/es/components/pisellInput/index.d.ts +0 -1
  25. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  26. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  27. package/es/components/pisellModal/components/index.d.ts +0 -1
  28. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  29. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +6 -0
  30. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +25 -5
  31. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +5 -2
  32. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  33. package/es/components/productCard/cartSkuCard/components/packages/index.js +1 -1
  34. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  35. package/es/components/productCard/cartSkuCard/components/resources/index.js +2 -5
  36. package/es/components/productCard/cartSkuCard/components/resources/index.less +6 -7
  37. package/es/components/productCard/cartSkuCard/components/sales/index.js +1 -1
  38. package/es/components/productCard/cartSkuCard/components/specs/index.js +3 -2
  39. package/es/components/productCard/cartSkuCard/components/specs/index.less +6 -0
  40. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +2 -0
  41. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +12 -2
  42. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  43. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +6 -5
  44. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +6 -5
  45. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  46. package/es/components/productCard/cartSkuCard/index.js +21 -19
  47. package/es/components/productCard/cartSkuCard/index.less +4 -44
  48. package/es/components/productCard/components/Header/index.js +17 -2
  49. package/es/components/productCard/components/Header/index.less +23 -3
  50. package/es/components/productCard/components/Time/components/SelectHolderModal/index.js +3 -1
  51. package/es/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
  52. package/es/components/productCard/components/Time/index.d.ts +0 -1
  53. package/es/components/productCard/locales.js +3 -0
  54. package/es/components/select-time/index.d.ts +0 -1
  55. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  56. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  57. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  58. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  59. package/es/components/table/Actions/index.d.ts +0 -1
  60. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  61. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  62. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  63. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  64. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  65. package/es/components/table/Table/fields/index.d.ts +0 -1
  66. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  67. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  68. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  69. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  70. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  71. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  72. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  73. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  74. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  75. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  76. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  77. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  78. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  79. package/es/components/table/Table/utils.d.ts +1 -1
  80. package/es/components/versionSelect/index.d.ts +0 -1
  81. package/lib/components/appVersionControl/index.d.ts +0 -1
  82. package/lib/components/batch-editor/index.d.ts +0 -1
  83. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  84. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  85. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  86. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  87. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  88. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  89. package/lib/components/date-picker/index.d.ts +0 -1
  90. package/lib/components/iconfont/index.js +1 -1
  91. package/lib/components/page/index.d.ts +0 -1
  92. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  93. package/lib/components/pisellGoodPassCard/index.js +27 -4
  94. package/lib/components/pisellInput/index.d.ts +0 -1
  95. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  96. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  97. package/lib/components/pisellModal/components/index.d.ts +0 -1
  98. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  99. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +6 -0
  100. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +17 -14
  101. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +5 -2
  102. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
  103. package/lib/components/productCard/cartSkuCard/components/packages/index.js +1 -1
  104. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  105. package/lib/components/productCard/cartSkuCard/components/resources/index.js +2 -2
  106. package/lib/components/productCard/cartSkuCard/components/resources/index.less +6 -7
  107. package/lib/components/productCard/cartSkuCard/components/sales/index.js +1 -1
  108. package/lib/components/productCard/cartSkuCard/components/specs/index.js +3 -2
  109. package/lib/components/productCard/cartSkuCard/components/specs/index.less +6 -0
  110. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +2 -0
  111. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +11 -2
  112. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  113. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +2 -1
  114. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +6 -5
  115. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  116. package/lib/components/productCard/cartSkuCard/index.js +25 -6
  117. package/lib/components/productCard/cartSkuCard/index.less +4 -44
  118. package/lib/components/productCard/components/Header/index.js +6 -1
  119. package/lib/components/productCard/components/Header/index.less +23 -3
  120. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.js +1 -1
  121. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.less +3 -0
  122. package/lib/components/productCard/components/Time/index.d.ts +0 -1
  123. package/lib/components/productCard/locales.js +12 -3
  124. package/lib/components/select-time/index.d.ts +0 -1
  125. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  126. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  127. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  128. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  129. package/lib/components/table/Actions/index.d.ts +0 -1
  130. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  131. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  132. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  133. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  134. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  135. package/lib/components/table/Table/fields/index.d.ts +0 -1
  136. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  137. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  138. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  139. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  140. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  141. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  142. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  143. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  144. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  145. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  146. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  147. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  148. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  149. package/lib/components/table/Table/utils.d.ts +1 -1
  150. package/lib/components/versionSelect/index.d.ts +0 -1
  151. package/package.json +3 -3
@@ -9,6 +9,9 @@
9
9
  border-radius: inherit;
10
10
  user-select: none;
11
11
  position: relative;
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 4px;
12
15
 
13
16
  &__delete-btn {
14
17
  cursor: pointer;
@@ -16,54 +19,11 @@
16
19
  padding: 10px;
17
20
  top: 0;
18
21
  right: 0;
22
+ z-index: 1;
19
23
 
20
24
  > span {
21
25
  color: #667085;
22
26
  font-size: 20px;
23
27
  }
24
28
  }
25
-
26
- &__content {
27
- display: flex;
28
- gap: 4px;
29
-
30
- img {
31
- width: 48px;
32
- height: 48px;
33
- flex-shrink: 0;
34
- border-radius: 6px;
35
- }
36
-
37
- .product-info {
38
- flex: 1;
39
- display: flex;
40
- align-items: center;
41
- gap: 4px;
42
- flex: 1 0 0;
43
- flex-wrap: wrap;
44
- overflow: hidden;
45
- min-height: 30px;
46
-
47
- .product-name {
48
- color: var(--Gray-900, #101828);
49
- font-size: 14px;
50
- font-style: normal;
51
- font-weight: 600;
52
- line-height: 20px;
53
- width: 100%;
54
- overflow: hidden;
55
- text-overflow: ellipsis;
56
- white-space: nowrap;
57
- }
58
-
59
- .product-price {
60
- color: var(--Gray-900, #101828);
61
- font-size: 14px;
62
- font-style: normal;
63
- font-weight: 500;
64
- line-height: 20px;
65
- width: 100%;
66
- }
67
- }
68
- }
69
29
  }
@@ -27,7 +27,9 @@ var Header = function Header(props) {
27
27
  price = item.price,
28
28
  symbol = item.symbol,
29
29
  disabled = item.disabled,
30
- relation_products = item.relation_products;
30
+ relation_products = item.relation_products,
31
+ _item$num = item.num,
32
+ num = _item$num === void 0 ? 1 : _item$num;
31
33
 
32
34
  /**
33
35
  * @title: 是否显示价格
@@ -66,6 +68,19 @@ var Header = function Header(props) {
66
68
  var showDelete = useMemo(function () {
67
69
  return isShowDelete && !disabledEdit && !disabled;
68
70
  }, [isShowDelete, disabledEdit, disabled]);
71
+
72
+ /**
73
+ * @title: 商品数量角标
74
+ * @returns {*}
75
+ * @Author: Arthur
76
+ * @Date: 2025-08-08 10:26
77
+ */
78
+
79
+ var renderNumTag = function renderNumTag() {
80
+ return /*#__PURE__*/React.createElement("div", {
81
+ className: classNames("num-tag")
82
+ }, num < 100 ? num : '99+');
83
+ };
69
84
  var renderImage = function renderImage() {
70
85
  if (!isShowImage) return null;
71
86
  if (image) {
@@ -85,7 +100,7 @@ var Header = function Header(props) {
85
100
  className: classNames("".concat(prefix, "product-header"), headerCenterStyle && "".concat(prefix, "product-options-header"))
86
101
  }, showDelete ? /*#__PURE__*/React.createElement(DeleteButton, {
87
102
  onDelete: onDelete
88
- }) : null, renderImage(), id ? /*#__PURE__*/React.createElement("div", {
103
+ }) : null, renderNumTag(), renderImage(), id ? /*#__PURE__*/React.createElement("div", {
89
104
  className: classNames("".concat(prefix, "product-right-wrap"), _defineProperty({}, "".concat(prefix, "product-right-wrap-stretch"), isShowEditProduct))
90
105
  }, /*#__PURE__*/React.createElement("div", {
91
106
  className: "".concat(prefix, "product-title")
@@ -6,6 +6,26 @@
6
6
  align-items: center;
7
7
  gap: 8px;
8
8
  padding-right: 0 !important;
9
+
10
+ .num-tag {
11
+ background-color: #7f56da;
12
+ position: absolute;
13
+ left: 0;
14
+ top: 0;
15
+ border-radius: 12px;
16
+ min-width: 24px;
17
+ height: 24px;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ z-index: 1;
22
+
23
+ color: var(--Base-White, #fff);
24
+ font-size: 16px;
25
+ font-style: normal;
26
+ font-weight: 600;
27
+ line-height: 16px;
28
+ }
9
29
  }
10
30
 
11
31
  &-product-options-header {
@@ -24,8 +44,8 @@
24
44
  height: 64px;
25
45
  flex-shrink: 0;
26
46
  border-radius: 8px;
27
- background-color: #DEDEDE;
28
- color: #7E7E7E;
47
+ background-color: #dedede;
48
+ color: #7e7e7e;
29
49
  display: flex;
30
50
  align-items: center;
31
51
  justify-content: center;
@@ -69,4 +89,4 @@
69
89
  font-weight: 400;
70
90
  line-height: 20px;
71
91
  }
72
- }
92
+ }
@@ -143,7 +143,9 @@ var SelectHolderModal = function SelectHolderModal(props) {
143
143
  size: "large",
144
144
  onClick: onClose,
145
145
  className: "select-holder-modal-cancel-button"
146
- }, locales.getText('pisell2.product.card.add.holder.modal.cancel'))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
146
+ }, locales.getText('pisell2.product.card.add.holder.modal.cancel'))), /*#__PURE__*/React.createElement("div", {
147
+ className: "select-holder-modal-footer-right"
148
+ }, /*#__PURE__*/React.createElement(Button, {
147
149
  size: "large",
148
150
  onClick: handleClear,
149
151
  className: "select-holder-modal-clear-button"
@@ -35,5 +35,8 @@
35
35
  .select-holder-modal-clear-button {
36
36
  width: 132px;
37
37
  }
38
+ .select-holder-modal-footer-right {
39
+ display: flex;
40
+ }
38
41
  }
39
42
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
4
3
  export default Time;
@@ -31,6 +31,7 @@ export default {
31
31
  },
32
32
  'pisell2.product.card.add.holder.modal.title.1': "Please Select",
33
33
  'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
34
+ if (hour === 0 && minute === 0) return "".concat(minute, "min");
34
35
  return "".concat(hour > 0 ? "".concat(hour, "h") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "min") : '');
35
36
  },
36
37
  'pisell2.product.card.sales': 'Sales',
@@ -72,6 +73,7 @@ export default {
72
73
  },
73
74
  'pisell2.product.card.add.holder.modal.title.1': "\u8BF7\u9009\u62E9",
74
75
  'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
76
+ if (hour === 0 && minute === 0) return "".concat(minute, "\u5206\u949F");
75
77
  return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u65F6") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u949F") : '');
76
78
  },
77
79
  'pisell2.product.card.sales': '销售',
@@ -113,6 +115,7 @@ export default {
113
115
  },
114
116
  'pisell2.product.card.add.holder.modal.title.1': "\u8ACB\u9078\u64C7",
115
117
  'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
118
+ if (hour === 0 && minute === 0) return "".concat(minute, "\u5206\u9418");
116
119
  return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u6642") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u9418") : '');
117
120
  },
118
121
  'pisell2.product.card.sales': '銷售',
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type ColumnsSettingProps = {
3
2
  value?: Record<string, any>[];
4
3
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ExportImportType } from '../../../types';
3
2
  import './index.less';
4
3
  declare type ExportImportProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, ModeType } from "../../../types";
3
2
  import "./index.less";
4
3
  declare type GallerySettingProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceGroupType } from "../../../types";
3
2
  declare type GroupProps = {
4
3
  setting: DataSourceGroupType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterType } from "../../filter/types";
3
2
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
3
2
  declare type CoverProps = {
4
3
  cover?: GallerySettingType["cover"];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  declare const Show: (props: FieldPropsType) => JSX.Element;
4
3
  export default Show;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface Version {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AppVersionControlProps } from './types';
3
2
  import './index.less';
4
3
  declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
3
2
  export default DataSourceImage;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceQRCode: (props: any) => JSX.Element;
3
2
  export default DataSourceQRCode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface BaseFilterItem {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Drawer } from 'antd';
3
2
  import { OperationItem } from '../type';
4
3
  declare const useDrawerState: (operationContent?: {
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "large" | "middle";
73
+ openContentSize: "small" | "middle" | "large";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatePicker: (props: any) => JSX.Element;
3
2
  export default DatePicker;
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
35
35
  var import_icons = require("@ant-design/icons");
36
36
  var import_react = __toESM(require("react"));
37
37
  var MyIcon = (0, import_icons.createFromIconfontCN)({
38
- scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.6.js"
38
+ scriptUrl: "https://static.pisellcdn.com/pisell2iconfont1.8.js"
39
39
  // 在 iconfont.cn 上生成
40
40
  });
41
41
  var IconFont = (props) => {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd/es/input-number';
3
2
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
4
3
  value?: number;
@@ -86,7 +86,18 @@ var index = (props) => {
86
86
  onCancel: () => setShowModal(false),
87
87
  className: `${clsPrefix}-all-items-modal`
88
88
  },
89
- /* @__PURE__ */ import_react.default.createElement("div", { style: { padding: "10px 0", display: "flex", flexDirection: "column", gap: 12 } }, dataSource.map(renderVoucherItem))
89
+ /* @__PURE__ */ import_react.default.createElement(
90
+ "div",
91
+ {
92
+ style: {
93
+ padding: "10px 0",
94
+ display: "flex",
95
+ flexDirection: "column",
96
+ gap: 12
97
+ }
98
+ },
99
+ dataSource.map(renderVoucherItem)
100
+ )
90
101
  );
91
102
  };
92
103
  const renderMixedMode = () => {
@@ -96,9 +107,21 @@ var index = (props) => {
96
107
  };
97
108
  const renderModalMode = () => {
98
109
  const sortList = (mixedSort == null ? void 0 : mixedSort(dataSource)) || dataSource;
99
- return /* @__PURE__ */ import_react.default.createElement("div", { style: { padding: "10px 0", display: "flex", flexDirection: "column", gap: 12 } }, sortList.map(renderVoucherItem));
110
+ if (sortList.length === 0) return null;
111
+ return /* @__PURE__ */ import_react.default.createElement(
112
+ "div",
113
+ {
114
+ style: {
115
+ padding: "10px 0",
116
+ display: "flex",
117
+ flexDirection: "column",
118
+ gap: 12
119
+ }
120
+ },
121
+ sortList.map(renderVoucherItem)
122
+ );
100
123
  };
101
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !props.isInModal ? renderModal() : null, /* @__PURE__ */ import_react.default.createElement(
124
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !props.isInModal ? renderModal() : null, dataSource.length > 0 ? /* @__PURE__ */ import_react.default.createElement(
102
125
  import__.PisellCard,
103
126
  {
104
127
  padding: 8,
@@ -110,6 +133,6 @@ var index = (props) => {
110
133
  className: clsPrefix
111
134
  },
112
135
  props.isInModal ? renderModalMode() : renderMixedMode()
113
- ));
136
+ ) : null);
114
137
  };
115
138
  var pisellGoodPassCard_default = index;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  export interface IpadModalProps extends PcModalProps {
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PcModalProps } from '../PcModal';
3
2
  import './index.less';
4
3
  export interface MobileModalProps extends PcModalProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import IpadModal from './IpadModal';
3
2
  import MobileModal from './MobileModal';
4
3
  import PcModal from './PcModal';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id: number;
@@ -13,9 +13,15 @@ interface IProps {
13
13
  total?: number;
14
14
  origin_total?: number;
15
15
  num?: number;
16
+ holder_id?: any;
16
17
  };
17
18
  style?: React.CSSProperties;
19
+ /** 作为主商品卡片展示
20
+ * 1. 影响商品数量 tag 的位置
21
+ * 2. isMain 且 type 为 a5,展示holder
22
+ */
18
23
  isMainProduct?: boolean;
24
+ type?: 'a2' | 'a5';
19
25
  }
20
26
  declare const BasicInfo: (props: IProps) => JSX.Element;
21
27
  export default BasicInfo;
@@ -36,10 +36,11 @@ var import_react = __toESM(require("react"));
36
36
  var import_classnames = __toESM(require("classnames"));
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_specs = __toESM(require("../specs"));
39
+ var import_holders = __toESM(require("../holders"));
39
40
  var import__ = require("../../index");
40
41
  var import_index = require("./index.less");
41
42
  var BasicInfo = (props) => {
42
- const { isShowImage, dataSource = {}, style, isMainProduct } = props;
43
+ const { isShowImage, dataSource = {}, style, isMainProduct, type } = props;
43
44
  const {
44
45
  image,
45
46
  bundle,
@@ -50,20 +51,19 @@ var BasicInfo = (props) => {
50
51
  symbol,
51
52
  total = 0,
52
53
  origin_total = 0,
53
- num = 1
54
+ num = 1,
55
+ holder_id
54
56
  } = dataSource;
55
57
  const renderNumTag = () => {
56
- if (num > 1)
57
- return /* @__PURE__ */ import_react.default.createElement(
58
- "div",
59
- {
60
- className: (0, import_classnames.default)(`num-tag`, {
61
- "is-main": isMainProduct
62
- })
63
- },
64
- num < 100 ? num : "99+"
65
- );
66
- return null;
58
+ return /* @__PURE__ */ import_react.default.createElement(
59
+ "div",
60
+ {
61
+ className: (0, import_classnames.default)(`num-tag`, {
62
+ "is-main": isMainProduct
63
+ })
64
+ },
65
+ num < 100 ? num : "99+"
66
+ );
67
67
  };
68
68
  const hasSpecs = (bundle == null ? void 0 : bundle.length) || (options == null ? void 0 : options.length) || product_option_string;
69
69
  const renderImage = () => {
@@ -74,6 +74,9 @@ var BasicInfo = (props) => {
74
74
  const displayText = name ? name.slice(0, 2) : "";
75
75
  return /* @__PURE__ */ import_react.default.createElement("div", { className: `product-cover-text` }, displayText);
76
76
  };
77
- return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), (!isShowImage || !image && !name) && num > 1 ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 26 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), hasSpecs ? /* @__PURE__ */ import_react.default.createElement(import_specs.default, { dataSource }) : /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, (0, import_utils.formatAmount)(price, 2, symbol))), /* @__PURE__ */ import_react.default.createElement("div", { className: `product-amount` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `total-amont` }, (0, import_utils.formatAmount)(total * num, 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `origin-amount` }, (0, import_utils.formatAmount)(origin_total * num, 2, symbol)) : null));
77
+ if (type === "a5") {
78
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 26 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), !!holder_id || !(holder_id == null ? void 0 : holder_id.length) ? /* @__PURE__ */ import_react.default.createElement(import_holders.default, { dataSource }) : /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, (0, import_utils.formatAmount)(price, 2, symbol))));
79
+ }
80
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `${import__.PREFIX}__basic-info`, style: style || {} }, renderNumTag(), renderImage(), !isShowImage || !image && !name ? /* @__PURE__ */ import_react.default.createElement("div", { style: { width: 26 } }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-info` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `product-name` }, name), hasSpecs ? /* @__PURE__ */ import_react.default.createElement(import_specs.default, { dataSource }) : /* @__PURE__ */ import_react.default.createElement("div", { className: `product-price` }, (0, import_utils.formatAmount)(price, 2, symbol))), /* @__PURE__ */ import_react.default.createElement("div", { className: `product-amount` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `total-amont` }, (0, import_utils.formatAmount)(total * num, 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /* @__PURE__ */ import_react.default.createElement("div", { className: `origin-amount` }, (0, import_utils.formatAmount)(origin_total * num, 2, symbol)) : null));
78
81
  };
79
82
  var basicInfo_default = BasicInfo;