@94ai/common-ui 1.1.26 → 1.1.27

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.
@@ -2261,6 +2261,8 @@ function _defineProperty(obj, key, value) {
2261
2261
  }
2262
2262
  return obj;
2263
2263
  }
2264
+ var Vue2 = Vue;
2265
+ Vue.util.warn;
2264
2266
  function ownKeys$3(object, enumerableOnly) {
2265
2267
  var keys4 = _Object$keys(object);
2266
2268
  if (_Object$getOwnPropertySymbols) {
@@ -3343,7 +3345,7 @@ function _objectSpread$1(target) {
3343
3345
  }
3344
3346
  return target;
3345
3347
  }
3346
- var NotificationConstructor = Vue.extend(Component);
3348
+ var NotificationConstructor = Vue2.extend(Component);
3347
3349
  var instances = [];
3348
3350
  var seed = 1;
3349
3351
  var removeInstance = function removeInstance2(instance) {
@@ -3363,7 +3365,7 @@ var removeInstance = function removeInstance2(instance) {
3363
3365
  }
3364
3366
  };
3365
3367
  var toast = function toast2(options) {
3366
- if (Vue.prototype.$isServer)
3368
+ if (Vue2.prototype.$isServer)
3367
3369
  return;
3368
3370
  var autoClose = options.autoClose, rest = _objectWithoutProperties(options, _excluded);
3369
3371
  var instance = new NotificationConstructor({
@@ -3560,7 +3562,6 @@ var CommonUI = defineComponent({
3560
3562
  }
3561
3563
  });
3562
3564
  export {
3563
- CommonUI,
3564
3565
  NfButtonDemo,
3565
3566
  NfDoubleTime,
3566
3567
  NfInfiniteMenu,
@@ -2264,6 +2264,8 @@
2264
2264
  }
2265
2265
  return obj;
2266
2266
  }
2267
+ var Vue2 = Vue;
2268
+ Vue.util.warn;
2267
2269
  function ownKeys$3(object, enumerableOnly) {
2268
2270
  var keys2 = _Object$keys(object);
2269
2271
  if (_Object$getOwnPropertySymbols) {
@@ -3346,7 +3348,7 @@
3346
3348
  }
3347
3349
  return target;
3348
3350
  }
3349
- var NotificationConstructor = Vue.extend(Component);
3351
+ var NotificationConstructor = Vue2.extend(Component);
3350
3352
  var instances = [];
3351
3353
  var seed = 1;
3352
3354
  var removeInstance = function removeInstance2(instance) {
@@ -3366,7 +3368,7 @@
3366
3368
  }
3367
3369
  };
3368
3370
  var toast = function toast2(options) {
3369
- if (Vue.prototype.$isServer)
3371
+ if (Vue2.prototype.$isServer)
3370
3372
  return;
3371
3373
  var autoClose = options.autoClose, rest = _objectWithoutProperties(options, _excluded);
3372
3374
  var instance = new NotificationConstructor({
@@ -3562,7 +3564,6 @@
3562
3564
  });
3563
3565
  }
3564
3566
  });
3565
- exports2.CommonUI = CommonUI;
3566
3567
  exports2.NfButtonDemo = NfButtonDemo;
3567
3568
  exports2.NfDoubleTime = NfDoubleTime;
3568
3569
  exports2.NfInfiniteMenu = NfInfiniteMenu;
@@ -5,7 +5,7 @@ const NfInfiniteMenu = require("@94ai/nf-infinite-menu");
5
5
  const NfDoubleTime = require("@94ai/nf-double-time");
6
6
  const NfToastDemo = require("@94ai/nf-toast-demo");
7
7
  const NfButtonDemo = require("@94ai/nf-button-demo");
