-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewritten (module: select): Almost completely new - update 2 #800
Conversation
GitHub tease me, i haven't checked in the |
You should rebase the master branch. |
be6377c
to
5398385
Compare
5398385
to
e79c50b
Compare
/preview |
After reading your writing method, I am a little confused about why TItemValue and TItem should be used at the same time, and SelectOption should also be used like this.I don't think it makes sense.You can do this entirely with a parameter, such as ValueType Regarding the use of value types, I suggest
|
Hey @Yuanxw612, in C# it is not possible to set a default value to a If you wish we can discuss this in Discord. |
@ElDiddi "自动分词"的Demo在复制带有”,“符号的文本后,组件并没有正确分词。 |
Codecov Report
@@ Coverage Diff @@
## master #800 +/- ##
=========================================
- Coverage 3.67% 3.62% -0.06%
=========================================
Files 394 398 +4
Lines 17469 17724 +255
=========================================
Hits 642 642
- Misses 16827 17082 +255
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge this PR first and fix the rest through others.
* select-rewritten select-rewritten * modul: select - update 1 * select-update2 * select-update3 * select-update 4 * feat: append label tag & auto tokenization * fix: conflict in drpdown demo Co-authored-by: Lars Diederich <diederich@evodata.de> Co-authored-by: ElderJames <shunjiey@hotmail.com>
* select-rewritten select-rewritten * modul: select - update 1 * select-update2 * select-update3 * select-update 4 * feat: append label tag & auto tokenization * fix: conflict in drpdown demo Co-authored-by: Lars Diederich <diederich@evodata.de> Co-authored-by: ElderJames <shunjiey@hotmail.com>
GitKraken didn't want to open my repository anymore, after rebuilding the repository Github doesn't recognize the old PR or didn't want to append the PR to the existing one. Therefore a new PR.
!!! This PR is a Breaking Change !!!
Users who work with the select-module have to change their code after the merge.
Whats new?
-- Update 2 --
Newtonsoft.Json
orSystem.Text.Json
. It is only available when the SelectOption created without a DataStore. If you use the DataStore binding, you get theTItem
.*** Simplification
If you do not want to create the data binding using a DataSource, you can now use the ChildComponent
<SelectOptions></SelectOptions>
and create theSelectOption
directly. This should avoid unnecessary source code which could be created by a DataSource binding.** Note ***
Don't use a inline initialization of the Datastore. Like this:
There is certainly still plenty of room for improvement.
The documentation for the demos needs to be translated into Chinese.
-- Update 4 --
🤔 This is a ...
🔗 Related issue link
PR affected the following issues:
DefaultValue of select works incorrect #235
Keyboard navigation #261
[select]Related select elements displaying issue #473
[select] Default value issue #508
[SELECT] form binding issue - can't reset #515
关于 select 的问题 #695 <-- should be fixed, worked for me
[Select] Please add TValue for value type conversion #724
bug(module: select): Custom tags cannot be created if a part of the tag lable is already in use #727
bug(module: select): Custom tags are not unchecked if they are cleared in the input field with the clear button #726
Unable to clear Select component's value #761
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge