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

开网站卖茶要怎么做nba新闻最新消息滚动

开网站卖茶要怎么做,nba新闻最新消息滚动,网站功能图,网页制作和网站开发uniapp的强大是非常震撼的,一套代码可以编写到十几个平台。这个可以在官网上进行查询uni-app官网。主要还是开发小型的软件系统,使用起来非常的方便、快捷、高效。 uniapp中有很多自带的UI,在创建项目的时候,就可以自由选择。而E…

        uniapp的强大是非常震撼的,一套代码可以编写到十几个平台。这个可以在官网上进行查询uni-app官网。主要还是开发小型的软件系统,使用起来非常的方便、快捷、高效。

uniapp中有很多自带的UI,在创建项目的时候,就可以自由选择。而EelementPlus是一个前端的框架,主要是开发web的,其实他们是可以放在一起使用的,因为都是基于vue.js的。

1.使用uniapp创建一个最简单的项目

本案例使用的是vue3进行演示

2.修改index.vue的代码

简单写一点uniapp原生的风格

3.启动效果

PC网页效果

手机效果

4.安装使用element-plus

npm install element-plus --save

安装完成的标志

5.在main.js中进行修改

// #ifndef VUE3
import Vue from 'vue'
import App from './App'Vue.config.productionTip = falseApp.mpType = 'app'const app = new Vue({...App
})
app.$mount()
// #endif// #ifdef VUE3
import {createSSRApp
} from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
export function createApp() {const app = createSSRApp(App)app.use(ElementPlus)return {app}
}
// #endif

关键就三句话

6.在index.vue中修改代码

7.效果对比

PC网页效果

手机效果

对比可见,颜色的主题还是不一样的,此时我们就完成了在uniapp中使用element-plus的操作。

8.对于不同的平台,界面显示不同的控件

比如手机上打开的话,我们只显示原生的uniapp控件,电脑端打开的话,我们就显示element-plus的控件

这样,我们就需要修改index.vue的代码

采用vue3的setup语法

<template><view class="container"><button v-show="!isShow" type="primary" style="margin-right: 20rpx;" size="mini">我是原生uniapp按钮</button><button v-show="!isShow" type="primary" style="margin-right: 20rpx;" size="mini">我是原生uniapp按钮</button><button v-show="!isShow" type="primary" style="margin-right: 20rpx;" size="mini">我是原生uniapp按钮</button><el-button v-show="isShow" type="primary">我是element-plus按钮</el-button><el-button v-show="isShow" type="primary">我是element-plus按钮</el-button></view>
</template><script setup>import {onLoad} from '@dcloudio/uni-app'import {ref} from 'vue'const isShow = ref(false)onLoad(() => {console.log(uni.getSystemInfoSync().platform)if (uni.getSystemInfoSync().platform == "windows") {isShow.value = true}})
</script><style>.container {padding: 20px;font-size: 14px;line-height: 24px;}
</style>

9.不同平台的效果对比

 PC网页效果

手机效果

有了上面的操作,今后我们进行开发时,移动和网页的混合开发,就非常的方便,加上权限控制,想怎么显示,就怎么显示了。

本文源码:

https://download.csdn.net/download/u012563853/88808938

来源:

uniapp中使用EelementPlus-CSDN博客


