mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-03 10:56:00 +00:00
* fix(Icon): Cannot access Icon before initialization * fix(comps): import eslint * fix(Icon): Cannot access Icon before initialization * fix(comps): import eslint
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
import AppSearchKeyItem from './AppSearchKeyItem.vue';
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
|
||||
const { prefixCls } = useDesign('app-search-footer');
|
||||
const { t } = useI18n();
|
||||
</script>
|
||||
|
@@ -5,6 +5,7 @@
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
defineProps({
|
||||
icon: String,
|
||||
});
|
||||
|
@@ -61,8 +61,7 @@
|
||||
import { computed, unref, ref, watch, nextTick } from 'vue';
|
||||
import { SearchOutlined } from '@ant-design/icons-vue';
|
||||
import AppSearchFooter from './AppSearchFooter.vue';
|
||||
import Icon from '/@/components/Icon';
|
||||
// @ts-ignore
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import vClickOutside from '/@/directives/clickOutside';
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
import { useRefs } from '/@/hooks/core/useRefs';
|
||||
|
@@ -90,6 +90,7 @@
|
||||
import { Button } from '/@/components/Button';
|
||||
import { isFunction } from '/@/utils/is';
|
||||
import { useSlider, grid } from './data';
|
||||
|
||||
const ListItem = List.Item;
|
||||
const CardMeta = Card.Meta;
|
||||
const TypographyText = Typography.Text;
|
||||
|
@@ -6,6 +6,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { onClickOutside } from '@vueuse/core';
|
||||
|
||||
const emit = defineEmits(['mounted', 'clickOutside']);
|
||||
const wrap = ref<ElRef>(null);
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
import type { ContextMenuItem, ItemContentProps, Axis } from './typing';
|
||||
import type { FunctionalComponent, CSSProperties, PropType } from 'vue';
|
||||
import { defineComponent, nextTick, onMounted, computed, ref, unref, onUnmounted } from 'vue';
|
||||
import Icon from '/@/components/Icon';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { Menu, Divider } from 'ant-design-vue';
|
||||
|
||||
const prefixCls = 'context-menu';
|
||||
|
@@ -45,7 +45,7 @@
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import type { ButtonProps } from '/@/components/Button';
|
||||
import Icon from '/@/components/Icon';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
const props = {
|
||||
width: { type: [String, Number], default: '200px' },
|
||||
|
@@ -30,6 +30,7 @@
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
|
||||
import { footerProps } from '../props';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'BasicDrawerFooter',
|
||||
props: {
|
||||
|
@@ -25,6 +25,7 @@
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'BasicDrawerHeader',
|
||||
components: { BasicTitle, ArrowLeftOutlined },
|
||||
|
@@ -18,6 +18,7 @@
|
||||
import { dateUtil } from '/@/utils/dateUtil';
|
||||
|
||||
import type { ExcelData } from './typing';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ImportExcel',
|
||||
props: {
|
||||
|
@@ -27,6 +27,7 @@
|
||||
import { useRuleFormItem } from '/@/hooks/component/useFormItem';
|
||||
import { LoadingOutlined } from '@ant-design/icons-vue';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
|
||||
interface Option {
|
||||
value: string;
|
||||
label: string;
|
||||
|
@@ -19,6 +19,7 @@
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { TransferDirection, TransferItem } from 'ant-design-vue/lib/transfer';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ApiTransfer',
|
||||
components: { Transfer },
|
||||
|
@@ -16,6 +16,7 @@
|
||||
import { get } from 'lodash-es';
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
import { LoadingOutlined } from '@ant-design/icons-vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ApiTree',
|
||||
components: { ATree: Tree, LoadingOutlined },
|
||||
|
@@ -16,6 +16,7 @@
|
||||
import { get } from 'lodash-es';
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
import { LoadingOutlined } from '@ant-design/icons-vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ApiTreeSelect',
|
||||
components: { ATreeSelect: TreeSelect, LoadingOutlined },
|
||||
|
@@ -2,7 +2,7 @@
|
||||
import type { PropType, Ref } from 'vue';
|
||||
import { computed, defineComponent, toRefs, unref } from 'vue';
|
||||
import type { FormActionType, FormProps, FormSchema } from '../types/form';
|
||||
import type { ValidationRule } from 'ant-design-vue/lib/form/Form';
|
||||
import type { Rule } from 'ant-design-vue/lib/form';
|
||||
import type { TableActionType } from '/@/components/Table';
|
||||
import { Col, Divider, Form } from 'ant-design-vue';
|
||||
import { componentMap } from '../componentMap';
|
||||
@@ -138,7 +138,7 @@
|
||||
return { isShow, isIfShow };
|
||||
}
|
||||
|
||||
function handleRules(): ValidationRule[] {
|
||||
function handleRules(): Rule[] {
|
||||
const {
|
||||
rules: defRules = [],
|
||||
component,
|
||||
@@ -149,10 +149,10 @@
|
||||
} = props.schema;
|
||||
|
||||
if (isFunction(dynamicRules)) {
|
||||
return dynamicRules(unref(getValues)) as ValidationRule[];
|
||||
return dynamicRules(unref(getValues)) as Rule[];
|
||||
}
|
||||
|
||||
let rules: ValidationRule[] = cloneDeep(defRules) as ValidationRule[];
|
||||
let rules: Rule[] = cloneDeep(defRules) as Rule[];
|
||||
const { rulesMessageJoinLabel: globalRulesMessageJoinLabel } = props.formProps;
|
||||
|
||||
const joinLabel = Reflect.has(props.schema, 'rulesMessageJoinLabel')
|
||||
|
@@ -4,4 +4,4 @@ import IconPicker from './src/IconPicker.vue';
|
||||
|
||||
export { Icon, IconPicker, SvgIcon };
|
||||
|
||||
export default Icon;
|
||||
// export default Icon;
|
||||
|
@@ -9,8 +9,7 @@
|
||||
</section>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { PropType } from 'vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import { PropType, defineComponent } from 'vue';
|
||||
import { Spin } from 'ant-design-vue';
|
||||
import { SizeEnum } from '/@/enums/sizeEnum';
|
||||
|
||||
|
@@ -8,6 +8,7 @@
|
||||
import { onMountedOrActivated } from '@vben/hooks';
|
||||
import { useRootSetting } from '/@/hooks/setting/useRootSetting';
|
||||
import { getTheme } from './getTheme';
|
||||
|
||||
const props = defineProps({
|
||||
value: { type: String },
|
||||
class: { type: String },
|
||||
|
@@ -9,6 +9,7 @@
|
||||
import { itemProps } from '../props';
|
||||
|
||||
import MenuItemContent from './MenuItemContent.vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'BasicMenuItem',
|
||||
components: { MenuItem: Menu.Item, MenuItemContent },
|
||||
|
@@ -7,10 +7,11 @@
|
||||
<script lang="ts">
|
||||
import { computed, defineComponent } from 'vue';
|
||||
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
import { contentProps } from '../props';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
export default defineComponent({
|
||||
|
@@ -19,8 +19,8 @@
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
import { basicProps } from '../props';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'BasicModalFooter',
|
||||
props: basicProps,
|
||||
|
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { CSSProperties, PropType, provide } from 'vue';
|
||||
import type { CSSProperties, PropType, provide } from 'vue';
|
||||
|
||||
import { defineComponent, computed, watch, ref, unref } from 'vue';
|
||||
import PageFooter from './PageFooter.vue';
|
||||
|
@@ -19,7 +19,6 @@
|
||||
<script lang="ts">
|
||||
import { addResizeListener, removeResizeListener } from '/@/utils/event';
|
||||
import componentSetting from '/@/settings/componentSetting';
|
||||
const { scrollbar } = componentSetting;
|
||||
import { toObject } from './util';
|
||||
import {
|
||||
defineComponent,
|
||||
@@ -33,6 +32,8 @@
|
||||
} from 'vue';
|
||||
import Bar from './bar';
|
||||
|
||||
const { scrollbar } = componentSetting;
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Scrollbar',
|
||||
// inheritAttrs: false,
|
||||
|
@@ -33,6 +33,7 @@
|
||||
import { openWindow } from '/@/utils';
|
||||
|
||||
import { useOpenKeys } from './useOpenKeys';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'SimpleMenu',
|
||||
components: {
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
||||
import { defineComponent, computed } from 'vue';
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
import MenuItem from './components/MenuItem.vue';
|
||||
import SubMenu from './components/SubMenuItem.vue';
|
||||
|
@@ -23,6 +23,7 @@
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
import { createSimpleRootMenuContext } from './useSimpleMenuContext';
|
||||
import mitt from '/@/utils/mitt';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Menu',
|
||||
props: {
|
||||
|
@@ -17,13 +17,14 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { PropType } from 'vue';
|
||||
import type { PropType } from 'vue';
|
||||
import { defineComponent, ref, computed, unref, getCurrentInstance, watch } from 'vue';
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
import { useMenuItem } from './useMenu';
|
||||
import { Tooltip } from 'ant-design-vue';
|
||||
import { useSimpleRootMenuContext } from './useSimpleMenuContext';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'MenuItem',
|
||||
components: { Tooltip },
|
||||
|
@@ -74,7 +74,7 @@
|
||||
import { useMenuItem } from './useMenu';
|
||||
import { useSimpleRootMenuContext } from './useSimpleMenuContext';
|
||||
import { CollapseTransition } from '/@/components/Transition';
|
||||
import Icon from '/@/components/Icon';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { Popover } from 'ant-design-vue';
|
||||
import { isBoolean, isObject } from '/@/utils/is';
|
||||
import mitt from '/@/utils/mitt';
|
||||
|
@@ -8,6 +8,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { FormOutlined } from '@ant-design/icons-vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'EditTableHeaderIcon',
|
||||
components: { FormOutlined },
|
||||
|
@@ -34,7 +34,7 @@
|
||||
import { defineComponent, PropType, computed, toRaw, unref } from 'vue';
|
||||
import { MoreOutlined } from '@ant-design/icons-vue';
|
||||
import { Divider, Tooltip, TooltipProps } from 'ant-design-vue';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { ActionItem, TableActionType } from '/@/components/Table';
|
||||
import { PopConfirmButton } from '/@/components/Button';
|
||||
import { Dropdown } from '/@/components/Dropdown';
|
||||
|
@@ -21,7 +21,7 @@
|
||||
import { defineComponent, ref, watchEffect } from 'vue';
|
||||
|
||||
import { Breadcrumb } from 'ant-design-vue';
|
||||
import Icon from '/@/components/Icon';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
import { useRootSetting } from '/@/hooks/setting/useRootSetting';
|
||||
|
@@ -13,7 +13,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent, computed } from 'vue';
|
||||
import { Tooltip, Badge } from 'ant-design-vue';
|
||||
import Icon from '/@/components/Icon';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { useErrorLogStore } from '/@/store/modules/errorLog';
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
import { computed, defineComponent, getCurrentInstance } from 'vue';
|
||||
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
|
||||
export default defineComponent({
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import SettingDrawer from './SettingDrawer';
|
||||
import Icon from '/@/components/Icon';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
import { useDrawer } from '/@/components/Drawer';
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { List, Card, Row, Col } from 'ant-design-vue';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { applicationList } from './data';
|
||||
|
||||
export default defineComponent({
|
||||
|
@@ -42,7 +42,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { List, Tag } from 'ant-design-vue';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { actions, articleList } from './data';
|
||||
|
||||
export default defineComponent({
|
||||
|
@@ -56,7 +56,7 @@
|
||||
import { Tag, Tabs, Row, Col } from 'ant-design-vue';
|
||||
import { defineComponent, computed } from 'vue';
|
||||
import { CollapseContainer } from '/@/components/Container/index';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import Article from './Article.vue';
|
||||
import Application from './Application.vue';
|
||||
import Project from './Project.vue';
|
||||
|
@@ -26,7 +26,7 @@
|
||||
import { List } from 'ant-design-vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import { CollapseContainer } from '/@/components/Container/index';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
import { accountBindList } from './data';
|
||||
|
||||
|
@@ -53,7 +53,7 @@
|
||||
<script lang="ts">
|
||||
import { Progress, Row, Col } from 'ant-design-vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { cardList } from './data';
|
||||
import { PageWrapper } from '/@/components/Page';
|
||||
import { List } from 'ant-design-vue';
|
||||
|
@@ -34,7 +34,7 @@
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { cardList } from './data';
|
||||
import { PageWrapper } from '/@/components/Page';
|
||||
import { Card, Row, Col, List } from 'ant-design-vue';
|
||||
|
@@ -53,13 +53,12 @@
|
||||
</PageWrapper>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { Tag } from 'ant-design-vue';
|
||||
import { Tag, List } from 'ant-design-vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { BasicForm } from '/@/components/Form/index';
|
||||
import { actions, searchList, schemas } from './data';
|
||||
import { PageWrapper } from '/@/components/Page';
|
||||
import { List } from 'ant-design-vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
|
@@ -17,7 +17,7 @@
|
||||
import { IVFormComponent } from '../../../typings/v-form-component';
|
||||
import { remove } from '../../../utils';
|
||||
import { useFormDesignState } from '../../../hooks/useFormDesignState';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FormNodeOperate',
|
||||
|
@@ -38,7 +38,8 @@
|
||||
import { remove } from '../../../utils';
|
||||
import message from '../../../utils/message';
|
||||
import { Input } from 'ant-design-vue';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FormOptions',
|
||||
components: { Input, Icon },
|
||||
|
@@ -38,7 +38,7 @@
|
||||
import { useFormDesignState } from '../../../hooks/useFormDesignState';
|
||||
import { isArray } from 'lodash-es';
|
||||
import { Form, FormItem, AutoComplete, Input } from 'ant-design-vue';
|
||||
import Icon from '/@/components/Icon';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'RuleProps',
|
||||
|
@@ -31,7 +31,7 @@
|
||||
import { UseRefHistoryReturn } from '@vueuse/core';
|
||||
import { IFormConfig } from '../../../typings/v-form-component';
|
||||
import { Tooltip, Divider } from 'ant-design-vue';
|
||||
import Icon from '/@/components/Icon/index';
|
||||
import { Icon } from '/@/components/Icon';
|
||||
|
||||
interface IToolbarsConfig {
|
||||
type: string;
|
||||
|
@@ -47,11 +47,10 @@
|
||||
import { handleAsyncOptions } from '../../utils';
|
||||
import { omit } from 'lodash-es';
|
||||
import { Tooltip, FormItem, Divider, Col } from 'ant-design-vue';
|
||||
|
||||
// import FormItem from '/@/components/Form/src/components/FormItem.vue';
|
||||
|
||||
import { Icon } from '/@/components/Icon';
|
||||
import { useFormModelState } from '../../hooks/useFormDesignState';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'VFormItem',
|
||||
components: {
|
||||
|
Reference in New Issue
Block a user