File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 133133 }
134134 },
135135 data () {
136+ /**
137+ * TODO 兼容新旧编译器
138+ * 新编译器(自定义组件模式)下必须使用固定数值,否则部分平台下会获取不到节点。
139+ * 随机数值是在旧编译器下使用的,旧编译器模式已经不推荐使用,后续直接废掉随机数值的写法。
140+ */
136141 const elClass = this .__call_hook ? ' uni_canlender' : ` Uni_${ Math .ceil (Math .random () * 10e5 ).toString (36 )} `
137142 return {
138143 dateShow: false , // 日期是否选择
Original file line number Diff line number Diff line change 5353 }
5454 },
5555 data () {
56+ /**
57+ * TODO 兼容新旧编译器
58+ * 新编译器(自定义组件模式)下必须使用固定数值,否则部分平台下会获取不到节点。
59+ * 随机数值是在旧编译器下使用的,旧编译器模式已经不推荐使用,后续直接废掉随机数值的写法。
60+ */
5661 const elId = this .__callback_hook ? ' uni_collapse_item' : ` Uni_${ Math .ceil (Math .random () * 10e5 ).toString (36 )} `
5762 return {
5863 isOpen: false ,
Original file line number Diff line number Diff line change 3737 return {
3838 visibleSync: false ,
3939 showDrawer: false ,
40- rightMode: false ,
41- closeTimer: null ,
42- watchTimer: null
40+ rightMode: false
4341 }
4442 },
4543 watch: {
Original file line number Diff line number Diff line change 6868 }
6969 },
7070 data () {
71+ /**
72+ * TODO 兼容新旧编译器
73+ * 新编译器(自定义组件模式)下必须使用固定数值,否则部分平台下会获取不到节点。
74+ * 随机数值是在旧编译器下使用的,旧编译器模式已经不推荐使用,后续直接废掉随机数值的写法。
75+ */
7176 const elId = this .__call_hook ? ' uni_notice_bar' : ` Uni_${ Math .ceil (Math .random () * 10e5 ).toString (36 )} `
7277 return {
7378 elId: elId,
Original file line number Diff line number Diff line change 108108 }
109109
110110 .uni-popup {
111- position : absolute ;
111+ position : fixed ;
112112 z-index : 999 ;
113113 background-color : #ffffff ;
114114 }
Original file line number Diff line number Diff line change 4242 }
4343 },
4444 data () {
45+ /**
46+ * TODO 兼容新旧编译器
47+ * 新编译器(自定义组件模式)下必须使用固定数值,否则部分平台下会获取不到节点。
48+ * 随机数值是在旧编译器下使用的,旧编译器模式已经不推荐使用,后续直接废掉随机数值的写法。
49+ */
4550 const elId = this .__call_hook ? ' uni_swipe_action' : ` Uni_${ Math .ceil (Math .random () * 10e5 ).toString (36 )} `
4651 return {
4752 elId: elId,
You can’t perform that action at this time.
0 commit comments