@vitarx/plugin-vite 0.0.1-beta.4 → 0.0.1-beta.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/hmr-client/index.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -32,6 +32,50 @@ export interface MatchProps {
|
|
|
32
32
|
children: RenderUnit;
|
|
33
33
|
}
|
|
34
34
|
declare global {
|
|
35
|
+
namespace Vitarx {
|
|
36
|
+
interface IntrinsicAttributes {
|
|
37
|
+
/**
|
|
38
|
+
* 条件渲染指令 - v-if
|
|
39
|
+
*
|
|
40
|
+
* 用于条件性地渲染元素。
|
|
41
|
+
* 当表达式的值为真时,元素将被渲染;否则,元素不会被渲染到DOM中。
|
|
42
|
+
*
|
|
43
|
+
* ```tsx
|
|
44
|
+
* const show = ref(true)
|
|
45
|
+
* // v-if指令不支持 ref 自动解包,必须使用.value
|
|
46
|
+
* <div v-if={show.value}></div>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
'v-if'?: unknown;
|
|
50
|
+
/**
|
|
51
|
+
* 条件渲染指令 - v-else
|
|
52
|
+
*
|
|
53
|
+
* 用于表示else块。
|
|
54
|
+
* 必须紧跟在v-if或v-else-if元素后面。
|
|
55
|
+
*
|
|
56
|
+
* ```tsx
|
|
57
|
+
* const show = ref(false)
|
|
58
|
+
* <div v-if={show.value}></div>
|
|
59
|
+
* <div v-else></div>
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
'v-else'?: unknown;
|
|
63
|
+
/**
|
|
64
|
+
* 条件渲染指令 - v-else-if
|
|
65
|
+
*
|
|
66
|
+
* 用于表示else-if块。
|
|
67
|
+
* 必须紧跟在v-if或v-else-if元素后面。
|
|
68
|
+
*
|
|
69
|
+
* ```tsx
|
|
70
|
+
* const show = ref(1)
|
|
71
|
+
* <div v-if={show.value === 0}></div>
|
|
72
|
+
* <div v-else-if={show.value === 1}></div>
|
|
73
|
+
* <div v-else></div>
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
'v-else-if'?: unknown;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
35
79
|
/**
|
|
36
80
|
* IfBlock - 编译宏组件,无需import导入
|
|
37
81
|
*
|