| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- Component({
- options: {
- addGlobalClass: true
- },
- properties: {
- iconName: {
- type: String,
- value: "icon-feiyongleixing"
- },
- title: {
- type: String,
- },
- showText: {
- type: String,
- },
- placeholder: {
- type: String,
- value: "请选择"
- },
- isClear: {
- type: Boolean,
- value: false
- },
- clearCallBack: {
- type: Function
- }
- },
- data: {},
- methods: {
- clearResults() {
- let that = this;
- wx.showModal({
- title: '提示',
- content: '是否确定清空选择项',
- complete: (res) => {
- if (res.confirm) {
- that.triggerEvent("clearCallBack", that.data.title)
- }
- }
- })
- }
- }
- })
|