light-chain-open-ui 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -168,7 +168,7 @@ import { OPTIONS_ASPECT_RATIO } from 'light-chain-open-ui/options'
168
168
  name="aspectRatio"
169
169
  label="宽高比"
170
170
  mode="select"
171
- options={JSON.stringify(OPTIONS_ASPECT_RATIO)}
171
+ options={OPTIONS_ASPECT_RATIO}
172
172
  />
173
173
  ```
174
174
 
@@ -177,8 +177,8 @@ import { OPTIONS_ASPECT_RATIO } from 'light-chain-open-ui/options'
177
177
  默认样式会随组件一起工作。需要切换暗色主题时,引入主题样式并在页面上添加主题标记。
178
178
 
179
179
  ```ts
180
- import 'light-chain-open-ui/src/styles/themes/default.css'
181
- import 'light-chain-open-ui/src/styles/themes/dark.css'
180
+ import 'light-chain-open-ui/styles/themes/default.css'
181
+ import 'light-chain-open-ui/styles/themes/dark.css'
182
182
 
183
183
  document.documentElement.dataset.theme = 'dark'
184
184
  ```
@@ -222,12 +222,3 @@ document.documentElement.dataset.theme = 'dark'
222
222
  ]
223
223
  }
224
224
  ```
225
-
226
- ## 打包与发布
227
-
228
- ```bash
229
- npm run build
230
- npm publish --access public
231
- ```
232
-
233
- 如果 npm 开启了双因素认证,需要使用支持 publish 的 automation token,或在发布时输入 OTP。