city-picker icon indicating copy to clipboard operation
city-picker copied to clipboard

cp:updated 使用方法

Open pwcs opened this issue 6 years ago • 0 comments

我主要想要得到code,故修改源码如下:
feedVal: function (trigger) { this.$element.val(this.getVal()); if(trigger) { this.$element.trigger('cp:updated',this.getCode()); } },

$("#xxxx").on("cp:updated", function (event,v) {
    $("#aaaa").val(v);
});

pwcs avatar Jul 05 '18 04:07 pwcs