Skip to content

Commit

Permalink
D:移除toasted组件
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice-Hazymoon committed Sep 23, 2019
1 parent f681668 commit 1c6b27d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 21 deletions.
4 changes: 2 additions & 2 deletions components/FloatBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ export default {
let flag = favorites.indexOf(path).value();
if (flag === -1) {
favorites.push(path).value();
this.$toasted.show('收藏成功');
this.$noty.success('收藏成功');
} else {
favorites.pull(path).value();
this.$toasted.show('取消收藏成功');
this.$noty.success('取消收藏成功');
}
this.$store.commit('SET_STORE', {
key: 'setting.favorites',
Expand Down
4 changes: 2 additions & 2 deletions components/UI/nya-copy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export default {
doCopy() {
this.$copyText(this.copy).then(
() => {
this.$toasted.show('复制成功');
this.$noty.success('复制成功');
},
() => {
this.$toasted.show('复制失败,请手动选择复制');
this.$noty.error('复制失败,请手动选择复制');
}
);
}
Expand Down
4 changes: 2 additions & 2 deletions pages/cdnjs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ export default {
doCopy(text) {
this.$copyText(text).then(
() => {
this.$toasted.show('复制成功');
this.$noty.success('复制成功');
},
() => {
this.$toasted.show('复制失败,请手动选择复制');
this.$noty.error('复制失败,请手动选择复制');
}
);
}
Expand Down
4 changes: 2 additions & 2 deletions pages/china_colors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export default {
doCopy(color, text) {
this.$copyText(color).then(
() => {
this.$toasted.show(text);
this.$noty.success(text);
},
() => {
this.$toasted.show('复制失败,请手动选择复制');
this.$noty.error('复制失败,请手动选择复制');
}
);
},
Expand Down
1 change: 0 additions & 1 deletion pages/links.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ export default {
'https://github.com/necolas/normalize.css/',
'https://www.npmjs.com/package/tinycolor2',
'https://github.com/hilongjw/vue-lazyload',
'https://github.com/shakee93/vue-toasted',
'https://github.com/robinvdvleuten/vuex-persistedstate',
'https://github.com/m13253/JPEGreen'
]
Expand Down
12 changes: 0 additions & 12 deletions styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,6 @@ hr {
border-bottom: 1px dashed var(--border-color);
}

// toasted
.toasted-container{
top: 6% !important;
.miku-toasted{
justify-content: center !important;
@media (max-width: 700px) {
padding: 5px 20px !important;
line-height: 1.3 !important;
}
}
}

// 滚动条
::-webkit-scrollbar {
width: 8px;
Expand Down

0 comments on commit 1c6b27d

Please sign in to comment.