modify widget interface for lua
Merge pull request #9709 from htlxyz/v3_origin

modify widget interface for lua