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

做设计常用的网站网站信息平台建设方案

做设计常用的网站,网站信息平台建设方案,晚上国网app,敏捷开发平台采用uniapp-vue3实现的数据选择器#xff0c;支持H5、微信小程序#xff08;其他小程序未测试过#xff0c;可自行尝试#xff09; 支持本地自定义过滤、远程接口过滤#xff0c;为了避免弹窗面板超出边界的情况#xff0c;自动计算弹窗面板安置的位置#xff08;在微信… 采用uniapp-vue3实现的数据选择器支持H5、微信小程序其他小程序未测试过可自行尝试 支持本地自定义过滤、远程接口过滤为了避免弹窗面板超出边界的情况自动计算弹窗面板安置的位置在微信小程序节点信息是页面渲染后才拿得到所以会有一段位移过程大神如果更合适的方案可以自行优化支持自定义弹窗面板显示内容支持自定义取值字段默认为options: [{label‘键’, value: ‘值’, …}]格式 由于移动端输入场景下会弹出键盘如果设置为失焦时关闭弹窗面板, 则收起键盘时弹窗就会被关闭无法再进行下一步选择。所以采用弹窗常驻手动点击右边图标关闭弹窗的方式 可到插件市场下载尝试 https://ext.dcloud.net.cn/plugin?id17287 使用示例 H5示例 微信小程序示例 props属性 id 组件唯一标识 同个页面存在多个wo-select组件的情况id为必填项因为需要通过id去计算弹窗面板与输入框的位置以便安置弹窗面板在合适的位置避免超出边界 id: {type: String,default: inputId,reqiured: true },value 默认值valueField字段指定的字段值 value: {type: String || Number,default: null },options 结构化数据 options: {type: Array,default: () [] },placeholder 占位描述 placeholder: {type: String,default: 请选择数据 },labelField 选中后输入框显示的值的取值字段 labelField: {type: String,default: label },如果 options [{ name: 按钮1, id: 1}, { name: 按钮2, id: 2 }]; labelField name 则选中后输入框中则显示name字段的值valueField 选中值的取值字段 valueField: {type: String,default: value }如果 options [{ name: 按钮1, id: 1}, { name: 按钮2, id: 2 }]; valueField id 则选中值就是id字段的值事件 filter 过滤事件支持本地过滤、远程过滤等 on-change 选中后返回值值为valueField配置的字段值 示例 templateview classcontentview classcardview classtitle默认样式/viewviewwo-selectclasswhite-select:idinputOne:optionsstate.data:label-fieldlabel:value-fieldvaluefilteronFilteron-changeonChangeStaff1/wo-select/viewview classtitle选中值为{{ state.res1 }}/view/viewview classcardview classtitle设置初始值/viewviewwo-selectclasswhite-select:idinputTwo2:value2:optionsstate.data:label-fieldlabel:value-fieldvaluefilteronFilteron-changeonChangeStaff2/wo-select/viewview classtitle选中值为{{ state.res2 }}/view/viewview classcardview classtitle自定义面板/viewviewwo-selectclasswhite-selectrefselectorRef1:idinputTwo1:optionsstate.data:label-fieldlabel:value-fieldvaluefilteronFilteron-changeonChangeStaff3view styledisplay: flex; flex-direction: column; gap: 20rpxview styledisplay: flex; justify-content:center这是头部/viewviewv-foritem in state.data:keyitem.valuestylefont-size: 24rpx; z-index: 120; display: flex; justify-content: space-between;clickselectorRef1.onClickSelect(item)view stylewidth: 200px;{{ item.label }}/viewview stylebackground-color: dodgerblue; color: white; padding: 4px 8px;border-radius: 8rpx;{{ item.category }}/view/view/view/wo-select/viewview classtitle选中值为{{ state.res3 }}/view/viewview classcard darkview classtitle stylecolor: white暗黑样式/viewviewwo-selectclassdark-selectrefselectorRef:idinputTwo:optionsstate.data:label-fieldlabel:value-fieldvaluefilteronFilteron-changeonChangeStaff4view styledisplay: flex; flex-direction: column; gap: 20rpxviewv-foritem in state.data:keyitem.valuestylefont-size: 24rpx; z-index: 120; display: flex; justify-content: space-between;clickselectorRef.onClickSelect(item)view stylewidth: 200px;{{ item.label }}/viewview stylebackground-color: dodgerblue; color: white; padding: 4px 8px;border-radius: 8rpx;{{ item.category }}/view/view/view/wo-select/viewview classtitle stylecolor: white;选中值为{{ state.res4 }}/view/viewview classflex-center内容区/viewview classcardview classtitle面板位置自动调整/viewviewwo-selectclasswhite-select:idinputThree:placeholder输入过滤:optionsstate.data:label-fieldlabel:value-fieldvaluefilteronFilteron-changeonChangeStaff5/wo-select/viewview classtitle选中值为{{ state.res5 }}/view/viewview classflex-center内容区/view/view /templatescript setup langtsimport { reactive, ref } from vueconst selectorRef1 ref()const selectorRef ref();const state reactive({data: [{label: 哈墨的脑袋,value: 1,category: 正常},{label: 摩西女神的手臂,value: 2,category: 异常},{label: 奥尔墨的铠甲,value: 3,category: 维修中},{label: 摩西女神的翅膀,value: 4,category: 正常},{label: 战神瑞尔的斧头,value: 5,category: 正常},{label: 丘比特的箭头,value: 6,category: 异常},{label: 雅典娜的光明盾,value: 7,category: 异常}] as any[],userOptions: [] as any[],res1: ,res2: ,res3: ,res4: ,res5: ,})// 克隆一份数据用于过滤筛选state.userOptions JSON.parse(JSON.stringify(state.data))const onFilter (e: any) {state.data state.userOptions.filter((res) {return res.label.indexOf(e.detail.value) ! -1});};const onChangeStaff1 (e: any) {state.res1 e};const onChangeStaff2 (e: any) {state.res2 e};const onChangeStaff3 (e: any) {state.res3 e};const onChangeStaff4 (e: any) {state.res4 e};const onChangeStaff5 (e: any) {state.res5 e}; /scriptstyle scoped.content {width: 100%;font-size: 28rpx;}.card {padding: 20px;}.dark {background-color: black;}.dark-select {color: white;}.title {font-weight: 600;font-size: 24rpx;padding-bottom: 10rpx;}:deep .dark-select .panel {background-color: black;}.box {padding: 20px;}.flex-center {display: flex;justify-content: center;align-items: center;height: 600px;background: #666;} /style
http://www.zqtcl.cn/news/885737/

