Finally I find this works:
x-data={"{username: '#{@current_user.username}'}"}
Heex and Alpine
Thx, bro.