|
|
@ -18,13 +18,13 @@ |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import type { IJsonItem } from '../types' |
|
|
|
import type { IJsonItem } from '../types' |
|
|
|
|
|
|
|
|
|
|
|
export function useName(): IJsonItem { |
|
|
|
export function useName(from?: number): IJsonItem { |
|
|
|
const { t } = useI18n() |
|
|
|
const { t } = useI18n() |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: 'input', |
|
|
|
type: 'input', |
|
|
|
field: 'name', |
|
|
|
field: 'name', |
|
|
|
class: 'input-node-name', |
|
|
|
class: 'input-node-name', |
|
|
|
name: t('project.node.name'), |
|
|
|
name: from === 1 ? t('project.node.task_name') : t('project.node.name'), |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
placeholder: t('project.node.name_tips'), |
|
|
|
placeholder: t('project.node.name_tips'), |
|
|
|
maxLength: 100 |
|
|
|
maxLength: 100 |
|
|
|