提交 1ddec3e2 编写于 作者: D DCloud_LXH

chore: textarea confirmType default 'return'

上级 7030e67e
......@@ -20,11 +20,15 @@ const props = /*#__PURE__*/ extend({}, fieldProps, {
},
confirmType: {
type: String,
default: '',
default: 'return',
validator(val: string) {
return ConfirmTypes.concat('return').includes(val)
},
},
})
let fixMargin: Boolean = false
const ConfirmTypes = ['done', 'go', 'next', 'search', 'send'] // 'return'
function setFixMargin() {
// iOS 13 以下版本需要修正边距
......@@ -45,9 +49,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({
const { fieldRef, state, scopedAttrsState, fixDisabledColor, trigger } =
useField(props, rootRef, emit)
const valueCompute = computed(() => state.value.split(LINEFEED))
const isDone = computed(() =>
['done', 'go', 'next', 'search', 'send'].includes(props.confirmType)
)
const isDone = computed(() => ConfirmTypes.includes(props.confirmType))
const heightRef = ref(0)
const lineRef: Ref<HTMLElement | null> = ref(null)
watch(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册