Skip to content

Commit

Permalink
Merge branch 'hotfix/scss_loader_option'
Browse files Browse the repository at this point in the history
Former-commit-id: 12f95d6d6606d18cd9fccaf0455f977126371423 [formerly 12f95d6d6606d18cd9fccaf0455f977126371423 [formerly 12f95d6d6606d18cd9fccaf0455f977126371423 [formerly 12f95d6d6606d18cd9fccaf0455f977126371423 [formerly fa274f4 [formerly 23f68af3a61a9451058402c274ab9d4a9d206d70]]]]]
Former-commit-id: 9ffd654
Former-commit-id: f5019fe
Former-commit-id: 3a2d3f9537e17943695ec99b2fbef6418fc6eac5 [formerly 050703e14e9e6e756a39f206ccb7792e8e35eaf8]
Former-commit-id: af2452988d609a43d88363071d59279d6c7175ff
Former-commit-id: 6bed60aa914cdd772ebe8bd669c6ab98a600f0f1
Former-commit-id: c1b5cac662562704f874e2297d9dc45511f8fba1
Former-commit-id: 0ab03de8670dbf0e556ce74c1d2e735f293f58c3
Former-commit-id: e89214479b68ff59c617a903ec90541a0da8d617
  • Loading branch information
FairyEver committed Nov 16, 2018
2 parents bfd82a9 + fcc0cb3 commit b32a877
Show file tree
Hide file tree
Showing 32 changed files with 9 additions and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d2-admin",
"version": "1.6.2",
"version": "1.6.3",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --open",
Expand Down
1 change: 0 additions & 1 deletion src/assets/style/fixed/base.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// 优化显示

html, body {
margin: 0px;
height: 100%;
Expand Down
1 change: 0 additions & 1 deletion src/assets/style/fixed/element.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// element 样式补丁

.el-card {
&.is-always-shadow {
box-shadow: 0 0 8px 0 rgba(232,237,250,.6), 0 2px 4px 0 rgba(232,237,250,.5);
Expand Down
1 change: 0 additions & 1 deletion src/assets/style/fixed/markdown.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// markdown 样式补丁

.markdown-body {
ul {
list-style: disc;
Expand Down
1 change: 0 additions & 1 deletion src/assets/style/fixed/vue-grid-layout.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// vue-splitpane 样式补丁

.vue-grid-item {
&.vue-grid-placeholder {
border: 1px solid $color-border-1;
Expand Down
3 changes: 0 additions & 3 deletions src/assets/style/fixed/vue-splitpane.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// vue-splitpane 样式补丁

@import '~@/assets/style/unit/color.scss';

.splitter-pane-resizer {
background-color: $color-border-1 !important;
opacity: 1 !important;
Expand Down
1 change: 0 additions & 1 deletion src/assets/style/theme/register.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '~@/assets/style/public.scss';
@import '~@/assets/style/theme/theme-base.scss';

@import '~@/assets/style/theme/d2/index.scss';
Expand Down
1 change: 0 additions & 1 deletion src/components/d2-container/components/d2-source.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.d2-source {
$borderRadius: 4px;
$paddingLR: 15px;
Expand Down
1 change: 0 additions & 1 deletion src/components/d2-icon-select/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.group {
max-height: 400px;
overflow-x: hidden;
Expand Down
1 change: 0 additions & 1 deletion src/components/d2-markdown/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export default {
</script>

<style lang="scss">
@import '~@/assets/style/public.scss';
.component-markdown {
.spin-group {
height: 100px;
Expand Down
1 change: 0 additions & 1 deletion src/components/d2-page-cover/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.d2-page-cover {
@extend %full;
@extend %unable-select;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export default {
</script>

<style lang="scss">
@import '~@/assets/style/public.scss';
.d2-error-log-list__expand-group {
.d2-error-log-list__expand {
padding-left: 20px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.theme-preview {
height: 50px;
width: 100px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.d2-panel-search-item {
height: 64px;
margin: 0px -20px;
Expand Down
1 change: 0 additions & 1 deletion src/layout/header-aside/components/panel-search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.panel-search {
margin: 20px;
.panel-search__input-group {
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/components/contextmenu/style/pub.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '~@/assets/style/public.scss';
.contextmenu-pad {
height: 300px;
background-color: $color-bg;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/components/countup/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.page {
.group {
display: flex;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/components/icon/icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</template>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.icon-demo {
transition: all .3s;
font-size: 100px;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/components/icon/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.title-group {
margin-top: 20px;
margin-bottom: 10px;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/components/icon/svg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
</template>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.icon-card {
display: flex;
justify-content: center;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/components/layout/grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.page {
.vue-grid-layout {
background-color: $color-bg;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/element/basic-color/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/unit/color.scss';
.color {
border-radius: 4px;
height: 90px;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/playground/log/console/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.page {
.page__image-demo {
border-radius: 4px;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/playground/store/gray/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.page {
.colorful {
@extend %unable-select;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/playground/store/theme/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.page {
.theme-preview {
height: 50px;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/plugins/better-scroll/base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.demo-bs-wrapper {
height: 200px;
width: 300px;
Expand Down
1 change: 0 additions & 1 deletion src/pages/demo/plugins/better-scroll/to.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.demo-bs-wrapper {
height: 400px;
position: relative;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.col {
padding: 20px;
border-radius: 4px;
Expand Down
1 change: 0 additions & 1 deletion src/pages/error-page-404/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</template>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.page {
background: #303133;
background-blend-mode: multiply,multiply;
Expand Down
1 change: 0 additions & 1 deletion src/pages/index/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/assets/style/public.scss';
.page {
.page__logo {
width: 120px;
Expand Down
1 change: 0 additions & 1 deletion src/pages/login/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '~@/assets/style/public.scss';
.login-page {
background-color: #EDF4FA;
height: 100%;
Expand Down
8 changes: 8 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ module.exports = {
devServer: {
publicPath: baseUrl // 和 baseUrl 保持一致
},
css: {
loaderOptions: {
// 设置 scss 公用变量文件
sass: {
data: `@import '~@/assets/style/public.scss';`
}
}
},
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack: config => {
// 解决 cli3 热更新失效 https://github.com/vuejs/vue-cli/issues/1559
Expand Down

0 comments on commit b32a877

Please sign in to comment.