|
5101 | 5101 | // >
|
5102 | 5102 | // <div class="tooltip-arrow"></div>
|
5103 | 5103 | // <div class="tooltip-inner">
|
5104 |
| - // <slot name="content" v-html="content"></slot> |
| 5104 | + // <slot name="content"> |
| 5105 | + // {{{content}}} |
| 5106 | + // </slot> |
5105 | 5107 | // </div>
|
5106 | 5108 | // </div>
|
5107 | 5109 | // </span>
|
|
5223 | 5225 | /* 185 */
|
5224 | 5226 | /***/ (function(module, exports) {
|
5225 | 5227 |
|
5226 |
| - module.exports = "<span v-el:trigger>\n <slot></slot>\n <div v-el:popover v-if=\"show\" style=\"display:block;\"\n :class=\"['tooltip',placement]\"\n :transition=\"effect\"\n >\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\">\n <slot name=\"content\" v-html=\"content\"></slot>\n </div>\n </div>\n </span>"; |
| 5228 | + module.exports = "<span v-el:trigger>\n <slot></slot>\n <div v-el:popover v-if=\"show\" style=\"display:block;\"\n :class=\"['tooltip',placement]\"\n :transition=\"effect\"\n >\n <div class=\"tooltip-arrow\"></div>\n <div class=\"tooltip-inner\">\n <slot name=\"content\">\n {{{content}}}\n </slot>\n </div>\n </div>\n </span>"; |
5227 | 5229 |
|
5228 | 5230 | /***/ }),
|
5229 | 5231 | /* 186 */
|
|
7498 | 7500 | // <span v-for="w in text.daysOfWeek">{{w}}</span>
|
7499 | 7501 | // </div>
|
7500 | 7502 | // <div class="datepicker-dateRange">
|
7501 |
| - // <span v-for="d in dateRange" :class="d.sclass" @click="daySelect(d.date,this)">{{d.text}}</span> |
| 7503 | + // <span v-for="d in dateRange" :class="d.sclass" @click="daySelect(d.date,$event)">{{d.text}}</span> |
7502 | 7504 | // </div>
|
7503 | 7505 | // </div>
|
7504 | 7506 | // </div>
|
|
7663 | 7665 | this.displayMonthView = true;
|
7664 | 7666 | this.currDate = new Date(year, this.currDate.getMonth(), this.currDate.getDate());
|
7665 | 7667 | },
|
7666 |
| - daySelect: function daySelect(date, el) { |
7667 |
| - if (el.$el.classList[0] === 'datepicker-item-disable') { |
| 7668 | + daySelect: function daySelect(date, event) { |
| 7669 | + if (event.target.classList[0] === 'datepicker-item-disable') { |
7668 | 7670 | return false;
|
7669 | 7671 | } else {
|
7670 | 7672 | this.currDate = date;
|
|
7953 | 7955 | /* 238 */
|
7954 | 7956 | /***/ (function(module, exports) {
|
7955 | 7957 |
|
7956 |
| - module.exports = "<div class=\"datepicker\">\n <input class=\"form-control datepicker-input\" :class=\"{'with-reset-button': clearButton}\" type=\"text\" :placeholder=\"placeholder\"\n :style=\"{width:width}\"\n @click=\"inputClick\"\n v-model=\"value\"/>\n <button v-if=\"clearButton && value\" type=\"button\" class=\"close\" @click=\"value = ''\">\n <span>×</span>\n </button>\n <div class=\"datepicker-popup\" v-show=\"displayDayView\">\n <div class=\"datepicker-inner\">\n <div class=\"datepicker-body\">\n <div class=\"datepicker-ctrl\">\n <span class=\"datepicker-preBtn glyphicon glyphicon-chevron-left\" aria-hidden=\"true\" @click=\"preNextMonthClick(0)\"></span>\n <span class=\"datepicker-nextBtn glyphicon glyphicon-chevron-right\" aria-hidden=\"true\" @click=\"preNextMonthClick(1)\"></span>\n <p @click=\"switchMonthView\">{{stringifyDayHeader(currDate)}}</p>\n </div>\n <div class=\"datepicker-weekRange\">\n <span v-for=\"w in text.daysOfWeek\">{{w}}</span>\n </div>\n <div class=\"datepicker-dateRange\">\n <span v-for=\"d in dateRange\" :class=\"d.sclass\" @click=\"daySelect(d.date,this)\">{{d.text}}</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"datepicker-popup\" v-show=\"displayMonthView\">\n <div class=\"datepicker-inner\">\n <div class=\"datepicker-body\">\n <div class=\"datepicker-ctrl\">\n <span class=\"datepicker-preBtn glyphicon glyphicon-chevron-left\" aria-hidden=\"true\" @click=\"preNextYearClick(0)\"></span>\n <span class=\"datepicker-nextBtn glyphicon glyphicon-chevron-right\" aria-hidden=\"true\" @click=\"preNextYearClick(1)\"></span>\n <p @click=\"switchDecadeView\">{{stringifyYearHeader(currDate)}}</p>\n </div>\n <div class=\"datepicker-monthRange\">\n <template v-for=\"m in text.months\">\n <span :class=\"{'datepicker-dateRange-item-active':\n (text.months[parse(value).getMonth()] === m) &&\n currDate.getFullYear() === parse(value).getFullYear()}\"\n @click=\"monthSelect($index)\"\n >{{m.substr(0,3)}}</span>\n </template>\n </div>\n </div>\n </div>\n </div>\n <div class=\"datepicker-popup\" v-show=\"displayYearView\">\n <div class=\"datepicker-inner\">\n <div class=\"datepicker-body\">\n <div class=\"datepicker-ctrl\">\n <span class=\"datepicker-preBtn glyphicon glyphicon-chevron-left\" aria-hidden=\"true\" @click=\"preNextDecadeClick(0)\"></span>\n <span class=\"datepicker-nextBtn glyphicon glyphicon-chevron-right\" aria-hidden=\"true\" @click=\"preNextDecadeClick(1)\"></span>\n <p>{{stringifyDecadeHeader(currDate)}}</p>\n </div>\n <div class=\"datepicker-monthRange decadeRange\">\n <template v-for=\"decade in decadeRange\">\n <span :class=\"{'datepicker-dateRange-item-active':\n parse(this.value).getFullYear() === decade.text}\"\n @click.stop=\"yearSelect(decade.text)\"\n >{{decade.text}}</span>\n </template>\n </div>\n </div>\n </div>\n </div>\n </div>"; |
| 7958 | + module.exports = "<div class=\"datepicker\">\n <input class=\"form-control datepicker-input\" :class=\"{'with-reset-button': clearButton}\" type=\"text\" :placeholder=\"placeholder\"\n :style=\"{width:width}\"\n @click=\"inputClick\"\n v-model=\"value\"/>\n <button v-if=\"clearButton && value\" type=\"button\" class=\"close\" @click=\"value = ''\">\n <span>×</span>\n </button>\n <div class=\"datepicker-popup\" v-show=\"displayDayView\">\n <div class=\"datepicker-inner\">\n <div class=\"datepicker-body\">\n <div class=\"datepicker-ctrl\">\n <span class=\"datepicker-preBtn glyphicon glyphicon-chevron-left\" aria-hidden=\"true\" @click=\"preNextMonthClick(0)\"></span>\n <span class=\"datepicker-nextBtn glyphicon glyphicon-chevron-right\" aria-hidden=\"true\" @click=\"preNextMonthClick(1)\"></span>\n <p @click=\"switchMonthView\">{{stringifyDayHeader(currDate)}}</p>\n </div>\n <div class=\"datepicker-weekRange\">\n <span v-for=\"w in text.daysOfWeek\">{{w}}</span>\n </div>\n <div class=\"datepicker-dateRange\">\n <span v-for=\"d in dateRange\" :class=\"d.sclass\" @click=\"daySelect(d.date,$event)\">{{d.text}}</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"datepicker-popup\" v-show=\"displayMonthView\">\n <div class=\"datepicker-inner\">\n <div class=\"datepicker-body\">\n <div class=\"datepicker-ctrl\">\n <span class=\"datepicker-preBtn glyphicon glyphicon-chevron-left\" aria-hidden=\"true\" @click=\"preNextYearClick(0)\"></span>\n <span class=\"datepicker-nextBtn glyphicon glyphicon-chevron-right\" aria-hidden=\"true\" @click=\"preNextYearClick(1)\"></span>\n <p @click=\"switchDecadeView\">{{stringifyYearHeader(currDate)}}</p>\n </div>\n <div class=\"datepicker-monthRange\">\n <template v-for=\"m in text.months\">\n <span :class=\"{'datepicker-dateRange-item-active':\n (text.months[parse(value).getMonth()] === m) &&\n currDate.getFullYear() === parse(value).getFullYear()}\"\n @click=\"monthSelect($index)\"\n >{{m.substr(0,3)}}</span>\n </template>\n </div>\n </div>\n </div>\n </div>\n <div class=\"datepicker-popup\" v-show=\"displayYearView\">\n <div class=\"datepicker-inner\">\n <div class=\"datepicker-body\">\n <div class=\"datepicker-ctrl\">\n <span class=\"datepicker-preBtn glyphicon glyphicon-chevron-left\" aria-hidden=\"true\" @click=\"preNextDecadeClick(0)\"></span>\n <span class=\"datepicker-nextBtn glyphicon glyphicon-chevron-right\" aria-hidden=\"true\" @click=\"preNextDecadeClick(1)\"></span>\n <p>{{stringifyDecadeHeader(currDate)}}</p>\n </div>\n <div class=\"datepicker-monthRange decadeRange\">\n <template v-for=\"decade in decadeRange\">\n <span :class=\"{'datepicker-dateRange-item-active':\n parse(this.value).getFullYear() === decade.text}\"\n @click.stop=\"yearSelect(decade.text)\"\n >{{decade.text}}</span>\n </template>\n </div>\n </div>\n </div>\n </div>\n </div>"; |
7957 | 7959 |
|
7958 | 7960 | /***/ }),
|
7959 | 7961 | /* 239 */
|
|
11102 | 11104 | // <slot name="title">{{title}}</slot>
|
11103 | 11105 | // </h3>
|
11104 | 11106 | // <div class="popover-content">
|
11105 |
| - // <slot name="content" v-html="content"></slot> |
| 11107 | + // <slot name="content">{{{content}}}</slot> |
11106 | 11108 | // </div>
|
11107 | 11109 | // </div>
|
11108 | 11110 | // </span>
|
|
11114 | 11116 | /* 299 */
|
11115 | 11117 | /***/ (function(module, exports) {
|
11116 | 11118 |
|
11117 |
| - module.exports = "<span v-el:trigger>\n <slot></slot>\n <div v-el:popover v-if=\"show\"\n :class=\"['popover',placement]\"\n :transition=\"effect\"\n >\n <div class=\"arrow\"></div>\n <h3 class=\"popover-title\" v-if=\"title\">\n <slot name=\"title\">{{title}}</slot>\n </h3>\n <div class=\"popover-content\">\n <slot name=\"content\" v-html=\"content\"></slot>\n </div>\n </div>\n </span>"; |
| 11119 | + module.exports = "<span v-el:trigger>\n <slot></slot>\n <div v-el:popover v-if=\"show\"\n :class=\"['popover',placement]\"\n :transition=\"effect\"\n >\n <div class=\"arrow\"></div>\n <h3 class=\"popover-title\" v-if=\"title\">\n <slot name=\"title\">{{title}}</slot>\n </h3>\n <div class=\"popover-content\">\n <slot name=\"content\">{{{content}}}</slot>\n </div>\n </div>\n </span>"; |
11118 | 11120 |
|
11119 | 11121 | /***/ }),
|
11120 | 11122 | /* 300 */
|
|
0 commit comments