tdesign-theme-generator
v1.1.9
Published
TDesign主题配置生成器挂件
Readme
TDesign Theme Generator Plugin
- TDesign theme generator plugin, which is available in any web application.
🏗️ Develop
npm run devnpm run build:watchexecutenpm linkas well to preview in application project
⚙️ Build
npm run buildbuild web-component
📦 Usage
npm i tdesign-theme-generatorimport 'tdesign-theme-generator';add
<td-theme-generator />in the application code
For mobile and mini-program platforms, you need to add the
deviceparameter, such as<td-theme-generator device="mobile" />.If you encounter issues where parameters cannot be passed correctly, you can try the following method to introduce the component:
const generator = document.createElement('td-theme-generator'); generator.setAttribute('device', 'mobile'); document.body.appendChild(generator);
