replace hint component
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
<template>
|
||||
<div :class="`hint hint--${type}`">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" src="./style.scss" scoped></style>
|
||||
@@ -1,10 +0,0 @@
|
||||
.hint {
|
||||
padding: 1rem;
|
||||
border: 2px solid rgba($colorBlack, 0.1);
|
||||
border-radius: 0.25rem;
|
||||
|
||||
&--warning {
|
||||
border-color:#ffd8a8;
|
||||
background-color: #fff4e6;
|
||||
}
|
||||
}
|
||||
@@ -22,11 +22,9 @@ Create a new Vue component (you can call it `<Tiptap />`) and add the following
|
||||
|
||||
<demo name="GettingStarted" />
|
||||
|
||||
<Hint type="warning">
|
||||
|
||||
::: warning Using with Nuxt.js
|
||||
If you are using **Nuxt.js**, note that tiptap needs to run in the client, not on the server. Wrapping the editor in a `<client-only>` tag is **required**.
|
||||
|
||||
</Hint>
|
||||
:::
|
||||
|
||||
Congrats! You’ve got it! 🎉 Let’s start to build your editor in the next step.
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import ReactRenderer from '~/components/ReactRenderer'
|
||||
export default function (Vue, { router, head, isClient }) {
|
||||
Vue.component('Layout', App)
|
||||
Vue.component('Demo', Demo)
|
||||
Vue.component('Hint', Hint)
|
||||
Vue.component('Tab', Tab)
|
||||
Vue.component('ReactRenderer', ReactRenderer)
|
||||
}
|
||||
|
||||
@@ -142,5 +142,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
.remark-container {
|
||||
padding: 1rem;
|
||||
border: 2px solid rgba($colorBlack, 0.1);
|
||||
border-radius: 0.25rem;
|
||||
|
||||
&.warning {
|
||||
border-color:#ffd8a8;
|
||||
background-color: #fff4e6;
|
||||
}
|
||||
|
||||
.remark-container-title {
|
||||
font-weight: 600;
|
||||
color: #ca9c63;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user