Refactored badge exports
parent
f97f4bc9fc
commit
275beeae16
|
@ -1,2 +1 @@
|
||||||
export * from './components/badge/Badge';
|
export * from './components/badge/Badge';
|
||||||
export * from './components/badge/BadgeDirective';
|
|
|
@ -1,3 +1,2 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
module.exports.Badge = require('./components/badge/Badge.vue');
|
module.exports = require('./components/badge/Badge.vue');
|
||||||
module.exports.BadgeDirective = require('./components/badge/BadgeDirective.js');
|
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './components/badge/BadgeDirective';
|
|
@ -0,0 +1,2 @@
|
||||||
|
'use strict';
|
||||||
|
module.exports.BadgeDirective = require('./components/badge/BadgeDirective.js');
|
|
@ -0,0 +1,5 @@
|
||||||
|
import Directive from 'vue';
|
||||||
|
|
||||||
|
declare interface BadgeDirective extends Directive {}
|
||||||
|
|
||||||
|
export default BadgeDirective;
|
|
@ -2,17 +2,16 @@
|
||||||
<div class="content-section documentation">
|
<div class="content-section documentation">
|
||||||
<TabView>
|
<TabView>
|
||||||
<TabPanel header="Documentation">
|
<TabPanel header="Documentation">
|
||||||
<h5>Import</h5>
|
|
||||||
<pre v-code.script>
|
|
||||||
<code>
|
|
||||||
import {Badge,BadgeDirective} from 'primevue/badge';
|
|
||||||
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<h5>Getting Started</h5>
|
<h5>Getting Started</h5>
|
||||||
<p>Badge can either be used as a standalone component or as a directive.</p>
|
<p>Badge can either be used as a standalone component or as a directive.</p>
|
||||||
|
|
||||||
<h6>Component</h6>
|
<h6>Component</h6>
|
||||||
|
<pre v-code.script>
|
||||||
|
<code>
|
||||||
|
import Badge from 'primevue/badge';
|
||||||
|
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
<p>Content of the badge is specified using the <i>value</i> property.</p>
|
<p>Content of the badge is specified using the <i>value</i> property.</p>
|
||||||
<pre v-code>
|
<pre v-code>
|
||||||
<code>
|
<code>
|
||||||
|
@ -21,6 +20,12 @@ import {Badge,BadgeDirective} from 'primevue/badge';
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
|
||||||
<h6>Directive</h6>
|
<h6>Directive</h6>
|
||||||
|
<pre v-code.script>
|
||||||
|
<code>
|
||||||
|
import BadgeDirective from 'primevue/badgedirective';
|
||||||
|
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
<p>When used as a directive, badge needs to be configured at the application with a name of your choice.</p>
|
<p>When used as a directive, badge needs to be configured at the application with a name of your choice.</p>
|
||||||
<pre v-code.script>
|
<pre v-code.script>
|
||||||
<code>
|
<code>
|
||||||
|
|
Loading…
Reference in New Issue