@gct-paas/core-web 0.1.4-dev.0 → 0.1.4-dev.2
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.
- package/dist/index.min.cjs +12 -12
- package/dist/index.system.min.js +12 -12
- package/es/editor/index.mjs +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +2 -0
- package/es/node_modules/.pnpm/{@vueuse_core@10.11.1_vue@3.5.13_typescript@5.8.3_ → @vueuse_core@13.7.0_vue@3.5.18_typescript@5.9.2_}/node_modules/@vueuse/core/index.mjs +1717 -919
- package/es/node_modules/.pnpm/{@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.8.3_ → @vueuse_shared@13.7.0_vue@3.5.18_typescript@5.9.2_}/node_modules/@vueuse/shared/index.mjs +271 -206
- package/es/node_modules/.pnpm/{vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@1_9cfe46f6a11310063dbf07d888abdb76 → vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@1_c6850a6c65df63e96440af393dfce213}/node_modules/vue3-colorpicker/index.es.mjs +3 -3
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.mjs +3 -0
- package/es/utils/with-install.d.ts +14 -0
- package/es/utils/with-install.mjs +14 -0
- package/package.json +7 -8
- package/es/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.13_typescript@5.8.3_/node_modules/vue-demi/lib/index.mjs +0 -29
- /package/es/node_modules/.pnpm/{vue-types@3.0.2_vue@3.5.13_typescript@5.8.3_ → vue-types@3.0.2_vue@3.5.18_typescript@5.9.2_}/node_modules/vue-types/dist/vue-types.m.mjs +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, watch, computed, pushScopeId, popScopeId, createElementVNode, createElementBlock, openBlock, normalizeClass, normalizeStyle, Fragment, renderList, getCurrentInstance, nextTick, createCommentVNode, withDirectives, vModelText, createTextVNode, toDisplayString, resolveComponent, createBlock, createVNode, onMounted, inject, vShow, renderSlot, provide, useSlots, withCtx, resolveDynamicComponent, mergeProps, Teleport } from 'vue';
|
|
2
|
-
import { useClipboard, useLocalStorage, onClickOutside } from '../../../@vueuse_core@
|
|
2
|
+
import { useClipboard, useLocalStorage, onClickOutside } from '../../../@vueuse_core@13.7.0_vue@3.5.18_typescript@5.9.2_/node_modules/@vueuse/core/index.mjs';
|
|
3
3
|
import tinycolor from '../../../tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.mjs';
|
|
4
4
|
import { n as nodeExports } from '../../../../../_virtual/node.mjs';
|
|
5
5
|
import '../../../@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/index.mjs';
|
|
6
|
-
import C from '../../../vue-types@3.0.2_vue@3.5.
|
|
6
|
+
import C from '../../../vue-types@3.0.2_vue@3.5.18_typescript@5.9.2_/node_modules/vue-types/dist/vue-types.m.mjs';
|
|
7
7
|
import { DOMUtils as Vn } from '../../../@aesoper_normal-utils@0.1.5/node_modules/@aesoper/normal-utils/NormalUtils.es.mjs';
|
|
8
8
|
import { merge } from 'lodash-es';
|
|
9
|
-
import { tryOnMounted, whenever, useDebounceFn } from '../../../@vueuse_shared@
|
|
9
|
+
import { tryOnMounted, whenever, useDebounceFn } from '../../../@vueuse_shared@13.7.0_vue@3.5.18_typescript@5.9.2_/node_modules/@vueuse/shared/index.mjs';
|
|
10
10
|
import { createPopper } from '../../../@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.mjs';
|
|
11
11
|
|
|
12
12
|
var qe = Object.defineProperty;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withInstall } from './with-install';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { App, Component } from 'vue';
|
|
2
|
+
type EventShim = new (...args: any[]) => {
|
|
3
|
+
$props: {
|
|
4
|
+
onClick?: (...args: any[]) => void;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export type WithInstall<T> = T & {
|
|
8
|
+
install(app: App): void;
|
|
9
|
+
} & EventShim;
|
|
10
|
+
export type CustomComponent = Component & {
|
|
11
|
+
displayName?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const withInstall: <T extends CustomComponent>(component: T, alias?: string) => WithInstall<T>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const withInstall = (component, alias) => {
|
|
3
|
+
component.install = (app) => {
|
|
4
|
+
const compName = component.name || component.displayName;
|
|
5
|
+
if (!compName) return;
|
|
6
|
+
app.component(compName, component);
|
|
7
|
+
if (alias) {
|
|
8
|
+
app.config.globalProperties[alias] = component;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
return component;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { withInstall };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core-web",
|
|
3
|
-
"version": "0.1.4-dev.
|
|
3
|
+
"version": "0.1.4-dev.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台网页端核心包",
|
|
6
6
|
"main": "dist/index.min.cjs",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"dev": "rollup -c -w --environment=NODE_ENV:development",
|
|
35
35
|
"build": "npm run lint && rollup -c --environment=NODE_ENV:production && vite build --mode production --config vite.config.ts",
|
|
36
36
|
"lint": "eslint src/",
|
|
37
|
-
"link2global": "pnpm link --global",
|
|
38
37
|
"publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
|
|
39
38
|
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
40
39
|
"publish:alpha": "npm run build && npm publish --access public --tag=alpha --registry=https://registry.npmjs.org/",
|
|
@@ -45,21 +44,21 @@
|
|
|
45
44
|
"gen-api:platform": "gct-paas gen-api --url=http://paas.paasdev.gct-paas.com --tag=platform -t ../cli/hbs-temp -o ./src/service/gct-platform && prettier './src/service/gct-platform' --write"
|
|
46
45
|
},
|
|
47
46
|
"dependencies": {
|
|
48
|
-
"@gct-paas/core": "0.1.4-dev.
|
|
47
|
+
"@gct-paas/core": "0.1.4-dev.2",
|
|
49
48
|
"@monaco-editor/loader": "^1.5.0",
|
|
50
49
|
"ant-design-vue": "3.2.20",
|
|
51
50
|
"lodash-es": "^4.17.21",
|
|
52
51
|
"monaco-editor": "^0.52.2",
|
|
53
|
-
"vue": "^3.5.
|
|
52
|
+
"vue": "^3.5.18",
|
|
54
53
|
"vue3-colorpicker": "^2.3.0"
|
|
55
54
|
},
|
|
56
55
|
"devDependencies": {
|
|
57
|
-
"@gct-paas/build": "0.1.4-dev.
|
|
58
|
-
"@gct-paas/scss": "0.1.4-dev.
|
|
59
|
-
"sass": "^1.
|
|
56
|
+
"@gct-paas/build": "0.1.4-dev.2",
|
|
57
|
+
"@gct-paas/scss": "0.1.4-dev.2",
|
|
58
|
+
"sass": "^1.90.0"
|
|
60
59
|
},
|
|
61
60
|
"peerDependencies": {
|
|
62
61
|
"vue": "^3.x"
|
|
63
62
|
},
|
|
64
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "d837ea9836db8bae169908326208cc031b2e9eac"
|
|
65
64
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from 'vue';
|
|
2
|
-
import * as vue from 'vue';
|
|
3
|
-
export { vue as Vue };
|
|
4
|
-
|
|
5
|
-
var isVue2 = false;
|
|
6
|
-
var isVue3 = true;
|
|
7
|
-
var Vue2 = undefined;
|
|
8
|
-
|
|
9
|
-
function install() {}
|
|
10
|
-
|
|
11
|
-
function set(target, key, val) {
|
|
12
|
-
if (Array.isArray(target)) {
|
|
13
|
-
target.length = Math.max(target.length, key);
|
|
14
|
-
target.splice(key, 1, val);
|
|
15
|
-
return val
|
|
16
|
-
}
|
|
17
|
-
target[key] = val;
|
|
18
|
-
return val
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function del(target, key) {
|
|
22
|
-
if (Array.isArray(target)) {
|
|
23
|
-
target.splice(key, 1);
|
|
24
|
-
return
|
|
25
|
-
}
|
|
26
|
-
delete target[key];
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { Vue2, del, install, isVue2, isVue3, set };
|