mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-02-12 09:58:29 -06:00
35 lines
675 B
Vue
35 lines
675 B
Vue
<template>
|
|
<VueDisable
|
|
:disabled="!prompt.enabled"
|
|
class="prompt prompt-input"
|
|
>
|
|
<div class="prompt-content">
|
|
<ListItemInfo
|
|
:name="$t(prompt.message)"
|
|
:description="$t(prompt.description)"
|
|
:link="prompt.link"
|
|
/>
|
|
|
|
<div class="prompt-input">
|
|
<VueInput
|
|
:value="value(prompt.value)"
|
|
:type="prompt.type === 'password' ? 'password' : 'text'"
|
|
@update="value => answer(value)"
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
<PromptError :error="prompt.error"/>
|
|
</VueDisable>
|
|
</template>
|
|
|
|
<script>
|
|
import Prompt from './Prompt'
|
|
|
|
export default {
|
|
extends: Prompt,
|
|
|
|
buffer: true
|
|
}
|
|
</script>
|