component-shipinlv 1.0.15 → 1.0.16

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.
@@ -30,10 +30,12 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
30
30
  normalVideoRate: 1,
31
31
  normalVideoRateType: 'hour',
32
32
  normalDayMaxCount: 1,
33
+ normalVideoKindRateType: '',
33
34
  startTime: null,
34
35
  salesVideoRate: 2,
35
36
  salesVideoRateType: 'hour',
36
37
  salesDayMaxCount: 2,
38
+ salesVideoKindRateType: '',
37
39
  videoList: []
38
40
  }),
39
41
  _useState2 = _slicedToArray(_useState, 2),
@@ -382,7 +384,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
382
384
  }),
383
385
  addonAfter: "\u6761\u89C6\u9891"
384
386
  })
385
- }), /*#__PURE__*/_jsx(Form.Item, {
387
+ }), formData.normalVideoRateType === 'hour' && /*#__PURE__*/_jsx(Form.Item, {
386
388
  label: "\u6570\u91CF\u9650\u5236",
387
389
  name: "normalDayMaxCount",
388
390
  children: /*#__PURE__*/_jsx(InputNumber, {
@@ -392,6 +394,18 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
392
394
  addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
393
395
  addonAfter: "\u6761\u89C6\u9891"
394
396
  })
397
+ }), /*#__PURE__*/_jsx(Form.Item, {
398
+ label: "\u9891\u7387\u65B9\u5F0F",
399
+ name: "normalVideoKindRateType",
400
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
401
+ children: [/*#__PURE__*/_jsx(Radio, {
402
+ value: "",
403
+ children: "\u65F6\u95F4\u5E73\u5747\u4E00\u4F1A\u53D1\u4E00\u4E2A"
404
+ }), /*#__PURE__*/_jsx(Radio, {
405
+ value: "now",
406
+ children: "\u4E00\u6B21\u6027\u5168\u53D1\u5E03"
407
+ })]
408
+ })
395
409
  }), /*#__PURE__*/_jsxs(Divider, {
396
410
  orientation: "left",
397
411
  children: [/*#__PURE__*/_jsx(ShoppingOutlined, {
@@ -421,7 +435,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
421
435
  }),
422
436
  addonAfter: "\u6761\u89C6\u9891"
423
437
  })
424
- }), /*#__PURE__*/_jsx(Form.Item, {
438
+ }), formData.salesVideoRateType === 'hour' && /*#__PURE__*/_jsx(Form.Item, {
425
439
  label: "\u6570\u91CF\u9650\u5236",
426
440
  name: "salesDayMaxCount",
427
441
  children: /*#__PURE__*/_jsx(InputNumber, {
@@ -431,6 +445,18 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
431
445
  addonBefore: "\u6BCF\u5929\u6700\u591A\u53D1\u5E03",
432
446
  addonAfter: "\u6761\u89C6\u9891"
433
447
  })
448
+ }), /*#__PURE__*/_jsx(Form.Item, {
449
+ label: "\u9891\u7387\u65B9\u5F0F",
450
+ name: "salesVideoKindRateType",
451
+ children: /*#__PURE__*/_jsxs(Radio.Group, {
452
+ children: [/*#__PURE__*/_jsx(Radio, {
453
+ value: "",
454
+ children: "\u65F6\u95F4\u5E73\u5747\u4E00\u4F1A\u53D1\u4E00\u4E2A"
455
+ }), /*#__PURE__*/_jsx(Radio, {
456
+ value: "now",
457
+ children: "\u4E00\u6B21\u6027\u5168\u53D1\u5E03"
458
+ })]
459
+ })
434
460
  }), /*#__PURE__*/_jsx(Divider, {
435
461
  orientation: "left",
436
462
  children: "\u5176\u4ED6\u8BBE\u7F6E"
@@ -440,7 +466,7 @@ var VideoPublishCreateTask = function VideoPublishCreateTask(_ref) {
440
466
  children: /*#__PURE__*/_jsx(DatePicker, {
441
467
  showTime: true,
442
468
  disabledDate: function disabledDate(e) {
443
- return e.valueOf() + 86400e3 < Date.now();
469
+ return e.valueOf() + 86400e3 < Date.now() || e.valueOf() > Date.now() + 86400e3 * 14;
444
470
  },
445
471
  onChange: function onChange(value, dateString) {
446
472
  console.log('Selected Time: ', value);
@@ -2,6 +2,7 @@
2
2
  declare namespace VideoPublish {
3
3
  type ProductType = 'long-video-sales';
4
4
  type VideoKindTag = 'shopping' | 'location' | 'min-app';
5
+ type VideoKindRateType = '' | 'now';
5
6
  interface CreateTaskList {
6
7
  id: number;
7
8
  title: string;
@@ -94,9 +95,11 @@ declare namespace VideoPublish {
94
95
  normalVideoRate: number;
95
96
  normalVideoRateType: 'hour' | 'day';
96
97
  normalDayMaxCount: number;
98
+ normalVideoKindRateType: VideoKindRateType;
97
99
  salesVideoRate: number;
98
100
  salesVideoRateType: 'hour' | 'day';
99
101
  salesDayMaxCount: number;
102
+ salesVideoKindRateType: VideoKindRateType;
100
103
  accountList: string[];
101
104
  startTime: number | null;
102
105
  videoList: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",