mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-04-12 14:40:47 +08:00
chore
This commit is contained in:
parent
326b6cc889
commit
90eb79757d
@ -1,6 +1,5 @@
|
||||
# 形状
|
||||
按钮拥有不同的形状。
|
||||
Button has different shapes.
|
||||
```html
|
||||
<n-button circle>
|
||||
<template v-slot:icon>
|
||||
|
@ -7,7 +7,7 @@ export default {
|
||||
},
|
||||
render (h, context) {
|
||||
const locale = this.$i18n.locale
|
||||
const defaultSlot = this.$slots.default || []
|
||||
const defaultSlot = (this.$scopedSlots.default && this.$scopedSlots.default()) || []
|
||||
const index = defaultSlot.findIndex(VNode => VNode.componentOptions.tag === locale)
|
||||
// console.log(locale, defaultSlot[0].componentOptions.tag)
|
||||
// console.log(index)
|
||||
|
@ -40,6 +40,7 @@
|
||||
"@babel/cli": "^7.8.4",
|
||||
"@babel/core": "^7.8.4",
|
||||
"@babel/preset-env": "^7.8.4",
|
||||
"@css-render/plugin-bem": "^0.7.5",
|
||||
"@kazupon/vue-i18n-loader": "^0.4.1",
|
||||
"@rollup/plugin-node-resolve": "^6.1.0",
|
||||
"@rollup/plugin-strip": "^1.3.2",
|
||||
@ -62,6 +63,7 @@
|
||||
"cors": "^2.8.5",
|
||||
"cross-env": "^5.2.1",
|
||||
"css-loader": "^2.1.1",
|
||||
"css-render": "^0.7.5",
|
||||
"cssnano": "^4.1.10",
|
||||
"emoji-regex": "^8.0.0",
|
||||
"emoji-unicode": "^1.1.0",
|
||||
@ -120,9 +122,7 @@
|
||||
"webpack-dev-server": "^3.10.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@css-render/plugin-bem": "^0.7.3",
|
||||
"async-validator": "^1.11.5",
|
||||
"css-render": "^0.7.3",
|
||||
"date-fns": "^2.9.0",
|
||||
"highlight.js": "^9.18.1",
|
||||
"lodash-es": "^4.17.15",
|
||||
|
@ -46,6 +46,8 @@ module.exports = {
|
||||
'async-validator',
|
||||
'vue-virtual-scroller',
|
||||
'lodash-es',
|
||||
'resize-observer-polyfill'
|
||||
'resize-observer-polyfill',
|
||||
'css-render',
|
||||
'@css-render/plugin-bem'
|
||||
])
|
||||
}
|
||||
|
4
think.md
4
think.md
@ -226,7 +226,9 @@ zindex 的问题解决了,虽然很简单,在 static 元素上设定 zindex
|
||||
86. <del>文件上传的回调方式改成传对象</del>
|
||||
87. 抵御外界 CSS 变化,比如 line-height 之类的
|
||||
88. <del>CSS Font 选择</del> 对英文应该没有那么麻烦,走系统字体就好了,然而对中文又没什么好的解决方案,so 先这个样子,之后再琢磨琢磨
|
||||
89. 把所有用 $slots 判断的地方都改成 $scopedSlots,[原因](https://vuejs.org/v2/api/#vm-scopedSlots)
|
||||
89. <del>把所有用 $slots 判断的地方都改成 $scopedSlots,[原因](https://vuejs.org/v2/api/#vm-scopedSlots)<del> done
|
||||
90. 调整默认状态下 button 的 icon 的颜色
|
||||
91. 优化 button 的样式,现在太冗余了,关键是怎么同步按钮的主题变量呢...
|
||||
|
||||
```
|
||||
Done
|
||||
|
Loading…
x
Reference in New Issue
Block a user