valaxy 0.25.6 → 0.25.8
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Component } from 'vue'
|
|
3
|
-
import { compile, defineAsyncComponent,
|
|
3
|
+
import { compile, defineAsyncComponent, shallowRef, watch } from 'vue'
|
|
4
4
|
|
|
5
5
|
const props = withDefaults(
|
|
6
6
|
defineProps<{
|
|
@@ -23,9 +23,9 @@ async function createComponent() {
|
|
|
23
23
|
dynamicComponent.value = defineAsyncComponent(() => Promise.resolve(componentDefinition))
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
watch(() => [props.templateStr, props.data], () => {
|
|
27
27
|
createComponent()
|
|
28
|
-
})
|
|
28
|
+
}, { immediate: true })
|
|
29
29
|
</script>
|
|
30
30
|
|
|
31
31
|
<template>
|
|
@@ -4,7 +4,7 @@ import yargs from "yargs";
|
|
|
4
4
|
import { hideBin } from "yargs/helpers";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "0.25.
|
|
7
|
+
var version = "0.25.8";
|
|
8
8
|
|
|
9
9
|
// node/modules/fuse.ts
|
|
10
10
|
import path4 from "path";
|
|
@@ -2078,7 +2078,7 @@ function createContainer(key, block = {}, md3) {
|
|
|
2078
2078
|
let iconTag = "";
|
|
2079
2079
|
if (block.icon)
|
|
2080
2080
|
iconTag = `<i class="icon ${block.icon}" ${block.color ? `style="color: ${block.color}"` : ""}></i>`;
|
|
2081
|
-
const title = `<VT content="blocks.${key}" />`;
|
|
2081
|
+
const title = info || `<VT content="blocks.${key}" />`;
|
|
2082
2082
|
const titleClass = `custom-block-title${info ? "" : " custom-block-title-default"}`;
|
|
2083
2083
|
if (classes === "details")
|
|
2084
2084
|
return `<details ${attrs}><summary>${title}</summary>
|
package/dist/node/cli/index.js
CHANGED
package/dist/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.25.
|
|
4
|
+
"version": "0.25.8",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"unplugin-vue-markdown": "^29.1.0",
|
|
121
121
|
"unplugin-vue-router": "^0.14.0",
|
|
122
122
|
"vanilla-lazyload": "^19.1.3",
|
|
123
|
-
"vite": "^7.0.
|
|
123
|
+
"vite": "^7.0.5",
|
|
124
124
|
"vite-dev-rpc": "^1.1.0",
|
|
125
125
|
"vite-plugin-vue-devtools": "^7.7.7",
|
|
126
126
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
"vue-i18n": "^11.1.10",
|
|
132
132
|
"vue-router": "^4.5.1",
|
|
133
133
|
"yargs": "^18.0.0",
|
|
134
|
-
"@valaxyjs/devtools": "0.25.
|
|
135
|
-
"@valaxyjs/utils": "0.25.
|
|
134
|
+
"@valaxyjs/devtools": "0.25.8",
|
|
135
|
+
"@valaxyjs/utils": "0.25.8"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@mdit-vue/plugin-component": "^2.1.4",
|