@pisell/materials 1.0.419 → 1.0.421

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 (89) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +19 -19
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +20 -20
  11. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +10 -0
  12. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.js +58 -0
  13. package/es/components/pisellAdjustPrice/index.d.ts +10 -0
  14. package/es/components/pisellAdjustPrice/index.js +136 -0
  15. package/es/components/pisellAdjustPrice/index.less +30 -0
  16. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
  17. package/es/components/table/Gallery/components/GalleryItem/index.js +10 -3
  18. package/es/components/table/Gallery/components/GalleryItem/index.less +1 -0
  19. package/es/components/table/Gallery/index.js +12 -3
  20. package/es/components/table/types.d.ts +2 -0
  21. package/es/components/virtual-keyboard/Amount/index.d.ts +21 -0
  22. package/es/components/virtual-keyboard/Amount/index.js +61 -0
  23. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +12 -0
  24. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +22 -0
  25. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +18 -0
  26. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +19 -0
  27. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +210 -0
  28. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.less +9 -0
  29. package/es/components/virtual-keyboard/Keyboard/index.d.ts +8 -6
  30. package/es/components/virtual-keyboard/Keyboard/index.js +59 -15
  31. package/es/components/virtual-keyboard/Keyboard/index.less +35 -24
  32. package/es/components/virtual-keyboard/Number/index.d.ts +14 -0
  33. package/es/components/virtual-keyboard/Number/index.js +35 -0
  34. package/es/components/virtual-keyboard/VirtualInput/index.d.ts +9 -0
  35. package/es/components/virtual-keyboard/VirtualInput/index.js +40 -0
  36. package/es/components/virtual-keyboard/VirtualInput/index.less +46 -0
  37. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +6 -3
  38. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +27 -20
  39. package/es/index.d.ts +4 -0
  40. package/es/index.js +5 -1
  41. package/es/locales/en-US.d.ts +6 -0
  42. package/es/locales/en-US.js +8 -1
  43. package/es/locales/zh-CN.d.ts +6 -0
  44. package/es/locales/zh-CN.js +8 -1
  45. package/es/locales/zh-TW.d.ts +6 -0
  46. package/es/locales/zh-TW.js +8 -1
  47. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +10 -0
  48. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.js +80 -0
  49. package/lib/components/pisellAdjustPrice/index.d.ts +10 -0
  50. package/lib/components/pisellAdjustPrice/index.js +142 -0
  51. package/lib/components/pisellAdjustPrice/index.less +30 -0
  52. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.less +1 -1
  53. package/lib/components/table/Gallery/components/GalleryItem/index.js +18 -4
  54. package/lib/components/table/Gallery/components/GalleryItem/index.less +1 -0
  55. package/lib/components/table/Gallery/index.js +12 -2
  56. package/lib/components/table/types.d.ts +2 -0
  57. package/lib/components/virtual-keyboard/Amount/index.d.ts +21 -0
  58. package/lib/components/virtual-keyboard/Amount/index.js +92 -0
  59. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +12 -0
  60. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.js +46 -0
  61. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.less +18 -0
  62. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +19 -0
  63. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +242 -0
  64. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.less +9 -0
  65. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +8 -6
  66. package/lib/components/virtual-keyboard/Keyboard/index.js +51 -4
  67. package/lib/components/virtual-keyboard/Keyboard/index.less +35 -24
  68. package/lib/components/virtual-keyboard/Number/index.d.ts +14 -0
  69. package/lib/components/virtual-keyboard/Number/index.js +65 -0
  70. package/lib/components/virtual-keyboard/VirtualInput/index.d.ts +9 -0
  71. package/lib/components/virtual-keyboard/VirtualInput/index.js +62 -0
  72. package/lib/components/virtual-keyboard/VirtualInput/index.less +46 -0
  73. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +6 -3
  74. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +20 -11
  75. package/lib/index.d.ts +4 -0
  76. package/lib/index.js +12 -0
  77. package/lib/locales/en-US.d.ts +6 -0
  78. package/lib/locales/en-US.js +8 -1
  79. package/lib/locales/zh-CN.d.ts +6 -0
  80. package/lib/locales/zh-CN.js +8 -1
  81. package/lib/locales/zh-TW.d.ts +6 -0
  82. package/lib/locales/zh-TW.js +8 -1
  83. package/lowcode/pisell-adjust-price/meta.ts +58 -0
  84. package/lowcode/pisell-adjust-price/snippets.ts +10 -0
  85. package/lowcode/pisell-adjust-price-input-number/meta.ts +245 -0
  86. package/lowcode/pisell-number-keyboard/meta.ts +98 -0
  87. package/lowcode/pisell-price-keyboard/meta.ts +174 -0
  88. package/lowcode/table/meta.ts +10 -0
  89. package/package.json +1 -1
