mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	chore: update
This commit is contained in:
		
							parent
							
								
									e23971b680
								
							
						
					
					
						commit
						297319f668
					
				@ -1,17 +1,12 @@
 | 
				
			|||||||
<script setup lang="ts">
 | 
					<script setup lang="ts">
 | 
				
			||||||
import { ElMessage } from "element-plus";
 | 
					import { message } from "@/utils/message";
 | 
				
			||||||
import { debounce, throttle } from "@pureadmin/utils";
 | 
					import { debounce, throttle } from "@pureadmin/utils";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
defineOptions({
 | 
					defineOptions({
 | 
				
			||||||
  name: "Debounce"
 | 
					  name: "Debounce"
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const handle = () => {
 | 
					const handle = () => message("恭喜你,这是一条成功消息", { type: "success" });
 | 
				
			||||||
  ElMessage({
 | 
					 | 
				
			||||||
    message: "恭喜你,这是一条成功消息",
 | 
					 | 
				
			||||||
    type: "success"
 | 
					 | 
				
			||||||
  });
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
const immediateDebounce = debounce(handle, 1000, true);
 | 
					const immediateDebounce = debounce(handle, 1000, true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
<script setup lang="ts">
 | 
					<script setup lang="ts">
 | 
				
			||||||
import { ref, unref } from "vue";
 | 
					import { ref, unref } from "vue";
 | 
				
			||||||
import { ElMessage } from "element-plus";
 | 
					import { message } from "@/utils/message";
 | 
				
			||||||
import ReQrcode from "@/components/ReQrcode";
 | 
					import ReQrcode from "@/components/ReQrcode";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
defineOptions({
 | 
					defineOptions({
 | 
				
			||||||
@ -14,10 +14,10 @@ setTimeout(() => {
 | 
				
			|||||||
  asyncTitle.value = unref(qrcodeText);
 | 
					  asyncTitle.value = unref(qrcodeText);
 | 
				
			||||||
}, 3000);
 | 
					}, 3000);
 | 
				
			||||||
const codeClick = () => {
 | 
					const codeClick = () => {
 | 
				
			||||||
  ElMessage.info("点击事件");
 | 
					  message("点击事件", { type: "info" });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
const disabledClick = () => {
 | 
					const disabledClick = () => {
 | 
				
			||||||
  ElMessage.info("失效");
 | 
					  message("失效", { type: "info" });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,7 @@
 | 
				
			|||||||
<script setup lang="ts">
 | 
					<script setup lang="ts">
 | 
				
			||||||
import { ref, watch } from "vue";
 | 
					import { ref, watch } from "vue";
 | 
				
			||||||
import { ElMessage, FormInstance } from "element-plus";
 | 
					import { message } from "@/utils/message";
 | 
				
			||||||
 | 
					import { FormInstance } from "element-plus";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const SELECT_OPTIONS = [
 | 
					const SELECT_OPTIONS = [
 | 
				
			||||||
  { label: "网关", value: 1 },
 | 
					  { label: "网关", value: 1 },
 | 
				
			||||||
@ -33,7 +34,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
 | 
				
			|||||||
  if (!formEl) return;
 | 
					  if (!formEl) return;
 | 
				
			||||||
  await formEl.validate(valid => {
 | 
					  await formEl.validate(valid => {
 | 
				
			||||||
    if (valid) {
 | 
					    if (valid) {
 | 
				
			||||||
      ElMessage.success("提交成功");
 | 
					      message("提交成功", { type: "success" });
 | 
				
			||||||
      formVisible.value = false;
 | 
					      formVisible.value = false;
 | 
				
			||||||
      resetForm(formEl);
 | 
					      resetForm(formEl);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +1,10 @@
 | 
				
			|||||||
<script setup lang="ts">
 | 
					<script setup lang="ts">
 | 
				
			||||||
import Card from "./components/Card.vue";
 | 
					import Card from "./components/Card.vue";
 | 
				
			||||||
import { getCardList } from "@/api/list";
 | 
					import { getCardList } from "@/api/list";
 | 
				
			||||||
 | 
					import { message } from "@/utils/message";
 | 
				
			||||||
 | 
					import { ElMessageBox } from "element-plus";
 | 
				
			||||||
import { ref, onMounted, nextTick } from "vue";
 | 
					import { ref, onMounted, nextTick } from "vue";
 | 
				
			||||||
import dialogForm from "./components/DialogForm.vue";
 | 
					import dialogForm from "./components/DialogForm.vue";
 | 
				
			||||||
import { ElMessage, ElMessageBox } from "element-plus";
 | 
					 | 
				
			||||||
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
 | 
					import { useRenderIcon } from "@/components/ReIcon/src/hooks";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
defineOptions({
 | 
					defineOptions({
 | 
				
			||||||
@ -77,10 +78,7 @@ const handleDeleteItem = product => {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
    .then(() => {
 | 
					    .then(() => {
 | 
				
			||||||
      ElMessage({
 | 
					      message("删除成功", { type: "success" });
 | 
				
			||||||
        type: "success",
 | 
					 | 
				
			||||||
        message: "删除成功"
 | 
					 | 
				
			||||||
      });
 | 
					 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    .catch(() => {});
 | 
					    .catch(() => {});
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user