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

临沂有哪几家做网站的免费发布信息平台有哪些

临沂有哪几家做网站的,免费发布信息平台有哪些,网站建设 数据库连接,新郑市住房建设局网站文章目录 一 . ElementUI 的基本安装1.1 通过 Vue 脚手架创建项目1.2 在 vue 脚手架中安装 ElementUI1.3 编写页面 ElementUI 是 Vue.js 的强大 UI 框架,让前端界面开发变得简单高效。本教程将带你从安装到实战,快速掌握 ElementUI 的核心技巧。 核心内容…

文章目录

  • 一 . ElementUI 的基本安装
    • 1.1 通过 Vue 脚手架创建项目
    • 1.2 在 vue 脚手架中安装 ElementUI
    • 1.3 编写页面

ElementUI 是 Vue.js 的强大 UI 框架,让前端界面开发变得简单高效。本教程将带你从安装到实战,快速掌握 ElementUI 的核心技巧。

核心内容:
项目搭建: 快速设置 Vue 项目并集成 ElementUI。
组件使用: 学习如何在你的 Vue 应用中使用 ElementUI 组件。
页面与路由: 创建组件,配置路由,实现页面导航。
样式与图标: 定制按钮样式,使用图标库增强界面。
在这里插入图片描述
ElementUI 专栏 : https://blog.csdn.net/m0_53117341/category_12780595.html

一 . ElementUI 的基本安装

1.1 通过 Vue 脚手架创建项目

我们使用这个命令 , 就可以创建出项目名称为 element 的项目

vue init webpack element

全称是 vue-cli init webpack element , 直接使用缩写形式即可

我们可以直接运行当前项目

cd element
npm start

稍等片刻 , 我们访问控制台提供给我们的链接 , 我们就可以访问到 Vue 的主页了

1.2 在 vue 脚手架中安装 ElementUI

我们访问 ElementUI 的介绍文档

https://element.eleme.cn/#/zh-CN/component/installation

npm i element-ui -S

那接下来 , 我们还需要指定当前项目使用 ElementUI

https://element.eleme.cn/#/zh-CN/component/quickstart

那我们将这段代码粘贴到 main.js 中

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';Vue.use(ElementUI);

那我们重新启动项目

npm start

然后我们观察一下

:

: 这句代码指的是路由相关内容

那我们也可以将自己写的页面作为组件装载到 vue 中展示给用户

1.3 编写页面

我们需要在 components 文件夹下编写我们的页面

我们先将这个组件注册到 vue 中 , 打开 router 目录下面的 index.js

import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Button from '@/components/Button'Vue.use(Router)export default new Router({routes: [{path: '/',name: 'HelloWorld',component: HelloWorld},{path: '/button',name: 'Button',component: Button}]
})

其中 , name 属性也是可以省略的

然后我们在首页也添加一个超链接 , 点击即可跳转到我们的 Button 页面

<template><div id="app"><!-- 我们自己的标签页 --><a href="#/button">点我显示 Button</a><!-- Vue 的路由 --><router-view/></div>
</template><script>
export default {name: 'App'
}
</script><style>
#app {font-family: 'Avenir', Helvetica, Arial, sans-serif;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;text-align: center;color: #2c3e50;margin-top: 60px;
}
</style>

接下来 , 我们就可以实现 Button.vue 组件了

我们将 ElementUI 官网提供给我们的样式全部复制

https://element.eleme.cn/#/zh-CN/component/button

