snail.view 1.0.0 → 1.0.1

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.
@@ -418,10 +418,15 @@ type TransitionStyle = {
418
418
  * 2、【后续支持】构建style标签,并生成css样式插入到页面
419
419
  */
420
420
 
421
+ /**
422
+ * 使用【样式管理器】
423
+ * @returns 全新的【样式管理器】
424
+ */
425
+ declare function useStyle(): IStyleManager;
421
426
  /**
422
427
  * 全局的【样式管理器】
423
428
  */
424
429
  declare const style: IStyleManager;
425
430
 
426
- export { configLink, link, linkMap, style, useAnimation, useLink };
431
+ export { configLink, link, linkMap, style, useAnimation, useLink, useStyle };
427
432
  export type { AlignStyle, AllStyle, BorderStyle, ElementSize, IAnimationManager, ILinkManager, IObserver, IStyleManager, LinkElement, LinkFile, LinkOptions, MarginStyle, PaddingStyle, SizeOptions, SizeStyle, TransitionEffectOptions, TransitionStyle };
@@ -278,4 +278,4 @@ function configLink(options) {
278
278
  return link;
279
279
  }
280
280
 
281
- export { configLink, link, linkMap, style, useAnimation, useLink };
281
+ export { configLink, link, linkMap, style, useAnimation, useLink, useStyle };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "对视图界面做的一些封装。如样式计算助手方法,常用样式less混入、变量等;dom相关助手类",
4
4
  "author": "snail_dev@163.com",
5
5
  "license": "MIT",
6
- "version": "1.0.0",
6
+ "version": "1.0.1",
7
7
  "type": "module",
8
8
  "main": "dist/snail.view.js",
9
9
  "module": "dist/snail.view.js",