mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 17:24:27 +08:00
数学计算添加进制转换
This commit is contained in:
@@ -314,22 +314,23 @@ export const mathCommands = {
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "quickcomposer.math.conversion.decimal",
|
||||
label: "单位换算",
|
||||
desc: "数学单位换算",
|
||||
value: "quickcomposer.math.conversion.base",
|
||||
label: "进制转换",
|
||||
desc: "数字进制转换",
|
||||
icon: "swap_horiz",
|
||||
config: [
|
||||
{
|
||||
key: "value",
|
||||
label: "数值",
|
||||
component: "NumberInput",
|
||||
component: "VariableInput",
|
||||
icon: "pin",
|
||||
width: 12,
|
||||
defaultValue: newVarInputVal("var", ""),
|
||||
},
|
||||
{
|
||||
key: "from",
|
||||
label: "从",
|
||||
component: "q-select",
|
||||
component: "ButtonGroup",
|
||||
icon: "input",
|
||||
width: 6,
|
||||
options: [
|
||||
@@ -337,14 +338,13 @@ export const mathCommands = {
|
||||
{ label: "二进制", value: "binary" },
|
||||
{ label: "八进制", value: "octal" },
|
||||
{ label: "十六进制", value: "hex" },
|
||||
{ label: "度", value: "degrees" },
|
||||
{ label: "弧度", value: "radians" },
|
||||
],
|
||||
defaultValue: "decimal",
|
||||
},
|
||||
{
|
||||
key: "to",
|
||||
label: "到",
|
||||
component: "q-select",
|
||||
component: "ButtonGroup",
|
||||
icon: "output",
|
||||
width: 6,
|
||||
options: [
|
||||
@@ -352,9 +352,8 @@ export const mathCommands = {
|
||||
{ label: "二进制", value: "binary" },
|
||||
{ label: "八进制", value: "octal" },
|
||||
{ label: "十六进制", value: "hex" },
|
||||
{ label: "度", value: "degrees" },
|
||||
{ label: "弧度", value: "radians" },
|
||||
],
|
||||
defaultValue: "hex",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user