From f6f7444681ec80de7247bd57f14e660a3778c674 Mon Sep 17 00:00:00 2001 From: TikhonovaTatyana Date: Fri, 5 Apr 2019 11:32:22 +0300 Subject: [PATCH] Docs: update installation (#256) --- README.md | 34 +++++++++++++++++++--------------- docs/using-vue-cli.md | 16 ++++++++++++++-- docs/using-webpack.md | 12 ++++++++++-- 3 files changed, 43 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 6fca11aa..218d2b35 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ This project allows you to use [DevExtreme](http://js.devexpress.com) [Vue](http * [Getting Started](#getting-started) * [Prerequisites](#prerequisites) * [Install DevExtreme](#installation) - * [Use DevExtreme Components](#use-components) + * [Import Stylesheets](#import_devextreme_stylesheets) + * [Import DevExtreme Components](#import-components) * [API Reference](#api-reference) * [Component Configuration](#component-configuration) * [Set Component Option](#component-option) @@ -47,27 +48,18 @@ The further configuration steps depend on which build tool, bundler or module lo * [Configuring Webpack](https://github.com/DevExpress/devextreme-vue/blob/master/docs/using-webpack.md) * [Configuring Vue CLI](https://github.com/DevExpress/devextreme-vue/blob/master/docs/using-vue-cli.md) -### Import DevExtreme Modules and Themes ### +### Import Stylesheets ### -Import DevExtreme modules in a DevExtreme component's file. - -```js -import DxButton from 'devextreme-vue/button'; -``` - -DevExtreme themes can be imported only once in your application's main file: +Import `dx.common.css` and a [predefined theme stylesheet](/Documentation/Guide/Themes_and_Styles/Predefined_Themes/) in the application's main file: ```js import 'devextreme/dist/css/dx.common.css'; import 'devextreme/dist/css/dx.light.compact.css'; ``` -See the [Predefined Themes](https://js.devexpress.com/Documentation/Guide/Themes/Predefined_Themes/#Themes_in_Sites) guide for more information on DevExtreme themes. +### Import DevExtreme Components ### - -### Use DevExtreme Components ### - -You can use DevExtreme components in a [single file component](https://vuejs.org/v2/guide/single-file-components.html), +Import the DevExtreme components you are going to use in a [single file component](https://vuejs.org/v2/guide/single-file-components.html)... ```html