color-mode
color-mode copied to clipboard
feat: add general attribute support
https://tdesign.tencent.com/vue-next/dark-mode-en
Some UI libraries (such as TDesign) use a theme-mode
attribute on HTML tags to control dark mode, which cannot be implemented by the existing dataValue
option, so a new option named attrName
is added, with control logic similar to that of 'dataValue'.
Also fixed missing 'dataValue' in the sample code.