Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: NScrollbar customize position, width and height #649

Closed
cnguu opened this issue Jul 26, 2021 · 3 comments · Fixed by #679
Closed

[Feature request]: NScrollbar customize position, width and height #649

cnguu opened this issue Jul 26, 2021 · 3 comments · Fixed by #679
Assignees
Labels
feature request New feature or request

Comments

@cnguu
Copy link

cnguu commented Jul 26, 2021

This function solves the problem (这个功能解决的问题)

It is difficult for the user to select the scrollbar

Expected API (期望的 API)

App.vue

<script>
import { defineComponent } from "vue";
import { NConfigProvider } from "naive-ui";

export default defineComponent({
  components: {
    NConfigProvider,
  },
  setup() {
    const themeOverrides = {
      common: {
        scrollbarWidth: 6,
        scrollbarHeight: 6,
        scrollbarBorderRadius: 4,
        scrollbarBackgroundColor: "rgba(144, 147, 153, 0.3)",
        scrollbarTop: 0,
        scrollbarRigth: 0,
        scrollbarBottom: 0,
        scrollbarLeft: 0,
      },
    };

    return { themeOverrides };
  },
});
</script>

<template>
  <NConfigProvider :theme-overrides="themeOverrides" />
</template>
@github-actions github-actions bot added the feature request New feature or request label Jul 26, 2021
@Talljack
Copy link
Contributor

NScrollbar is not open, if you need use please read the code yourself

@07akioni
Copy link
Collaborator

NScrollbar is not open, if you need use please read the code yourself

我们还是可以给几个主题的定制变量的

@Talljack
Copy link
Contributor

NScrollbar is not open, if you need use please read the code yourself

我们还是可以给几个主题的定制变量的

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants