如何修改 Meteor 的 Accounts-ui 以更改呈现的类和 html 标签,而无需重写所有的 accounts-ui 逻辑? 例如,我想删除“dropdown”行为并直接在我的页面中显示表单。 我读了this answer但它没有详细说明——它只是删除了默认的 CSS。我想更深入一点..
最佳答案
我想出了另一个答案,但我想我会把它放在这里,因为它似乎是获得你想要的东西的更快方法。
Template.login.rendered = function()
{
Accounts._loginButtonsSession.set('dropdownVisible', true);
};
(Template.login 应该是 Template.yourTemplateWithLoginButtons)
关于javascript - Meteor 帐户 - 登录表单更改 HTML 删除下拉 JS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15447184/