Since TypeScript cannot handle type information for .vue
imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue
imports (for example to get props validation when using manual h(...)
calls), you can enable Volar's Take Over mode by following these steps:
- Run
Extensions: Show Built-in Extensions
from VS Code's command palette, look forTypeScript and JavaScript Language Features
, then right click and selectDisable (Workspace)
. By default, Take Over mode will enable itself if the default TypeScript extension is disabled. - Reload the VS Code window by running
Developer: Reload Window
from the command palette.
You can learn more about Take Over mode here.
会逐步迁移一些没人会去搜,而且需要复杂 lua/smw 查询的模板过来
- 干员一览 Widget:CharList/dev
- 敌人一览 Widget:EnemiesListV2/dev
- 模组一览 Widget:EquipList/dev
- 公招计算 Widget:HrCalculator/dev
- 材料需求 Widget:ItemDemand/dev
- 企鹅数据小组件 Widget:PenguinWidget/dev
- 语音表格 Widget:VoiceTable/dev
- Spine Widget:Spinev2/dev
- 不期而遇事件 Widget:IsEvent/dev
- 生息演算地图 Widget:XbMapViewer/dev
项目使用 pnpm 管理项目依赖,请使用 pnpm 安装本项目。
pnpm install
pnpm run create WidgetName username password
Warning
部署更新包需要上传到站内 OSS 后才会生效,发布小部件应仅在 Pull Request 被合并后由 GitHub Actions 机器人自动操作。
在未获确认的情况下请勿执行,hash 变动会导致其他线上组件出错。
pnpm run build
# ... 上传 dist/ 至 OSS
pnpm run update username password