@@ -0,0 +1,65 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/virtual-keyboard/Number/index.tsx
30
+ var Number_exports = {};
31
+ __export(Number_exports, {
32
+ default: () => Number_default
33
+ });
34
+ module.exports = __toCommonJS(Number_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_ahooks = require("ahooks");
37
+ var import_BaseNumberKeyboard = __toESM(require("../BaseNumberKeyboard"));
38
+ var Number = (props) => {
39
+ const {
40
+ min,
41
+ max,
42
+ doneText,
43
+ resetText,
44
+ defaultValue,
45
+ placeholder,
46
+ onEnter
47
+ } = props;
48
+ const [value, setValue] = (0, import_ahooks.useControllableValue)(props, {
49
+ defaultValue: defaultValue || ""
50
+ });
51
+ return /* @__PURE__ */ import_react.default.createElement(
52
+ import_BaseNumberKeyboard.default,
53
+ {
54
+ max,
55
+ min,
56
+ value,
57
+ onChange: setValue,
58
+ placeholder,
59
+ doneText,
60
+ resetText,
61
+ onEnter
62
+ }
63
+ );
64
+ };
65
+ var Number_default = Number;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface VirtualInputProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ value?: string;
5
+ autoFocus?: boolean;
6
+ placeholder?: string;
7
+ }
8
+ declare const VirtualInput: (props: VirtualInputProps) => React.JSX.Element;
9
+ export default VirtualInput;
@@ -0,0 +1,62 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/virtual-keyboard/VirtualInput/index.tsx
30
+ var VirtualInput_exports = {};
31
+ __export(VirtualInput_exports, {
32
+ default: () => VirtualInput_default
33
+ });
34
+ module.exports = __toCommonJS(VirtualInput_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_classnames = __toESM(require("classnames"));
37
+ var import_index = require("./index.less");
38
+ var VirtualInput = (props) => {
39
+ const { value, autoFocus, placeholder = "" } = props;
40
+ const [isFocus, setIsFocus] = (0, import_react.useState)(autoFocus);
41
+ const onFocus = () => {
42
+ setIsFocus(true);
43
+ };
44
+ const onBlur = () => {
45
+ setIsFocus(false);
46
+ };
47
+ return /* @__PURE__ */ import_react.default.createElement(
48
+ "div",
49
+ {
50
+ onFocus,
51
+ onBlur,
52
+ tabIndex: 0,
53
+ className: (0, import_classnames.default)("pisell-virtual-input-value", {
54
+ "pisell-virtual-input-value-focus": isFocus
55
+ })
56
+ },
57
+ value,
58
+ !value && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-virtual-input-placeholder" }, placeholder),
59
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-virtual-input-caret-container" }, isFocus && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-virtual-input-caret" }))
60
+ );
61
+ };
62
+ var VirtualInput_default = VirtualInput;
@@ -0,0 +1,46 @@
1
+ .pisell-virtual-input-value {
2
+ width: 100%;
3
+ min-width: 80px;
4
+ height: 100%;
5
+ display: flex;
6
+ align-items: center;
7
+ .pisell-virtual-input-caret-container {
8
+ height: 100%;
9
+ display: flex;
10
+ align-items: center;
11
+ .pisell-virtual-input-caret {
12
+ height: 40px;
13
+ width: 4px;
14
+ position: relative;
15
+ background: var(--Blue-600, #1570EF);
16
+ }
17
+ }
18
+ .pisell-virtual-input-placeholder {
19
+ color: var(--Gray-300, #D0D5DD);
20
+ }
21
+ }
22
+
23
+ .pisell-virtual-input-value-focus {
24
+ .pisell-virtual-input-caret {
25
+ display: block;
26
+ animation-name: pisell-caret-blink;
27
+ animation-duration: 1s;
28
+ animation-timing-function: linear;
29
+ animation-iteration-count: infinite;
30
+ }
31
+ }
32
+
33
+ @keyframes pisell-caret-blink {
34
+ from {
35
+ opacity: 1;
36
+ }
37
+ 60% {
38
+ opacity: 1;
39
+ }
40
+ 80% {
41
+ opacity: 0;
42
+ }
43
+ to {
44
+ opacity: 0;
45
+ }
46
+ }
@@ -1,9 +1,12 @@
1
- import React from "react";
2
- import { InputProps } from "antd";
3
- import "./index.less";
1
+ import React from 'react';
2
+ import { InputProps } from 'antd';
3
+ import './index.less';
4
4
  export interface VirtualKeyInputProps extends InputProps {
5
5
  previewValue?: string;
6
6
  renderInput?: (props: any) => any;
7
+ showDelete?: boolean;
8
+ onValueSelect?: (selected: boolean) => void;
9
+ defaultSelect?: boolean;
7
10
  }
8
11
  declare const VirtualKeyInput: (props: VirtualKeyInputProps) => React.JSX.Element;
9
12
  export default VirtualKeyInput;
@@ -40,23 +40,32 @@ var import_classnames = __toESM(require("classnames"));
40
40
  var import_index = require("./index.less");
41
41
  var list = ["Backspace"];
42
42
  var VirtualKeyInput = (props) => {
43
- const { previewValue = props.value, value } = props;
44
- const [select, setSelect] = (0, import_react.useState)(false);
43
+ var _a;
44
+ const {
45
+ previewValue = props.value,
46
+ value,
47
+ showDelete = true,
48
+ onValueSelect,
49
+ defaultSelect
50
+ } = props;
51
+ const [select, setSelect] = (0, import_react.useState)(defaultSelect ?? false);
45
52
  (0, import_ahooks.useEventListener)("keydown", (ev) => {
46
53
  if (list.includes(ev.key)) {
47
54
  _onDelete == null ? void 0 : _onDelete();
48
55
  }
49
56
  });
50
- (0, import_react.useEffect)(() => {
51
- if (value) {
52
- setSelect(false);
53
- }
57
+ const handleSelectChange = (selected) => {
58
+ onValueSelect == null ? void 0 : onValueSelect(selected);
59
+ setSelect(selected);
60
+ };
61
+ (0, import_ahooks.useUpdateEffect)(() => {
62
+ handleSelectChange(false);
54
63
  }, [value]);
55
64
  const _onDelete = () => {
56
- var _a;
65
+ var _a2;
57
66
  if (select) {
58
- (_a = props.onChange) == null ? void 0 : _a.call(props, { target: { value: "" } });
59
- setSelect(false);
67
+ (_a2 = props.onChange) == null ? void 0 : _a2.call(props, { target: { value: "" } });
68
+ handleSelectChange(false);
60
69
  return;
61
70
  }
62
71
  let _val = props.value + "";
@@ -71,7 +80,7 @@ var VirtualKeyInput = (props) => {
71
80
  }),
72
81
  onClick: () => {
73
82
  if (value) {
74
- setSelect(!select);
83
+ handleSelectChange(!select);
75
84
  }
76
85
  }
77
86
  },
@@ -85,6 +94,6 @@ var VirtualKeyInput = (props) => {
85
94
  readOnly: true,
86
95
  value: previewValue
87
96
  }
88
- ), (value == null ? void 0 : value.length) ? /* @__PURE__ */ import_react.default.createElement("div", { className: "virtual-keyboard-input-delete", onClick: _onDelete }, /* @__PURE__ */ import_react.default.createElement(import_Delete.default, { className: "virtual-keyboard-input-delete-icon" })) : null);
97
+ ), ((_a = `${value ?? ""}`) == null ? void 0 : _a.length) && showDelete ? /* @__PURE__ */ import_react.default.createElement("div", { className: "virtual-keyboard-input-delete", onClick: _onDelete }, /* @__PURE__ */ import_react.default.createElement(import_Delete.default, { className: "virtual-keyboard-input-delete-icon" })) : null);
89
98
  };
