Skip to content
#

composable

Here are 115 public repositories matching this topic...

vueuse
Asaki-M
Asaki-M commented Apr 26, 2022

Clear and concise description of the problem

like this:

const { fileupload } = useSliceUpload(
  file,
  options: {
    // about function options
  }
)

fileupload.upload()

The useSliceUpload function can slice the file to an array and use the options support function to upload to the server.

Suggested solution

How to solve it?
I will try to write this function.

enhancement good first issue pr welcome
Herteby
Herteby commented Oct 24, 2019

For a long time I thought this was impossible to do without writing toString/fromString functions for your custom types, but I just realized that you can make it work by instead using the list index of the options as the "value", and then in the onChange decoder use that index to retrieve the item from the passed in options list.

Here's a demo: https://ellie-app.com/7253Q8THR2xa1

enhancement good first issue
bowheart
bowheart commented Jan 11, 2018

Hey, all!

As Zedux ramps up for its first pre-release (v0.1.0!), I just wanted to make a general request for feedback. Feel free to comment on this issue.

Some idea sparkers:

  • How are you using Zedux?
  • Do you see any flaws in the api? Anything that's unnecessarily difficult to use/remember?
  • Is there any documentation that's unclear?
  • Are there any examples you'd like to see?

Of

KSXGitHub
KSXGitHub commented Apr 10, 2020

Currently, help functions accept any array of strings. It would be nice if help parameter can be narrowed down to specific union of string tuples.

For example: Let's say our application supports a main command and 3 subcommands which are foo, bar, and bar baz, then type of cmdPath parameter of help of main command should be [] | ['foo'] | ['bar'] | ['bar', 'baz']

enhancement good first issue

Improve this page

Add a description, image, and links to the composable topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the composable topic, visit your repo's landing page and select "manage topics."

Learn more