From e4907efab50fa104e45bb76d030038717308c819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 25 Nov 2024 15:03:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=20PInputPassword=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=20SchemaComponent=EF=BC=8C=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E7=BB=84=E4=BB=B6=E5=90=8D=E7=A7=B0=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__fk-inputs__/inputs/input-password.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/__fk-inputs__/inputs/input-password.ts b/src/__fk-inputs__/inputs/input-password.ts index 5c894a4..99e86f8 100644 --- a/src/__fk-inputs__/inputs/input-password.ts +++ b/src/__fk-inputs__/inputs/input-password.ts @@ -5,14 +5,12 @@ import SchemaComponent from 'primevue/password'; import { markRaw } from 'vue'; import { messages } from '../sections/messages'; -const cmpName = `SchemaComponent${SchemaComponent.name}`; - export const PInputPassword: FormKitTypeDefinition = { type: 'input', schema: outer( label('$label'), createSection('input', () => ({ - $cmp: cmpName, + $cmp: markRaw(SchemaComponent) as any, bind: '$attrs', props: { invalid: '$state.invalid', @@ -27,9 +25,6 @@ export const PInputPassword: FormKitTypeDefinition = { }))(), messages(), ), - library: { - [cmpName]: markRaw(SchemaComponent), - }, features: [casts], // schemaMemoKey: 'g2f31c24kjh', };