primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.6k stars 1.23k forks source link

primevue/splitter: There is a huge bug or rather a very necessary requirement here. #4794

Closed zhanghengxin closed 1 year ago

zhanghengxin commented 1 year ago

Describe the bug

My goal is: 1. Always use Tailwind to write style parts. 2. Use splitter to split pages. 3. On large pages, use the splitter function normally and set the initial size to left 20%, right 80%, and it can be dragged. However, when on mobile, I want to lock the left width.

image

Now my hope is (any of):

Reproducer

https://codesandbox.io/p/sandbox/interesting-sound-dsq4f9?file=%2Fpackage.json%3A13%2C22

PrimeVue version

3.40.1

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

3.29.0, it not have the bug.

^3.39.0, This problem starts with version 3.39.0 or later. link:https://github.com/orgs/primefaces/discussions/434

Expected behavior

No response

zhanghengxin commented 1 year ago

follow this :https://github.com/primefaces/primevue/pull/4801

zhanghengxin commented 1 year ago

@melloware

After careful consideration, I believe that the no-style mode does indeed not support adding styles. However, for components, it should be designed to accommodate as many scenarios as possible. In a fixed panel scenario, for example, (which can have many variations), the remaining panels should automatically fill the remaining space. One simple way to achieve this is by using flex-grow: 1.

tugcekucukoglu commented 1 year ago

Since it is a demo related situation, you can solve it using pt.