@fangzhongya/vue-archive 0.0.2-32 → 0.0.2-33
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/node/index.cjs +76 -96
- package/dist/node/index.js +75 -95
- package/dist/packages/components/compo/index.cjs +1 -1
- package/dist/packages/components/compo/index.d.ts +1 -0
- package/dist/packages/components/compo/index.js +139 -147
- package/dist/style.css +2 -2
- package/package.json +2 -2
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-GOH6G74S.cjs +0 -1
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-GOH6G74S.js +0 -11
package/dist/node/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var __create = Object.create;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -51744,20 +51744,20 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
51744
51744
|
}
|
|
51745
51745
|
}
|
|
51746
51746
|
const slotFlag = hasDynamicSlots ? 2 : hasForwardedSlots(node.children) ? 3 : 1;
|
|
51747
|
-
let
|
|
51747
|
+
let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(
|
|
51748
51748
|
`_`,
|
|
51749
51749
|
// 2 = compiled but dynamic = can skip normalization, but must run diff
|
|
51750
51750
|
// 1 = compiled and static = can skip normalization AND diff as optimized
|
|
51751
51751
|
createSimpleExpression(slotFlag + (process.env.NODE_ENV !== "production" ? ` /* ${slotFlagsText[slotFlag]} */` : ``), false)
|
|
51752
51752
|
)), loc);
|
|
51753
51753
|
if (dynamicSlots.length) {
|
|
51754
|
-
|
|
51755
|
-
|
|
51754
|
+
slots = createCallExpression(context.helper(CREATE_SLOTS), [
|
|
51755
|
+
slots,
|
|
51756
51756
|
createArrayExpression(dynamicSlots)
|
|
51757
51757
|
]);
|
|
51758
51758
|
}
|
|
51759
51759
|
return {
|
|
51760
|
-
slots
|
|
51760
|
+
slots,
|
|
51761
51761
|
hasDynamicSlots
|
|
51762
51762
|
};
|
|
51763
51763
|
}
|
|
@@ -53102,8 +53102,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
53102
53102
|
vnodeTag !== TELEPORT && // explained above.
|
|
53103
53103
|
vnodeTag !== KEEP_ALIVE;
|
|
53104
53104
|
if (shouldBuildAsSlots) {
|
|
53105
|
-
const { slots
|
|
53106
|
-
vnodeChildren =
|
|
53105
|
+
const { slots, hasDynamicSlots } = buildSlots(node, context);
|
|
53106
|
+
vnodeChildren = slots;
|
|
53107
53107
|
if (hasDynamicSlots) {
|
|
53108
53108
|
patchFlag |= 1024;
|
|
53109
53109
|
}
|
|
@@ -55796,7 +55796,7 @@ function markAttrsAccessed() {
|
|
|
55796
55796
|
accessedAttrs = true;
|
|
55797
55797
|
}
|
|
55798
55798
|
function renderComponentRoot(instance) {
|
|
55799
|
-
const { type: Component, vnode, proxy, withProxy, props: props2, propsOptions: [propsOptions], slots
|
|
55799
|
+
const { type: Component, vnode, proxy, withProxy, props: props2, propsOptions: [propsOptions], slots, attrs, emit: emit2, render: render2, renderCache, data, setupState, ctx, inheritAttrs } = instance;
|
|
55800
55800
|
let result;
|
|
55801
55801
|
let fallthroughAttrs;
|
|
55802
55802
|
const prev = setCurrentRenderingInstance(instance);
|
|
@@ -55818,9 +55818,9 @@ function renderComponentRoot(instance) {
|
|
|
55818
55818
|
markAttrsAccessed();
|
|
55819
55819
|
return attrs;
|
|
55820
55820
|
},
|
|
55821
|
-
slots
|
|
55821
|
+
slots,
|
|
55822
55822
|
emit: emit2
|
|
55823
|
-
} : { attrs, slots
|
|
55823
|
+
} : { attrs, slots, emit: emit2 }) : render3(
|
|
55824
55824
|
props2,
|
|
55825
55825
|
null
|
|
55826
55826
|
/* we know it doesn't need it */
|
|
@@ -57184,15 +57184,15 @@ function renderList(source, renderItem, cache, index) {
|
|
|
57184
57184
|
}
|
|
57185
57185
|
return ret;
|
|
57186
57186
|
}
|
|
57187
|
-
function createSlots(
|
|
57187
|
+
function createSlots(slots, dynamicSlots) {
|
|
57188
57188
|
for (let i = 0; i < dynamicSlots.length; i++) {
|
|
57189
57189
|
const slot2 = dynamicSlots[i];
|
|
57190
57190
|
if (isArray2(slot2)) {
|
|
57191
57191
|
for (let j = 0; j < slot2.length; j++) {
|
|
57192
|
-
|
|
57192
|
+
slots[slot2[j].name] = slot2[j].fn;
|
|
57193
57193
|
}
|
|
57194
57194
|
} else if (slot2) {
|
|
57195
|
-
|
|
57195
|
+
slots[slot2.name] = slot2.key ? (...args) => {
|
|
57196
57196
|
const res = slot2.fn(...args);
|
|
57197
57197
|
if (res)
|
|
57198
57198
|
res.key = slot2.key;
|
|
@@ -57200,15 +57200,15 @@ function createSlots(slots2, dynamicSlots) {
|
|
|
57200
57200
|
} : slot2.fn;
|
|
57201
57201
|
}
|
|
57202
57202
|
}
|
|
57203
|
-
return
|
|
57203
|
+
return slots;
|
|
57204
57204
|
}
|
|
57205
|
-
function renderSlot(
|
|
57205
|
+
function renderSlot(slots, name, props2 = {}, fallback, noSlotted) {
|
|
57206
57206
|
if (currentRenderingInstance.isCE || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.isCE) {
|
|
57207
57207
|
if (name !== "default")
|
|
57208
57208
|
props2.name = name;
|
|
57209
57209
|
return createVNode("slot", props2, fallback && fallback());
|
|
57210
57210
|
}
|
|
57211
|
-
let slot2 =
|
|
57211
|
+
let slot2 = slots[name];
|
|
57212
57212
|
if (process.env.NODE_ENV !== "production" && slot2 && slot2.length > 1) {
|
|
57213
57213
|
warn2(`SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`);
|
|
57214
57214
|
slot2 = () => [];
|
|
@@ -57226,7 +57226,7 @@ function renderSlot(slots2, name, props2 = {}, fallback, noSlotted) {
|
|
|
57226
57226
|
validSlotContent && validSlotContent.key || `_${name}`
|
|
57227
57227
|
},
|
|
57228
57228
|
validSlotContent || (fallback ? fallback() : []),
|
|
57229
|
-
validSlotContent &&
|
|
57229
|
+
validSlotContent && slots._ === 1 ? 64 : -2
|
|
57230
57230
|
/* PatchFlags.BAIL */
|
|
57231
57231
|
);
|
|
57232
57232
|
if (!noSlotted && rendered.scopeId) {
|
|
@@ -60969,12 +60969,12 @@ var init_runtime_core_esm_bundler = __esm({
|
|
|
60969
60969
|
onAfterAppear: TransitionHookValidator,
|
|
60970
60970
|
onAppearCancelled: TransitionHookValidator
|
|
60971
60971
|
},
|
|
60972
|
-
setup(props2, { slots
|
|
60972
|
+
setup(props2, { slots }) {
|
|
60973
60973
|
const instance = getCurrentInstance();
|
|
60974
60974
|
const state = useTransitionState();
|
|
60975
60975
|
let prevTransitionKey;
|
|
60976
60976
|
return () => {
|
|
60977
|
-
const children =
|
|
60977
|
+
const children = slots.default && getTransitionRawChildren(slots.default(), true);
|
|
60978
60978
|
if (!children || !children.length) {
|
|
60979
60979
|
return;
|
|
60980
60980
|
}
|
|
@@ -61064,12 +61064,12 @@ var init_runtime_core_esm_bundler = __esm({
|
|
|
61064
61064
|
exclude: [String, RegExp, Array],
|
|
61065
61065
|
max: [String, Number]
|
|
61066
61066
|
},
|
|
61067
|
-
setup(props2, { slots
|
|
61067
|
+
setup(props2, { slots }) {
|
|
61068
61068
|
const instance = getCurrentInstance();
|
|
61069
61069
|
const sharedContext = instance.ctx;
|
|
61070
61070
|
if (!sharedContext.renderer) {
|
|
61071
61071
|
return () => {
|
|
61072
|
-
const children =
|
|
61072
|
+
const children = slots.default && slots.default();
|
|
61073
61073
|
return children && children.length === 1 ? children[0] : children;
|
|
61074
61074
|
};
|
|
61075
61075
|
}
|
|
@@ -61171,10 +61171,10 @@ var init_runtime_core_esm_bundler = __esm({
|
|
|
61171
61171
|
});
|
|
61172
61172
|
return () => {
|
|
61173
61173
|
pendingCacheKey = null;
|
|
61174
|
-
if (!
|
|
61174
|
+
if (!slots.default) {
|
|
61175
61175
|
return null;
|
|
61176
61176
|
}
|
|
61177
|
-
const children =
|
|
61177
|
+
const children = slots.default();
|
|
61178
61178
|
const rawVNode = children[0];
|
|
61179
61179
|
if (children.length > 1) {
|
|
61180
61180
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -61481,20 +61481,20 @@ var init_runtime_core_esm_bundler = __esm({
|
|
|
61481
61481
|
normalized._c = false;
|
|
61482
61482
|
return normalized;
|
|
61483
61483
|
};
|
|
61484
|
-
normalizeObjectSlots = (rawSlots,
|
|
61484
|
+
normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
61485
61485
|
const ctx = rawSlots._ctx;
|
|
61486
61486
|
for (const key in rawSlots) {
|
|
61487
61487
|
if (isInternalKey(key))
|
|
61488
61488
|
continue;
|
|
61489
61489
|
const value = rawSlots[key];
|
|
61490
61490
|
if (isFunction(value)) {
|
|
61491
|
-
|
|
61491
|
+
slots[key] = normalizeSlot(key, value, ctx);
|
|
61492
61492
|
} else if (value != null) {
|
|
61493
61493
|
if (process.env.NODE_ENV !== "production" && true) {
|
|
61494
61494
|
warn2(`Non-function value encountered for slot "${key}". Prefer function slots for better performance.`);
|
|
61495
61495
|
}
|
|
61496
61496
|
const normalized = normalizeSlotValue(value);
|
|
61497
|
-
|
|
61497
|
+
slots[key] = () => normalized;
|
|
61498
61498
|
}
|
|
61499
61499
|
}
|
|
61500
61500
|
};
|
|
@@ -61523,25 +61523,25 @@ var init_runtime_core_esm_bundler = __esm({
|
|
|
61523
61523
|
def(instance.slots, InternalObjectKey, 1);
|
|
61524
61524
|
};
|
|
61525
61525
|
updateSlots = (instance, children, optimized) => {
|
|
61526
|
-
const { vnode, slots
|
|
61526
|
+
const { vnode, slots } = instance;
|
|
61527
61527
|
let needDeletionCheck = true;
|
|
61528
61528
|
let deletionComparisonTarget = EMPTY_OBJ;
|
|
61529
61529
|
if (vnode.shapeFlag & 32) {
|
|
61530
61530
|
const type = children._;
|
|
61531
61531
|
if (type) {
|
|
61532
61532
|
if (process.env.NODE_ENV !== "production" && isHmrUpdating) {
|
|
61533
|
-
extend(
|
|
61533
|
+
extend(slots, children);
|
|
61534
61534
|
} else if (optimized && type === 1) {
|
|
61535
61535
|
needDeletionCheck = false;
|
|
61536
61536
|
} else {
|
|
61537
|
-
extend(
|
|
61537
|
+
extend(slots, children);
|
|
61538
61538
|
if (!optimized && type === 1) {
|
|
61539
|
-
delete
|
|
61539
|
+
delete slots._;
|
|
61540
61540
|
}
|
|
61541
61541
|
}
|
|
61542
61542
|
} else {
|
|
61543
61543
|
needDeletionCheck = !children.$stable;
|
|
61544
|
-
normalizeObjectSlots(children,
|
|
61544
|
+
normalizeObjectSlots(children, slots);
|
|
61545
61545
|
}
|
|
61546
61546
|
deletionComparisonTarget = children;
|
|
61547
61547
|
} else if (children) {
|
|
@@ -61549,9 +61549,9 @@ var init_runtime_core_esm_bundler = __esm({
|
|
|
61549
61549
|
deletionComparisonTarget = { default: 1 };
|
|
61550
61550
|
}
|
|
61551
61551
|
if (needDeletionCheck) {
|
|
61552
|
-
for (const key in
|
|
61552
|
+
for (const key in slots) {
|
|
61553
61553
|
if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
|
|
61554
|
-
delete
|
|
61554
|
+
delete slots[key];
|
|
61555
61555
|
}
|
|
61556
61556
|
}
|
|
61557
61557
|
}
|
|
@@ -62933,7 +62933,7 @@ var init_runtime_dom_esm_bundler = __esm({
|
|
|
62933
62933
|
};
|
|
62934
62934
|
TRANSITION2 = "transition";
|
|
62935
62935
|
ANIMATION = "animation";
|
|
62936
|
-
Transition = (props2, { slots
|
|
62936
|
+
Transition = (props2, { slots }) => h(BaseTransition, resolveTransitionProps(props2), slots);
|
|
62937
62937
|
Transition.displayName = "Transition";
|
|
62938
62938
|
DOMTransitionPropsValidators = {
|
|
62939
62939
|
name: String,
|
|
@@ -62973,7 +62973,7 @@ var init_runtime_dom_esm_bundler = __esm({
|
|
|
62973
62973
|
tag: String,
|
|
62974
62974
|
moveClass: String
|
|
62975
62975
|
}),
|
|
62976
|
-
setup(props2, { slots
|
|
62976
|
+
setup(props2, { slots }) {
|
|
62977
62977
|
const instance = getCurrentInstance();
|
|
62978
62978
|
const state = useTransitionState();
|
|
62979
62979
|
let prevChildren;
|
|
@@ -63013,7 +63013,7 @@ var init_runtime_dom_esm_bundler = __esm({
|
|
|
63013
63013
|
const cssTransitionProps = resolveTransitionProps(rawProps);
|
|
63014
63014
|
let tag = rawProps.tag || Fragment;
|
|
63015
63015
|
prevChildren = children;
|
|
63016
|
-
children =
|
|
63016
|
+
children = slots.default ? getTransitionRawChildren(slots.default()) : [];
|
|
63017
63017
|
for (let i = 0; i < children.length; i++) {
|
|
63018
63018
|
const child = children[i];
|
|
63019
63019
|
if (child.key != null) {
|
|
@@ -63591,20 +63591,6 @@ function getSuffix(url) {
|
|
|
63591
63591
|
return "";
|
|
63592
63592
|
}
|
|
63593
63593
|
|
|
63594
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-GOH6G74S.js
|
|
63595
|
-
function replaceAfter(arr, obj, id) {
|
|
63596
|
-
const varr = [];
|
|
63597
|
-
for (let index = 0; index < arr.length; index++) {
|
|
63598
|
-
const element = arr[index];
|
|
63599
|
-
const vs = obj;
|
|
63600
|
-
if (element[id] !== vs[id]) {
|
|
63601
|
-
varr.push(arr[index]);
|
|
63602
|
-
}
|
|
63603
|
-
}
|
|
63604
|
-
varr.push(obj);
|
|
63605
|
-
return varr;
|
|
63606
|
-
}
|
|
63607
|
-
|
|
63608
63594
|
// packages/config.ts
|
|
63609
63595
|
var config = {
|
|
63610
63596
|
components: []
|
|
@@ -65064,6 +65050,13 @@ var slot = {
|
|
|
65064
65050
|
};
|
|
65065
65051
|
|
|
65066
65052
|
// packages/components/compo/index.ts
|
|
65053
|
+
var notesObj = {
|
|
65054
|
+
titles: [],
|
|
65055
|
+
propss: [],
|
|
65056
|
+
slots: [],
|
|
65057
|
+
emitss: [],
|
|
65058
|
+
exposes: []
|
|
65059
|
+
};
|
|
65067
65060
|
function getDefault(ss, iss) {
|
|
65068
65061
|
let c = ss.charAt(0);
|
|
65069
65062
|
let css = [
|
|
@@ -65126,7 +65119,6 @@ function getObj2(v) {
|
|
|
65126
65119
|
v.selectable = selectable;
|
|
65127
65120
|
return v;
|
|
65128
65121
|
}
|
|
65129
|
-
var titles2 = [];
|
|
65130
65122
|
function setTitle2(obj) {
|
|
65131
65123
|
let title = "";
|
|
65132
65124
|
let name = "";
|
|
@@ -65153,9 +65145,8 @@ function setTitle2(obj) {
|
|
|
65153
65145
|
});
|
|
65154
65146
|
}
|
|
65155
65147
|
function addTitles(value) {
|
|
65156
|
-
|
|
65148
|
+
notesObj.titles.push(value);
|
|
65157
65149
|
}
|
|
65158
|
-
var propss = [];
|
|
65159
65150
|
function setProps(obj) {
|
|
65160
65151
|
let name = "";
|
|
65161
65152
|
let type = "";
|
|
@@ -65176,15 +65167,11 @@ function setProps(obj) {
|
|
|
65176
65167
|
arr.forEach((key) => {
|
|
65177
65168
|
value[key] = fobj.obj[key];
|
|
65178
65169
|
});
|
|
65179
|
-
|
|
65170
|
+
addObj(value, "props");
|
|
65180
65171
|
fobj.arr.forEach((o) => {
|
|
65181
65172
|
addTags2(o.key, o.value);
|
|
65182
65173
|
});
|
|
65183
65174
|
}
|
|
65184
|
-
function addProps(value) {
|
|
65185
|
-
propss = replaceAfter(propss, value, "name");
|
|
65186
|
-
}
|
|
65187
|
-
var slots = [];
|
|
65188
65175
|
function setSlot(obj) {
|
|
65189
65176
|
let name = "";
|
|
65190
65177
|
let description = "";
|
|
@@ -65201,15 +65188,11 @@ function setSlot(obj) {
|
|
|
65201
65188
|
arr.forEach((key) => {
|
|
65202
65189
|
value[key] = fobj.obj[key];
|
|
65203
65190
|
});
|
|
65204
|
-
|
|
65191
|
+
addObj(value, "slot");
|
|
65205
65192
|
fobj.arr.forEach((o) => {
|
|
65206
65193
|
addTags2(o.key, o.value);
|
|
65207
65194
|
});
|
|
65208
65195
|
}
|
|
65209
|
-
function addSlots(value) {
|
|
65210
|
-
slots = replaceAfter(slots, value, "name");
|
|
65211
|
-
}
|
|
65212
|
-
var emitss = [];
|
|
65213
65196
|
function setEmits(obj) {
|
|
65214
65197
|
let name = "";
|
|
65215
65198
|
let description = "";
|
|
@@ -65226,15 +65209,11 @@ function setEmits(obj) {
|
|
|
65226
65209
|
arr.forEach((key) => {
|
|
65227
65210
|
value[key] = fobj.obj[key];
|
|
65228
65211
|
});
|
|
65229
|
-
|
|
65212
|
+
addObj(value, "emits");
|
|
65230
65213
|
fobj.arr.forEach((o) => {
|
|
65231
65214
|
addTags2(o.key, o.value);
|
|
65232
65215
|
});
|
|
65233
65216
|
}
|
|
65234
|
-
function addEmits(value) {
|
|
65235
|
-
emitss = replaceAfter(emitss, value, "name");
|
|
65236
|
-
}
|
|
65237
|
-
var exposes = [];
|
|
65238
65217
|
function setExpose(obj) {
|
|
65239
65218
|
let arr = [
|
|
65240
65219
|
"expose",
|
|
@@ -65249,13 +65228,24 @@ function setExpose(obj) {
|
|
|
65249
65228
|
arr.forEach((key) => {
|
|
65250
65229
|
value[key] = fobj.obj[key];
|
|
65251
65230
|
});
|
|
65252
|
-
|
|
65231
|
+
addObj(value, "expose");
|
|
65253
65232
|
fobj.arr.forEach((o) => {
|
|
65254
65233
|
addTags2(o.key, o.value);
|
|
65255
65234
|
});
|
|
65256
65235
|
}
|
|
65257
|
-
function
|
|
65258
|
-
|
|
65236
|
+
function addObj(value, type) {
|
|
65237
|
+
const ms = notesObj[type + "name"] || [];
|
|
65238
|
+
const name = _nullishCoalesce(value.name, () => ( value.props.name));
|
|
65239
|
+
if (!ms.includes(name)) {
|
|
65240
|
+
notesObj[type + "s"].push(value);
|
|
65241
|
+
ms.push(name);
|
|
65242
|
+
notesObj[type + "name"] = ms;
|
|
65243
|
+
}
|
|
65244
|
+
}
|
|
65245
|
+
function init2() {
|
|
65246
|
+
Object.keys(notesObj).forEach((key) => {
|
|
65247
|
+
notesObj[key] = [];
|
|
65248
|
+
});
|
|
65259
65249
|
}
|
|
65260
65250
|
function getFilter2(obj, arrs) {
|
|
65261
65251
|
const _objs = {
|
|
@@ -65292,16 +65282,16 @@ function addTags2(tag, obj) {
|
|
|
65292
65282
|
addTitles(obj);
|
|
65293
65283
|
return true;
|
|
65294
65284
|
case "props":
|
|
65295
|
-
|
|
65285
|
+
addObj(obj, "props");
|
|
65296
65286
|
return true;
|
|
65297
65287
|
case "slot":
|
|
65298
|
-
|
|
65288
|
+
addObj(obj, "slot");
|
|
65299
65289
|
return true;
|
|
65300
65290
|
case "emits":
|
|
65301
|
-
|
|
65291
|
+
addObj(obj, "emits");
|
|
65302
65292
|
return true;
|
|
65303
65293
|
case "expose":
|
|
65304
|
-
|
|
65294
|
+
addObj(obj, "expose");
|
|
65305
65295
|
return true;
|
|
65306
65296
|
default:
|
|
65307
65297
|
return false;
|
|
@@ -65329,11 +65319,7 @@ function setTags2(tag, obj) {
|
|
|
65329
65319
|
}
|
|
65330
65320
|
}
|
|
65331
65321
|
function notesFilter(notes) {
|
|
65332
|
-
|
|
65333
|
-
propss = [];
|
|
65334
|
-
slots = [];
|
|
65335
|
-
emitss = [];
|
|
65336
|
-
exposes = [];
|
|
65322
|
+
init2();
|
|
65337
65323
|
_optionalChain([notes, 'optionalAccess', _48 => _48.forEach, 'call', _49 => _49((obj) => {
|
|
65338
65324
|
let tags = _optionalChain([obj, 'optionalAccess', _50 => _50.tags]) || [];
|
|
65339
65325
|
let lg = _optionalChain([tags, 'optionalAccess', _51 => _51.length]) || 0;
|
|
@@ -65347,13 +65333,7 @@ function notesFilter(notes) {
|
|
|
65347
65333
|
}
|
|
65348
65334
|
}
|
|
65349
65335
|
})]);
|
|
65350
|
-
return
|
|
65351
|
-
titles: titles2,
|
|
65352
|
-
propss,
|
|
65353
|
-
slots,
|
|
65354
|
-
emitss,
|
|
65355
|
-
exposes
|
|
65356
|
-
};
|
|
65336
|
+
return notesObj;
|
|
65357
65337
|
}
|
|
65358
65338
|
function getNotes2(key) {
|
|
65359
65339
|
return new Promise((resolve3) => {
|
|
@@ -65592,7 +65572,7 @@ var top_default = (0, vue_exports.defineComponent)({
|
|
|
65592
65572
|
props: {
|
|
65593
65573
|
value: Array
|
|
65594
65574
|
},
|
|
65595
|
-
render(
|
|
65575
|
+
render(propss, a, props2) {
|
|
65596
65576
|
const domss = getTopDom(props2.value, vue_exports.h);
|
|
65597
65577
|
return (0, vue_exports.h)(
|
|
65598
65578
|
"div",
|
|
@@ -66388,13 +66368,13 @@ function gettests(obj, arr) {
|
|
|
66388
66368
|
asyncMergeArray(tests, (res, _reject, zv, inde) => {
|
|
66389
66369
|
getLocalTextTests(zv).then((text) => {
|
|
66390
66370
|
arr.push(`### \u793A\u4F8B` + inde + 1);
|
|
66391
|
-
const { titles:
|
|
66371
|
+
const { titles: titles2 } = getNotes(text);
|
|
66392
66372
|
const dom = setHtml(
|
|
66393
66373
|
"div",
|
|
66394
66374
|
{
|
|
66395
66375
|
class: "compo-top"
|
|
66396
66376
|
},
|
|
66397
|
-
getTopDom(
|
|
66377
|
+
getTopDom(titles2, setHtml)
|
|
66398
66378
|
);
|
|
66399
66379
|
arr.push(...setDom(dom));
|
|
66400
66380
|
arr.push(...setTestUrl(obj, zv));
|
|
@@ -66443,20 +66423,20 @@ function getData(value) {
|
|
|
66443
66423
|
const arr = [];
|
|
66444
66424
|
arr.push("# " + value.name);
|
|
66445
66425
|
getNotes2(value.key).then((obj) => {
|
|
66446
|
-
let { titles:
|
|
66426
|
+
let { titles: titles2, propss, slots, emitss, exposes } = obj;
|
|
66447
66427
|
const dom = setHtml(
|
|
66448
66428
|
"div",
|
|
66449
66429
|
{
|
|
66450
66430
|
class: "compo-top"
|
|
66451
66431
|
},
|
|
66452
|
-
getTopDom(
|
|
66432
|
+
getTopDom(titles2, setHtml)
|
|
66453
66433
|
);
|
|
66454
66434
|
arr.push(...setDom(dom));
|
|
66455
66435
|
const list = [
|
|
66456
|
-
...getlistDom(
|
|
66457
|
-
...getlistDom(
|
|
66458
|
-
...getlistDom(
|
|
66459
|
-
...getlistDom(
|
|
66436
|
+
...getlistDom(propss, "\u7EC4\u4EF6\u5C5E\u6027", tprops),
|
|
66437
|
+
...getlistDom(emitss, "\u7EC4\u4EF6\u4E8B\u4EF6", temits),
|
|
66438
|
+
...getlistDom(emitss, "\u7EC4\u4EF6\u65B9\u6CD5", texpose),
|
|
66439
|
+
...getlistDom(slots, "\u7EC4\u4EF6\u63D2\u69FD", tslot)
|
|
66460
66440
|
];
|
|
66461
66441
|
arr.push(...list);
|
|
66462
66442
|
arr.push(`## \u8BF4\u660E\u6587\u6863`);
|