In particular, can the typescript source of the ag-grid-vue component be compiled then included in a regular html file?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I figured it out:
Download the ag-grid source code, go into the packages/ag-grid-vue directory and do npm install
and npm run build
. That will put compiled javascript modules in the dist directory that can be used without a build system.
I did have to modify the built javascript slightly to get the AgGridVue object into the global namespace, since I'm not using a module loader.
EDIT:
To get the AgGridVue
into the global namespace, add window.AgGridVue = AgGridVue;
to the end of the function that returns AgGridVue
in ag-grid-vue.umd.js