当前位置:网站首页>05. Private properties in script_setup
05. Private properties in script_setup
2022-07-30 01:28:00 【@Great move the world】
In this lesson, let's look at how to set private properties in vue3 script setup.
Sometimes, when a component is accessed by $ref, we want to specify which properties in that component are accessible and which are not.The inaccessibility here is called private properties for the time being.So how to implement private properties?
This can use the new expose attribute in vue3, let's look at the example directly.
// User.vuePrivate data:{{ privateData }}
Private data (uppercase): {{ upperCasePrivateData }}
In the User component, we declare a privateData with a value of secrecy, and then a computed property upperCasePrivateData with a value of
边栏推荐
猜你喜欢
随机推荐
Navicat error: 1045-Access denied for user [email protected](using passwordYES)
Elephant Swap:借助ePLATO提供加密市场的套利空间
How many ways does Selenium upload files?I don't believe you have me
数据流图、数据字典
npm ERR! code ENOTSUPnpm ERR! notsup Unsupported engine for [email protected]: wanted: {“n
STM32——OLED显示实验
exness: U.S. GDP shrinks, yen bounces back
经典毕业设计:基于SSM实现高校后勤报修系统
利用ESP32构造一个ZIGBEE的网络发送转接
聊聊性能测试环境搭建
泰克Tektronix示波器软件TDS520|TDS1001|TDS1002上位机软件NS-Scope
2022-07-29:一共有n个人,从左到右排列,依次编号0~n-1, h[i]是第i个人的身高, v[i]是第i个人的分数, 要求从左到右选出一个子序列,在这个子序列中的人,从左到右身高是不下降的。
机械设备制造企业如何借助ERP系统,解决成本核算难题?
canvas 中如何实现物体的框选(六)
推荐系统:用户“行为数据”的采集【使用Kafaka、Cassandra处理数据】【如果与业务数据重合,也需要独自采集】
Talk about the construction of the performance test environment
Object.freeze()学习
测试员容易陷入的9大误区
LeetCode 2348. 全 0 子数组的数目
我的创作纪念日
![[Microservice~Nacos] Nacos service provider and service consumer](/img/b7/47ecd6979ccfeb270261681d6130be.png)








