Skip to content

为什么加载组件代码的时候要获取返回值? #3723

Answered by the1812
timongh asked this question in 提问 / Q&A
Discussion options

You must be logged in to vote

主要用于非 webpack 打包的产物, 方便手写一小段简单的 JS. (比如快速实现一些很个人化的需求)

例如下面这段代码就可以直接解析并安装为一个样式:

({
  name: 'simplifyComments.noZIndexModify',
  displayName: '简化评论区层级调整',
  style: `
.v-wrap #comment#comment {
  z-index: unset !important;
}
.l-con .tag-channel-pane.tag-channel-pane {
  z-index: unset !important;
}
  `,
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by timongh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants