@airpower/web 0.0.4 → 0.0.5
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/airpower.es.js +26 -62
- package/dist/airpower.umd.js +27 -64
- package/package.json +1 -1
package/dist/airpower.es.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Button } from "ant-design-vue";
|
|
1
2
|
/**
|
|
2
3
|
* @vue/shared v3.5.13
|
|
3
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -2437,6 +2438,15 @@ function setTransitionHooks(vnode, hooks) {
|
|
|
2437
2438
|
vnode.transition = hooks;
|
|
2438
2439
|
}
|
|
2439
2440
|
}
|
|
2441
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
2442
|
+
// @__NO_SIDE_EFFECTS__
|
|
2443
|
+
function defineComponent(options, extraOptions) {
|
|
2444
|
+
return isFunction(options) ? (
|
|
2445
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
2446
|
+
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
2447
|
+
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
2448
|
+
) : options;
|
|
2449
|
+
}
|
|
2440
2450
|
function markAsyncBoundary(instance) {
|
|
2441
2451
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
2442
2452
|
}
|
|
@@ -2636,48 +2646,7 @@ const onRenderTracked = createHook("rtc");
|
|
|
2636
2646
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
2637
2647
|
injectHook("ec", hook, target);
|
|
2638
2648
|
}
|
|
2639
|
-
const COMPONENTS = "components";
|
|
2640
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
2641
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2642
|
-
}
|
|
2643
2649
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2644
|
-
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
2645
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
2646
|
-
if (instance) {
|
|
2647
|
-
const Component = instance.type;
|
|
2648
|
-
{
|
|
2649
|
-
const selfName = getComponentName(
|
|
2650
|
-
Component,
|
|
2651
|
-
false
|
|
2652
|
-
);
|
|
2653
|
-
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
2654
|
-
return Component;
|
|
2655
|
-
}
|
|
2656
|
-
}
|
|
2657
|
-
const res = (
|
|
2658
|
-
// local registration
|
|
2659
|
-
// check instance[type] first which is resolved for options API
|
|
2660
|
-
resolve(instance[type] || Component[type], name) || // global registration
|
|
2661
|
-
resolve(instance.appContext[type], name)
|
|
2662
|
-
);
|
|
2663
|
-
if (!res && maybeSelfReference) {
|
|
2664
|
-
return Component;
|
|
2665
|
-
}
|
|
2666
|
-
if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
|
|
2667
|
-
const extra = `
|
|
2668
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`;
|
|
2669
|
-
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
2670
|
-
}
|
|
2671
|
-
return res;
|
|
2672
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
2673
|
-
warn$1(
|
|
2674
|
-
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
2675
|
-
);
|
|
2676
|
-
}
|
|
2677
|
-
}
|
|
2678
|
-
function resolve(registry, name) {
|
|
2679
|
-
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
2680
|
-
}
|
|
2681
2650
|
const getPublicInstance = (i) => {
|
|
2682
2651
|
if (!i) return null;
|
|
2683
2652
|
if (isStatefulComponent(i)) return getComponentPublicInstance(i);
|
|
@@ -7612,28 +7581,23 @@ function initDev() {
|
|
|
7612
7581
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7613
7582
|
initDev();
|
|
7614
7583
|
}
|
|
7615
|
-
const _export_sfc = (sfc, props) => {
|
|
7616
|
-
const target = sfc.__vccOpts || sfc;
|
|
7617
|
-
for (const [key, val] of props) {
|
|
7618
|
-
target[key] = val;
|
|
7619
|
-
}
|
|
7620
|
-
return target;
|
|
7621
|
-
};
|
|
7622
|
-
const _sfc_main = {};
|
|
7623
7584
|
const _hoisted_1 = { class: "airpower-app" };
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
}
|
|
7635
|
-
|
|
7636
|
-
|
|
7585
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7586
|
+
__name: "App",
|
|
7587
|
+
setup(__props) {
|
|
7588
|
+
return (_ctx, _cache) => {
|
|
7589
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
7590
|
+
createVNode(unref(Button), null, {
|
|
7591
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
7592
|
+
createTextVNode("按钮")
|
|
7593
|
+
])),
|
|
7594
|
+
_: 1
|
|
7595
|
+
})
|
|
7596
|
+
]);
|
|
7597
|
+
};
|
|
7598
|
+
}
|
|
7599
|
+
});
|
|
7600
|
+
const app = createApp(_sfc_main);
|
|
7637
7601
|
console.clear();
|
|
7638
7602
|
export {
|
|
7639
7603
|
app
|
package/dist/airpower.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global2, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.airpower = {}));
|
|
3
|
-
})(this, function(exports2) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("ant-design-vue")) : typeof define === "function" && define.amd ? define(["exports", "ant-design-vue"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.airpower = {}, global2.antDesignVue));
|
|
3
|
+
})(this, function(exports2, antDesignVue) {
|
|
4
4
|
"use strict";
|
|
5
5
|
/**
|
|
6
6
|
* @vue/shared v3.5.13
|
|
@@ -2441,6 +2441,15 @@
|
|
|
2441
2441
|
vnode.transition = hooks;
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
2444
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
2445
|
+
// @__NO_SIDE_EFFECTS__
|
|
2446
|
+
function defineComponent(options, extraOptions) {
|
|
2447
|
+
return isFunction(options) ? (
|
|
2448
|
+
// #8236: extend call and options.name access are considered side-effects
|
|
2449
|
+
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
2450
|
+
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
2451
|
+
) : options;
|
|
2452
|
+
}
|
|
2444
2453
|
function markAsyncBoundary(instance) {
|
|
2445
2454
|
instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0];
|
|
2446
2455
|
}
|
|
@@ -2640,48 +2649,7 @@
|
|
|
2640
2649
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
2641
2650
|
injectHook("ec", hook, target);
|
|
2642
2651
|
}
|
|
2643
|
-
const COMPONENTS = "components";
|
|
2644
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
2645
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
2646
|
-
}
|
|
2647
2652
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2648
|
-
function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
|
|
2649
|
-
const instance = currentRenderingInstance || currentInstance;
|
|
2650
|
-
if (instance) {
|
|
2651
|
-
const Component = instance.type;
|
|
2652
|
-
{
|
|
2653
|
-
const selfName = getComponentName(
|
|
2654
|
-
Component,
|
|
2655
|
-
false
|
|
2656
|
-
);
|
|
2657
|
-
if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {
|
|
2658
|
-
return Component;
|
|
2659
|
-
}
|
|
2660
|
-
}
|
|
2661
|
-
const res = (
|
|
2662
|
-
// local registration
|
|
2663
|
-
// check instance[type] first which is resolved for options API
|
|
2664
|
-
resolve(instance[type] || Component[type], name) || // global registration
|
|
2665
|
-
resolve(instance.appContext[type], name)
|
|
2666
|
-
);
|
|
2667
|
-
if (!res && maybeSelfReference) {
|
|
2668
|
-
return Component;
|
|
2669
|
-
}
|
|
2670
|
-
if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
|
|
2671
|
-
const extra = `
|
|
2672
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`;
|
|
2673
|
-
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
2674
|
-
}
|
|
2675
|
-
return res;
|
|
2676
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
2677
|
-
warn$1(
|
|
2678
|
-
`resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`
|
|
2679
|
-
);
|
|
2680
|
-
}
|
|
2681
|
-
}
|
|
2682
|
-
function resolve(registry, name) {
|
|
2683
|
-
return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);
|
|
2684
|
-
}
|
|
2685
2653
|
const getPublicInstance = (i) => {
|
|
2686
2654
|
if (!i) return null;
|
|
2687
2655
|
if (isStatefulComponent(i)) return getComponentPublicInstance(i);
|
|
@@ -7616,28 +7584,23 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
7616
7584
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
7617
7585
|
initDev();
|
|
7618
7586
|
}
|
|
7619
|
-
const _export_sfc = (sfc, props) => {
|
|
7620
|
-
const target = sfc.__vccOpts || sfc;
|
|
7621
|
-
for (const [key, val] of props) {
|
|
7622
|
-
target[key] = val;
|
|
7623
|
-
}
|
|
7624
|
-
return target;
|
|
7625
|
-
};
|
|
7626
|
-
const _sfc_main = {};
|
|
7627
7587
|
const _hoisted_1 = { class: "airpower-app" };
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7588
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7589
|
+
__name: "App",
|
|
7590
|
+
setup(__props) {
|
|
7591
|
+
return (_ctx, _cache) => {
|
|
7592
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
7593
|
+
createVNode(unref(antDesignVue.Button), null, {
|
|
7594
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
7595
|
+
createTextVNode("按钮")
|
|
7596
|
+
])),
|
|
7597
|
+
_: 1
|
|
7598
|
+
})
|
|
7599
|
+
]);
|
|
7600
|
+
};
|
|
7601
|
+
}
|
|
7602
|
+
});
|
|
7603
|
+
const app = createApp(_sfc_main);
|
|
7641
7604
|
console.clear();
|
|
7642
7605
|
exports2.app = app;
|
|
7643
7606
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|