你如何使用 Vuetify 1.5?

huangapple go评论63阅读模式
英文:

How can I use vuetify 1.5?

问题

我有一个旧的vue项目,使用的是vuetify 1.5.14,他们想让我添加一些东西。项目在本地无法工作,我不想每次都上传我的更改。我的计划是创建一个新的vuetify 1.5项目来测试需要实现的内容。我现在的问题是,无法创建一个使用vuetify 1的新vue项目。所以我的问题是:是否有办法创建一个vuetify 1.5的项目?如果有人能帮助我,我将不胜感激。

我尝试将一个项目从vuetify 2降级到vuetify 1.5,使用npm install vuetify@1.5.14 --save,并在package.json中更改版本号 -> 没有起作用。然后我删除了node_modules和package-log,再次运行npm install -> 也没有起作用。

英文:

I got a old vue project with vuetify 1.5.14 and they want me to add something. The project is not working local and I don't want to upload my changes everytime. My plan was it to create a new project with vuetify 1.5 to test what I need to implement. My problem now is, that it isn't possible to create a new vue project with vuetify 1. So my question is: Is there a way to create a project with vuetify 1.5? I would be so thankful if someone can help me.

I tried to downgrade a project from vuetify 2 to vuetify 1.5 with npm install vuetify@1.5.14 --save and changed the version-number in package.json -> didn't work. Then I deleted the node_modules and package-log and npm install again -> didn't work neither

答案1

得分: 0

这是您提供的内容的中文翻译:

有一些带有 Vuetify 1.x 的沙盒,例如 这个。可以查看 搜索结果,也许其中一个适合您?

虽然创建一个带有 Vuetify 1.5 的项目似乎不难:

<!-- 开始代码片段: js 隐藏: true 控制台: false Babel: false -->

<!-- 语言: lang-js -->

Vue.use(Vuetify);
new Vue({
  el: '#app',
  data() {
    return {
      vuetifyVersion: Vuetify.version
    };
  },
})

<!-- 语言: lang-html -->

<div id="app">
  <v-app>
    <v-main>
      <v-btn>Hello Vuetify {{ vuetifyVersion }}</v-btn>
    </v-main>
  </v-app>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.7.10/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vuetify@1.5.24/dist/vuetify.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/vuetify@1.5.24/dist/vuetify.min.css" rel="stylesheet">

<!-- 结束代码片段 -->

也许这个沙盒可以帮助您如何在一个带有构建工具的项目中设置它。

英文:

There are several sandboxes around with Vuetify 1.x, for example this one. Have a look at the search results maybe one of them works for you?

Though it does not seem hard to create a project with Vuetify 1.5:

<!-- begin snippet: js hide: true console: false babel: false -->

<!-- language: lang-js -->

Vue.use(Vuetify);
new Vue({
  el: &#39;#app&#39;,
  data() {
    return {
      vuetifyVersion: Vuetify.version
    };
  },
})

<!-- language: lang-html -->

&lt;div id=&quot;app&quot;&gt;
  &lt;v-app&gt;
    &lt;v-main&gt;
      &lt;v-btn&gt;Hello Vuetify {{ vuetifyVersion }}&lt;/v-btn&gt;
    &lt;/v-main&gt;
  &lt;/v-app&gt;
&lt;/div&gt;

&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/vue/2.7.10/vue.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot; https://cdn.jsdelivr.net/npm/vuetify@1.5.24/dist/vuetify.min.js &quot;&gt;&lt;/script&gt;
&lt;link href=&quot; https://cdn.jsdelivr.net/npm/vuetify@1.5.24/dist/vuetify.min.css &quot; rel=&quot;stylesheet&quot;&gt;

<!-- end snippet -->

Maybe the sandbox can help how to set it up in a project with a builder.

huangapple
  • 本文由 发表于 2023年5月11日 00:57:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76220920.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定