相关文章:

  • 广东中山市做网站python做的网站如何部署
  • VPS做镜像网站wordpress 安装七牛
  • 雄安做网站优化的公司小程序开发公司哪里强
  • 做的网站没有注册国家建设部网站倪虹
  • 中英文网站怎么实现做网站有名的公司
  • 先网站开发后软件开发显示网站运行时间代码
  • 品牌网站制作流程图百度网页版入口页
  • 哪些人需要做网站网站开发工程师 招聘
  • 东莞网站建设多长时间如何将网址提交到一些权重比较高的网站
  • 阳江网站seo公司wordpress建站博客
  • 我想做京东网站淘宝怎么做的wordpress淘宝联盟转链
  • 虚拟钱包对接网站开发视频教程营销型网站建设要懂代码吗
  • 莱州教育网站一站式网站搭建
  • 开发网站开票名称是什么捕鱼游戏网站开发商
  • 我国中小企业网站建设怎样办自己的网站
  • 如何推广自己网站链接通化北京网站建设
  • 小型的游戏网站怎么做WordPress设置作者信息
  • 网站建设师要求关键词优化排名易下拉排名
  • 网站建设步骤及推广方法做网站的公司叫什么
  • 怎么建立自己网站 asp网站做视频流量赚钱
  • 全屏网站宽度域名服务器怎么设置
  • 网站图片切换js代码金融公司网站方案
  • 企业网站开发步骤开源软件开发
  • 建设项目环境影响登记表备案系统网站签署网站建设协议新闻
  • 有的网站在浏览器打不开怎么办最近中国新闻热点大事件
  • 网站模板组件随州网站建设有哪些
  • 网站建设微信版8080端口wordpress
  • 急求聊城网站建设微信网页注册入口
  • 商城网站建站程序网站内链布局
  • 盐城网站建设方案全景旅游网站项目建设