<script setup></script><template><!-- <template> 标签内要求只能有一个 div 标签 --><div><!-- 默认按钮 --><el-row><el-button>默认按钮</el-button><el-button type="primary">主要按钮</el-button><el-button type="success">成功按钮</el-button><el-button type="info">信息按钮</el-button><el-button type="warning">警告按钮</el-button><el-button type="danger">危险按钮</el-button></el-row><!-- 简洁按钮 --><!-- 鼠标移动上去才会显示背景颜色 --><!-- 在所有标签属性中指定 plain 属性即可 --><el-row><el-button plain>朴素按钮</el-button><el-button type="primary" plain>主要按钮</el-button><el-button type="success" plain>成功按钮</el-button><el-button type="info" plain>信息按钮</el-button><el-button type="warning" plain>警告按钮</el-button><el-button type="danger" plain>危险按钮</el-button></el-row><!-- 圆角按钮 --><!-- 在所有标签属性中指定 round 属性即可 --><el-row><el-button round>圆角按钮</el-button><el-button type="primary" round>主要按钮</el-button><el-button type="success" round>成功按钮</el-button><el-button type="info" round>信息按钮</el-button><el-button type="warning" round>警告按钮</el-button><el-button type="danger" round>危险按钮</el-button></el-row><!-- 简洁按钮 --><!-- 在所有标签属性中指定 circle 属性即可 --><el-row><el-button icon="el-icon-search" circle></el-button><el-button type="primary" icon="el-icon-edit" circle></el-button><el-button type="success" icon="el-icon-check" circle></el-button><el-button type="info" icon="el-icon-message" circle></el-button><el-button type="warning" icon="el-icon-star-off" circle></el-button><el-button type="danger" icon="el-icon-delete" circle></el-button></el-row></div>
</template><style scoped></style>

我们刷新页面

那我们还可以更换简洁按钮的图标 , 打开 ElementUI 的图标库 : https://element.eleme.cn/#/zh-CN/component/icon

选择一个自己喜欢的图标 , 复制它的名称然后替换 icon 即可

<script setup></script><template><!-- <template> 标签内要求只能有一个 div 标签 --><div>type="danger" round>危险按钮</el-button></el-row><!-- 简洁按钮 --><!-- 在所有标签属性中指定 circle 属性即可 --><el-row><!-- 替换 icon 属性 --><el-button icon="el-icon-star-on" circle></el-button><el-button type="primary" icon="el-icon-edit" circle></el-button><el-button type="success" icon="el-icon-check" circle></el-button><el-button type="info" icon="el-icon-message" circle></el-button><el-button type="warning" icon="el-icon-star-off" circle></el-button><el-button type="danger" icon="el-icon-delete" circle></el-button></el-row></div>
</template><style scoped></style>

不知道你的 Vue 工程是否创建成功 , 如果对你有帮助的话 , 还请一键三连~
在这里插入图片描述

http://www.hotlads.com/news/428.html

相关文章:

  • 简述网站开发技术计算机培训短期速成班
  • 嘉兴 网站制作买链接官网
  • 怎么做网站时时彩网站seo入门基础教程书籍
  • 蚌埠企业做网站seo是什么意思 职业
  • 贵州建设项目门户网站中山口碑seo推广
  • 帮人家做家务的网站怎么自己做一个小程序
  • 平台设计网站公司电话产品推广文案怎么写
  • wordpress公园班级优化大师怎么用
  • 想自己建一个公司网站怎么做软文发布平台媒体
  • 想要导航网站推广怎么做搜索引擎都有哪些
  • 网络网站维护费怎么做会计分录硬件优化大师下载
  • 网站首页上的动画是咋做的网络营销平台排名
  • 专业网站建设首选公司上海空气中检测出病毒
  • 盘锦网站建设价位关键词搜索查询
  • c2750服务器做网站行吗餐饮营销引流都有什么方法
  • 有专门教做蛋糕的网站推广发帖网站
  • 个人网站备案备注信息深圳 网站制作
  • 礼品网站建设策划谷歌优化seo
  • 德宏做网站百度下载2022新版安装
  • 怎么做网站需求分析四川seo推广
  • 网站做淘宝客有什么要求黄页网站推广app咋做广告
  • 日本巨乳做视频网站定制网站开发
  • 复制源码 做网站小学生摘抄新闻2024
  • 毕业查询结果网站怎么做百度搜索热词排行榜
  • 绵阳免费网站建设快速排名新
  • 建设网站应该加什么服务器百度推广管家登录
  • android开发工具手机版seo推广教程
  • 上饶时时彩网站建设域名查询入口
  • 自学做网站十大搜索引擎排名
  • 网站建设收费标准流程海外广告投放公司