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

现在公司做各网站要多少钱网站数据分析

现在公司做各网站要多少钱,网站数据分析,天津微信网站开发,网页升级访问永久更新单选注意点#xff1a; touchmove.prevent: 在 touchmove 事件上添加 .prevent 修饰符#xff0c;以阻止默认的滚动行为。 handleTouchStart: 记录触摸开始的 Y 坐标和当前的 translateY 值。 handleTouchMove: 计算触摸移动的距离#xff0c;并更新 translateY 值。 han… 单选注意点 touchmove.prevent: 在 touchmove 事件上添加 .prevent 修饰符以阻止默认的滚动行为。 handleTouchStart: 记录触摸开始的 Y 坐标和当前的 translateY 值。 handleTouchMove: 计算触摸移动的距离并更新 translateY 值。 handleTouchEnd: 根据 translateY 计算当前选中的索引并更新 translateY 值。 handleCancel: 触发取消事件。 handleConfirm: 触发确认事件并传递当前选中的选项。 clampTranslateY: 确保 translateY 值在合理范围内。 多选注意点 clickItem: 为选中的选项改变样式 handleConfirm: 触发确认事件并传递当前选中的选项。 远程搜索多选注意点 1. 单独给el-popper设置样式发现无效原因是el-popper和div idapp.../div组件处于同一层级解决方法是使用popper-class属性给el-popper定义一个class另外在style中去掉scoped。 效果如下 单选/多选picker.vue组件: templatedivdiv classpicker-mask/divdivclasspickertouchstarthandleTouchStarttouchmovehandleTouchMovetouchmove.preventhandleTouchMovetouchendhandleTouchEnddiv classpicker-actionsel-button typetext clickhandleCancel取消/el-buttonel-button typetext clickhandleConfirm确认/el-button/divdiv classpicker-box v-ifchooseOptions.lengthdivclasspicker-content:style{ transform: translateY(${translateY}px) }divv-for(item, index) in chooseOptions:keyindex:classitem.chooseFlag ? choose-item : picker-itemclickmultiple ? clickItem(index) : null{{ labelKey ? item[labelKey] : item }}/div/div/divdiv classempty v-else暂无数据/divdivv-ifchooseOptions.length !multipleclasspicker-highlight/div/div/div /templatescript export default {props: {options: {type: Array,default: () []},labelKey: {type: String,default: },selectedOption: {type: [Object, Array],default: () []},multiple: {type: Boolean,default: false}},data() {return {startY: 0,translateY: 40,currentIndex: 0,startTranslateY: 40,chooseOptions: this.multiple? this.options?.map(v ({ ...v, chooseFlag: false })) || []: this.options || []};},mounted() {if (this.multiple this.selectedOption?.length) {console.log(selectedOption, this.selectedOption);console.log(this.options);this.chooseOptions this.options?.map(v ({...v,chooseFlag: this.selectedOption?.some(item item[this.labelKey] v[this.labelKey])})) || [];}// 根据选项列表和当前选中项设置当前索引和滚动位置if (!this.multiple this.options.indexOf(this.selectedOption) ! -1) {this.currentIndex this.options.indexOf(this.selectedOption);this.translateY -40 * this.currentIndex 40;}},methods: {// 记录触摸开始的 Y 坐标和当前的 translateY 值handleTouchStart(event) {this.startY event.touches[0].clientY;this.startTranslateY this.translateY ?? 0;},// 计算触摸移动的距离并更新 translateY 值。handleTouchMove(event) {const deltaY event.touches[0].clientY - this.startY;this.translateY this.startTranslateY deltaY;this.clampTranslateY();},// 根据 translateY 计算当前选中的索引并更新 translateY 值handleTouchEnd() {const index Math.round(this.translateY / 40);this.translateY index * 40;this.currentIndex -Math.round((this.translateY - 40) / 40);},// 确保 translateY 值在合理范围内clampTranslateY() {const itemHeight 40;const maxTranslateY 40;const minTranslateY maxTranslateY - (this.options.length - 1) * itemHeight;this.translateY Math.max(minTranslateY,Math.min(maxTranslateY, this.translateY));},clickItem(index) {this.chooseOptions[index].chooseFlag !this.chooseOptions[index].chooseFlag;},handleCancel() {console.log(cancel);this.$emit(cancel);},handleConfirm() {const result this.multiple? this.chooseOptions?.filter(v v.chooseFlag): this.chooseOptions?.[this.currentIndex];this.$emit(confirm, result);}} }; /scriptstyle scoped .picker-mask {z-index: 2014;position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.7);border-radius: 8px; } .picker {position: fixed;bottom: 0;left: 0;width: 100%;height: 200px;overflow: hidden;background-color: #fff;z-index: 2014;color: #323233;font-size: 16px;border-radius: 8px; } .picker-box {flex: 1;overflow: hidden; }.picker-content {display: flex;flex-direction: column;align-items: center;transition: transform 0.3s ease; }.picker-item {height: 40px;line-height: 40px;text-align: center;width: 100%; }.picker-highlight {position: absolute;top: 60%;left: 0;width: 100%;height: 40px;transform: translateY(-50%);background-color: rgba(255, 255, 255, 0.7);border-top: 1px solid #ccc;border-bottom: 1px solid #ccc; }.picker-actions {width: 100%;display: flex;justify-content: space-between;padding: 10px 0;z-index: 2024;background-color: #fff;.el-button {margin: 0 8px;} }.choose-item {height: 40px;line-height: 40px;text-align: center;color: #2c68ff;width: 100%; }.choose-item::after {position: absolute;right: 20px;font-family: element-icons;content: ;font-size: 12px;font-weight: bold;-webkit-font-smoothing: antialiased; }.empty {text-align: center; } /style远程搜索多选picker组件可以增加远程搜索属性自己改造使用 templatedivdiv classpicker-mask/divdiv classpickerdiv classpicker-actionsel-button typetext clickhandleCancel取消/el-buttonel-button typetext clickhandleConfirm确认/el-button/divdiv classpicker-boxel-selectcollapse-tagsfilterablemultiplevalue-keyiddefault-first-option:clearabletruev-modelselectListplaceholder请输入popper-classselect-popperchangehandleChangeel-optionv-foritem in userSuccessorNowList:keyitem.id:valueitem:labelitem.vname//el-select/div/div/div /templatescript export default {props: {selectedOption: {type: Array,default: () []},labelKey: {type: String,default: }},data() {return {selectList: [],userSuccessorNowList: [{ id: 1, vname: aaa },{ id: 2, vname: bbb },{ id: 3, vname: ccc },{ id: 4, vname: aaa },{ id: 5, vname: bbb },{ id: 6, vname: ccc }]};},mounted() {if (this.selectedOption?.length) {console.log(selectedOption, this.selectedOption);this.selectList this.selectedOption;}},methods: {handleChange(val) {this.selectList val;console.log(selectList, this.selectList);},handleCancel() {this.$emit(cancel);},handleConfirm() {this.$emit(confirm, this.selectList);}} }; /script style .select-popper {width: 100vw !important;z-index: 2014 !important;left: 0 !important;box-shadow: none;height: 120px !important;overflow: auto;.popper__arrow {display: none !important;}.el-scrollbar__view {text-align: center;} } /stylestyle scoped .picker-mask {z-index: 1014;position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.7);border-radius: 8px; } .picker {position: fixed;bottom: 0;left: 0;width: 100%;height: 250px;overflow: hidden;background-color: #fff;z-index: 1014;color: #323233;font-size: 16px;border-radius: 8px;.el-select {width: 100%;.el-input__suffix {display: none;}} }.picker-actions {width: 100%;display: flex;justify-content: space-between;padding: 10px 0;z-index: 2024;background-color: #fff;.el-button {margin: 0 8px;} }.picker-box {flex: 1;overflow: hidden; } /style选择器父组件 templatedivdiv classselect-box clicktogglePickerdiv classselect-contentdiv classselect-labelspan classlabel{{ label }}span v-ifrequired stylecolor: rgba(253, 75, 76, 1) * /span/span/divspanclassselect-value:style{ color: ${!selectedOption ? rgba(0,0,0,0.25) : } }{{ selectedOption ? showResults(selectedOption) : placeholder }}/span/divi classel-icon-arrow-right/i/divdiv v-ifshowPickerSearchPickerv-ifpickerType search:optionsoptions:labelKeylabelKeyconfirmhandleConfirmcancelhandleCancel:selectedOptionselectedOption/Pickerv-else:optionsoptions:labelKeylabelKeyconfirmhandleConfirmcancelhandleCancel:selectedOptionselectedOption:multiplemultiple//div/div /templatescript import Picker from ../Picker; import SearchPicker from ../SearchPicker;export default {components: {Picker,SearchPicker},props: {label: {type: String,default: },pickerType: {type: String,default: },required: {type: Boolean,default: false},options: {type: Array,default: () []},labelKey: {type: String,default: },placeholder: {type: String,default: 请选择},multiple: {type: Boolean,default: false}},data() {return {selectedOption: null,showPicker: false};},mounted() {this.getResults();},methods: {getResults() {if (this.multiple) {this.selectedOption this.selectedOption || null;} else {this.selectedOption this.selectedOption?.[this.labelKey];}},showResults(selectedOption) {if (this.multiple) {return selectedOption.map(v v[this.labelKey]).join(,);} else {return selectedOption;}},togglePicker() {this.showPicker !this.showPicker;},handleConfirm(selectedOption) {if (this.multiple) {this.selectedOption selectedOption?.length ? selectedOption : null;} else {this.selectedOption selectedOption;}this.showPicker false;this.getResults();},handleCancel() {this.showPicker false;}} }; /scriptstyle langscss scoped .select-box {width: 100%;height: 48px;line-height: 40px;text-align: left;background-color: #fff;cursor: pointer;display: flex;justify-content: space-between;align-items: center;.select-content {display: flex;align-items: center;.select-label {width: 90px;}.select-value {include textElipsis(1);width: calc(100% - 90px);}}span {font-family: PingFangSC, PingFang SC;font-weight: 400;font-size: 16px;color: rgba(0, 0, 0, 0.85);line-height: 24px;text-align: left;font-style: normal;text-transform: none;}i {color: rgba(0, 0, 0, 0.45);} } /style
http://www.hkea.cn/news/14486197/

