Comments (3)
我觉得在源数据中引入和视图高度强耦合的字段并不妥,更甚这还是个函数类型,一般在 Data 中的都是放可以直接存储的数据、状态的字段。
Tree 组件的 prefix
和 suffix
插槽都带有 TreeCommonSlotParams
的参数,可以精确地控制不同 Data 不同 Node 的渲染内容。还是说这些参数仍不能满足你的场景?
interface TreeCommonSlotParams {
data: Data,
node: TreeNodeProps,
depth: number,
focused: boolean
}
from vexip-ui.
我按照您所说的方式通过TreeCommonSlotParams的data.XX来访问,然后单独封装了一个PrefixIcon组件,目前可以实现业务逻辑了~可以正常响应式展示文件夹图标了,非常感谢,这个Issue可以关闭了
from vexip-ui.
好的,我将关闭这个 issue。
from vexip-ui.
Related Issues (20)
- [Select]: Wrong kind of value passed to 'selected' slot HOT 1
- [Feature Request] tag 可否为prefix、suffix增加undivied属性,以选择性隐藏分隔符? HOT 4
- 有没有办法和其他的UI框架混用 HOT 6
- Alert、Reslut、Timeline 增加独立的 `info` 类型 HOT 3
- Image组件Bug HOT 17
- Drawer event 'show' is emitted twice without any action HOT 2
- 使用nuxt,build之后样式不正确 HOT 1
- Hydration warning , when using the Drawer in Nuxt HOT 1
- when refresh page upload component can not select file.
- Hydration attribute mismatch, when using the Modal in Nuxt 3 HOT 2
- Layout组件部分小问题 HOT 15
- formItem defaultValue 属性不能正常使用
- 【Bug】InputNumber incorrect value when using precision & sync HOT 1
- Image预览在Table中有问题 HOT 2
- Carousel 宽度显示bug HOT 4
- [Cascader] Label fails to disappear when value is cleared
- 增加 InputGroup 功能 HOT 1
- 折叠面板,无法根据响应式自动切换指定的面板 HOT 1
- [Form] Schema validation HOT 5
- nuxt模板项目dev资源加载异常
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vexip-ui.