game-text

0.0.4 • Public • Published

game-text

游戏

安装
npm install game-text
使用
  • json
{
    "usingComponents": {
        "game-text": "game-text/text"
    }
}
  • mini.project.json
{
  "node_modules_es6_whitelist": [
    "game-text"
  ]
}
  • js
Page({
  data: {
    textData: {
      name: "自定义文字",
      text: "{num}",
      placeholder: "{num}",
      placeText: "0",
      width: 750,
      height: 32,
      left: 204,
      top: 16,
      fontSize: 24,
      color: "#63c0f3",
      // fontWeight: "bold",
      textAlign: "left"
    },
  },
})
  • xaml
  <game-text component-data="{{textData}}" />

/game-text/

    Package Sidebar

    Install

    npm i game-text

    Weekly Downloads

    0

    Version

    0.0.4

    License

    ISC

    Unpacked Size

    7.12 kB

    Total Files

    6

    Last publish

    Collaborators

    • singlekai