npm install nuxt-component-dpe
import { dpe, ges } from 'nuxt-component-dpe';
export default {
components: { dpe, ges }
}
- With Export Mode (PNG):
<dpe value=100 type="logement" :style="'width:25%;'" exportMode="active"/>
<ges value=20 type="logement" :style="'width:25%;'" exportMode="active"/>
- Without Export Mode (PNG):
<dpe value=100 type="logement" :style="'width:25%;'"/>
<dpe value=20 type="logement" :style="'width:25%;'"/>
With Export Mode (PNG) | Without Export Mode (PNG) |
---|---|
With Custom CSS | Without Custom CSS |
<dpe value=150 type="logement" :style="'width:25%;background: white;border: 1px solid;padding: 8px;'" exportMode="active"/>
Valeurs possibles :
1. logement
2. tertiaire
3. public
4. bureaux
5. OccContinue
DPE | GES |
---|---|
logement | logement |
tertiaire | tertiaire |
public | public |
bureaux | bureaux |
OccContinue | OccContinue |
- Nuxt 2 ✅
- Nuxt 3 ❌