<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Vue on Roam Tech-verse | Roamverse Technical Blog</title>
    <link>/notes/vue/</link>
    <description>Recent content in Vue on Roam Tech-verse | Roamverse Technical Blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>Copyright © 2020-2026 Razon Yang. All Rights Reserved.
</copyright><atom:link href="/notes/vue/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>在 Vue 中使用 Element-UI</title>
      <link>/notes/vue/element-ui/</link>
      <pubDate>Thu, 28 Sep 2023 16:34:08 +0800</pubDate>
      <guid>/notes/vue/element-ui/</guid>
      <description><![CDATA[<h1 id="vue-ui-组件库" data-numberify>Vue UI 组件库<a class="anchor ms-1" href="#vue-ui-组件库"></a></h1>
<p>在Vue中，可以通过引入他人编写好的组件库，来构建自己的页面，提高开发效率。</p>
<p>Vue中常用的UI组件库有：</p>
<ul>
<li>移动端常用UI组件库：
<ul>
<li><a href="https://vant-ui.github.io/vant/" target="_blank" rel="noopener noreferrer">Vant<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="https://didi.github.io/cube-ui/" target="_blank" rel="noopener noreferrer">Cube UI<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="https://mint-ui.github.io/" target="_blank" rel="noopener noreferrer">Mint UI<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="https://nutui.jd.com/" target="_blank" rel="noopener noreferrer">NutUI<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
</ul>
</li>
<li>PC端常用UI组件库：
<ul>
<li><a href="https://element.eleme.cn/" target="_blank" rel="noopener noreferrer">Element UI<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="https://www.iviewui.com/" target="_blank" rel="noopener noreferrer">IView UI<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
<li><a href="https://www.antdv.com/components/overview" target="_blank" rel="noopener noreferrer">Ant Design Vue<i class="fas fa-external-link-square-alt ms-1"></i></a></li>
</ul>
</li>
</ul>
<hr>

<h1 id="安装-element-ui" data-numberify>安装 Element-UI<a class="anchor ms-1" href="#安装-element-ui"></a></h1>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="ln">1</span><span class="cl">npm i element-ui
</span></span></code></pre></div><hr>

<h1 id="引入并应用-element-ui" data-numberify>引入并应用 Element-UI<a class="anchor ms-1" href="#引入并应用-element-ui"></a></h1>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-JavaScript" data-lang="JavaScript"><span class="line"><span class="ln">1</span><span class="cl"><span class="kr">import</span> <span class="nx">ElementUI</span> <span class="nx">from</span> <span class="s1">&#39;element-ui&#39;</span><span class="p">;</span> <span class="c1">// 引入 Element-UI
</span></span></span><span class="line"><span class="ln">2</span><span class="cl"><span class="kr">import</span> <span class="s1">&#39;element-ui/lib/theme-chalk/index.css&#39;</span><span class="p">;</span>  <span class="c1">// 引入 Element-UI 的全部样式
</span></span></span><span class="line"><span class="ln">3</span><span class="cl"><span class="nx">Vue</span><span class="p">.</span><span class="nx">use</span><span class="p">(</span><span class="nx">ElementUI</span><span class="p">);</span> <span class="c1">// 应用 Element-UI
</span></span></span></code></pre></div><p>直接使用以上方式引入Element-UI，引入的是Element-UI中所有的组件以及它们的样式和交互。这会使页面的体积变得十分庞大。</p>]]></description>
    </item>
    
    <item>
      <title>Vuex 插件</title>
      <link>/notes/vue/vuex/</link>
      <pubDate>Fri, 22 Sep 2023 10:47:45 +0000</pubDate>
      <guid>/notes/vue/vuex/</guid>
      <description><![CDATA[<p>Vuex是由Vue官方开发的一个专为Vue.js开发的<u>状态管理库</u>。Vuex可以<u>集中存储管理应用的所有组件的状态</u>，并以相应的规则保证状态以一种可预测的方式发生变化。</p>]]></description>
    </item>
    
    <item>
      <title>Vue 过渡和动画</title>
      <link>/notes/vue/animations/</link>
      <pubDate>Wed, 20 Sep 2023 09:47:53 +0000</pubDate>
      <guid>/notes/vue/animations/</guid>
      <description><![CDATA[<p>Vue封装了一套可以快速构建基于状态变化的过渡和过度与动画的组件<code>&lt;transition&gt;</code>（<code>&lt;Transition&gt;</code>）和<code>&lt;transition-group&gt;</code>（<code>&lt;TransitionGroup&gt;</code>）。</p>]]></description>
    </item>
    
    <item>
      <title>Vue 插件</title>
      <link>/notes/vue/plugins/</link>
      <pubDate>Mon, 18 Sep 2023 01:48:20 +0000</pubDate>
      <guid>/notes/vue/plugins/</guid>
      <description><![CDATA[<p>Vue插件主要用于增强Vue。</p>
<hr>

<h1 id="定义插件" data-numberify>定义插件<a class="anchor ms-1" href="#定义插件"></a></h1>
<p>在Vue中，插件的本质是一个包含<code>install()</code>方法的对象。</p>
<p><code>install()</code>方法：</p>]]></description>
    </item>
    
    <item>
      <title>Vue 入门</title>
      <link>/notes/vue/introduction/</link>
      <pubDate>Sat, 19 Aug 2023 07:36:10 +0000</pubDate>
      <guid>/notes/vue/introduction/</guid>
      <description><![CDATA[<p>Vue.js 是一套构建用户界面的渐进式框架。Vue 只关注视图层，采用自底向上增量开发的设计。Vue 的目标是通过尽可能简单的 API 实现响应的数据绑定和组合的视图组件。</p>]]></description>
    </item>
    
  </channel>
</rss>

