generated from thzxcx/vue3
feat: 卡片等组件
This commit is contained in:
37
packages/prompt/index.vue
Normal file
37
packages/prompt/index.vue
Normal file
@ -0,0 +1,37 @@
|
||||
<!--
|
||||
* @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>
|
Reference in New Issue
Block a user