-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from ENDsoft233/main
modified lots of ui design
- Loading branch information
Showing
21 changed files
with
13,919 additions
and
9,609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export const CopyCourseIdMixin = { | ||
data () { | ||
return { | ||
copyCourseIdDisplayText: '复制', | ||
copyCourseIdDisplayTimeout: -1 | ||
} | ||
}, | ||
methods: { | ||
handleCourseIdCopied () { | ||
if (this.copyCourseIdDisplayTimeout !== -1) | ||
clearTimeout(this.copyCourseIdDisplayTimeout) | ||
this.$message.success('复制成功!'); | ||
this.copyCourseIdDisplayText = '已复制' | ||
this.copyCourseIdDisplayTimeout = setTimeout(() => { | ||
this.copyCourseIdDisplayText = '复制' | ||
}, 1500); | ||
}, | ||
handleCourseIdCopyError () { | ||
if (this.copyCourseIdDisplayTimeout !== -1) | ||
clearTimeout(this.copyCourseIdDisplayTimeout) | ||
this.$message.error('复制失败,请手动复制!'); | ||
this.copyCourseIdDisplayText = '复制失败' | ||
this.copyCourseIdDisplayTimeout = setTimeout(() => { | ||
this.copyCourseIdDisplayText = '复制' | ||
}, 1500); | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export const UseScheduleTableThemeMixin = { | ||
data () { | ||
return { | ||
ScheduleTableTheme: 'candy', | ||
} | ||
}, | ||
computed: { | ||
ScheduleTableThemeText () { | ||
const t = this.ScheduleTableTheme | ||
switch (t) { | ||
case 'candy': | ||
return '糖果'; | ||
case 'classic': | ||
return '经典'; | ||
default: | ||
return '<unknown>' | ||
} | ||
} | ||
}, | ||
created () { | ||
let check = () => { | ||
if (!this.$store.state.loaded) setTimeout(check, 500) | ||
this.ScheduleTableTheme = this.$store.state.useScheduleTableTheme; | ||
} | ||
setTimeout(check, 500) | ||
}, | ||
methods: { | ||
handleChangeScheduleTableTheme () { | ||
this.ScheduleTableTheme = this.ScheduleTableTheme === 'candy' ? 'classic' : 'candy' | ||
this.$store.dispatch('setUseScheduleTableTheme', this.ScheduleTableTheme) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.