(vue3)ant-design-vue将notification绑定在指定容器中

Vue3 + Ant Design Vue 实现表格无限滚动加载(自定义指令版) / 防抖函数}, delay)// loadMore 指令},},// helper:绑定滚动事件if (!// 移除旧的监听if (!// ✅ 提前触发位置// 兼容异步 Promise})} else {}, delay)})// 导出函数(在 main.js 中注册)通过自定义指令,我们可以在 Vue3 + Ant Design Vue 表格中实现优雅的滚动加载功能:支持防抖、目标容器选择、加载禁用;与表格分页逻辑结合,用户体验更好; 阅读详情

1.添加一个div作为容器 并为其取一个id

<div id="notificationContainer"></div>

2.加载其到容器div中

  import {notification} from 'ant-design-vue';


  function openNotification(){
    //加载配置
    notification.config({
      getContainer: () => document.getElementById('notificationContainer'),
    });
  }

这样就完成了加载notification到指定容器的操作

基于Vue与Ant Design Vue的Modal弹窗深度定制:拖拽与全屏功能的无缝集成 本文深入探讨了如何对Ant Design Vue的Modal弹窗进行深度定制,无缝集成拖拽与全屏两大核心功能。通过封装可复用的“超级弹窗”组件,在完全兼容原生API的基础上,利用VueUse等工具库,实现了弹窗的边界限制拖拽与视口全屏显示,显著提升了后台管理系统等复杂场景下的用户体验与开发效率。 阅读详情

相关推荐

Vue3 + Ant Design Vue 动态控制 Tooltip 显示:智能判断文本溢出与省略号优化

本文详细介绍了如何使用Vue3和Ant Design Vue实现智能Tooltip显示,通过动态检测文本溢出与CSS省略号优化,提升用户体验。文章涵盖了核心实现原理、完整代码解析、性能优化技巧及实际应用场景,特别适合需要处理文本溢出的前端开发者。

weixin_30642561的博客 450

Vue3通知提醒(Notification)

全局展示通知提醒信息,在系统四个角显示通知提醒信息,支持:五种类型通知提醒;自定义图标;自定义样式;自定义弹出位置;自定义关闭延时;总之,功能丰富,简单易用😁😁

Vue Amazing UI(Vue3 + TypeScript + Vite)组件库唯一开发维护者 8367

vue-infinite-scroll 搭配使用ant-design-vue 弹窗dialog无法触发loadMore方法

问题描述 在ant-dialog中嵌套使用List的滚动加载功能,vue-infinite-scroll配合使用时,滚动和初始时,都无法触发loadmore 问题链接:https://github.com/ElemeFE/vue-infinite-scroll/issues/147、 1.弹窗启动时,未经过mounted生命周期,所以未绑定成功滚动事件 2.获得监听滚动函数的element时(getScrollEventTarget),也就是滚动的容器时,未能拿到overflowY的值,是根

苏轻轻的专栏 2614

vue3使用ant-design-vue的Modal的小技巧

ant的modal挂载,移动

Yosola的博客 7862

vue3-notification:查看3个通知库:speech_balloon:

Vue.js通知 这是euvl创建的Vue 2 vue通知的分支和端口。 如果您使用的是Vue 2.x,请使用此版本 设置 npm install --save @kyvg/vue3-notification 将依赖项添加到您的main.js : import { createApp } from &#39;vue&#39; import Notifications from &#39;@kyvg/vue3-notification&#39; const app = createApp ( { ... } ) app . use ( Notifications ( ) ) 将全局组件添加到您的App.vue : < notifications> 用法 从您的.vue文件触发通知: // simple this . $notify ( &#39;Hello user!&#39; ) // using options this

vue-notification:使用Vue3的NotificationToast组件

@ dafcoe / vue-notification 使用Vue3构建的易于使用,可自定义的通知/吐司库。 在页面上查看操作。 安装 使用yarn或npm将软件包安装为项目依赖项: $ yarn add @dafcoe/vue-notification --- or --- $ npm install --save @dafcoe/vue-notification 用法 全局(在main.js / main.ts文件上)或本地(在组件上)导入VueNotificationList组件: // Globally import VueNotificationList from &#39;@dafcoe/vue-notification&#39; const app = createApp ( App ) app . use ( VueNotificationList ) . mount ( &#39;#app

Antdesign-Vue中抽屉的使用

背景 项目中使用antdesign里面的抽屉组件,想让抽屉在指定的容器内显示,而抽屉组件默认的挂载点是body 解决办法 根据antdesign官方文档 api里getContainer可以指定Drawer挂载的HTML节点 可以通过ref或者class名或者id名挂载到对应的html节点 如果挂在之后发现抽屉或者遮罩层的位置不对 一定要注意要挂载的那个dom节点是否给了相对定位,要挂载的dom节点给相对定位之后,抽屉就能在指定的dom节点内出现了(这里要注意相应的样式的调整) 下图是内部抽屉样式 还

