diff --git a/component/hot-tag/hot-tag.js b/component/hot-tag/hot-tag.js new file mode 100644 index 0000000..2a9d26d --- /dev/null +++ b/component/hot-tag/hot-tag.js @@ -0,0 +1,21 @@ +// my-component.js +// 引入全局 Vue 对象(因在 HTML 中通过 script 引入,Vue 已挂载到 window) +const { defineComponent, ref } = Vue; +// 定义组件(直接使用模板) +export const hotTag = defineComponent({ + name: "hot-tag", + props: { + itemdata: { + type: Object, + default: () => {}, + }, + }, + + setup(props) { + return {}; + }, + + components: {}, + + template: `
- UID: {{ info.uin }}
-
-
勋章 {{ medallist.length }}
- +