snail.vue 1.0.45 → 1.0.47
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/.code-snippets +8 -10
- package/dist/snail.vue.d.ts +352 -169
- package/dist/snail.vue.js +309 -195
- package/dist/snail.vue.umd.js +307 -193
- package/dist/styles/snail.vue.vue.css +26 -22
- package/package.json +2 -2
package/.code-snippets
CHANGED
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
"</template>",
|
|
10
10
|
"",
|
|
11
11
|
"<script setup lang=\"ts\">",
|
|
12
|
-
"import { ref, shallowRef,
|
|
12
|
+
"import { ref, shallowRef, } from \"vue\";",
|
|
13
13
|
"",
|
|
14
14
|
"// ***************************************** 👉 组件定义 *****************************************",
|
|
15
|
-
"// 1、props、
|
|
16
|
-
"
|
|
17
|
-
"
|
|
15
|
+
"// 1、props、event、model、components",
|
|
16
|
+
"",
|
|
17
|
+
"// 2、组件交互变量、常量",
|
|
18
|
+
"",
|
|
18
19
|
"",
|
|
19
20
|
"// ***************************************** 👉 方法+事件 ****************************************",
|
|
20
21
|
"",
|
|
@@ -22,9 +23,6 @@
|
|
|
22
23
|
"// 1、数据初始化、变化监听",
|
|
23
24
|
"// 2、生命周期响应",
|
|
24
25
|
"",
|
|
25
|
-
"// 监听组件激活和卸载,适配KeepAlive组件内使用",
|
|
26
|
-
"onActivated(() => console.log(\"onActivated\"));",
|
|
27
|
-
"onDeactivated(() => console.log(\"onDeactivated\"));",
|
|
28
26
|
"</script>",
|
|
29
27
|
"",
|
|
30
28
|
"<style lang=\"less\">",
|
|
@@ -36,10 +34,10 @@
|
|
|
36
34
|
"description": "Vue组件模板代码"
|
|
37
35
|
},
|
|
38
36
|
// ***************************************** 👉 公共类样式 *****************************************
|
|
39
|
-
"tips
|
|
40
|
-
"prefix": "tips
|
|
37
|
+
".text-tips": {
|
|
38
|
+
"prefix": "text-tips",
|
|
41
39
|
"scope": "html",
|
|
42
40
|
"description": "公共类样式:提示文本",
|
|
43
|
-
"body": "class=\"tips
|
|
41
|
+
"body": "class=\"text-tips\"",
|
|
44
42
|
}
|
|
45
43
|
}
|