style: prettier code
parent
ce1148838b
commit
ef9797d337
|
@ -1 +1 @@
|
|||
Subproject commit 42118ce953ddcaf9a470b5e9c8c9980f01d5c628
|
||||
Subproject commit 21cd58ca984d96916ff9c4a2f34bb5e245d9a324
|
|
@ -56,7 +56,12 @@ const renderTitle = (h, prefixCls, instance) => {
|
|||
const subTitle = getComponentFromProp(instance, 'subTitle');
|
||||
const tags = getComponentFromProp(instance, 'tags');
|
||||
const extra = getComponentFromProp(instance, 'extra');
|
||||
const backIcon = getComponentFromProp(instance, 'backIcon') !== undefined ? getComponentFromProp(instance, 'backIcon') : <Icon type="arrow-left" />;
|
||||
const backIcon =
|
||||
getComponentFromProp(instance, 'backIcon') !== undefined ? (
|
||||
getComponentFromProp(instance, 'backIcon')
|
||||
) : (
|
||||
<Icon type="arrow-left" />
|
||||
);
|
||||
const onBack = instance.$listeners.back;
|
||||
const headingPrefixCls = `${prefixCls}-heading`;
|
||||
if (title || subTitle || tags || extra) {
|
||||
|
|
|
@ -49,7 +49,7 @@ export default {
|
|||
methods: {
|
||||
removeTab(targetKey, e) {
|
||||
e.stopPropagation();
|
||||
if(isValid(targetKey)) {
|
||||
if (isValid(targetKey)) {
|
||||
this.$emit('edit', targetKey, 'remove');
|
||||
}
|
||||
},
|
||||
|
|
|
@ -261,7 +261,7 @@ export default {
|
|||
reject: this.onReject,
|
||||
},
|
||||
ref: 'uploadRef',
|
||||
attrs: {...this.$attrs},
|
||||
attrs: { ...this.$attrs },
|
||||
};
|
||||
const children = this.$slots.default;
|
||||
// Remove id to avoid open by label when trigger is hidden
|
||||
|
@ -308,8 +308,6 @@ export default {
|
|||
[`${prefixCls}-disabled`]: disabled,
|
||||
});
|
||||
|
||||
|
||||
|
||||
const uploadButton = (
|
||||
<div class={uploadButtonCls} style={children ? undefined : { display: 'none' }}>
|
||||
<VcUpload {...vcUploadProps}>{children}</VcUpload>
|
||||
|
|
|
@ -25,7 +25,11 @@ const Calendar = {
|
|||
name: 'Calendar',
|
||||
props: {
|
||||
locale: PropTypes.object.def(enUs),
|
||||
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
||||
format: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.arrayOf(PropTypes.string),
|
||||
PropTypes.func,
|
||||
]),
|
||||
visible: PropTypes.bool.def(true),
|
||||
prefixCls: PropTypes.string.def('rc-calendar'),
|
||||
// prefixCls: PropTypes.string,
|
||||
|
|
|
@ -110,7 +110,11 @@ const RangeCalendar = {
|
|||
// onValueChange: PropTypes.func,
|
||||
// onHoverChange: PropTypes.func,
|
||||
// onPanelChange: PropTypes.func,
|
||||
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
||||
format: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.arrayOf(PropTypes.string),
|
||||
PropTypes.func,
|
||||
]),
|
||||
// onClear: PropTypes.func,
|
||||
type: PropTypes.any.def('both'),
|
||||
disabledDate: PropTypes.func,
|
||||
|
|
|
@ -16,7 +16,11 @@ const DateInput = {
|
|||
timePicker: PropTypes.object,
|
||||
value: PropTypes.object,
|
||||
disabledTime: PropTypes.any,
|
||||
format: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
||||
format: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.arrayOf(PropTypes.string),
|
||||
PropTypes.func,
|
||||
]),
|
||||
locale: PropTypes.object,
|
||||
disabledDate: PropTypes.func,
|
||||
// onChange: PropTypes.func,
|
||||
|
|
|
@ -158,11 +158,11 @@ const BaseTable = {
|
|||
tableStyle.width =
|
||||
typeof tableStyle.width === 'number' ? `${tableStyle.width}px` : tableStyle.width;
|
||||
}
|
||||
if(fixed) {
|
||||
const width = columns.reduce((sum, {width: w})=>{
|
||||
if (fixed) {
|
||||
const width = columns.reduce((sum, { width: w }) => {
|
||||
return sum + parseFloat(w, 10);
|
||||
}, 0);
|
||||
if(width > 0) {
|
||||
if (width > 0) {
|
||||
tableStyle.width = width + 'px';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,13 +6,13 @@ import Pickr from '@simonwep/pickr';
|
|||
|
||||
export declare class ColorPicker extends AntdComponent {
|
||||
/** simonwep/pickr's options */
|
||||
config?:Pickr.Options
|
||||
config?: Pickr.Options;
|
||||
/**prefix class name */
|
||||
prefixCls?: string
|
||||
prefixCls?: string;
|
||||
/** default color value */
|
||||
defaultValue?: string
|
||||
defaultValue?: string;
|
||||
/** color value */
|
||||
value?: string
|
||||
value?: string;
|
||||
/**
|
||||
* language package setting
|
||||
* @type object
|
||||
|
@ -23,7 +23,7 @@ export declare class ColorPicker extends AntdComponent {
|
|||
* @default 0
|
||||
* @type number
|
||||
* */
|
||||
colorRounded?:number
|
||||
colorRounded?: number;
|
||||
/**
|
||||
* descriptions size type
|
||||
* @default 'default'
|
||||
|
@ -42,10 +42,10 @@ export declare class ColorPicker extends AntdComponent {
|
|||
* @default false
|
||||
* @type boolean
|
||||
*/
|
||||
disabled: boolean
|
||||
disabled: boolean;
|
||||
/**
|
||||
* to set the color format
|
||||
* @default "HEXA"
|
||||
*/
|
||||
format: Pickr.Representation
|
||||
format: Pickr.Representation;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Definitions by: akki-jat <https://github.com/akki-jat>
|
||||
// Definitions: https://github.com/vueComponent/ant-design-vue/types
|
||||
|
||||
import { VNode, CreateElement } from 'vue'
|
||||
import { VNode, CreateElement } from 'vue';
|
||||
|
||||
export interface ThenableArgument {
|
||||
(val: any): void;
|
||||
|
@ -12,7 +12,7 @@ export interface MessageType {
|
|||
then: (fill: ThenableArgument, reject: ThenableArgument) => Promise<void>;
|
||||
promise: Promise<void>;
|
||||
}
|
||||
export type ConfigType = string | VNode | ((h: CreateElement) => VNode);
|
||||
export type ConfigType = string | VNode | ((h: CreateElement) => VNode);
|
||||
export type ConfigDuration = number | (() => void);
|
||||
export type ConfigOnClose = () => void;
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@ export declare class Column extends AntdComponent {
|
|||
*/
|
||||
ellipsis?: boolean;
|
||||
|
||||
|
||||
/**
|
||||
* Span of this column's title
|
||||
* @type number
|
||||
|
@ -44,9 +43,9 @@ export declare class Column extends AntdComponent {
|
|||
dataIndex?: string;
|
||||
|
||||
/**
|
||||
* Default filtered values
|
||||
* @type string[]
|
||||
*/
|
||||
* Default filtered values
|
||||
* @type string[]
|
||||
*/
|
||||
defaultFilteredValue?: string[];
|
||||
|
||||
/**
|
||||
|
@ -132,10 +131,10 @@ export declare class Column extends AntdComponent {
|
|||
sortOrder?: boolean | SortOrder;
|
||||
|
||||
/**
|
||||
* supported sort way, could be 'ascend', 'descend'
|
||||
* @default ['ascend', 'descend']
|
||||
* @type string[]
|
||||
*/
|
||||
* supported sort way, could be 'ascend', 'descend'
|
||||
* @default ['ascend', 'descend']
|
||||
* @type string[]
|
||||
*/
|
||||
sortDirections?: string[];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue