当前位置: 首页 > news >正文

用ps怎么做学校网站页面网络公关什么意思

用ps怎么做学校网站页面,网络公关什么意思,洛阳公司做网站,南川网站建设公司需求#xff1a; #xff08;1#xff09;数据联动#xff1a;测试数据1、2互相依赖#xff0c;测试数据1测试数据2,测试数据2测试数据1。 #xff08;2#xff09;点击添加按钮#xff0c;添加一行。 #xff08;3#xff09;自定义操作按钮。 #xff0… 需求 1数据联动测试数据1、2互相依赖测试数据1测试数据2,测试数据2测试数据1。 2点击添加按钮添加一行。 3自定义操作按钮。 4点击自定义操作按钮禁用禁用当前行。 代码实现 import { StopOutlined } from ant-design/icons; import { FormListActionType, ProCard, ProForm, ProFormDependency, ProFormList, ProFormText } from ant-design/pro-components; import { gte, isEmpty, lte } from lodash; import { useRef, useState } from react;const Demo () {const [refresh, setRefresh] useStateboolean(false);const actionRef useRefFormListActionType{name: string;[key: string]: any;}();const childrenDom (record: Recordstring, any) {return (ProForm.Group keygroupProFormDependency name{[test2]}{(depValues) {return (ProFormTextdisabled{record.disabled}widthmdnametest1label测试数据1rules{[{required: true,message: 必选字段不能为空,},{pattern: /^[-]?[0-9](\.[0-9])?$/,message: 请输入正确的数字,},{validator: async (_, value) {if (isEmpty(value) || isEmpty(depValues.test2)) {return Promise.resolve();}if (lte(parseInt(value), parseInt(depValues.test2))) {return Promise.resolve();} else {return Promise.reject(new Error(测试数据1不能大于测试数据2));}},},]}/);}}/ProFormDependencyProFormDependency keyglobalUseMode name{[test1]}{(depValues) {return (ProFormTextdisabled{record.disabled}widthmdnametest2label测试数据2rules{[{required: true,message: 必选字段不能为空,},{pattern: /^[-]?[0-9](\.[0-9])?$/,message: 请输入正确的数字,},{validator: async (_, value) {if (isEmpty(value) || isEmpty(depValues.test1)) {return Promise.resolve();}if (gte(parseInt(value), parseInt(depValues.test1))) {return Promise.resolve();} else {return Promise.reject(new Error(测试数据2不能小于测试数据1));}},},]}/);}}/ProFormDependency/ProForm.Group);};return (ProForm submitter{false}ProFormListname{Test}labelTestinitialValue{[{}]}actionRef{actionRef}actionRender{(field, action, defaultActionDom, count) {return [...defaultActionDom,StopOutlinedkeydisablestyle{{ marginLeft: 5px }}onClick{() {const data actionRef.current?.get(field.name);if (data) {data.disabled true;setRefresh(!refresh);}}}/,];}}itemRender{({ listDom, action }, { index, record }) (ProCard bordered style{{ marginBlockEnd: 8 }} title{Test${index 1}} extra{action} bodyStyle{{ paddingBlockEnd: 0 }}{childrenDom(record)}/ProCard)}//ProForm); };export default Demo; 结果展示 重点代码截图 1数据联动测试数据1、2互相依赖测试数据1测试数据2,测试数据2测试数据1。 2点击添加按钮添加一行。 3自定义操作按钮。 4点击自定义操作按钮禁用禁用当前行。
http://www.hkea.cn/news/14591795/

相关文章:

  • 公司网站域名怎么注册网站查询信息
  • 织梦 网站地图 样式网站板块怎么做
  • 如需锦州网站建设重庆网络营销
  • 郴州北京网站建设做网站 能挣钱吗
  • 上海亿网站建设简约大气网站设计欣赏
  • 网站在哪里实名认证自己做网站空间
  • 导航在左侧的网站欣赏如何建网站要什么条件
  • 长沙网站开发培训学校南宁网站推广费用
  • 重庆网站建设技术外包尚品本色木门网站是哪个公司做的
  • 网站平台推广方法wordpress调用当前分类描述
  • 电商平台设计方案seo推广策划
  • 关于建设网站的情况说明书wordpress下载站批量
  • 两当网站建设南京移动网站设计
  • wordpress动漫风格网站怎样做有利于seo
  • 湖南建设部网站wamp搭建多个网站
  • 宜昌网站建设宜昌网站移动端是什么情况
  • 网站制作公司兴田德润简介网站开发 xmind
  • 国内最大的网站建设公司排名网站建设先航科技
  • 网站建设公司开发企业北京网站优化关键词技巧
  • 衡阳高端网站建设一般网站是用什么框架做的
  • 学网站建设的专业叫什么物流公司官方网站物流专线
  • 阳江网站设计公司做的网站如何开启伪静态
  • 咸阳公司做网站设计图片手绘图片
  • 网站设计在线培训机构河南国基建设集团有限公司网站
  • 网站更新前知道内容网站后台管理模板免费下载
  • 钢管网站建设深圳平台设计
  • app开发需要用到哪些工具seo优化的基本流程
  • 如何建单页网站上海闸北城市建设有限公司网站
  • 邢台做网站企业把自己做的网站上传到服务器
  • 公司做网站入什么科目信息发布型网站是企业网站的什么