.. _class_createMainParam_number: createMainParam_number ====================== **图块代码** .. image:: img/createMainParam_number.png ---- **javascript** .. code-block:: javascript { type: "number", name: name, caption: caption, initial: value }, ---- **python** .. code-block:: python { "type": "number", "name": name, "caption": caption, "initial": value }, ---- **npl** .. code-block:: lua { type = "number", name = name, caption = caption, initial = value }, ---- 参数 ---- +-----------+----------+-------------+--------+ | 参数 | 类型 | 默认值 | 说明 | +===========+==========+=============+========+ | name | string | "number1" | | +-----------+----------+-------------+--------+ | caption | string | "数字" | | +-----------+----------+-------------+--------+ | value | number | 1 | | +-----------+----------+-------------+--------+ 示例 ---- .. tabs:: .. tab:: javascript .. code-block:: javascript { type: "number", name: 'number1', caption: '数字', initial: 1 }, .. tab:: python .. code-block:: python { "type": "number", "name": 'number1', "caption": '数字', "initial": 1 }, .. tab:: npl .. code-block:: lua { type = "number", name = 'number1', caption = '数字', initial = 1 },