vue 3.0全局filter的使用
import filters from "./utils/filters";const app = createApp(App);app.config.globalProperties.$filters =filters2:filter.js3:<label>任务期限: </label>{{ $filters.formatTime(taskinfo.start_date)+
·
import filters from "./utils/filters";
const app = createApp(App);
app.config.globalProperties.$filters =filters
2:filter.js
3:
<label>任务期限: </label>{{ $filters.formatTime(taskinfo.start_date)+"-" }}{{$filters.formatTime(taskinfo.end_date)}}
更多推荐
已为社区贡献1条内容
所有评论(0)