@opendesign-plus-test/components 0.0.1-rc.180 → 0.0.1-rc.181

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
- import { defineComponent, reactive, computed, provide, openBlock, createBlock, unref, withCtx, renderSlot } from "vue";
1
+ import { defineComponent, computed, unref, provide, openBlock, createBlock, withCtx, renderSlot } from "vue";
2
2
  import { OConfigProvider } from "@opensig/opendesign";
3
3
  import zhCN from "@opensig/opendesign/es/locale/lang/zh-cn";
4
4
  import enUS from "@opensig/opendesign/es/locale/lang/en-us";
@@ -11,10 +11,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  },
12
12
  setup(__props) {
13
13
  const props = __props;
14
- const globalConfig = reactive({
15
- locale: computed(() => props.locale),
16
- theme: computed(() => props.theme)
17
- });
14
+ const globalConfig = {
15
+ locale: computed(() => unref(props.locale)),
16
+ theme: computed(() => unref(props.theme))
17
+ };
18
18
  provide(configProviderInjectKey, globalConfig);
19
19
  return (_ctx, _cache) => {
20
20
  return openBlock(), createBlock(unref(OConfigProvider), {
@@ -1,7 +1,7 @@
1
1
  import { CalendarDataType, meetingTabT, OptionItemT } from '../types';
2
2
  export declare const useMeetingConfig: () => {
3
3
  t: (key: string, ...args: any[]) => string;
4
- locale: import('vue').ComputedRef<import('vue').ComputedRef<string> | "zh">;
4
+ locale: import('vue').ComputedRef<string>;
5
5
  meetingTabs: import('vue').ComputedRef<meetingTabT[]>;
6
6
  cycleTypeOptions0: import('vue').ComputedRef<OptionItemT[]>;
7
7
  cycleTypeOptions: import('vue').ComputedRef<OptionItemT[]>;
@@ -16,7 +16,7 @@ function useI18n() {
16
16
  const instance = getCurrentInstance();
17
17
  const configProvider = instance ? inject(configProviderInjectKey) : null;
18
18
  const locale = computed(() => {
19
- return (configProvider == null ? void 0 : configProvider.locale) || "zh";
19
+ return (configProvider == null ? void 0 : configProvider.locale.value) || "zh";
20
20
  });
21
21
  const transform = (key, ...args) => {
22
22
  const lang = i18nLangs.value[locale.value === "zh" ? "zh" : "en"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.180",
3
+ "version": "0.0.1-rc.181",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",