当前未公开,但页面的transition
function可以返回transition object,其中可能包含transition JavaScript hooks。这样,您就可以在一个通用文件中定义共享的过渡对象,并根据需要将它们导入到页面中:
〜/ transitions.js:
package classes;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.primefaces.PrimeFaces;
import org.apache.commons.beanutils.PropertyUtils;
/*
* To change this license header,choose License Headers in Project Properties.
* To change this template file,choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Administrator
*/
@ManagedBean(name="test")
@SessionScoped
public class Test implements Serializable {
public String id;
public String title;
public Test() {
id="1";
title="Testing";
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public void onRowSelect(int row) {
try {
System.out.println("Start:");
String i="ID";
String t="Title";
String ci="id";
String ct="title";
this.getClass().getDeclaredField(ci).set(this,LiveRangeService.filteredData.get(row).get(i));
this.getClass().getDeclaredField(ct).set(this,LiveRangeService.filteredData.get(row).get(t));
PrimeFaces.current().ajax().update("form:inp");
PrimeFaces.current().ajax().update("form:inp1");
PrimeFaces.current().executeScript("PF('dlg').hide();");
System.out.println("End:");
} catch (Exception e) {
System.out.println("Error! " + e.getMessage() );
}
}
}
〜/ pages / about.vue:
export default {
fade: {
name: 'fade',mode: 'out-in',beforeEnter(el) {
console.log('fade beforeEnter')
}
},bounce: {
name: 'bounce',afterEnter(el) {
console.log('bounce afterEnter')
}
},}
本文链接:https://www.f2er.com/3069133.html