页面运用到了vant的Stepper 步进器来实现商品的增加和减少<template> <div class="box"> <div class="block"> <div class="shop" v-for="(item,index) in orderData" :key="index"> <d
原创
2022-07-06 17:17:51
495阅读
【饿了么】—— Vue2.0高仿饿了么核心模块&移动端Web App项目爬坑(一) 前言:学习Vue.js高仿饿了么课程过程中,总结了这个Web App项目从准备到开发完毕自己觉得很重要的知识点。这一篇主要介绍:项目准备、页面骨架开发、header组件开发。 Appheader 一、项目分析&学习目标
转载
2023-08-22 11:38:53
397阅读
一般情况下如果全部应用CDN或者直接全局使用,直接根据文档就行,我这里重点讲一下这个UI的框架按需引入以及REM适配(官网也有提到,只不过有点模糊,新手入门要研究一会,我只是阐述重点,以提高效率),下面开始:第一步不用说照着官网进行安装,NPM或者是yarn,都是可以的npm i vant -S
or
yarn and vant安装之后我们在babel.config.js中进行配置插件:mod
8 个月前Mint UIGitHub:github.com/ElemeFE/mint项目主页:mint-ui.github.io/#Demo:elemefe.github.io/mint-文档:mint-ui.github.io/docs/#由饿了么前端团队推出的 Mint UI 是一个基于 Vue.js 的移动端组件库。自 6 月初开源以来,根据社区和团队内部的反馈,修复了一些 bug 并新增了
Pagination.vue<template><div id="pagination" :style="{'justify-content':textAlign}"> <div> <div> <span class="pages">共 {{allCounts
原创
2021-09-09 14:21:19
568阅读
Pagination.vue<template><div id="pagination" :style="{'justify-content':textAlign}"> <div> <div>
原创
2022-03-04 13:37:54
310阅读
这里我写一下我自己用的vue 移动端适配 ,可能跟别人的不一样。但是效果是一样的。我
转载
2023-02-27 15:46:50
737阅读
在本文中,我列出了前 9 个最受欢迎的(根据 NPM 下载量和 Github stars,从上到下排名)UI 库,供您启动您梦想中的 Vue 项目。1、Vuetify(36.2k 星,每周 400k 次下载)Vuetify 是一个基于 Material UI 的 UI 库,有助于为您的网站构建美观、高质量的交互体验。Vuetify 的优势包括清晰的文档、庞大的社区以及在其最新版本中对
购物车左滑事件goods.startx = 0;//滑动goods.endx = 0;//结束goods.isshow = false;//显示隐藏标签中添加滑动事件<div :class="ent,idx)" @t...
原创
2020-06-28 23:04:47
221阅读
购物车左滑事件goods.startx = 0;//滑动goods.endx = 0;//结束goods.isshow = false;//显示隐藏标签中添加滑动事件<div :class="{list:true,activeleft:item.isshow}" v-for="(item,idx) of goods" :key="idx" @touchstart="start($event,idx)" @touchmove="move($event,idx)" @t...
原创
2020-06-28 23:04:47
387阅读
1.删除功能:需求:就是点击删除会弹出弹框--根据选择---删除相应的内容 实现的思路:1.利用element组件找到对话框或弹出层,然后进行相应的修改即可(注:这里需要传递id)代码展示:①布局忽略 只有js部分//删除是需要调用接口的 并且需要传递相应的id 如:
(具体操作参照接口文档)
// 删除权限
export function delPermission(id
转载
2024-08-30 11:32:28
481阅读
Vue 移动端、PC 端适配可以使用 lib-flexible、amfe-flexible、postcss-pxtorem、postcss-px2rem 和 postcss-px-to-viewport 这几个插件。 &n
转载
2024-02-18 20:23:38
1406阅读
vue项目pc端和移动端适配1、pc端适配一、样式中根据设计稿确定缩放比例(可以设置全局或者部分页面)二、监听窗口大小改变,设置根字体大小 created() {
// 获取当前设备的宽度,设置rem的根字体大小
let width = window.innerWidth;
width = width <= 1200 ? 1200 : width;
const htmlObj = d
转载
2024-05-21 10:54:56
2695阅读
1.报错 组件没注册报错 js vue.esm.js?efeb:591 [Vue warn]: Unknown custom element: did you register the component correctly? For recursive components, make sure ...
转载
2021-10-11 13:34:00
184阅读
2评论
1. 设置动态根字号大小,/public/phone-adapt.js,在index.html中引入 (function (doc, win) { const docEl = win.document.documentElement; const resizeEvt = 'orientationch ...
转载
2021-10-22 13:21:00
898阅读
2评论