Comments (12)
看漏了,原来slots里有这个状态值,这样我上面说的第二条就可以做了,只是第一条还做不了
from vue-clamp.
可以暴露一个 clampchange
事件出来?
from vue-clamp.
可以暴露一个
clampchange
事件出来?
我觉得可以
from vue-clamp.
我又想了一下,在default的slot里传出来可能更好,因为如果是循环渲染的场景,用clampchange事件把值传出来后我还要想怎么保存这个值
from vue-clamp.
现在 default
slot 只能传纯文本,你用不了。
from vue-clamp.
嗯?是什么原因default slot不能提供slot-scope呢?
from vue-clamp.
提供了你也用不了啊。
from vue-clamp.
为嘛用不到啊,官方文档:
<slot-example>
<template slot="default" slot-scope="slotProps">
{{ slotProps.msg }}
</template>
</slot-example>
from vue-clamp.
vue-clamp
的 default slot 目前只支持纯文本。你在 default slot 参数里拿到了状态也没有地方可以用。
from vue-clamp.
哦,明白了
from vue-clamp.
@Array-Huang
this is exactly why I'd like to have something like this #30
from vue-clamp.
Implemented in #30.
from vue-clamp.
Related Issues (20)
- [BUG][兼容性] 在 direction == 'rtl' 的情况下,获取行数错误 HOT 4
- Doesn't work in <th>
- Doesn't work in nuxtjs HOT 1
- How to use vue-clamp in vite
- Not possible to use html in v-clamp HOT 1
- Could not find a declaration file for module 'vue-clamp' HOT 1
- 若返回的数据含有中英文,则不支持截取省略显示 HOT 1
- auto resize failed after zoomed in HOT 1
- getLines method may run wrong after compiled HOT 3
- Doesn't work with v-html
- TypeError: (this.$slots.default || []).filter is not a function HOT 3
- vue-clamp not work with el-tabs in element-ui HOT 1
- Produces Invalid HTML if wrapped in a <p> tag - source of hydration issues with SSR HOT 3
- Support for Vue 3.0 HOT 10
- Clamp tags! HOT 4
- Support for middle ellipsis would be staggering HOT 8
- I dont see how to toggle between the full text view and the compact view
- Block of unknown sizes
- Prevent cutting the last word
- ResizeObserver loop limit exceeded
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 vue-clamp.