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

做网站需要租服务器吗wordpress主题如何使用

做网站需要租服务器吗,wordpress主题如何使用,国际电子商务网站建设,免费做网站哪家好由于es6支持哈希#xff0c;所以数据量只要不太大#xff0c;就不需要对el-cascader进行点击后在调接口出现下一级#xff0c;很简单的就是直接获取所有数据。 templatedivel-cascader :modelValuemodelValue :propsinnerProps所以数据量只要不太大就不需要对el-cascader进行点击后在调接口出现下一级很简单的就是直接获取所有数据。 templatedivel-cascader :modelValuemodelValue :propsinnerProps :optionsoptions changehandleChange filterable:show-all-levelsshowAllLevels :disableddisabled :placeholderplaceholder :clearableclearablestylewidth:100% bluronBlur focusonFocus closehandleClose visible-changeonVisibleChange /!-- --- {{ modelValue }} --/div /templatescript langts setup import { ref, reactive, toRaw, onMounted, watch, onBeforeUnmount } from vue import type { CascaderProps } from element-plus import * as api from ./api.js;const props defineProps({modelValue: {type: Array,default: []},// 是否支持清空选项clearable: {type: Boolean,default: true,},// 是否多选// multiple: {// type: Boolean,// default: false,// },// 指定某省传入该自治区的areacodedesignation: {type: String,default: ,},// 仅显示最后一级showAllLevels: {type: Boolean,default: true,},// 是否禁用disabled: {type: Boolean,default: false,},// 输入框占位文本placeholder: {type: String,default: ,},// 是否选择任意一级选项还是最后叶子结点checkStrictly: {type: Boolean,default: true,},// 次级菜单的展开方式,click和hoverexpandTrigger: {type: String,default: click,},// 多选个数限制selectNummultipleSelectNum: {type: Number,default: 1,},// 省市县乡镇显示层级默认为2到区县。0为省1为市2为区县3为乡镇level: {type: Number,default: 2,}, })let options: any ref([]) //树 const watchArr ref([])onMounted(() {// 获取全量数据getAllData() })//重新定义一个值来接受prop const isMultiple ref(false)//因为prop中的值非动态响应所以需要通过watch监听immediate 初始化时接收父组件中的传值 watch(() props.multipleSelectNum, () {// isMultiple.value props.multipleSelectNum;if(props.multipleSelectNum 1) {isMultiple.value true}console.log(isMultiple.value,props.multipleSelectNum,---props.multipleSelectNum;);}, {immediate: true })onBeforeUnmount(() {})const emit defineEmits([update:modelValue, change]) const handleChange (e: any, e2: any) {watchArr.value eemit(change, e)emit(update:modelValue, e) }async function getAllData() {let res await api.SearchAdministrativeDivisions({queryArea: props.designation,level: props.level})options.value res.data }function onFocus(e: any) { } async function onBeforeFilter(e: any) {let res await api.SearchAdministrativeDivisions({queryArea: e})const fn (arr: any[]) {arr.forEach((item, index) {if (item.children item.children.length) {item.children fn(item.children)} else {if (item.children) delete item.children}})return arr}// console.log(options, ---options);options.value fn(res.data) } // const isMultiple ref(false) const innerProps: CascaderProps {checkStrictly: props.checkStrictly,// lazy: true,value: areaCode,label: name,multiple: isMultiple.value, //modifyexpandTrigger: props.expandTrigger, } const handleClose () { } const onBlur () {// console.log(---onBlur); } const onVisibleChange (e: any) {// if (props.modelValue.length props.multipleSelectNum props.multiple true) {if (props.modelValue.length props.multipleSelectNum isMultiple.value true) { //modifyfunction onRabbit(list: any) {list.forEach((el: any) {if (el.children el.children.length 0) {el.children onRabbit(el.children);}el.disabled false;el.isFlag false});return list;}const newList onRabbit(options.value);options.value newList;} } // 监听 watch(() watchArr.value,(newVal, oldVal) {// if (props.multiple true) {if (isMultiple.value true) { //modify// console.log(oldVal,watch监听变化前的数)// console.log(newVal, watch监听变化后的数据)if (newVal.length props.multipleSelectNum) {function onRabbit(list: any) {list.forEach((el: any) {if (el.children el.children.length 0) {el.children onRabbit(el.children);}newVal.forEach((v: any) {if (v[v.length - 1] ! el.areaCode) {if (el.isFlag) {} else {el.disabled trueel.isFlag true}} else {el.disabled falseel.isFlag true}})});return list;}const newList onRabbit(options.value);options.value newList;} else {function onRabbit(list: any) {list.forEach((el: any) {if (el.children el.children.length 0) {el.children onRabbit(el.children);}el.disabled false;el.isFlag false});return list;}const newList onRabbit(options.value);options.value newList;}}},{immediate: true, // 立即执行deep: true // 深度监听} ) /scriptstyle/style
http://www.ho-use.cn/article/10819933.html

相关文章:

  • 源码分享网站网站制作结算确认函
  • 自己做的网站验证码出不来怎么回事素材网站怎么推广
  • 怎么样搭建qq号网站做网站没有高清图片怎么办
  • 展示型网站解决方案福建网站建设费用
  • 美食烹饪网站策划书做简历的网站叫什么软件
  • 个人做的小网站需要备案公司网站建设的意义方案
  • 如何建设个人网站凡科怎么样Vantage wordpress主题
  • 中国建设银行网站-诚聘英才网站的页面
  • 如何优化网站关键词厂字形网页布局网站
  • 网站类别页面怎么做最近一周的国内新闻
  • 建瓯网站制作网站建设会议议程
  • 古交做网站网站信息安全建设方案
  • 个人的视频网站如何做嘉兴网站专业制作
  • 编程网站项目做哪个比较好做网站怎么切psd图
  • 网站被抄袭怎么办网站图片处理方案
  • 赶集网站建设多少钱微商城怎么开
  • 凡科网站官网百度一下网页
  • 外贸cms 网站wordpress4.5 ueditor 1.4.3
  • 免费公司注册网站吗深圳网站建设服务中心官网
  • 深圳中小企业网站建设帝国cms手机网站模板
  • 杭州 网站定制asp.net网站运行助手
  • 深圳门户网站wordpress软件下载主题
  • 如何破解网站后台密码加强服务保障满足群众急需ruu7
  • 百度网站地图提交网站做pc
  • 如何制作餐馆网站网站建设技巧亅金手指排名25
  • 茂名网站建设维护口碑好的定制网站建设制作商
  • 公司网站建设服务公司企业网络推广网站建设
  • 塘厦镇住房规划建设局网站微信怎么申请小程序
  • 淘客网站免费开源源码应用下载app排行榜
  • 商城网站设计服务网站代码的重点内容是什么