@fangzhongya/vue-archive 0.0.2-31 → 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 +197 -128
- package/dist/node/index.js +196 -127
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.cjs +0 -0
- package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-17 → @fangzhongya_utils@0.0.7-18}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
- 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/packages/components/use/index.cjs +1 -1
- package/dist/packages/components/use/index.js +1 -1
- package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/choice/index.vue.js +1 -1
- package/dist/packages/components/use/set-code.vue.cjs +1 -1
- package/dist/packages/components/use/set-code.vue.js +3 -3
- package/dist/packages/config.cjs +1 -1
- package/dist/packages/config.js +1 -1
- package/dist/packages/utils/common.cjs +1 -1
- package/dist/packages/utils/common.js +4 -4
- package/dist/packages/utils/glob.cjs +1 -1
- package/dist/packages/utils/glob.js +6 -6
- package/dist/style.css +2 -2
- package/package.json +4 -4
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.7-17/node_modules/@fangzhongya/utils/dist/chunk-GOH6G74S.cjs +0 -1
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.7-17/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) {
|
|
@@ -63462,7 +63462,7 @@ var require_vue = __commonJS({
|
|
|
63462
63462
|
}
|
|
63463
63463
|
});
|
|
63464
63464
|
|
|
63465
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
63465
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
|
|
63466
63466
|
function mergeObject(a, b, j = 0, i) {
|
|
63467
63467
|
if (a instanceof Array) {
|
|
63468
63468
|
if (j > 0 && i) {
|
|
@@ -63505,7 +63505,7 @@ function mergeObject(a, b, j = 0, i) {
|
|
|
63505
63505
|
return a;
|
|
63506
63506
|
}
|
|
63507
63507
|
|
|
63508
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
63508
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
63509
63509
|
function humpToLine(name) {
|
|
63510
63510
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
63511
63511
|
let result;
|
|
@@ -63527,12 +63527,12 @@ function humpToLine(name) {
|
|
|
63527
63527
|
}
|
|
63528
63528
|
}
|
|
63529
63529
|
|
|
63530
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
63530
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
63531
63531
|
function firstUpper(str) {
|
|
63532
63532
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
63533
63533
|
}
|
|
63534
63534
|
|
|
63535
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
63535
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
63536
63536
|
function lineToLargeHump(name) {
|
|
63537
63537
|
let arr = name.split("-");
|
|
63538
63538
|
arr = arr.map((vs) => {
|
|
@@ -63541,7 +63541,7 @@ function lineToLargeHump(name) {
|
|
|
63541
63541
|
return arr.join("");
|
|
63542
63542
|
}
|
|
63543
63543
|
|
|
63544
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
63544
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js
|
|
63545
63545
|
function appearNum(str, t) {
|
|
63546
63546
|
let reg = t;
|
|
63547
63547
|
if (typeof t == "string") {
|
|
@@ -63552,12 +63552,12 @@ function appearNum(str, t) {
|
|
|
63552
63552
|
return c;
|
|
63553
63553
|
}
|
|
63554
63554
|
|
|
63555
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
63555
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
63556
63556
|
function firstLower(str) {
|
|
63557
63557
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
63558
63558
|
}
|
|
63559
63559
|
|
|
63560
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
63560
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
|
|
63561
63561
|
function asyncMergeArray(arr, callback) {
|
|
63562
63562
|
return new Promise((resolve3, reject) => {
|
|
63563
63563
|
let index = 0;
|
|
@@ -63581,7 +63581,7 @@ function asyncMergeArray(arr, callback) {
|
|
|
63581
63581
|
});
|
|
63582
63582
|
}
|
|
63583
63583
|
|
|
63584
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
63584
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js
|
|
63585
63585
|
function getSuffix(url) {
|
|
63586
63586
|
const reg = /\.([a-z|A-Z]+)$/;
|
|
63587
63587
|
const regs = reg.exec(url);
|
|
@@ -63591,20 +63591,6 @@ function getSuffix(url) {
|
|
|
63591
63591
|
return "";
|
|
63592
63592
|
}
|
|
63593
63593
|
|
|
63594
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-17/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: []
|
|
@@ -64189,12 +64175,12 @@ function getNotes(text) {
|
|
|
64189
64175
|
};
|
|
64190
64176
|
}
|
|
64191
64177
|
|
|
64192
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
64178
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
|
|
64193
64179
|
function isArray(obj) {
|
|
64194
64180
|
return Object.prototype.toString.call(obj) == "[object Array]";
|
|
64195
64181
|
}
|
|
64196
64182
|
|
|
64197
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
64183
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
|
|
64198
64184
|
function getStartSames(str, val) {
|
|
64199
64185
|
let s = "";
|
|
64200
64186
|
const vs = [...val];
|
|
@@ -64210,7 +64196,7 @@ function getStartSames(str, val) {
|
|
|
64210
64196
|
return [s, str.substring(index), val.substring(index)];
|
|
64211
64197
|
}
|
|
64212
64198
|
|
|
64213
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
64199
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-18/node_modules/@fangzhongya/utils/dist/chunk-AWC672JW.js
|
|
64214
64200
|
function getImportUrl(url, imp) {
|
|
64215
64201
|
const arr = getStartSames(url, imp);
|
|
64216
64202
|
const ts = arr[0];
|
|
@@ -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",
|
|
@@ -65604,7 +65584,7 @@ var top_default = (0, vue_exports.defineComponent)({
|
|
|
65604
65584
|
}
|
|
65605
65585
|
});
|
|
65606
65586
|
|
|
65607
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.3-
|
|
65587
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.3-8/node_modules/@fangzhongya/create/dist/chunk-G7FBKDWD.js
|
|
65608
65588
|
|
|
65609
65589
|
|
|
65610
65590
|
|
|
@@ -65618,6 +65598,46 @@ var top_default = (0, vue_exports.defineComponent)({
|
|
|
65618
65598
|
|
|
65619
65599
|
var _fs = require('fs');
|
|
65620
65600
|
|
|
65601
|
+
function getUrlCatalogueObj(str) {
|
|
65602
|
+
const reg = /(\\|\/)([^\\|\/]+)(\.[a-z|A-Z]+)$/g;
|
|
65603
|
+
const ml = str.replace(reg, "");
|
|
65604
|
+
let name = "";
|
|
65605
|
+
let suffix = "";
|
|
65606
|
+
let apart = "";
|
|
65607
|
+
const arr = reg.exec(str);
|
|
65608
|
+
if (arr) {
|
|
65609
|
+
apart = arr[1];
|
|
65610
|
+
name = arr[2];
|
|
65611
|
+
suffix = arr[3];
|
|
65612
|
+
}
|
|
65613
|
+
return {
|
|
65614
|
+
apart,
|
|
65615
|
+
catalogue: ml,
|
|
65616
|
+
name,
|
|
65617
|
+
suffix
|
|
65618
|
+
};
|
|
65619
|
+
}
|
|
65620
|
+
function getNewFileName(url) {
|
|
65621
|
+
const obj = getUrlCatalogueObj(url);
|
|
65622
|
+
let wb = obj.name;
|
|
65623
|
+
if (wb) {
|
|
65624
|
+
const reg = /([0-9]+)$/g;
|
|
65625
|
+
const regs = reg.exec(wb);
|
|
65626
|
+
if (regs && regs.length > 0) {
|
|
65627
|
+
const sl = Number(regs[1]) + 1;
|
|
65628
|
+
const reg1 = new RegExp(regs[1] + "$");
|
|
65629
|
+
wb = wb.replace(
|
|
65630
|
+
reg1,
|
|
65631
|
+
(sl + "").padStart(regs[1].length, "0")
|
|
65632
|
+
);
|
|
65633
|
+
} else {
|
|
65634
|
+
wb = wb + "1";
|
|
65635
|
+
}
|
|
65636
|
+
return obj.catalogue + obj.apart + wb + "." + obj.suffix;
|
|
65637
|
+
} else {
|
|
65638
|
+
return "";
|
|
65639
|
+
}
|
|
65640
|
+
}
|
|
65621
65641
|
function fsCreateReadStream(url, type) {
|
|
65622
65642
|
if (!type || type === true) {
|
|
65623
65643
|
type = "utf-8";
|
|
@@ -65692,7 +65712,7 @@ function fsOpenStream(path, json, type = 0, cover, callback) {
|
|
|
65692
65712
|
_fs.open.call(void 0, path, "wx", async (err, fd) => {
|
|
65693
65713
|
if (err) {
|
|
65694
65714
|
if (err.code === "EEXIST") {
|
|
65695
|
-
if (type
|
|
65715
|
+
if (type == 1 || type == 0) {
|
|
65696
65716
|
const fwrite = () => {
|
|
65697
65717
|
_fs.writeFile.call(void 0,
|
|
65698
65718
|
path,
|
|
@@ -65701,21 +65721,23 @@ function fsOpenStream(path, json, type = 0, cover, callback) {
|
|
|
65701
65721
|
(err2) => {
|
|
65702
65722
|
if (err2) {
|
|
65703
65723
|
console.log("6", err2);
|
|
65704
|
-
if (callback)
|
|
65724
|
+
if (callback) {
|
|
65705
65725
|
callback(
|
|
65706
65726
|
path,
|
|
65707
65727
|
cover ? 3 : 2,
|
|
65708
65728
|
false,
|
|
65709
65729
|
type
|
|
65710
65730
|
);
|
|
65731
|
+
}
|
|
65711
65732
|
} else {
|
|
65712
|
-
if (callback)
|
|
65733
|
+
if (callback) {
|
|
65713
65734
|
callback(
|
|
65714
65735
|
path,
|
|
65715
65736
|
cover ? 3 : 2,
|
|
65716
65737
|
true,
|
|
65717
65738
|
type
|
|
65718
65739
|
);
|
|
65740
|
+
}
|
|
65719
65741
|
}
|
|
65720
65742
|
}
|
|
65721
65743
|
);
|
|
@@ -65740,29 +65762,49 @@ function fsOpenStream(path, json, type = 0, cover, callback) {
|
|
|
65740
65762
|
} else {
|
|
65741
65763
|
fwrite();
|
|
65742
65764
|
}
|
|
65765
|
+
} else if (type == 3) {
|
|
65766
|
+
path = getNewFileName(path);
|
|
65767
|
+
if (path) {
|
|
65768
|
+
fsOpenStream(
|
|
65769
|
+
path,
|
|
65770
|
+
json,
|
|
65771
|
+
type,
|
|
65772
|
+
cover,
|
|
65773
|
+
callback
|
|
65774
|
+
);
|
|
65775
|
+
} else {
|
|
65776
|
+
if (callback) {
|
|
65777
|
+
callback(path, 3, false, type);
|
|
65778
|
+
}
|
|
65779
|
+
}
|
|
65743
65780
|
} else {
|
|
65744
|
-
if (callback)
|
|
65781
|
+
if (callback) {
|
|
65745
65782
|
callback(path, 2, false, type);
|
|
65783
|
+
}
|
|
65746
65784
|
}
|
|
65747
65785
|
} else {
|
|
65748
|
-
if (callback)
|
|
65786
|
+
if (callback) {
|
|
65749
65787
|
callback(path, 0, false, type);
|
|
65788
|
+
}
|
|
65750
65789
|
}
|
|
65751
65790
|
} else {
|
|
65752
65791
|
if (type != 1) {
|
|
65753
65792
|
_fs.write.call(void 0, fd, json, (err2) => {
|
|
65754
65793
|
if (err2) {
|
|
65755
65794
|
console.log("8", err2);
|
|
65756
|
-
if (callback)
|
|
65795
|
+
if (callback) {
|
|
65757
65796
|
callback(path, 1, false, type);
|
|
65797
|
+
}
|
|
65758
65798
|
} else {
|
|
65759
|
-
if (callback)
|
|
65799
|
+
if (callback) {
|
|
65760
65800
|
callback(path, 1, true, type);
|
|
65801
|
+
}
|
|
65761
65802
|
}
|
|
65762
65803
|
});
|
|
65763
65804
|
} else {
|
|
65764
|
-
if (callback)
|
|
65805
|
+
if (callback) {
|
|
65765
65806
|
callback(path, 1, false, type);
|
|
65807
|
+
}
|
|
65766
65808
|
}
|
|
65767
65809
|
}
|
|
65768
65810
|
});
|
|
@@ -65843,7 +65885,7 @@ function writeFileUrl(url, files, callback, isDirs, isFile) {
|
|
|
65843
65885
|
});
|
|
65844
65886
|
}
|
|
65845
65887
|
|
|
65846
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.3-
|
|
65888
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.3-8/node_modules/@fangzhongya/create/dist/chunk-VAK3U2D7.js
|
|
65847
65889
|
|
|
65848
65890
|
function styleLog(msg = "", obj) {
|
|
65849
65891
|
const arr = ["\x1B[0m"];
|
|
@@ -65873,6 +65915,14 @@ function styleLog(msg = "", obj) {
|
|
|
65873
65915
|
arr.push("\x1B[0m");
|
|
65874
65916
|
return arr.join("");
|
|
65875
65917
|
}
|
|
65918
|
+
function getSuffix2(url) {
|
|
65919
|
+
const reg = /\.([a-z|A-Z]+)$/;
|
|
65920
|
+
const regs = reg.exec(url);
|
|
65921
|
+
if (regs && regs.length > 0) {
|
|
65922
|
+
return regs[1];
|
|
65923
|
+
}
|
|
65924
|
+
return "";
|
|
65925
|
+
}
|
|
65876
65926
|
function matchsEnd(key, matchs) {
|
|
65877
65927
|
if (matchs && matchs.length > 0) {
|
|
65878
65928
|
for (const value of matchs) {
|
|
@@ -65925,6 +65975,7 @@ var defaultConfig = {
|
|
|
65925
65975
|
*/
|
|
65926
65976
|
extensions: ["js", "ts"],
|
|
65927
65977
|
suffixReg: defaultSuffixReg,
|
|
65978
|
+
fileTongre: false,
|
|
65928
65979
|
/**
|
|
65929
65980
|
* 是否替换文件
|
|
65930
65981
|
*/
|
|
@@ -66098,15 +66149,30 @@ var FangCom = class {
|
|
|
66098
66149
|
);
|
|
66099
66150
|
}
|
|
66100
66151
|
}
|
|
66101
|
-
getFileNotes() {
|
|
66102
|
-
|
|
66103
|
-
|
|
66104
|
-
|
|
66105
|
-
`
|
|
66106
|
-
|
|
66107
|
-
|
|
66108
|
-
" */"
|
|
66152
|
+
getFileNotes(url) {
|
|
66153
|
+
const suffix = getSuffix2(url);
|
|
66154
|
+
const sz = [
|
|
66155
|
+
`@config cover=false`,
|
|
66156
|
+
`cover \u662F\u5426\u8986\u76D6\u5F53\u524D\u6587\u4EF6\uFF0C\u9ED8\u8BA4\u662Ffalse\uFF0C true \u8868\u793A\u4E0D\u8986\u76D6`,
|
|
66157
|
+
`\u5F53\u524D\u5DF2\u7ECF\u7531@fangzhongya/create\u81EA\u52A8\u751F\u6210`,
|
|
66158
|
+
`${(/* @__PURE__ */ new Date()).toString()}`
|
|
66109
66159
|
];
|
|
66160
|
+
const hy = ["md", "html", "vue"];
|
|
66161
|
+
if (hy.includes(suffix)) {
|
|
66162
|
+
const arr = ["<!--"];
|
|
66163
|
+
sz.forEach((v) => {
|
|
66164
|
+
arr.push(" - " + v);
|
|
66165
|
+
});
|
|
66166
|
+
arr.push("-->");
|
|
66167
|
+
return arr;
|
|
66168
|
+
} else {
|
|
66169
|
+
const arr = ["/**"];
|
|
66170
|
+
sz.forEach((v) => {
|
|
66171
|
+
arr.push(" * " + v);
|
|
66172
|
+
});
|
|
66173
|
+
arr.push(" */");
|
|
66174
|
+
return arr;
|
|
66175
|
+
}
|
|
66110
66176
|
}
|
|
66111
66177
|
/**
|
|
66112
66178
|
* 输出文件,判断目录是否存在
|
|
@@ -66161,7 +66227,10 @@ var FangCom = class {
|
|
|
66161
66227
|
* @param callback
|
|
66162
66228
|
*/
|
|
66163
66229
|
setOpen(url, str, type, callback) {
|
|
66164
|
-
let tn = this.config.
|
|
66230
|
+
let tn = this.config.fileTongre ? 3 : 2;
|
|
66231
|
+
if (this.config.fileCover) {
|
|
66232
|
+
tn = 0;
|
|
66233
|
+
}
|
|
66165
66234
|
if (tn == 2) {
|
|
66166
66235
|
if (this.isForceUpdate(url)) {
|
|
66167
66236
|
tn = 0;
|
|
@@ -66171,7 +66240,7 @@ var FangCom = class {
|
|
|
66171
66240
|
tn = type;
|
|
66172
66241
|
}
|
|
66173
66242
|
if (this.config.writeNotes && !/\.json$/.test(url)) {
|
|
66174
|
-
str = this.getFileNotes().join("\n") + "\n" + str;
|
|
66243
|
+
str = this.getFileNotes(url).join("\n") + "\n" + str;
|
|
66175
66244
|
}
|
|
66176
66245
|
fsOpenStream(
|
|
66177
66246
|
url,
|
|
@@ -66239,7 +66308,7 @@ var FangCom = class {
|
|
|
66239
66308
|
}
|
|
66240
66309
|
};
|
|
66241
66310
|
|
|
66242
|
-
// node_modules/.pnpm/@fangzhongya+create@0.2.3-
|
|
66311
|
+
// node_modules/.pnpm/@fangzhongya+create@0.2.3-8/node_modules/@fangzhongya/create/dist/bins/md.js
|
|
66243
66312
|
var defaultConfig2 = Object.assign(
|
|
66244
66313
|
{},
|
|
66245
66314
|
defaultConfig,
|
|
@@ -66299,13 +66368,13 @@ function gettests(obj, arr) {
|
|
|
66299
66368
|
asyncMergeArray(tests, (res, _reject, zv, inde) => {
|
|
66300
66369
|
getLocalTextTests(zv).then((text) => {
|
|
66301
66370
|
arr.push(`### \u793A\u4F8B` + inde + 1);
|
|
66302
|
-
const { titles:
|
|
66371
|
+
const { titles: titles2 } = getNotes(text);
|
|
66303
66372
|
const dom = setHtml(
|
|
66304
66373
|
"div",
|
|
66305
66374
|
{
|
|
66306
66375
|
class: "compo-top"
|
|
66307
66376
|
},
|
|
66308
|
-
getTopDom(
|
|
66377
|
+
getTopDom(titles2, setHtml)
|
|
66309
66378
|
);
|
|
66310
66379
|
arr.push(...setDom(dom));
|
|
66311
66380
|
arr.push(...setTestUrl(obj, zv));
|
|
@@ -66354,20 +66423,20 @@ function getData(value) {
|
|
|
66354
66423
|
const arr = [];
|
|
66355
66424
|
arr.push("# " + value.name);
|
|
66356
66425
|
getNotes2(value.key).then((obj) => {
|
|
66357
|
-
let { titles:
|
|
66426
|
+
let { titles: titles2, propss, slots, emitss, exposes } = obj;
|
|
66358
66427
|
const dom = setHtml(
|
|
66359
66428
|
"div",
|
|
66360
66429
|
{
|
|
66361
66430
|
class: "compo-top"
|
|
66362
66431
|
},
|
|
66363
|
-
getTopDom(
|
|
66432
|
+
getTopDom(titles2, setHtml)
|
|
66364
66433
|
);
|
|
66365
66434
|
arr.push(...setDom(dom));
|
|
66366
66435
|
const list = [
|
|
66367
|
-
...getlistDom(
|
|
66368
|
-
...getlistDom(
|
|
66369
|
-
...getlistDom(
|
|
66370
|
-
...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)
|
|
66371
66440
|
];
|
|
66372
66441
|
arr.push(...list);
|
|
66373
66442
|
arr.push(`## \u8BF4\u660E\u6587\u6863`);
|