feat:【ele】【mall】将 color-input 迁移到 mall/promotion/components 中,聚焦一点
This commit is contained in:
@@ -139,7 +139,7 @@ function isSameLink(link1: string, link2: string) {
|
|||||||
|
|
||||||
/** 处理详情选择 */
|
/** 处理详情选择 */
|
||||||
function handleProductCategorySelected(id: number) {
|
function handleProductCategorySelected(id: number) {
|
||||||
// TODO @AI:这里有点问题;
|
// TODO @AI:这里有点问题;activeAppLink 地址;
|
||||||
const url = new URL(activeAppLink.value.path, 'http://127.0.0.1');
|
const url = new URL(activeAppLink.value.path, 'http://127.0.0.1');
|
||||||
// 修改 id 参数
|
// 修改 id 参数
|
||||||
url.searchParams.set('id', `${id}`);
|
url.searchParams.set('id', `${id}`);
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
// TODO @AI:改成 El 标签风格,而不是 el-
|
||||||
|
// TODO @AI:一些 modal 是否使用 Modal 组件,而不是 el-modal?
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
|
|
||||||
import AppLinkSelectDialog from './app-link-select-dialog.vue';
|
import AppLinkSelectDialog from './app-link-select-dialog.vue';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// TODO @芋艿:后续合并到 diy-editor 里,并不是通用的;
|
// TODO @AI:改成 El 风格,而不是iel- 风格;
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
||||||
import { PREDEFINE_COLORS } from '@vben/constants';
|
import { PREDEFINE_COLORS } from '@vben/constants';
|
||||||
|
|
||||||
// 颜色输入框
|
/** 颜色输入框 */
|
||||||
defineOptions({ name: 'ColorInput' });
|
defineOptions({ name: 'ColorInput' });
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -13,7 +13,9 @@ const props = defineProps({
|
|||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue']);
|
const emit = defineEmits(['update:modelValue']);
|
||||||
|
|
||||||
const color = computed({
|
const color = computed({
|
||||||
get: () => {
|
get: () => {
|
||||||
return props.modelValue;
|
return props.modelValue;
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
export { default as VerticalButtonGroup } from './vertical-button-group/index.vue';
|
export { default as VerticalButtonGroup } from './vertical-button-group/index.vue';
|
||||||
export { default as AppLinkInput } from './app-link-input/index.vue';
|
export { default as AppLinkInput } from './app-link-input/index.vue';
|
||||||
|
export { default as ColorInput } from './color-input/index.vue';
|
||||||
|
|||||||
Reference in New Issue
Block a user