相关文章:

  • 网站建设实训意义个人博客网站备案吗
  • 有哪些网站可以用免费 wordpress 主题
  • 网站建设需要哪些软件做系统去哪个网站好
  • 猪八戒网网站建设html5手机网站实例
  • 网站外链代发中国房产网
  • 网站开发工资多少钱老师直播课
  • 网页设计网站设计欣赏建材企业网站模板
  • 网站备案手续网址转化短链接
  • 网站集约化建设背景天津市中小企业局网站
  • 西宁网站建设君博推荐建站模板更改
  • 网站框架优化网站内链有什么用
  • 网站怎么添加流量长沙做网站公
  • 怎么做网站图标石景山网站制作建设公司
  • 天猫网站建设的目标做淘宝优惠券怎么有网站
  • 网站备份脚本友情链接平台网站
  • 如何查看网站 是哪家做的怎么做网站平台
  • 建设门户网站多少钱做网站的公司搞什么活动
  • 工商网上怎么申请注册公司网站如何做seo优化
  • cms网站开发php建设什么网站可以上传视频
  • 安徽省高等级公路工程建设指挥部网站wordpress 聊天室
  • 甘肃网站开发公司自己创做网站
  • 自己怎么做网站链接网站seo价格
  • 用word 做网站成都h5网站建设
  • ipad 设计网站wordpress时间有问题
  • 国家建设 免费论文期刊网站网站制作思路
  • 网站开发有哪些参考文献天津电力建设公司招标网站
  • 山东公司网站建设大街网企业招聘官网
  • 灵芝住房和城乡建设局局网站投资担保网站建设
  • 厦门正规网站建设多少邯郸哪里可以学建网站
  • 潍坊快速网站排名iis端口相同不同网站建设