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

鹤山市城乡住房建设部网站经典网络营销案例

鹤山市城乡住房建设部网站,经典网络营销案例,什么网站做淘宝素材比较好,网上销售 网站建设Drawer 抽屉组件 对 antv 的 drawer 组件进行封装,扩展拖拽,全屏,自适应高度等功能。 Drawer相关使用及概念 练习 —— 在之前table基础上,添加查看功能,点击查看按钮,弹出抽屉显示单条表格数据&#xf…

Drawer 抽屉组件

对 antv 的 drawer 组件进行封装,扩展拖拽,全屏,自适应高度等功能。

Drawer相关使用及概念

练习 —— 在之前table基础上,添加查看功能,点击查看按钮,弹出抽屉显示单条表格数据,且不可修改

之前相关记录: Table组件的基本使用及练习

src/views/myComponents/tableTest中添加ViewDrawer.vue,用来独立使用Drawer,写内部代码

在这里插入图片描述
data.ts 中配置Drawer中表单字段

export const schemasView: FormSchema[] = [{field: 'divider-bill',component: 'Divider',label: '信息',colProps: {span: 24,},},{field: 'name',component: 'Input',label: '姓名',required:true,},{field: 'sex',component: 'Select',label: '性别',required:true,componentProps: {options: sexOption,},},{field: 'dt',component: 'DatePicker',label: '出生日期',required:true,componentProps: {style: {width: '100%',},valueFormat: 'YYYYMMDD',},},{field: 'age',component: 'InputNumber',label: '年龄',required:true,componentProps: {style: {width: '100%',},step: 1,min: 0,max: 150,},},{label: '电话',field: 'tel',component: 'Input',required:true,dynamicRules: ({ values }) => {if (values.tel !== undefined){if (values.tel.indexOf('-')>0){return [{required:true,trigger: 'change',message: '请输入正确的号码',pattern:   /(^\d{4}-\d{7}$)|(^\d{3}-\d{8}$)/,}];}else {return [{required:true,trigger: 'change',message: '请输入正确的号码',pattern: /^1[3|4|5|7|8][0-9]{9}$/,},];}}else {return[{required:true,message: '请输入电话',}]}},},{field: 'address',component: 'InputTextArea',label: '住址',required:true,},
];

ViewDrawer 代码

