fix: 更新 CI 配置以限制推送到 main 分支,更新 README 链接,添加必填项星号插件
Some checks failed
/ surge (push) Failing after 16s
Some checks failed
/ surge (push) Failing after 16s
This commit is contained in:
@ -15,16 +15,18 @@ const castNumber = (node: FormKitNode) => {
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
console.group('onMounted')
|
||||
const nameNode = getNode('nameNodeId')
|
||||
Object.assign(window, { nameNode })
|
||||
console.debug('[onMounted]', `nameNode :>> `, nameNode);
|
||||
console.debug(`nameNode :>> `, nameNode);
|
||||
|
||||
const schemaGroupInput = nameNode!.root.at('schemaGroup.input')
|
||||
console.debug('[onMounted]', `schemaGroupInput :>> `, schemaGroupInput);
|
||||
console.debug(`schemaGroupInput :>> `, schemaGroupInput);
|
||||
nameNode!.on('commit', ({ payload }) => {
|
||||
console.debug('[nameNode] [on commit]', `payload :>> `, payload);
|
||||
schemaGroupInput!.input(`姓名:${payload}`)
|
||||
})
|
||||
console.groupEnd()
|
||||
})
|
||||
|
||||
const SCHEMA: FormKitSchemaDefinition = [
|
||||
@ -89,6 +91,7 @@ const SCHEMA: FormKitSchemaDefinition = [
|
||||
id="nameNodeId"
|
||||
label="姓名"
|
||||
help="别人都叫你什么?"
|
||||
some-attr="some-attr-value"
|
||||
/>
|
||||
|
||||
<FormKit
|
||||
|
Reference in New Issue
Block a user