1404/12/06-fix bug in add product form tooltip

This commit is contained in:
2026-02-25 17:36:11 +03:30
parent 9557989b20
commit d87f850b00
8 changed files with 190 additions and 186 deletions
-6
View File
@@ -15,7 +15,6 @@ declare module '@vue/runtime-core' {
ABadge: typeof import('ant-design-vue/es')['Badge'] ABadge: typeof import('ant-design-vue/es')['Badge']
AButton: typeof import('ant-design-vue/es')['Button'] AButton: typeof import('ant-design-vue/es')['Button']
ACard: typeof import('ant-design-vue/es')['Card'] ACard: typeof import('ant-design-vue/es')['Card']
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider'] AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
ADivider: typeof import('ant-design-vue/es')['Divider'] ADivider: typeof import('ant-design-vue/es')['Divider']
ADrawer: typeof import('ant-design-vue/es')['Drawer'] ADrawer: typeof import('ant-design-vue/es')['Drawer']
@@ -33,10 +32,7 @@ declare module '@vue/runtime-core' {
AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
AModal: typeof import('ant-design-vue/es')['Modal'] AModal: typeof import('ant-design-vue/es')['Modal']
APagination: typeof import('ant-design-vue/es')['Pagination'] APagination: typeof import('ant-design-vue/es')['Pagination']
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
APopover: typeof import('ant-design-vue/es')['Popover']
ARadio: typeof import('ant-design-vue/es')['Radio'] ARadio: typeof import('ant-design-vue/es')['Radio']
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
ASelect: typeof import('ant-design-vue/es')['Select'] ASelect: typeof import('ant-design-vue/es')['Select']
ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
@@ -46,8 +42,6 @@ declare module '@vue/runtime-core' {
ATable: typeof import('ant-design-vue/es')['Table'] ATable: typeof import('ant-design-vue/es')['Table']
ATabPane: typeof import('ant-design-vue/es')['TabPane'] ATabPane: typeof import('ant-design-vue/es')['TabPane']
ATabs: typeof import('ant-design-vue/es')['Tabs'] ATabs: typeof import('ant-design-vue/es')['Tabs']
ATag: typeof import('ant-design-vue/es')['Tag']
ATextarea: typeof import('ant-design-vue/es')['Textarea']
ATooltip: typeof import('ant-design-vue/es')['Tooltip'] ATooltip: typeof import('ant-design-vue/es')['Tooltip']
AUpload: typeof import('ant-design-vue/es')['Upload'] AUpload: typeof import('ant-design-vue/es')['Upload']
BaseButton: typeof import('./src/core/components/BaseButton/index.ts')['default'] BaseButton: typeof import('./src/core/components/BaseButton/index.ts')['default']
@@ -81,7 +81,7 @@ defineExpose({
@prefix: ~'@{prefixCls}-pophoverstatus'; @prefix: ~'@{prefixCls}-pophoverstatus';
.ant-popover, .ant-popover,
.ant-tooltip { .ant-tooltip {
z-index: 10 !important; z-index: 1001 !important;
} }
.@{prefix} { .@{prefix} {
@@ -82,7 +82,7 @@ defineExpose({
@prefix: ~'@{prefixCls}-pophoverstatus'; @prefix: ~'@{prefixCls}-pophoverstatus';
.ant-popover, .ant-popover,
.ant-tooltip { .ant-tooltip {
z-index: 10 !important; z-index: 1001 !important;
} }
.@{prefix} { .@{prefix} {
@@ -403,7 +403,7 @@ defineExpose({
@prefix: ~'@{prefixCls}-pophoverstatus'; @prefix: ~'@{prefixCls}-pophoverstatus';
.ant-popover, .ant-popover,
.ant-tooltip { .ant-tooltip {
z-index: 10 !important; z-index: 1001 !important;
} }
.@{prefix} { .@{prefix} {
@@ -81,7 +81,7 @@ defineExpose({
@prefix: ~'@{prefixCls}-pophoverstatus'; @prefix: ~'@{prefixCls}-pophoverstatus';
.ant-popover, .ant-popover,
.ant-tooltip { .ant-tooltip {
z-index: 10 !important; z-index: 1001 !important;
} }
.@{prefix} { .@{prefix} {
@@ -82,7 +82,7 @@ defineExpose({
@prefix: ~'@{prefixCls}-pophoverstatus'; @prefix: ~'@{prefixCls}-pophoverstatus';
.ant-popover, .ant-popover,
.ant-tooltip { .ant-tooltip {
z-index: 10 !important; z-index: 1001 !important;
} }
.@{prefix} { .@{prefix} {
@@ -589,7 +589,7 @@ async function setTimeActive(start: string, end: string) {
@prefix: ~'@{prefixCls}-pophoverstatus'; @prefix: ~'@{prefixCls}-pophoverstatus';
.ant-popover, .ant-popover,
.ant-tooltip { .ant-tooltip {
z-index: 10 !important; z-index: 1001 !important;
} }
.@{prefix} { .@{prefix} {
+17 -7
View File
@@ -11,7 +11,6 @@
@chargeMoney="walletMoneyCharge" @chargeMoney="walletMoneyCharge"
@chargeGold="walletGoldCharge" @chargeGold="walletGoldCharge"
/> />
<!-- <BasicMenu :menu="menu" width="13rem" @onChange="tabSelected" /> <!-- <BasicMenu :menu="menu" width="13rem" @onChange="tabSelected" />
<component :is="selectedComponent" class="mr-5" />--> <component :is="selectedComponent" class="mr-5" />-->
<!-- <BasicShowContext title="پروژه ها"> <Search /> </BasicShowContext>--> <!-- <BasicShowContext title="پروژه ها"> <Search /> </BasicShowContext>-->
@@ -109,7 +108,8 @@
<BasicInput v-model:value="form.title"/> <BasicInput v-model:value="form.title"/>
</a-form-item> </a-form-item>
<a-form-item v-if="getConfigApp('name') === 'garoosi'" label="دسته بندی" name="group_type" :rules="inputRules()"> <a-form-item v-if="getConfigApp('name') === 'garoosi'" label="دسته بندی" name="group_type"
:rules="inputRules()">
<BasicSelect <BasicSelect
v-model:value="form.group_type" v-model:value="form.group_type"
:items="GaroosiCategoryItems" :items="GaroosiCategoryItems"
@@ -145,18 +145,27 @@
<!-- <a-form-item v-if="weightOption === '1'" label="وزن به گرم" name="amount" :rules="inputRules()"> <!-- <a-form-item v-if="weightOption === '1'" label="وزن به گرم" name="amount" :rules="inputRules()">
<BasicInput v-model:value="form.amount" type="number" /> <BasicInput v-model:value="form.amount" type="number" />
</a-form-item>--> </a-form-item>-->
vite build
<a-form-item v-if="form.group_type === '' || form.group_type !== 'آبشده'" <a-form-item v-if="form.group_type === '' || form.group_type !== 'آبشده'"
name="percent_fee_buy" :rules="inputRules()"> name="percent_fee_buy" :rules="inputRules()">
<template #label> <template #label>
<span class="inline-flex items-center gap-1"> <span class="inline-flex items-center gap-1">
کارمزد درصدی موقع خرید کارمزد درصدی موقع خرید
<a-tooltip placement="bottom" class="cursor-pointer">
<a-tooltip
placement="top"
>
<template #title> <template #title>
<span>مقدار باید به اعشار وارد گردد بعنوان مثال 1 درصد به صورت 0.01 باید وارد گردد.</span> مقدار باید به اعشار وارد گردد بعنوان مثال 1 درصد به صورت 0.01 باید وارد گردد.
</template> </template>
<Icon icon="vuesax-linear:info-circle" class="cursor-pointer" color="#e3bf00" />
<span class="inline-flex cursor-pointer">
<Icon
icon="vuesax-linear:info-circle"
color="#e3bf00"
/>
</span>
</a-tooltip> </a-tooltip>
</span> </span>
</template> </template>
<BasicInput v-model:value="form.percent_fee_buy" type="number"/> <BasicInput v-model:value="form.percent_fee_buy" type="number"/>
@@ -165,12 +174,13 @@
label="هزینه نقدی موقع خرید" name="cash_fee_buy" :rules="inputRules()"> label="هزینه نقدی موقع خرید" name="cash_fee_buy" :rules="inputRules()">
<BasicInput v-model:value="form.cash_fee_buy" type="number"/> <BasicInput v-model:value="form.cash_fee_buy" type="number"/>
</a-form-item> </a-form-item>
<a-form-item v-if="form.group_type === '' || form.group_type !== 'آبشده'" <a-form-item v-if="form.group_type === '' || form.group_type !== 'آبشده'"
name="percent_fee_sell" :rules="inputRules()"> name="percent_fee_sell" :rules="inputRules()">
<template #label> <template #label>
<span class="inline-flex items-center gap-1"> <span class="inline-flex items-center gap-1">
کارمزد درصدی موقع فروش کارمزد درصدی موقع فروش
<a-tooltip placement="bottom" class="cursor-pointer"> <a-tooltip placement="top" class="cursor-pointer" :zIndex="9999">
<template #title> <template #title>
<span>مقدار باید به اعشار وارد گردد بعنوان مثال 1 درصد به صورت 0.01 باید وارد گردد</span> <span>مقدار باید به اعشار وارد گردد بعنوان مثال 1 درصد به صورت 0.01 باید وارد گردد</span>
</template> </template>