Skip to content

Commit 36b2d47

Browse files
committed
2 parents 689113b + e39b43b commit 36b2d47

File tree

11 files changed

+13
-14
lines changed

11 files changed

+13
-14
lines changed

components/calendar/Header.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Group, Button } from '../radio';
44
import PropTypes from '../_util/vue-types';
55
import { defaultConfigProvider } from '../config-provider';
66
import { VueNode } from '../_util/type';
7+
import moment from 'moment';
78

89
function getMonthsLocale(value: moment.Moment): string[] {
910
const current = value.clone();

components/date-picker/WeekPicker.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export default defineComponent({
2828
mixins: [BaseMixin],
2929
inheritAttrs: false,
3030
props: initDefaultProps(WeekPickerProps, {
31-
format: 'gggg-wo',
3231
allowClear: true,
3332
}),
3433
setup() {

components/date-picker/index.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,4 @@ DatePicker.install = function(app: App) {
5656
return app;
5757
};
5858

59-
export default DatePicker as typeof DatePicker &
60-
Plugin & {
61-
readonly RangePicker: typeof RangePicker;
62-
readonly MonthPicker: typeof MonthPicker;
63-
readonly WeekPicker: typeof WeekPicker;
64-
};
59+
export default DatePicker as typeof DatePicker & Plugin;

components/date-picker/props.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { PropType } from 'vue';
2+
import moment from 'moment';
23
import PropTypes, { withUndefined } from '../_util/vue-types';
34
import { tuple } from '../_util/type';
45

components/date-picker/utils.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import moment from 'moment';
2+
13
type Value = moment.Moment | undefined | null;
24
type Format = string | string[] | undefined | ((val?: Value) => string | string[] | undefined);
35
export function formatDate(value: Value, format: Format) {

components/select/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ const Select = defineComponent({
215215
getPopupContainer={getPopupContainer || getContextPopupContainer}
216216
dropdownClassName={rcSelectRtlDropDownClassName}
217217
onChange={triggerChange}
218+
dropdownRender={selectProps.dropdownRender || this.$slots.dropdownRender}
218219
>
219220
{slots.default?.()}
220221
</RcSelect>

components/vc-collapse/src/commonProps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const collapseProps = () => ({
2424
const panelProps = () => ({
2525
openAnimation: PropTypes.object,
2626
prefixCls: PropTypes.string,
27-
header: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),
27+
header: PropTypes.any,
2828
headerClass: PropTypes.string,
2929
showArrow: PropTypes.looseBool,
3030
isActive: PropTypes.looseBool,

components/vc-menu/DOMWrap.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ DOMWrap.props = {
286286
prefixCls: PropTypes.string,
287287
level: PropTypes.number,
288288
theme: PropTypes.string,
289-
overflowedIndicator: PropTypes.node,
289+
overflowedIndicator: PropTypes.any,
290290
visible: PropTypes.looseBool,
291291
hiddenClassName: PropTypes.string,
292292
tag: PropTypes.string.def('div'),

components/vc-select/generate.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -882,12 +882,12 @@ export default function generateSelector<
882882
if (props.disabled) {
883883
return;
884884
}
885-
886-
if (mergedSearchValue.value) {
885+
const serachVal = mergedSearchValue.value;
886+
if (serachVal) {
887887
// `tags` mode should move `searchValue` into values
888888
if (props.mode === 'tags') {
889889
triggerSearch('', false, false);
890-
triggerChange(Array.from(new Set([...mergedRawValue.value, mergedSearchValue.value])));
890+
triggerChange(Array.from(new Set([...mergedRawValue.value, serachVal])));
891891
} else if (props.mode === 'multiple') {
892892
// `multiple` mode only clean the search value but not trigger event
893893
setInnerSearchValue('');

components/vc-tree-select/src/SelectTrigger.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const SelectTrigger = {
4646
isMultiple: PropTypes.looseBool,
4747
dropdownPrefixCls: PropTypes.string,
4848
dropdownVisibleChange: PropTypes.func,
49-
popupElement: PropTypes.node,
49+
popupElement: PropTypes.any,
5050
open: PropTypes.looseBool,
5151
},
5252
created() {

components/vc-tree-select/src/propTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function valueProp(...args) {
1818
if (isLabelInValue(props)) {
1919
const err = genArrProps(
2020
PropTypes.shape({
21-
label: PropTypes.node,
21+
label: PropTypes.any,
2222
value: internalValProp,
2323
}).loose,
2424
)(...args);

0 commit comments

Comments
 (0)