@meethive/components 0.0.1 → 0.0.3

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.
@@ -2,7 +2,7 @@ import { defineComponent as _defineComponent } from 'vue'
2
2
  import { unref as _unref, renderSlot as _renderSlot, createVNode as _createVNode, withCtx as _withCtx, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, openBlock as _openBlock, createBlock as _createBlock } from "vue"
3
3
 
4
4
  import { provide, reactive } from 'vue'
5
- import { ConfigProvider } from 'ant-design-vue'
5
+ import { ConfigProvider as AConfigProvider } from 'ant-design-vue'
6
6
  import { omit } from 'lodash-es'
7
7
  import { configProps } from './context'
8
8
  import {
@@ -48,7 +48,7 @@ provide(TableConfig, _TableConfig)
48
48
  const configProviderProps = omit(props, ['IconConfig', 'MapConfig', 'SearchConfig'])
49
49
 
50
50
  return (_ctx,_cache) => {
51
- return (_openBlock(), _createBlock(_unref(ConfigProvider), _normalizeProps(_guardReactiveProps(_unref(configProviderProps))), {
51
+ return (_openBlock(), _createBlock(_unref(AConfigProvider), _normalizeProps(_guardReactiveProps(_unref(configProviderProps))), {
52
52
  default: _withCtx(() => [
53
53
  _createVNode(_unref(LocaleProvider), {
54
54
  locale: _ctx.componentsLocale || _unref(zh)
@@ -1,31 +1,44 @@
1
-
2
- import { defineComponent, provide, reactive, watch } from 'vue'
1
+ import { defineComponent as _defineComponent } from 'vue'
2
+ import { renderSlot as _renderSlot } from "vue"
3
+
4
+ import { provide, reactive, watch } from 'vue'
3
5
  import defaultLocal from '../locale/zh-CN'
4
6
 
5
- export default defineComponent({
6
- name: 'JLocaleProvider',
7
- props: {
8
- locale: {
9
- type: Object
10
- }
11
- },
12
- setup(props) {
13
- const state = reactive({
14
- antLocale: {
15
- ...props.locale || defaultLocal || {},
16
- exist: true
17
- }
18
- })
7
+
8
+ const __sfc_main__ = _defineComponent({
9
+ ...{
10
+ name: 'JLocaleProvider'
11
+ },
12
+ __name: 'LocaleProvider',
13
+ props: {
14
+ locale: { type: Object, required: false }
15
+ },
16
+ setup(__props) {
17
+
19
18
 
20
- watch(() => props.locale, () => {
21
- state.antLocale = {
22
- ...props.locale || defaultLocal || {},
23
- exist: true
24
- }
25
- }, { deep: true })
26
19
 
27
- provide('componentLocaleData', state)
20
+ const props = __props
28
21
 
29
- return {}
22
+ const state = reactive({
23
+ antLocale: {
24
+ ...props.locale || defaultLocal || {},
25
+ exist: true
30
26
  }
31
27
  })
28
+
29
+ watch(() => props.locale, () => {
30
+ state.antLocale = {
31
+ ...props.locale || defaultLocal || {},
32
+ exist: true
33
+ }
34
+ }, { deep: true })
35
+
36
+ provide('componentLocaleData', state)
37
+
38
+ return (_ctx,_cache) => {
39
+ return _renderSlot(_ctx.$slots, "default")
40
+ }
41
+ }
42
+
43
+ })
44
+ export default __sfc_main__;
@@ -2,7 +2,7 @@ import { defineComponent as _defineComponent } from 'vue'
2
2
  import { unref as _unref, renderSlot as _renderSlot, createVNode as _createVNode, withCtx as _withCtx, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, openBlock as _openBlock, createBlock as _createBlock } from "vue"
3
3
 
4
4
  import { provide, reactive } from 'vue'
5
- import { ConfigProvider } from 'ant-design-vue'
5
+ import { ConfigProvider as AConfigProvider } from 'ant-design-vue'
6
6
  import { omit } from 'lodash-es'
7
7
  import { configProps } from './context'
8
8
  import {
@@ -48,7 +48,7 @@ provide(TableConfig, _TableConfig)
48
48
  const configProviderProps = omit(props, ['IconConfig', 'MapConfig', 'SearchConfig'])
49
49
 
50
50
  return (_ctx,_cache) => {
51
- return (_openBlock(), _createBlock(_unref(ConfigProvider), _normalizeProps(_guardReactiveProps(_unref(configProviderProps))), {
51
+ return (_openBlock(), _createBlock(_unref(AConfigProvider), _normalizeProps(_guardReactiveProps(_unref(configProviderProps))), {
52
52
  default: _withCtx(() => [
53
53
  _createVNode(_unref(LocaleProvider), {
54
54
  locale: _ctx.componentsLocale || _unref(zh)
@@ -1,31 +1,44 @@
1
-
2
- import { defineComponent, provide, reactive, watch } from 'vue'
1
+ import { defineComponent as _defineComponent } from 'vue'
2
+ import { renderSlot as _renderSlot } from "vue"
3
+
4
+ import { provide, reactive, watch } from 'vue'
3
5
  import defaultLocal from '../locale/zh-CN'
4
6
 
5
- export default defineComponent({
6
- name: 'JLocaleProvider',
7
- props: {
8
- locale: {
9
- type: Object
10
- }
11
- },
12
- setup(props) {
13
- const state = reactive({
14
- antLocale: {
15
- ...props.locale || defaultLocal || {},
16
- exist: true
17
- }
18
- })
7
+
8
+ const __sfc_main__ = _defineComponent({
9
+ ...{
10
+ name: 'JLocaleProvider'
11
+ },
12
+ __name: 'LocaleProvider',
13
+ props: {
14
+ locale: { type: Object, required: false }
15
+ },
16
+ setup(__props) {
17
+
19
18
 
20
- watch(() => props.locale, () => {
21
- state.antLocale = {
22
- ...props.locale || defaultLocal || {},
23
- exist: true
24
- }
25
- }, { deep: true })
26
19
 
27
- provide('componentLocaleData', state)
20
+ const props = __props
28
21
 
29
- return {}
22
+ const state = reactive({
23
+ antLocale: {
24
+ ...props.locale || defaultLocal || {},
25
+ exist: true
30
26
  }
31
27
  })
28
+
29
+ watch(() => props.locale, () => {
30
+ state.antLocale = {
31
+ ...props.locale || defaultLocal || {},
32
+ exist: true
33
+ }
34
+ }, { deep: true })
35
+
36
+ provide('componentLocaleData', state)
37
+
38
+ return (_ctx,_cache) => {
39
+ return _renderSlot(_ctx.$slots, "default")
40
+ }
41
+ }
42
+
43
+ })
44
+ export default __sfc_main__;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meethive/components",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",