assui 2.1.43 → 2.1.44

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.
@@ -73,8 +73,9 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
73
73
  _a = props.rangePickerType,
74
74
  rangePickerType = _a === void 0 ? 'label' : _a,
75
75
  label = props.label,
76
+ showTime = props.showTime,
76
77
  maxScope = props.maxScope,
77
- options = __rest(props, ["customizeTimeList", "radioList", "rangePickerType", "label", "maxScope"]);
78
+ options = __rest(props, ["customizeTimeList", "radioList", "rangePickerType", "label", "showTime", "maxScope"]);
78
79
 
79
80
  var _b = __read(useControllableValue(props), 2),
80
81
  date = _b[0],
@@ -141,8 +142,8 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
141
142
  start = _c[0],
142
143
  end = _c[1];
143
144
 
144
- var nextStartDate = (_a = start === null || start === void 0 ? void 0 : start.clone().startOf('day')) !== null && _a !== void 0 ? _a : null;
145
- var nextEndDate = (_b = end === null || end === void 0 ? void 0 : end.clone().endOf('day')) !== null && _b !== void 0 ? _b : null;
145
+ var nextStartDate = (_a = showTime ? start === null || start === void 0 ? void 0 : start.clone() : start === null || start === void 0 ? void 0 : start.clone().startOf('day')) !== null && _a !== void 0 ? _a : null;
146
+ var nextEndDate = (_b = showTime ? end === null || end === void 0 ? void 0 : end.clone() : end === null || end === void 0 ? void 0 : end.clone().endOf('day')) !== null && _b !== void 0 ? _b : null;
146
147
 
147
148
  if (!nextStartDate && !nextEndDate) {
148
149
  return setDate(undefined);
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { RangePickerProps } from 'antd/lib/date-picker';
3
3
  export interface LabelRangePickerProps extends Omit<RangePickerProps, 'label'> {
4
4
  label: React.ReactNode;
5
+ showTime?: any;
5
6
  }
6
7
  declare const LabelDatePicker: React.FC<LabelRangePickerProps>;
7
8
  export default LabelDatePicker;
@@ -80,7 +80,6 @@ var LabelDatePicker = function LabelDatePicker(props) {
80
80
  };
81
81
 
82
82
  var handleOpenChange = function handleOpenChange(nextOpen) {
83
- console.log('--');
84
83
  onOpenChange(nextOpen);
85
84
  };
86
85
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface LabelTextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'type' | 'onChange' | 'onFocus' | 'onBlur'> {
2
+ export interface LabelTextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'type' | 'onChange' | 'onFocus' | 'onBlur' | 'style'> {
3
3
  /** 自定义class */
4
4
  className?: string;
5
5
  /** label 标签的文本 */
@@ -136,8 +136,9 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
136
136
  _a = props.rangePickerType,
137
137
  rangePickerType = _a === void 0 ? 'label' : _a,
138
138
  label = props.label,
139
+ showTime = props.showTime,
139
140
  maxScope = props.maxScope,
140
- options = __rest(props, ["customizeTimeList", "radioList", "rangePickerType", "label", "maxScope"]);
141
+ options = __rest(props, ["customizeTimeList", "radioList", "rangePickerType", "label", "showTime", "maxScope"]);
141
142
 
142
143
  var _b = __read((0, useControllableValue_1["default"])(props), 2),
143
144
  date = _b[0],
@@ -204,8 +205,8 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
204
205
  start = _c[0],
205
206
  end = _c[1];
206
207
 
207
- var nextStartDate = (_a = start === null || start === void 0 ? void 0 : start.clone().startOf('day')) !== null && _a !== void 0 ? _a : null;
208
- var nextEndDate = (_b = end === null || end === void 0 ? void 0 : end.clone().endOf('day')) !== null && _b !== void 0 ? _b : null;
208
+ var nextStartDate = (_a = showTime ? start === null || start === void 0 ? void 0 : start.clone() : start === null || start === void 0 ? void 0 : start.clone().startOf('day')) !== null && _a !== void 0 ? _a : null;
209
+ var nextEndDate = (_b = showTime ? end === null || end === void 0 ? void 0 : end.clone() : end === null || end === void 0 ? void 0 : end.clone().endOf('day')) !== null && _b !== void 0 ? _b : null;
209
210
 
210
211
  if (!nextStartDate && !nextEndDate) {
211
212
  return setDate(undefined);
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { RangePickerProps } from 'antd/lib/date-picker';
3
3
  export interface LabelRangePickerProps extends Omit<RangePickerProps, 'label'> {
4
4
  label: React.ReactNode;
5
+ showTime?: any;
5
6
  }
6
7
  declare const LabelDatePicker: React.FC<LabelRangePickerProps>;
7
8
  export default LabelDatePicker;
@@ -98,7 +98,6 @@ var LabelDatePicker = function LabelDatePicker(props) {
98
98
  };
99
99
 
100
100
  var handleOpenChange = function handleOpenChange(nextOpen) {
101
- console.log('--');
102
101
  onOpenChange(nextOpen);
103
102
  };
104
103
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface LabelTextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'type' | 'onChange' | 'onFocus' | 'onBlur'> {
2
+ export interface LabelTextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'type' | 'onChange' | 'onFocus' | 'onBlur' | 'style'> {
3
3
  /** 自定义class */
4
4
  className?: string;
5
5
  /** label 标签的文本 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.1.43",
3
+ "version": "2.1.44",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -34,7 +34,7 @@
34
34
  "@tinymce/tinymce-react": "^4.0.0",
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
36
  "@types/react-resizable": "^3.0.0",
37
- "a-icons": "^1.0.81",
37
+ "a-icons": "^1.0.82",
38
38
  "aa-utils": "^2.0.35",
39
39
  "ahooks": "^3.0.8",
40
40
  "bignumber.js": "^9.0.1",
@@ -73,5 +73,5 @@
73
73
  "node": ">=10.0.0"
74
74
  },
75
75
  "license": "MIT",
76
- "gitHead": "b0a0e42e40dc05d01770b43640169dd051bd60f3"
76
+ "gitHead": "469a42aac8b3d124e10063cf24aafd70222a613e"
77
77
  }