Open miswanting opened 1 year ago
Name | Edit | Preview | Latest Commit |
---|---|---|---|
Color Mode | Edit on Studio ↗︎ | View Live Preview | de45ce0c7da1c02bd3142eb9d26f57dda1cee09a |
Name | Link |
---|---|
Latest commit | de45ce0c7da1c02bd3142eb9d26f57dda1cee09a |
Latest deploy log | https://app.netlify.com/sites/nuxt-color-mode/deploys/653791f4dc40dd0008fb174e |
Deploy Preview | https://deploy-preview-215--nuxt-color-mode.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
You mean: keep these two options, but merge them into one implement code, in order to reduce the code duplicate?
If so, I`ll try.
And here's another thing I need your recommend: Is it okay to name such option as attrName
? Or any name better?
@miswanting I think it would be nice to discuss with the TDesign team as the theme-mode
is not a valid HTML attribute, I would recommend data-theme-mode
in that case
Some UI libraries (such as TDesign) use a
theme-mode
attribute on HTML tags to control dark mode, which cannot be implemented by the existingdataValue
option, so a new option namedattrName
is added, with control logic similar to that of 'dataValue'.Also fixed missing 'dataValue' in the sample code.