8
- const vue = require("vue");
8
+ const vueDemi = require("vue-demi");
9
9
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
10
10
  function getDefaultExportFromCjs(x) {
11
11
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -1304,7 +1304,7 @@ var forEach$2 = parent;
1304
1304
  var forEach$1 = forEach$2;
1305
1305
  var forEach2 = forEach$1;
1306
1306
  const _forEachInstanceProperty = /* @__PURE__ */ getDefaultExportFromCjs(forEach2);
1307
- var CommonUI = vue.defineComponent({
1307
+ var CommonUI = vueDemi.defineComponent({
1308
1308
  name: "common-ui",
1309
1309
  install: function install(app) {
1310
1310
  var _context;
@@ -1318,5 +1318,4 @@ exports.NfInfiniteMenu = NfInfiniteMenu;
1318
1318
  exports.NfDoubleTime = NfDoubleTime;
1319
1319
  exports.NfToastDemo = NfToastDemo;
1320
1320
  exports.NfButtonDemo = NfButtonDemo;
1321
- exports.CommonUI = CommonUI;
1322
1321
  exports.default = CommonUI;
@@ -8,7 +8,7 @@ import NfToastDemo from "@94ai/nf-toast-demo";
8
8
  import { default as default5 } from "@94ai/nf-toast-demo";
9
9
  import NfButtonDemo from "@94ai/nf-button-demo";
10
10
  import { default as default6 } from "@94ai/nf-button-demo";
11
- import { defineComponent } from "vue";
11
+ import { defineComponent } from "vue-demi";
12
12
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
13
13
  function getDefaultExportFromCjs(x) {
14
14
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -1317,7 +1317,6 @@ var CommonUI = defineComponent({
1317
1317
  }
1318
1318
  });
1319
1319
  export {
1320
- CommonUI,
1321
1320
  default6 as NfButtonDemo,
1322
1321
  default4 as NfDoubleTime,
1323
1322
  default3 as NfInfiniteMenu,
package/lib/index.d.ts CHANGED
@@ -3,5 +3,9 @@ import NfInfiniteMenu from '@94ai/nf-infinite-menu';
3
3
  import NfDoubleTime from '@94ai/nf-double-time';
4
4
  import NfToastDemo from '@94ai/nf-toast-demo';
5
5
  import NfButtonDemo from '@94ai/nf-button-demo';
6
- declare const CommonUI: import("vue").DefineComponent<{}, unknown, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
7
- export { CommonUI, CommonUI as default, NfInfiniteMenu, NfMenu, NfDoubleTime, NfToastDemo, NfButtonDemo };
6
+ import { PluginObject } from 'vue-demi';
7
+ declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue-demi").ExtractPropTypes<{}>>, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{}>>> & import("vue-demi").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{}>>, unknown, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
8
+ props: {};
9
+ } & PluginObject<undefined>;
10
+ export default _default;
11
+ export { NfInfiniteMenu, NfMenu, NfDoubleTime, NfToastDemo, NfButtonDemo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/common-ui",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "94智能公共组件库",
5
5
  "keywords": [
6
6
  "组件库"
@@ -16,20 +16,22 @@
16
16
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
17
17
  },
18
18
  "dependencies": {
19
- "@94ai/nf-button-demo": "^1.1.26",
20
- "@94ai/nf-double-time": "^1.1.26",
21
- "@94ai/nf-infinite-menu": "^1.1.26",
22
- "@94ai/nf-menu": "^1.1.26",
23
- "@94ai/nf-theme-chalk": "^1.1.26",
24
- "@94ai/nf-toast-demo": "^1.1.26"
19
+ "@94ai/nf-button-demo": "^1.1.27",
20
+ "@94ai/nf-double-time": "^1.1.27",
21
+ "@94ai/nf-infinite-menu": "^1.1.27",
22
+ "@94ai/nf-menu": "^1.1.27",
23
+ "@94ai/nf-theme-chalk": "^1.1.27",
24
+ "@94ai/nf-toast-demo": "^1.1.27",
25
+ "vue-demi": "^0.14.5"
25
26
  },
26
27
  "main": "lib/common-ui.cjs.js",
27
28
  "module": "lib/common-ui.esm-bundler.js",
28
29
  "style": "lib/common-ui.css",
29
30
  "types": "lib/index.d.ts",
30
31
  "peerDependencies": {
32
+ "@vue/composition-api": "^1.0.0-rc.1",
31
33
  "element-ui": ">=2.13.2",
32
34
  "vue": ">=2"
33
35
  },
34
- "gitHead": "9a78d355588bca739562941f6f8673c22b8ce070"
36
+ "gitHead": "881c72f588b9adc1d9316104746ba3a45e77b2c0"
35
37
  }