weixin_49203377的博客 7605

Renesas:定时器输入捕获

一、PWM输入捕获 1、Smart Configurator配置 注意:在使用前,需要使能对应的定时器!否侧无法正常进行输入捕获! 2、脉冲宽度的获取 如何区分高低电平的脉冲宽度:最常用的方法就是在触发中断后,判断IO口的高低电平,来确认是上升沿触发的中断还是下降沿触发的中断。 若无法进入中断,可查看:Renesas:配置中断的常规流程 (1)中断方式(Smart Configurator生成的代码) #pragma interrupt r_Config_TAUB0_0_i...

不吃鱼的猫的博客 2495

vue3 实现notification 组件

【代码】vue3 实现notification 组件。

泛酸的桂花酒 949

超越界面设计:GUI Guider与LVGL在STM32F103上的系统集成与架构思考

本文探讨了GUI Guider与LVGL在STM32F103微控制器上的系统集成与架构设计,重点分析了工程模块化组织、内存管理优化、硬件驱动接口设计以及FreeRTOS多任务集成。针对STM32F103ZET6的资源限制,提供了实用的移植策略和性能优化方案,帮助开发者构建高效、可维护的嵌入式GUI系统。

j2k3l4的博客 931

Dell R730安装Windows Server 2008 R2

一、RAID驱动准备  在安装Windows server2008 R2操作系统时,如果没有发现硬盘,请将下面的阵列卡驱动先解压(在下载的.exe文件,双击点下一步会自动解压),解压后把那文件夹复制到U盘中。阵列卡 PERC9 H330 - H730 - H730P - H830 Controllers for Windows Server 2008 R2二、系统安装方法方法一:光盘安装  ①请您...

MarshLin 2万+

vue3+Ts+Ant Design Vue +天地图组件封装

这是一个基于Ant Design Vue组件封装的天地图组件,主要功能是实现一个带有地图选择点位,搜索打点功能的基本模态框

唯见青山不见君 3305

SAP EWM 内向交货流程(一)

本文介绍了SAP EWM系统中内向交货单的基本配置与操作流程。

huqinghai的专栏 2416

Ant Design Vue 踩过的一些坑

不知道大家使用 Ant Design Vue 的时候有没有感觉不太顺手的地方,有些组件属性总是写的很隐蔽,有点磕磕绊绊的感觉。本篇博客记录一下我这一段儿时间使用 Ant Design Vue 踩过的一些坑,本文会持续更新~ Select 滚动定位问题 正常情况下,Select 的下拉框内容可以正确定位在 Select 下方,但是在微前端中,Select 的下拉框内容可能会出现定位问题,不会随着页面滚动而滚动,而是定位在了页面的某个位置。 这是因为 Select 的下拉框内容默认渲染定位到 body 上;在

梅花寺 3756

保姆级教程:用SOEM主站搞定汇川SV660N伺服驱动器的EtherCAT通讯(附完整C代码)

本文提供了一份详细的SOEM主站与汇川SV660N伺服驱动器EtherCAT通讯的实战教程,涵盖环境搭建、状态机理解、PDO映射配置、CiA402状态机实战、实时性能优化及诊断调试等关键步骤,并附完整C代码示例,帮助开发者快速实现工业级EtherCAT控制。

weixin_28292761的博客 322

泛微OA自定义post接口和路径(无侵入)

泛微OA自定义post接口和路径(无侵入)

技术分享 3908

Ant Design Vue Pro Components:Vue3 企业级后台开发的终极提效方案

如果你正被中后台项目的重复开发折磨,那么 Ant Design Vue Pro Components 这套专为 Vue3 打造的 pro 系列组件库,就是为你准备的终极解药——它把后台布局、数据表格、动态表单这些高频场景全部封装成开箱即用的组件,让你把时间真正花在业务上。 ## 后台项目越做越多,你的时间却被样板代码吃掉了 想象一个典型的工作日上午:新项目的任务刚派下来,你打开编辑器,准备再一

gitblog_00024的博客 486

【OCPP】ocpp1.6J协议框架说明

