Skip to content

Commit

Permalink
fix: updata upload/steps and test
Browse files Browse the repository at this point in the history
  • Loading branch information
hukeeeeeeee committed Nov 13, 2020
1 parent c38db3d commit 9bd14af
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
6 changes: 3 additions & 3 deletions examples/docs/zh-CN/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
</template>

<script>
import { ref } from "vue"
import { ref } from 'vue';
export default {
setup(){
const active = ref(0)
function next(){
const active = ref(0);
const next = () => {
if (active.value++ > 2) {
active.value = 0
}
Expand Down
11 changes: 3 additions & 8 deletions types/element3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export { useMessage } from './message'
export { useNotify } from './notification'
export { useLoading } from './loading'
export { useMsgbox } from './message-box'
export { ElSteps } from './steps'
export { ElUpload } from './upload'

import { ElCollapse } from './collapse'
import { ElCollapseItem } from './collapse-item'
Expand All @@ -67,7 +69,7 @@ import { ElOptionGroup } from './option-group'
import { ElPopover } from './popover'

import { ElStep } from './step'
import { ElSteps } from './steps'

import { ElSubmenu } from './submenu'
import { ElTable } from './table'
import { ElTableColumn } from './table-column'
Expand All @@ -80,7 +82,6 @@ import { ElTimeSelect } from './time-select'
import { ElTooltip } from './tooltip'
import { ElTransfer } from './transfer'
import { ElTree, TreeData } from './tree'
import { ElUpload } from './upload'
import { ElDivider } from './divider'
import { ElIcon } from './icon'
import { ElCalendar } from './calendar'
Expand Down Expand Up @@ -185,9 +186,6 @@ export class Slider extends ElSlider {}
/** Step Component */
export class Step extends ElStep {}

/** Steps Component */
export class Steps extends ElSteps {}

/** Submenu Component */
export class Submenu extends ElSubmenu {}

Expand Down Expand Up @@ -224,9 +222,6 @@ export class Transfer extends ElTransfer {}
/** Tree Component */
export class Tree<K = any, D = TreeData> extends ElTree<K, D> {}

/** Upload Component */
export class Upload extends ElUpload {}

/** Divider Component */
export class Divider extends ElDivider {}

Expand Down
6 changes: 3 additions & 3 deletions types/steps.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ElementUIComponent } from './component'
import { StepStatus } from './step'
import { ElStep, StepStatus } from './step'

export type StepsDirection = 'vertical' | 'horizontal'

export const ElSteps:ISteps
/** Guide the user to complete tasks in accordance with the process. Its steps can be set according to the actual application scenario and the number of the steps can't be less than 2. */
export declare class ElSteps extends ElementUIComponent {
interface ISteps extends ElementUIComponent {
/** The spacing of each step, will be responsive if omitted. Support percentage. */
space: number | string

Expand Down
4 changes: 2 additions & 2 deletions types/upload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export interface HttpRequestOptions {
onSuccess: (response: any) => void,
onError: (err: ErrorEvent) => void
}

export const ElUpload : IUpload;
/** Upload Component */
export declare class ElUpload extends ElementUIComponent {
interface IUpload extends ElementUIComponent {
/** Request URL (required) */
action: string

Expand Down

0 comments on commit 9bd14af

Please sign in to comment.