@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.
- package/es/cycleTime/demo/index.js +1 -1
- package/es/cycleTime/index.d.ts +1 -0
- package/es/cycleTime/index.js +3 -0
- package/es/cycleTime/month.d.ts +1 -0
- package/es/cycleTime/month.js +4 -2
- package/es/cycleTime/styles/index.less +1 -1
- package/es/cycleTime/styles/month.less +17 -1
- package/es/icon/iconFont.d.ts +1 -0
- package/es/icon/iconFont.js +1 -0
- package/es/select/index.js +0 -1
- package/es/select/styles/handle.less +3 -0
- package/package.json +2 -2
package/es/cycleTime/index.d.ts
CHANGED
package/es/cycleTime/index.js
CHANGED
|
@@ -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
|
}));
|
package/es/cycleTime/month.d.ts
CHANGED
package/es/cycleTime/month.js
CHANGED
|
@@ -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
|
-
})
|
|
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
|
};
|
|
@@ -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
|
-
|
|
68
|
+
color: @primary-color;
|
|
69
|
+
font-size: @font-size-sm;
|
|
54
70
|
}
|
|
55
71
|
}
|
|
56
72
|
}
|
package/es/icon/iconFont.d.ts
CHANGED
package/es/icon/iconFont.js
CHANGED
|
@@ -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,
|
package/es/select/index.js
CHANGED
|
@@ -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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.0.21-cdp.
|
|
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": "
|
|
61
|
+
"gitHead": "dbc273e27fa3890a325a22e415ea5054c85add28"
|
|
62
62
|
}
|