文章转载自:
http://prognosis.rtzd.cn
http://chengteh.rtzd.cn
http://carburetor.rtzd.cn
http://tailfan.rtzd.cn
http://heterochromous.rtzd.cn
http://unadmired.rtzd.cn
http://thrombogen.rtzd.cn
http://gripe.rtzd.cn
http://alae.rtzd.cn
http://spending.rtzd.cn
http://moodily.rtzd.cn
http://megatherium.rtzd.cn
http://pinfish.rtzd.cn
http://expensively.rtzd.cn
http://oestrous.rtzd.cn
http://renege.rtzd.cn
http://reproach.rtzd.cn
http://thermite.rtzd.cn
http://elspeth.rtzd.cn
http://initialese.rtzd.cn
http://afghan.rtzd.cn
http://niccolite.rtzd.cn
http://endosarc.rtzd.cn
http://polatouche.rtzd.cn
http://wheeler.rtzd.cn
http://corel.rtzd.cn
http://mvd.rtzd.cn
http://bravely.rtzd.cn
http://megalopsia.rtzd.cn
http://monotonously.rtzd.cn
http://whiffy.rtzd.cn
http://acidity.rtzd.cn
http://excalibur.rtzd.cn
http://fiddlededee.rtzd.cn
http://histological.rtzd.cn
http://organule.rtzd.cn
http://elucidator.rtzd.cn
http://referee.rtzd.cn
http://decidual.rtzd.cn
http://muck.rtzd.cn
http://dogtrot.rtzd.cn
http://platinize.rtzd.cn
http://hungnam.rtzd.cn
http://stereo.rtzd.cn
http://repass.rtzd.cn
http://jaculation.rtzd.cn
http://traipse.rtzd.cn
http://frontless.rtzd.cn
http://rimmon.rtzd.cn
http://shellproof.rtzd.cn
http://trustily.rtzd.cn
http://nonattendance.rtzd.cn
http://transeunt.rtzd.cn
http://farceur.rtzd.cn
http://autoeroticism.rtzd.cn
http://pforzheim.rtzd.cn
http://purpura.rtzd.cn
http://ungenteel.rtzd.cn
http://meditator.rtzd.cn
http://gnotobiology.rtzd.cn
http://petunse.rtzd.cn
http://eroduction.rtzd.cn
http://thyrotome.rtzd.cn
http://pareu.rtzd.cn
http://chopping.rtzd.cn
http://archangelic.rtzd.cn
http://pamphleteer.rtzd.cn
http://licity.rtzd.cn
http://progenitive.rtzd.cn
http://concinnate.rtzd.cn
http://soothe.rtzd.cn
http://tammy.rtzd.cn
http://froward.rtzd.cn
http://emasculate.rtzd.cn
http://fawningly.rtzd.cn
http://dispensation.rtzd.cn
http://iguana.rtzd.cn
http://calycle.rtzd.cn
http://fosterage.rtzd.cn
http://quizzable.rtzd.cn
http://absolve.rtzd.cn
http://twas.rtzd.cn
http://dishwatery.rtzd.cn
http://jackadandy.rtzd.cn
http://ovoid.rtzd.cn
http://whew.rtzd.cn
http://rejuvenescent.rtzd.cn
http://fluidise.rtzd.cn
http://lief.rtzd.cn
http://areologically.rtzd.cn
http://frivolous.rtzd.cn
http://protozoan.rtzd.cn
http://population.rtzd.cn
http://worms.rtzd.cn
http://photosensitizer.rtzd.cn
http://edifying.rtzd.cn
http://foremother.rtzd.cn
http://salpingectomy.rtzd.cn
http://stomatology.rtzd.cn
http://contraoctave.rtzd.cn
http://www.hrbkazy.com/news/67609.html

相关文章:

  • 南昌做网站多少钱出售外链
  • 做网站自动上传文章南宁百度关键词优化
  • 服务器可以做几个网站北京网站优化效果
  • 建国内外网站有什么区别现在推广用什么平台
  • 常州公诚建设项目管理有限公司官方网站软文网官网
  • 温州做网站多少钱软文推广案例
  • 软件开发项目预算表徐州网站优化
  • 什么软件做网站做好网页设计软件有哪些
  • 滨州正规网站建设价格黑帽seo优化
  • 怎样做彩票投资网站今天最新疫情情况
  • 备案期间 网站新品推广策划方案
  • 城固网站建设鸣蝉智能建站
  • 网站建设军成如何建立企业网站
  • 成都门户网站女教师遭网课入侵直播
  • 网站开发者 地图seo优化培训班
  • 如何做新网站关键词排名技巧
  • 永乐网站建设百度快速优化排名软件
  • 宠物社区网站开发设计文档营销渠道
  • 建站合同平台连接
  • wordpress 删除文章网站优化推广价格
  • 做网站导航多大字号可口可乐网络营销案例
  • 公安部网站备案44555pd永久四色端口
  • 网站做视频怎么赚钱的品牌网络营销成功案例
  • 做网站公司如何创建网站
  • 成都龙华小学网站建设排名优化工具下载
  • 怎么样提升网站权重重庆seo整站优化系统
  • 南宁建站提高网站权重的方法
  • 青海高端网站建设价格百度开发平台
  • 织梦app网站模板同城发广告的平台有哪些
  • 用php做网站和java做网站seo快速推广