Code Monkey home page Code Monkey logo

vue-docs-zh-cn's Introduction

Vue Docs 中文文档翻译合集

这里会放置所有 Vue 官方维护的库的中文文档的链接,以及官方未提供多语言支持的库文档的中文翻译 (通常这样的库都比较小或不够稳定,故集中放这里)。

目录

官方维护的中文文档

集中放置在该仓库的文档

欢迎参与贡献

遵循 Vue 中文官网的翻译注意事项,请移步这里参阅。

vue-docs-zh-cn's People

Contributors

caozhong1996 avatar fuchao2012 avatar jinjiang avatar keifergu avatar luciy avatar mutoe avatar shadowkimi520 avatar shooterrao avatar tobethelight avatar xiaosongfu avatar zh-rocco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-docs-zh-cn's Issues

组件里通过$emit派发的事件在外部如何使用

比如说我有一个组件A,里面通过 this.$emit('my-event', data) 派发了一个自定义事件,最后使用vue-cli target wc 打包出 web-component组件,在使用的时候要如何监听这个自定义事件?

css 文件中 url(./assets/images/xxx.jpeg) build 路径不正确

当你在 JavaScript、CSS 或 *.vue 文件中使用相对路径引用一个静态资源时,该资源将会被包含进入 webpack 的依赖图中。在其编译过程中,所有诸如 、background: url(...) 和 CSS @import 的资源 URL 都会被解析为一个模块依赖。

实际使用中url( )中无论是以 . 开头还是以.. 开头,均无法生成正确的相对路径,而是生成了以 img / 开头的绝对路径,最起码我使用中是这样的,有点烦

ubuntu 下用vue-cli 创建项目时,rename 命令提示权限不足

ubuntu 下用vue-cli 创建项目时,rename 命令提示权限不足

执行的具体命令是

sudo vue create my-project
命令运行之后:
1.creating project in /media/vmshared/www/my-project
2.initialing git repository ..
3.installing cli plugins
在安装插件过程中,有一句命令报错 提示权限不足

具体的报错语句是 rename ,operation not permitted.
这是权限不足吗,可是我用的是 sudo 执行,请问怎么处理

在linux服务器下安装出现权限问题

npm install @vue/cli-plugin-unit-mocha

> [email protected] install /root/platform-web2/node_modules/nodent-runtime
> node build.js

fs.js:646
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: EACCES: permission denied, open '/root/platform-web2/node_modules/nodent-runtime/dist/index.js'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.writeFileSync (fs.js:1299:33)
    at Object.<anonymous> (/root/platform-web2/node_modules/nodent-runtime/build.js:5:4)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)

centos中

怎么查看webpack 配置

npm install -g @ vue / cli , vue creat vueApp 这2个命令生成的项目 如何查看 webpack 配置,因为没有build 和config 文件。

npm run test:e2e 报错,求大佬指点

脚手架生成的项目,选择了cypress,运行npm run test:e2e,能出来gui页面,点击自动生成的test.js,运行报错,并自动关闭gui

Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:201:27)
 {
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  syscall: 'read'
}
Error: read ECONNRESET
    at TCP.onStreamRead (internal/stream_base_commons.js:201:27)

系统:windows 64
nodejs:v12.20.1
npm:7.5.6

上网查找说降低node版本可以解决这个问题,切换成8.12.0,依旧有这个问题

npm i -g @vue/cli安装报错

7 http fetch GET 200 https://registry.npmjs.org/@vue%2fcli 16ms (from cache)
8 silly pacote tag manifest for @vue/cli@latest fetched in 94ms
9 timing stage:loadCurrentTree Completed in 373ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 0ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule @vue/[email protected] checking installable status
17 http fetch GET 200 https://registry.npmjs.org/@vue%2fcli-shared-utils 80ms (from cache)
18 http fetch GET 200 https://registry.npmjs.org/@vue%2fcli-ui 81ms (from cache)
19 http fetch GET 200 https://registry.npmjs.org/chalk 82ms (from cache)
20 http fetch GET 200 https://registry.npmjs.org/cmd-shim 82ms (from cache)
21 http fetch GET 200 https://registry.npmjs.org/commander 82ms (from cache)
22 http fetch GET 200 https://registry.npmjs.org/debug 82ms (from cache)
23 http fetch GET 200 https://registry.npmjs.org/download-git-repo 82ms (from cache)
24 silly fetchPackageMetaData error for @vue/cli-ui@^3.0.0-beta.16 Unexpected end of JSON input while parsing near '...li-plugin-apollo":"^0'
25 silly pacote range manifest for @vue/cli-shared-utils@^3.0.0-beta.16 fetched in 82ms

这是部分报错日志,json文件有错误

[email protected]中webpack配置问题

我之前一直用的是[email protected]。在实际开发过程中发现经常需要对webpack中的一些配置进行修改。比如说:修改生产环境的静态资源路径,修改多页面入口等。

我下文档中看到可以通过配置链的方式进行webpack配置。我想问一下,对于项目中原本已有的配置,在我加入相同配置项进入配置链后,会直接将默认配置替换吗?

因为我对webpack也不是特别熟悉,所以还没有做尝试。

vue.config.js: child "css" fails because ["modules" is not allowed]

通过vue create 一个项目,
然后把
vue.config.js的默认配置放到根目录,报如下错误:

 ERROR  Invalid options in vue.config.js: child "css" fails because ["modules" i             s not allowed]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] serve: `vue-cli-service serve --open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with npm. There is likely additional log             ging output above.

但是我把

modules: false

删掉,就可以正常运行了,请问这是什么原因?设置modules: false不可以吗?

devServer中配置proxy无效

我用vue create一个项目,在vue.config.j中配置了proxy,但是不起作用

    devServer: {
        open: process.platform === 'darwin',
        host: '0.0.0.0',
        port: 8083,
        https: false,
        hotOnly: false,
        // 查阅 https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli/cli-service.md#配置代理
        proxy: {
            '/api': {
                target: 'http://localhost:8090',
                pathRewrite: {
                    '^/api': ''
                }
            }
        }, // string | Object
        before: app => {}
    },

报如下错误

Proxy error: Could not proxy request /auth/login from localhost:8083 to http://localhost:8090/.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.