90
99
  var VirtualKeyInput_default = VirtualKeyInput;
package/lib/index.d.ts CHANGED
@@ -106,3 +106,7 @@ export { globalConfig, default as PisellContext, } from './components/pisell-con
106
106
  export { default as PisellTags } from './components/pisellTags';
107
107
  export { default as PisellStatisticList } from './components/pisellStatisticList';
108
108
  export { default as PisellFloatingPanel } from './components/pisellFloatingPanel';
109
+ export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Amount';
110
+ export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
111
+ export { default as PisellAdjustPrice } from './components/pisellAdjustPrice';
112
+ export { default as PisellAdjustPriceInputNumber } from './components/pisellAdjustPrice/PisellAdjustPriceInputNumber';
package/lib/index.js CHANGED
@@ -74,6 +74,8 @@ __export(src_exports, {
74
74
  Page: () => import_page.default,
75
75
  Pagination: () => import_antd22.Pagination,
76
76
  PickerView: () => import_picker_view.default,
77
+ PisellAdjustPrice: () => import_pisellAdjustPrice.default,
78
+ PisellAdjustPriceInputNumber: () => import_PisellAdjustPriceInputNumber.default,
77
79
  PisellAlert: () => import_pisellAlert.default,
78
80
  PisellCard: () => import_pisellCard.default,
79
81
  PisellCardList: () => import_pisellCardList.default,
@@ -89,6 +91,8 @@ __export(src_exports, {
89
91
  PisellInput: () => import_pisellInput.default,
90
92
  PisellLoading: () => import_pisellLoading.default,
91
93
  PisellModal: () => import_pisellModal.default,
94
+ PisellNumberKeyboard: () => import_Number.default,
95
+ PisellPriceKeyboard: () => import_Amount.default,
92
96
  PisellRow: () => import_pisellRow.default,
93
97
  PisellScan: () => import_pisellScan.default,
94
98
  PisellStatisticList: () => import_pisellStatisticList.default,
@@ -248,6 +252,10 @@ var import_context = __toESM(require("./components/pisell-config-provider/contex
248
252
  var import_pisellTags = __toESM(require("./components/pisellTags"));
249
253
  var import_pisellStatisticList = __toESM(require("./components/pisellStatisticList"));
250
254
  var import_pisellFloatingPanel = __toESM(require("./components/pisellFloatingPanel"));
255
+ var import_Amount = __toESM(require("./components/virtual-keyboard/Amount"));
256
+ var import_Number = __toESM(require("./components/virtual-keyboard/Number"));
257
+ var import_pisellAdjustPrice = __toESM(require("./components/pisellAdjustPrice"));
258
+ var import_PisellAdjustPriceInputNumber = __toESM(require("./components/pisellAdjustPrice/PisellAdjustPriceInputNumber"));
251
259
  // Annotate the CommonJS export names for ESM import in node:
252
260
  0 && (module.exports = {
253
261
  Affix,
@@ -295,6 +303,8 @@ var import_pisellFloatingPanel = __toESM(require("./components/pisellFloatingPan
295
303
  Page,
296
304
  Pagination,
297
305
  PickerView,
306
+ PisellAdjustPrice,
307
+ PisellAdjustPriceInputNumber,
298
308
  PisellAlert,
299
309
  PisellCard,
300
310
  PisellCardList,
@@ -310,6 +320,8 @@ var import_pisellFloatingPanel = __toESM(require("./components/pisellFloatingPan
310
320
  PisellInput,
311
321
  PisellLoading,
312
322
  PisellModal,
323
+ PisellNumberKeyboard,
324
+ PisellPriceKeyboard,
313
325
  PisellRow,
314
326
  PisellScan,
315
327
  PisellStatisticList,
@@ -118,5 +118,11 @@ declare const _default: {
118
118
  'pisell-wallet-pass-card-redeem': string;
119
119
  'pisell-wallet-pass-card-balance': string;
120
120
  'pisell-wallet-pass-card-valid-to': string;
121
+ 'pisell-adjust-price-price-override': string;
122
+ 'pisell-adjust-price-discount': string;
123
+ 'pisell-adjust-price-discount-amount': string;
124
+ 'pisell-adjust-price-discount-percentage': string;
125
+ 'pisell-adjust-price-total-after-discount': string;
126
+ 'pisell-adjust-price-discount-can-be-maximum': string;
121
127
  };
122
128
  export default _default;
@@ -149,5 +149,12 @@ var en_US_default = {
149
149
  "pisell-wallet-pass-card-detail": "Detail",
150
150
  "pisell-wallet-pass-card-redeem": "Redeem",
151
151
  "pisell-wallet-pass-card-balance": "Balance",
152
- "pisell-wallet-pass-card-valid-to": "Valid to"
152
+ "pisell-wallet-pass-card-valid-to": "Valid to",
153
+ // 金额修改组件
154
+ "pisell-adjust-price-price-override": "Price override",
155
+ "pisell-adjust-price-discount": "Discount",
156
+ "pisell-adjust-price-discount-amount": "Amount",
157
+ "pisell-adjust-price-discount-percentage": "Percentage",
158
+ "pisell-adjust-price-total-after-discount": "Total after discount: ",
159
+ "pisell-adjust-price-discount-can-be-maximum": "Discount can be maximum"
153
160
  };
@@ -118,5 +118,11 @@ declare const _default: {
118
118
  'pisell-wallet-pass-card-redeem': string;
119
119
  'pisell-wallet-pass-card-balance': string;
120
120
  'pisell-wallet-pass-card-valid-to': string;
121
+ 'pisell-adjust-price-price-override': string;
122
+ 'pisell-adjust-price-discount': string;
123
+ 'pisell-adjust-price-discount-amount': string;
124
+ 'pisell-adjust-price-discount-percentage': string;
125
+ 'pisell-adjust-price-total-after-discount': string;
126
+ 'pisell-adjust-price-discount-can-be-maximum': string;
121
127
  };
122
128
  export default _default;
@@ -149,5 +149,12 @@ var zh_CN_default = {
149
149
  "pisell-wallet-pass-card-detail": "详情",
150
150
  "pisell-wallet-pass-card-redeem": "兑换",
151
151
  "pisell-wallet-pass-card-balance": "余额",
152
- "pisell-wallet-pass-card-valid-to": "有效期至"
152
+ "pisell-wallet-pass-card-valid-to": "有效期至",
153
+ // 金额修改组件
154
+ "pisell-adjust-price-price-override": "一口价",
155
+ "pisell-adjust-price-discount": "折扣",
156
+ "pisell-adjust-price-discount-amount": "金额",
157
+ "pisell-adjust-price-discount-percentage": "百分比",
158
+ "pisell-adjust-price-total-after-discount": "打折后总价",
159
+ "pisell-adjust-price-discount-can-be-maximum": "折扣最高可达"
153
160
  };
@@ -118,5 +118,11 @@ declare const _default: {
118
118
  'pisell-wallet-pass-card-redeem': string;
119
119
  'pisell-wallet-pass-card-balance': string;
120
120
  'pisell-wallet-pass-card-valid-to': string;
121
+ 'pisell-adjust-price-price-override': string;
122
+ 'pisell-adjust-price-discount': string;
123
+ 'pisell-adjust-price-discount-amount': string;
124
+ 'pisell-adjust-price-discount-percentage': string;
125
+ 'pisell-adjust-price-total-after-discount': string;
126
+ 'pisell-adjust-price-discount-can-be-maximum': string;
121
127
  };
122
128
  export default _default;
@@ -149,5 +149,12 @@ var zh_TW_default = {
149
149
  "pisell-wallet-pass-card-detail": "詳情",
150
150
  "pisell-wallet-pass-card-redeem": "兌換",
151
151
  "pisell-wallet-pass-card-balance": "餘額",
152
- "pisell-wallet-pass-card-valid-to": "有效期至"
152
+ "pisell-wallet-pass-card-valid-to": "有效期至",
153
+ // 金额修改组件
154
+ "pisell-adjust-price-price-override": "一口價",
155
+ "pisell-adjust-price-discount": "折扣",
156
+ "pisell-adjust-price-discount-amount": "金額",
157
+ "pisell-adjust-price-discount-percentage": "百分比",
158
+ "pisell-adjust-price-total-after-discount": "打折后總價",
159
+ "pisell-adjust-price-discount-can-be-maximum": "折扣最高可達"
153
160
  };
@@ -0,0 +1,58 @@
1
+ import snippets from "./snippets";
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: "PisellAdjustPrice",
6
+ title: "卡片",
7
+ category: "数据展示",
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "PisellAdjustPrice",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ props: [
20
+ {
21
+ name: 'defaultValue',
22
+ title: { label: '默认值', tip: '默认值' },
23
+ propType: 'number',
24
+ setter: 'NumberSetter',
25
+ },
26
+ {
27
+ name: 'max',
28
+ title: { label: '最大值', tip: '最大值' },
29
+ propType: 'number',
30
+ setter: 'NumberSetter',
31
+ },
32
+ {
33
+ name: 'min',
34
+ title: { label: '最小值', tip: '最小值' },
35
+ propType: 'number',
36
+ setter: 'NumberSetter',
37
+ },
38
+ {
39
+ name: 'value',
40
+ title: { label: 'value', tip: 'value' },
41
+ propType: 'number',
42
+ setter: 'NumberSetter',
43
+ },
44
+ ],
45
+ configure: {
46
+ component: { isContainer: true },
47
+ supports: {
48
+ style: true,
49
+ events: [
50
+ {
51
+ name: 'onChange',
52
+ template:
53
+ "onChange(value,${extParams}){\nconsole.log('onChange', value);}",
54
+ },
55
+ ],
56
+ },
57
+ },
58
+ };
@@ -0,0 +1,10 @@
1
+ export default [
2
+ {
3
+ title: '金额修改',
4
+ schema: {
5
+ componentName: 'PisellAdjustPrice',
6
+ props: {
7
+ },
8
+ },
9
+ },
10
+ ];