Files
uni/packages/prompt/index.vue
2023-07-10 19:26:19 +08:00

38 lines
719 B
Vue

<!--
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-06-25 15:55:08
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-06-25 19:14:25
* @FilePath: \uni\packages\prompt\index.vue
* @Description:
*
-->
<template>
<div>xx</div>
<!-- <view>
xxx
</view> -->
</template>
<script lang="ts" setup name="Prompt">
const props = withDefaults(
defineProps<{
/** 标题 */
title: string
/** 是否必填 */
required?: boolean
/** 输入框的提示文字 */
placeholder?: string
/** 输入框的默认值 */
defaulrValue?: string
}>(),
{
required: false,
},
)
console.log(uni)
const mask = ref(false)
const value = ref(props.defaulrValue)
</script>