pro-design-vue 1.2.0 → 1.2.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.
@@ -1,4 +1,4 @@
1
- /*! Pro Design Vue v1.2.0 */
1
+ /*! Pro Design Vue v1.2.1 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue'), require('ant-design-vue/es/locale/zh_CN.js')) :
@@ -32,7 +32,7 @@
32
32
  const DEFAULT_NAMESPACE = "pro";
33
33
  const DEFAULT_LOCALE = "zh-CN";
34
34
 
35
- const version$1 = "1.2.0";
35
+ const version$1 = "1.2.1";
36
36
 
37
37
  const makeInstaller = (components = []) => {
38
38
  const install = (app) => {
@@ -8471,11 +8471,17 @@
8471
8471
  }
8472
8472
  };
8473
8473
  });
8474
- vue.watchEffect(async () => {
8475
- await vue.nextTick();
8476
- const root = document.documentElement;
8477
- root.classList.toggle("dark", __props.dark);
8478
- });
8474
+ vue.watch(
8475
+ () => __props.dark,
8476
+ async () => {
8477
+ await vue.nextTick();
8478
+ const root = document.documentElement;
8479
+ root.classList.toggle("dark", __props.dark);
8480
+ },
8481
+ {
8482
+ immediate: true
8483
+ }
8484
+ );
8479
8485
  antDesignVue.ConfigProvider.config({
8480
8486
  prefixCls: rest.prefixCls
8481
8487
  });