+
+ {{ props.label === true ? props.type : props.label }}:
+
+
+
+
+
+
+
diff --git a/src/css/main.css b/src/css/main.css
index f2c8b041..b438e311 100644
--- a/src/css/main.css
+++ b/src/css/main.css
@@ -29,28 +29,3 @@ a {
margin: 0 auto;
}
}
-
-/** Badge */
-.badge {
- display: inline-block;
- vertical-align: top;
- font-size: 13px;
- height: 18px;
- line-height: 18px;
- border-radius: 9px;
- padding: 0 5px;
- color: #fff;
- margin-right: 5px;
-
- &.tip {
- background: #42b983;
- }
-
- &.warn, &.warning {
- background: #e7c000;
- }
-
- &.danger {
- background: #d82f2f;
- }
-}
diff --git a/src/css/vars.css b/src/css/vars.css
index b7bdfe09..8fae66ba 100644
--- a/src/css/vars.css
+++ b/src/css/vars.css
@@ -6,4 +6,9 @@
--border-color: #eaeaea;
--header-height: 60px;
--code-font: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
+
+ --tip-color: rgb(6, 125, 247);
+ --success-color: #42b983;
+ --warning-color: #ff9800;
+ --danger-color: rgb(255, 0, 31);
}
diff --git a/src/index.js b/src/index.js
index 9bb6bf50..51fe2360 100644
--- a/src/index.js
+++ b/src/index.js
@@ -8,6 +8,7 @@ import alternativeComponents from './utils/alternativeComponents'
import ImageZoom from './components/ImageZoom.vue'
import Badge from './components/Badge.vue'
import DocuteSelect from './components/DocuteSelect.vue'
+import Note from './components/Note.vue'
import ExternalLinkIcon from './components/icons/ExternalLinkIcon.vue'
// Built-in plugins
@@ -18,6 +19,7 @@ import versionsPlugin from './plugins/versions'
Vue.component(ImageZoom.name, ImageZoom)
Vue.component(Badge.name, Badge)
Vue.component(DocuteSelect.name, DocuteSelect)
+Vue.component(Note.name, Note)
Vue.component(ExternalLinkIcon.name, ExternalLinkIcon)
Vue.use(alternativeComponents)
diff --git a/website/docs/builtin-components.md b/website/docs/builtin-components.md
index 67ca3ebf..98e54c72 100644
--- a/website/docs/builtin-components.md
+++ b/website/docs/builtin-components.md
@@ -6,14 +6,16 @@ Docute comes with a set of built-in Vue components.
Use medium-style zoom effect to display certain image.
-|Prop|Type|Default|Description|
-|---|---|---|---|
-|url|`string`|N/A|URL to image|
-|alt|`string`|N/A|Placeholder text|
-|border|`boolean`|`false`|Show border around image|
-|width|`string`|N/A|Image width|
+| Prop | Type | Default | Description |
+| ------ | --------- | ------- | ------------------------ |
+| url | `string` | N/A | URL to image |
+| alt | `string` | N/A | Placeholder text |
+| border | `boolean` | `false` | Show border around image |
+| width | `string` | N/A | Image width |
-Example:
+