fix(全局): bugFix
This commit is contained in:
parent
cf807e0b11
commit
b1ad7f87d8
|
@ -281,7 +281,13 @@
|
|||
width: 100%;
|
||||
border: 1px solid var(--color-text-n8);
|
||||
background-color: var(--color-text-fff);
|
||||
&:not(:disabled, .arco-input-tag-disabled, .arco-input-disabled, .arco-select-view-disabled):hover {
|
||||
&:not(
|
||||
:disabled,
|
||||
.arco-input-tag-disabled,
|
||||
.arco-input-disabled,
|
||||
.arco-textarea-disabled,
|
||||
.arco-select-view-disabled
|
||||
):hover {
|
||||
border-color: rgb(var(--primary-5)) !important;
|
||||
background-color: white;
|
||||
}
|
||||
|
@ -291,10 +297,16 @@
|
|||
}
|
||||
.arco-input-tag-disabled,
|
||||
.arco-select-view-disabled,
|
||||
.arco-textarea-disabled,
|
||||
.arco-input-disabled {
|
||||
border-color: var(--color-text-n8) !important;
|
||||
background-color: var(--color-text-n8) !important;
|
||||
}
|
||||
.arco-textarea-disabled {
|
||||
.arco-textarea {
|
||||
@apply cursor-not-allowed;
|
||||
}
|
||||
}
|
||||
.arco-select,
|
||||
.arco-input-tag {
|
||||
.arco-icon {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
v-model="inputValue"
|
||||
:placeholder="placeholder"
|
||||
:default-visibility="true"
|
||||
:disabled="props.disabled"
|
||||
allow-clear
|
||||
@clear="clearHandler"
|
||||
@input="inputHandler"
|
||||
|
@ -12,9 +13,10 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
defineProps<{
|
||||
const props = defineProps<{
|
||||
placeholder?: string;
|
||||
value?: string;
|
||||
disabled?: boolean;
|
||||
}>();
|
||||
const inputValue = ref('');
|
||||
const emits = defineEmits<{
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
formRule: FormItem[]; // 表单的规则
|
||||
formItem: FormRuleItem[]; // 处理后的表单
|
||||
api: any; // 表单对象
|
||||
disabled?: boolean; // 是否禁用
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['update:api', 'update', 'update:formItem', 'change', 'mounted']);
|
||||
|
@ -328,6 +329,9 @@
|
|||
|
||||
function handleMounted() {
|
||||
// setValue();
|
||||
if (props.disabled) {
|
||||
fApi.value.disabled(true);
|
||||
}
|
||||
emit('mounted');
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
allow-search
|
||||
allow-clear
|
||||
:multiple="props.multiple"
|
||||
:disabled="props.disabled"
|
||||
@search="searchHandler"
|
||||
>
|
||||
<a-option v-for="opt of optionsList" :key="opt.value" :value="opt.value">{{ opt.label }}</a-option>
|
||||
|
@ -37,6 +38,7 @@
|
|||
options?: { label: string; value: string }[];
|
||||
multiple?: boolean; // 是否多选
|
||||
placeholder?: string;
|
||||
disabled?: boolean;
|
||||
}>(),
|
||||
{
|
||||
inputSearch: false,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
export default {
|
||||
'ms.json.schema.name': '参数名称',
|
||||
'ms.json.schema.type': '类型',
|
||||
'ms.json.schema.value': '参数值',
|
||||
};
|
|
@ -166,8 +166,8 @@ export default {
|
|||
'common.resourceDeleted': 'Resource has been deleted',
|
||||
'common.resourceExpired': 'Link has failed, please get it again',
|
||||
'common.refresh': 'Refresh',
|
||||
'common.searchByIdName': 'Search by ID or name',
|
||||
'common.searchByNameAndId': 'Search by ID, name, or tag',
|
||||
'common.searchByIdName': 'Search by ID/name',
|
||||
'common.searchByIDNameTag': 'Search by ID/name/tag',
|
||||
'common.archive': 'archive',
|
||||
'common.running': 'Running',
|
||||
'common.unExecute': 'Pending',
|
||||
|
|
|
@ -656,6 +656,9 @@
|
|||
|
||||
onBeforeMount(() => {
|
||||
initProtocolList();
|
||||
if (props.selectedProtocols.length > 0) {
|
||||
loadApiList(true);
|
||||
}
|
||||
});
|
||||
|
||||
const tableSelected = ref<(string | number)[]>([]);
|
||||
|
|
|
@ -17,10 +17,7 @@
|
|||
@change="handelFormCreateChange"
|
||||
/>
|
||||
<!-- 自定义字段结束 -->
|
||||
<div
|
||||
v-if="!props.isPlatformDefaultTemplate && hasAnyPermission(['PROJECT_BUG:READ+UPDATE'])"
|
||||
class="baseItem"
|
||||
>
|
||||
<div v-if="!props.isPlatformDefaultTemplate" class="baseItem">
|
||||
<a-form
|
||||
:model="{}"
|
||||
:label-col-props="{
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</a-button>
|
||||
<a-button
|
||||
v-if="currentPlatform !== 'Local'"
|
||||
v-permission="['PROJECT_BUG:READ+ADD']"
|
||||
v-permission="['PROJECT_BUG:READ+UPDATE']"
|
||||
:loading="!isComplete"
|
||||
type="outline"
|
||||
@click="handleSync"
|
||||
|
|
|
@ -261,7 +261,7 @@ export default {
|
|||
'caseManagement.featureCase.zentao': '禅道',
|
||||
'caseManagement.featureCase.jira': 'JIRA',
|
||||
'caseManagement.featureCase.tapd': 'TAPD',
|
||||
'caseManagement.featureCase.searchPlaceholder': '通过ID、名称或标签搜索',
|
||||
'caseManagement.featureCase.searchPlaceholder': '通过 ID/名称/标签搜索',
|
||||
'caseManagement.featureCase.ModuleOwned': '所属模块',
|
||||
'caseManagement.featureCase.excelImportTip': '仅支持 xls/xlsx 格式的文件',
|
||||
'caseManagement.featureCase.xmindImportTip': '仅支持xmind格式的文件',
|
||||
|
|
Loading…
Reference in New Issue