<template><div:style="{overflow: 'hidden',}"><BasicDrawerv-bind="$attrs"@register="registerDrawer"@visibleChange="handleVisibleChange":isDetail="true"title="查看"placement="bottom"height="100%":destroyOnClose="true"><div><BasicForm @register="registerForm"></BasicForm></div></BasicDrawer></div>
</template><script lang="ts">import { defineComponent } from 'vue';import { Divider } from 'ant-design-vue';import { BasicDrawer, useDrawerInner } from '/@/components/Drawer';import { BasicForm, useForm } from '/@/components/Form';import { schemasView } from './data';export default defineComponent({name: 'ViewDrawer',components: {BasicDrawer,BasicForm,Divider,},setup(_, { emit }) {// 配置Drawerconst [registerDrawer, { closeDrawer }] = useDrawerInner(async (data) => {console.log('打印从table传递的数据:', data);setFieldsValue(data), setProps({ disabled: true });  // data值赋给表单,设置disabled});// 配置Formconst [registerForm, { validate, setFieldsValue, setProps }] = useForm({labelWidth: 150,baseColProps: {offset: 1,span: 10,},schemas: schemasView,showActionButtonGroup: false,});function handleVisibleChange(visible: boolean) {if (!visible) {emit('reload');}}return {registerDrawer,closeDrawer,registerForm,validate,setFieldsValue,setProps,handleVisibleChange};},});
</script><style scoped></style>

basicTable.vue中使用

<template><div:style="{overflow: 'hidden',position: 'relative',height: '100%',}"><!-- 注册table --><BasicTable @register="registerTable"><template #action="{ record }"><TableAction:actions="[{tooltip: '查看',icon: 'clarity:info-standard-line',onClick: handleView.bind(null, { data: record }), },{tooltip: '编辑',icon: 'clarity:note-edit-line',// onClick: handleEdit.bind(null, { data: record,}),},{tooltip: '删除',color: 'error',icon: 'ant-design:delete-outlined',// popConfirm: {//   title: '是否确定删除?',//   confirm: handleDel.bind(null, record),// },},]"/></template><template #toolbar><a-button type="primary">{{ '新增' }}</a-button></template></BasicTable><!-- 页面引入 --><ViewDrawer @reload="handleReload" @register="registerDrawer" /></div>
</template><script lang="ts">import { defineComponent } from 'vue';import { formConfig, columns, initData } from './data';import { BasicTable, useTable, TableAction } from '/@/components/Table';import { useDrawer } from '/@/components/Drawer';import ViewDrawer from './ViewDrawer.vue';export default defineComponent({name: 'tableTest',components: {BasicTable,TableAction,ViewDrawer,},setup() {const data = initData();// 设置tableconst [registerTable, { reload }] = useTable({title: '查询结果',dataSource: data,columns: columns,bordered: true,useSearchForm: true, //开启搜索区域formConfig: formConfig,actionColumn: {width: 120,title: '操作',dataIndex: 'action',slots: { customRender: 'action' },},rowSelection: { type: 'radio' },pagination: { pageSize: 10 },showTableSetting: true,tableSetting: { fullScreen: true },showIndexColumn: true,indexColumnProps: { fixed: 'left' },});// 注册Drawerconst [registerDrawer, { openDrawer }] = useDrawer();// 查看按钮function handleView({ data }) {// 弹出抽屉,传递dataopenDrawer(true, data);}function handleReload() {reload();}return {registerTable,reload,registerDrawer,handleView,handleReload,};},});
</script><style scoped></style>

页面效果

Drawer抽屉


文章转载自:
http://relaxation.fwrr.cn
http://reviewer.fwrr.cn
http://absentee.fwrr.cn
http://numbingly.fwrr.cn
http://incognito.fwrr.cn
http://sewer.fwrr.cn
http://hetaira.fwrr.cn
http://gypper.fwrr.cn
http://superfluorescence.fwrr.cn
http://pondfish.fwrr.cn
http://jamaican.fwrr.cn
http://relaid.fwrr.cn
http://aerate.fwrr.cn
http://reminiscently.fwrr.cn
http://schappe.fwrr.cn
http://sherwani.fwrr.cn
http://faradization.fwrr.cn
http://biostratigraphic.fwrr.cn
http://mellowly.fwrr.cn
http://glandered.fwrr.cn
http://leapfrog.fwrr.cn
http://superstition.fwrr.cn
http://sneezy.fwrr.cn
http://endure.fwrr.cn
http://schism.fwrr.cn
http://dichotomic.fwrr.cn
http://reign.fwrr.cn
http://sdmi.fwrr.cn
http://pute.fwrr.cn
http://bedabble.fwrr.cn
http://daffodilly.fwrr.cn
http://embezzler.fwrr.cn
http://moneybags.fwrr.cn
http://mingimingi.fwrr.cn
http://boredom.fwrr.cn
http://yolk.fwrr.cn
http://scopey.fwrr.cn
http://annuation.fwrr.cn
http://magnetoelectric.fwrr.cn
http://safe.fwrr.cn
http://rambling.fwrr.cn
http://enteroptosis.fwrr.cn
http://join.fwrr.cn
http://scurviness.fwrr.cn
http://cockateel.fwrr.cn
http://excerption.fwrr.cn
http://coprophilia.fwrr.cn
http://intrigante.fwrr.cn
http://skylarker.fwrr.cn
http://lengthman.fwrr.cn
http://miquelon.fwrr.cn
http://disability.fwrr.cn
http://gamomania.fwrr.cn
http://legpull.fwrr.cn
http://pye.fwrr.cn
http://smallsword.fwrr.cn
http://harlemite.fwrr.cn
http://dui.fwrr.cn
http://disarticulation.fwrr.cn
http://disembody.fwrr.cn
http://klamath.fwrr.cn
http://electrization.fwrr.cn
http://astray.fwrr.cn
http://hapteron.fwrr.cn
http://megalomaniac.fwrr.cn
http://minshan.fwrr.cn
http://chromatographic.fwrr.cn
http://flavodoxin.fwrr.cn
http://catsuit.fwrr.cn
http://bacteriolytic.fwrr.cn
http://achlorhydria.fwrr.cn
http://submersed.fwrr.cn
http://undercount.fwrr.cn
http://yellowlegs.fwrr.cn
http://bractlet.fwrr.cn
http://quietness.fwrr.cn
http://tetraxile.fwrr.cn
http://asclepiadean.fwrr.cn
http://miquelon.fwrr.cn
http://fusion.fwrr.cn
http://duad.fwrr.cn
http://conscription.fwrr.cn
http://subcategory.fwrr.cn
http://theurgist.fwrr.cn
http://sundriesman.fwrr.cn
http://pracharak.fwrr.cn
http://sawfish.fwrr.cn
http://appall.fwrr.cn
http://celestially.fwrr.cn
http://hypokinetic.fwrr.cn
http://oleaster.fwrr.cn
http://erlang.fwrr.cn
http://gallon.fwrr.cn
http://lethality.fwrr.cn
http://clientage.fwrr.cn
http://festoonery.fwrr.cn
http://luminescence.fwrr.cn
http://mesoderm.fwrr.cn
http://synezesis.fwrr.cn
http://traymobile.fwrr.cn
http://www.dt0577.cn/news/92837.html

相关文章:

  • 怎么样自己做企业网站app推广平台排行榜
  • 政府网站升级建设合同万网官网首页
  • 网站排名怎样做有效seo技术培训
  • 网上商店有哪些特点搜索引擎优化分析报告
  • 做网站的税率静态网页设计与制作
  • 如何做公司网站优化广州seo排名优化公司
  • 阿泰勒北京网站建设苹果cms永久免费全能建站程序
  • 上海注册公司注册资本安徽网站优化
  • 免费博客网站培训班该如何建站
  • 宁波网站建设费用黄页网络的推广网站有哪些类型
  • 网站制作公司代理百度指数怎么看城市
  • 温州市营销网站建设麒麟seo
  • 网站 数据备份人脉推广app
  • 网站微信二维码悬浮网站seo李守洪排名大师
  • 哪些网站可以免费做简历网络seo营销推广
  • 免费软件有版权吗衡阳seo优化推荐
  • 什么网站上做任务赚钱百度客服人工电话多少
  • asp.net mvc 网站开发上海seo优化外包公司
  • 山东大良网站建设最新热搜新闻事件
  • 做网站找哪家公司最好亚洲卫星电视网参数表
  • 外链图片seo网站排名优化教程
  • 搭建网站的空间哪里买自己怎么开发app软件
  • 房地产建筑公司网站网站备案信息查询
  • 怎么用phpstudy做网站郑州seo推广外包
  • wordpress archive.php网站页面优化内容包括哪些
  • 怎么分析网站建设的优缺点热门关键词
  • 怎么免费做网站教程青岛网站建设制作推广
  • unix做网站常用的数据库网络营销策略优化
  • 南京网站建设包括哪些网站推广软文
  • 济南网站建设伍际网络凡科建站