primevue-mirror/doc/password/LocaleDoc.vue

58 lines
1.7 KiB
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>
Labels are translated at component level by <i>promptLabel</i>, <i>weakLabel</i>, <i>mediumLabel</i> and <i>strongLabel</i> properties. In order to apply global translations for all Password components in the application, refer to the
2023-03-08 11:36:10 +00:00
<NuxtLink to="/configuration/#locale">locale</NuxtLink>.
2023-02-28 08:29:30 +00:00
</p>
</DocSectionText>
<div class="card flex justify-content-center">
<Password v-model="value" promptLabel="Choose a password" weakLabel="Too simple" mediumLabel="Average complexity" strongLabel="Complex password" />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
value: null,
code: {
2023-09-22 12:54:14 +00:00
basic: `
2023-10-15 09:38:39 +00:00
<Password v-model="value" promptLabel="Choose a password" weakLabel="Too simple" mediumLabel="Average complexity" strongLabel="Complex password" />
`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2024-05-03 12:25:20 +00:00
<div class="card flex justify-content-center">
<Password v-model="value" promptLabel="Choose a password" weakLabel="Too simple" mediumLabel="Average complexity" strongLabel="Complex password" />
</div>
2023-02-28 08:29:30 +00:00
</template>
<script>
export default {
2024-05-03 12:25:20 +00:00
data() {
return {
value: null
}
}
2023-02-28 08:29:30 +00:00
};
2023-10-15 09:38:39 +00:00
<\/script>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2024-05-03 12:25:20 +00:00
<div class="card flex justify-content-center">
<Password v-model="value" promptLabel="Choose a password" weakLabel="Too simple" mediumLabel="Average complexity" strongLabel="Complex password" />
</div>
2023-02-28 08:29:30 +00:00
</template>
<script setup>
import { ref } from 'vue';
const value = ref(null);
2023-10-15 09:38:39 +00:00
<\/script>
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>