This repository has been archived by the owner on Feb 11, 2025. It is now read-only.
第二十课:弹窗逻辑 #25
aspirantzhang
started this conversation in
课程专用
Replies: 1 comment
-
uri的替换,输入过程会触发监听事件,比如输入test,最终替换结果为t。 onFieldValueChange$('basicCard.routeName').subscribe(({value})=>{
setFieldState('*.*.*.uri',(state: IFormState)=>{
state.value = state.value?.replace(/api\/\w+\//g, ()=>{
return value ? `api/${value}/` : 'api/admins/';
});
})
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
本节学习手册:https://www.yuque.com/aspirantzhang/antdprov5/emu2uk
本节代码
4a784f5?branch=4a784f59958aa1722526f7e11cc3e5aacd3381a3&diff=split
请发与本节课有关的讨论。
Beta Was this translation helpful? Give feedback.
All reactions