@zgfe/business-lib 1.0.21-cdp.23 → 1.0.21-cdp.26

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.
@@ -40,7 +40,7 @@ export default (function () {
40
40
  }, /*#__PURE__*/React.createElement(Form, {
41
41
  initialValues: {
42
42
  time: {
43
- day: [4, 8, 29, 32],
43
+ day: [],
44
44
  time: '02:19:33',
45
45
  unit: 3
46
46
  }
@@ -14,6 +14,7 @@ interface Value {
14
14
  declare const BizCycleTime: React.FC<{
15
15
  value?: Value;
16
16
  multiple?: boolean;
17
+ placeholder?: string;
17
18
  onChange?: (val: Value) => void;
18
19
  size?: SizeType;
19
20
  }>;
@@ -165,6 +165,7 @@ var BizCycleTime = function BizCycleTime(props) {
165
165
  }), unit.value === CycleTimeUnit.day && /*#__PURE__*/React.createElement(DatePicker.TimePicker, {
166
166
  className: "".concat(classPrefix, "-hour"),
167
167
  size: size,
168
+ placeholder: props.placeholder,
168
169
  defaultValue: time ? moment(time, 'hh:mm:ss') : undefined,
169
170
  onChange: function onChange(time) {
170
171
  setTime(time === null || time === void 0 ? void 0 : time.format('hh:mm:ss'));
@@ -177,10 +178,12 @@ var BizCycleTime = function BizCycleTime(props) {
177
178
  multiple: multiple,
178
179
  className: "".concat(classPrefix, "-day"),
179
180
  defaultValue: day,
181
+ placeholder: props.placeholder,
180
182
  onChange: function onChange(v) {
181
183
  setDay(v);
182
184
  }
183
185
  }), unit.value === CycleTimeUnit.month && /*#__PURE__*/React.createElement(MonthDay, {
186
+ placeholder: props.placeholder,
184
187
  defaultValue: day,
185
188
  onChange: setDayList
186
189
  }));
@@ -6,6 +6,7 @@ declare const MonthDay: React.FC<{
6
6
  size?: SizeType;
7
7
  className?: string;
8
8
  defaultValue?: BaseOption<number>[];
9
+ placeholder?: string;
9
10
  onChange?: (days: BaseOption<number>[]) => void;
10
11
  }>;
11
12
  export default MonthDay;
@@ -104,7 +104,7 @@ var MonthDay = function MonthDay(props) {
104
104
  }, /*#__PURE__*/React.createElement("div", {
105
105
  className: "".concat(classPrefix, "-wrapper")
106
106
  }, /*#__PURE__*/React.createElement("div", {
107
- className: "".concat(classPrefix, "-handle ").concat(props.size)
107
+ className: "".concat(classPrefix, "-handle ").concat(props.size, " ").concat(!chosenDayList.length ? "holder" : '')
108
108
  }, /*#__PURE__*/React.createElement("div", {
109
109
  className: "".concat(classPrefix, "-val")
110
110
  }, chosenDayList.map(function (item) {
@@ -115,7 +115,9 @@ var MonthDay = function MonthDay(props) {
115
115
  onDelMonthDay(item);
116
116
  }
117
117
  }, item.label);
118
- })), /*#__PURE__*/React.createElement(IconFont, {
118
+ }), !chosenDayList.length && /*#__PURE__*/React.createElement("span", {
119
+ className: "".concat(classPrefix, "-holder")
120
+ }, props.placeholder || '请选择')), /*#__PURE__*/React.createElement(IconFont, {
119
121
  type: "xiangxia"
120
122
  }))));
121
123
  };
@@ -5,7 +5,7 @@
5
5
  width: 129px;
6
6
  }
7
7
  &-day {
8
- width: 210px;
8
+ width: 280px;
9
9
  vertical-align: top;
10
10
  &.multi {
11
11
  width: 470px;
@@ -19,6 +19,21 @@
19
19
  .bsicon {
20
20
  flex: none;
21
21
  }
22
+ &.holder {
23
+ padding: 0 @padding-xs;
24
+ &.large {
25
+ line-height: @height-lg;
26
+ }
27
+ &.middle {
28
+ line-height: @height-base;
29
+ }
30
+ &.small {
31
+ line-height: @height-sm;
32
+ }
33
+ }
34
+ }
35
+ &-holder {
36
+ color: @input-placeholder-color;
22
37
  }
23
38
  &-val {
24
39
  flex: 1;
@@ -50,7 +65,8 @@
50
65
  text-align: center;
51
66
  border-radius: 100%;
52
67
  &.lastday {
53
- .__default-hover();
68
+ color: @primary-color;
69
+ font-size: @font-size-sm;
54
70
  }
55
71
  }
56
72
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IconFontProps } from '@ant-design/icons/lib/components/IconFont';
3
+ import '../assets/iconfont/iconfont.css';
3
4
  interface Props extends IconFontProps {
4
5
  family?: string;
5
6
  size?: number;
@@ -11,6 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
12
 
13
13
  import React, { useMemo } from 'react';
14
+ import '../assets/iconfont/iconfont.css';
14
15
 
15
16
  var IconFont = function IconFont(props) {
16
17
  var className = props.className,
@@ -67,7 +67,6 @@ var BizSelect = function BizSelect(props) {
67
67
  setWidth((boxRef === null || boxRef === void 0 ? void 0 : (_boxRef$current = boxRef.current) === null || _boxRef$current === void 0 ? void 0 : _boxRef$current.width) || 200);
68
68
 
69
69
  if (props.defaultValue) {
70
- console.log('>>>>>>初始化参数', props.defaultValue, getValue(props.defaultValue));
71
70
  setCurrent(getValue(props.defaultValue));
72
71
  }
73
72
 
@@ -8,6 +8,9 @@
8
8
 
9
9
  &.disable {
10
10
  .__disable();
11
+ .bsicon {
12
+ color: @disabled-color;
13
+ }
11
14
  }
12
15
 
13
16
  .__select-default();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.21-cdp.23",
3
+ "version": "1.0.21-cdp.26",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -58,5 +58,5 @@
58
58
  "react": "^16.12.0 || ^17.0.0",
59
59
  "yorkie": "^2.0.0"
60
60
  },
61
- "gitHead": "9f02adda4e59080b6be0b198794640af485b95bf"
61
+ "gitHead": "dbc273e27fa3890a325a22e415ea5054c85add28"
62
62
  }