@opentinyvue/vue-config-provider 2.21.0 → 3.21.0

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.
Files changed (2) hide show
  1. package/lib/index.js +11 -51
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -1,36 +1,3 @@
1
- import { defineComponent, $prefix, props, hooks, provideDesignConfig, isVue2 } from '@opentinyvue/vue-common';
2
- import '@opentinyvue/vue-theme/config-provider/index.css';
3
-
4
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
5
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
6
- if (render) {
7
- options.render = render;
8
- options.staticRenderFns = staticRenderFns;
9
- options._compiled = true;
10
- }
11
- var hook;
12
- if (injectStyles) {
13
- hook = injectStyles;
14
- }
15
- if (hook) {
16
- if (options.functional) {
17
- options._injectStyles = hook;
18
- var originalRender = options.render;
19
- options.render = function renderWithStyleInjection(h, context) {
20
- hook.call(context);
21
- return originalRender(h, context);
22
- };
23
- } else {
24
- var existing = options.beforeCreate;
25
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
26
- }
27
- }
28
- return {
29
- exports: scriptExports,
30
- options
31
- };
32
- }
33
-
34
1
  function _extends() {
35
2
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
36
3
  for (var e = 1; e < arguments.length; e++) {
@@ -40,7 +7,9 @@ function _extends() {
40
7
  return n;
41
8
  }, _extends.apply(null, arguments);
42
9
  }
43
- var __vue2_script = defineComponent({
10
+ import { defineComponent, $prefix, props, hooks, provideDesignConfig, isVue2 } from "@opentinyvue/vue-common";
11
+ import "@opentinyvue/vue-theme/config-provider/index.css";
12
+ var _sfc_main = defineComponent({
44
13
  name: $prefix + "ConfigProvider",
45
14
  props: _extends({
46
15
  design: {
@@ -128,22 +97,13 @@ var __vue2_script = defineComponent({
128
97
  return hooks.h(tagName, attr, slots);
129
98
  }
130
99
  });
131
- var __vue2_render, __vue2_staticRenderFns;
132
- var __cssModules = {};
133
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles);
134
- function __vue2_injectStyles(context) {
135
- for (var o in __cssModules) {
136
- this[o] = __cssModules[o];
137
- }
138
- }
139
- var ConfigProvider = /* @__PURE__ */ function() {
140
- return __component__.exports;
141
- }();
142
- var version = "2.21.0";
100
+ var version = "3.21.0";
143
101
  var configProviderContextKey = Symbol("CONFIG_PROVIDER_CONTEXT_KEY");
144
- ConfigProvider.install = function(Vue) {
145
- Vue.component(ConfigProvider.name, ConfigProvider);
102
+ _sfc_main.install = function(Vue) {
103
+ Vue.component(_sfc_main.name, _sfc_main);
104
+ };
105
+ _sfc_main.version = version;
106
+ export {
107
+ configProviderContextKey,
108
+ _sfc_main as default
146
109
  };
147
- ConfigProvider.version = version;
148
-
149
- export { configProviderContextKey, ConfigProvider as default };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-config-provider",
3
- "version": "2.21.0",
3
+ "version": "3.21.0",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./lib/index.js",
6
6
  "sideEffects": false,
7
7
  "type": "module",
8
8
  "dependencies": {
9
- "@opentinyvue/vue-common": "~2.21.0",
9
+ "@opentinyvue/vue-common": "~3.21.0",
10
10
  "@opentinyvue/vue-theme": "~3.21.0"
11
11
  },
12
12
  "license": "MIT",