本文档的目的是为读者提供创建正确的可互操作 OCPP JSON 实现 (OCPP-J) 所需的信息。我们将根据我们自己的经验,尝试解释什么是强制性的、什么是良好做法以及什么是不应该做的。毫无疑问,误解或歧义仍然存在,但我们旨在通过本文件尽可能地防止它们。IANA:互联网数字分配机构(OCPP-J:使用JSON通过WebSocket进行OCPP通信。特定的OCPP版本应使用J扩展进行指示。OCPP1.5J表示我们正在讨论1.5版本的JSON/WebSocket实现。

qq_53871375的博客 1256

Vue3 + Ant Design Vue 实现 Table 表格嵌套 Radio 单选框

在后台管理系统开发中,表格(Table)是核心展示组件,而在表格中嵌套单选框(Radio)实现行内评分 / 选择是非常常见的需求。本文将基于你的实际业务代码,详细讲解如何在 Vue3 + TypeScript + Ant Design Vue 技术栈下,实现,并完成评分联动、总分计算等核心交互逻辑。

a3212768093的博客 432

C-Lodop打印服务系统存在任意文件读取

C-Lodop打印服务系统存在任意文件读取

weixin_43567873的博客 2888

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

2.5 Trigger源码分析 -- ant-design-vue系列

ant-design-vue源码分析,dropdown源码分析的最后一篇,剩下的都是传参的逻辑了。

weixin_44438233的博客 1602

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain&#39;s apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath(&#39;DeepLearnToolbox&#39;));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand(&#39;state&#39;,0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W&#39;); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand(&#39;state&#39;,0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = &#39;sigm&#39;;%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, &#39;Too big error&#39;);```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand(&#39;state&#39;,0)sae = saesetup([784 100]);sae.ae{1}.activation_function = &#39;sigm&#39;;sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)&#39;)% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;;nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, &#39;Too big error&#39;);```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x&#39;,28,28,60000))/255;test_x = double(reshape(test_x&#39;,28,28,10000))/255;train_y = double(train_y&#39;);test_y = double(test_y&#39;);%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you&#39;ll get around 1.2% errorrand(&#39;state&#39;,0)cnn.layers = { struct(&#39;type&#39;, &#39;i&#39;) %input layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 6, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %sub sampling layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 12, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, &#39;Too big error&#39;);```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, &#39;Too big error&#39;);%% ex2 neural net with L2 weight decayrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex3 neural net with dropoutrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex4 neural net with sigmoid activation functionrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex5 plotting functionalityrand(&#39;state&#39;,0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = &#39;softmax&#39;; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand(&#39;state&#39;,0)nn = nnsetup([784 20 10]); nn.output = &#39;softmax&#39;; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Ant Design Vue Pro布局系统与路由配置详解

Ant Design Vue Pro布局系统与路由配置详解 【免费下载链接】ant-design-vue-pro ????????‍????????????‍???? Use Ant Design Vue like a Pro! (vue2) 项目地址: htt...

gitblog_00520的博客 803

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

REA 逆向分析 MCP 配置指南:让 AI 助手 4 步读懂二进制成品

REA(reverse-engineer-anything)是一个在你本机运行的逆向分析 MCP 服务与 CLI 工具集,把 AI 编码助手接到原生二进制、JavaScript / Electron 应用、Android 包、.NET 程序集和固件镜像的检查工具上。判断它值不值得装只有一个标准:你手上有没有源码。目标是打包后的成品——可执行文件、APK、ASAR、固件镜像、打开的网页——它就是主场

gitblog_00652的博客 253

Vue3 + Ant Design Vue 表格优化:如何让超长文本自动省略并智能显示Tooltip(附完整代码)

本文详细介绍了在Vue3和Ant Design Vue中实现表格超长文本智能省略与Tooltip联动的完整方案。通过CSS的text-overflow属性和a-tooltip组件,开发者可以优雅地处理文本溢出问题,提升用户体验。文章包含从单列处理到批量优化的实战代码,适用于企业级中后台系统开发。

night的博客 605

基于Ant Design Vue与Element Plus的智能图片上传组件实现指南

在前端开发中,图片上传是Web应用的核心功能之一,其性能直接影响用户体验和服务器负载。其基本原理是通过浏览器API获取用户选择的图片文件,并将其传输至服务器。为了提升技术价值,开发者通常需要在前端对图片进行预处理,以优化加载速度、节省带宽并适配业务场景。这自然引入了图片压缩与裁剪技术。图片压缩通过算法减少文件体积,而裁剪则用于调整构图与尺寸。结合Vue.js生态中流行的UI框架,如Ant Design Vue和Element Plus,可以高效封装出支持这些功能的智能上传组件。这种组件在前端完成图片的“瘦身

weixin_30787531的博客 546

Ant Design Vue Pro企业级架构方案:从单体到微前端的完整技术栈深度解析

在当今快速发展的前端技术生态中,企业级后台管理系统面临着架构复杂性和维护成本的双重挑战。Ant Design Vue Pro作为基于Vue.js和Ant Design Vue的企业级中后台前端解决方案,提供了一套完整的架构方案,帮助技术决策者和架构师构建可扩展、高性能的现代化管理系统。该框架融合了Vue.js的响应式特性和Ant Design的设计语言,为企业级应用提供了专业的技术栈支持。 ##

gitblog_00547的博客 806
上一篇: RASA3获取用户输入,从数据库查询数据,返回给用户前台(踩坑记录)
System_shy
博客等级 码龄7年 8粉丝 4原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址