Skip to content

Commit 420fa42

Browse files
author
丁少雄
committed
vue1.0 update
1 parent 8789eeb commit 420fa42

File tree

7 files changed

+27
-23
lines changed

7 files changed

+27
-23
lines changed

build/build-docs.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5101,7 +5101,9 @@
51015101
// >
51025102
// <div class="tooltip-arrow"></div>
51035103
// <div class="tooltip-inner">
5104-
// <slot name="content" v-html="content"></slot>
5104+
// <slot name="content">
5105+
// {{{content}}}
5106+
// </slot>
51055107
// </div>
51065108
// </div>
51075109
// </span>
@@ -5223,7 +5225,7 @@
52235225
/* 185 */
52245226
/***/ (function(module, exports) {
52255227

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>";
52275229

52285230
/***/ }),
52295231
/* 186 */
@@ -7498,7 +7500,7 @@
74987500
// <span v-for="w in text.daysOfWeek">{{w}}</span>
74997501
// </div>
75007502
// <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>
75027504
// </div>
75037505
// </div>
75047506
// </div>
@@ -7663,8 +7665,8 @@
76637665
this.displayMonthView = true;
76647666
this.currDate = new Date(year, this.currDate.getMonth(), this.currDate.getDate());
76657667
},
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') {
76687670
return false;
76697671
} else {
76707672
this.currDate = date;
@@ -7953,7 +7955,7 @@
79537955
/* 238 */
79547956
/***/ (function(module, exports) {
79557957

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>&times;</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>&times;</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>";
79577959

79587960
/***/ }),
79597961
/* 239 */
@@ -11102,7 +11104,7 @@
1110211104
// <slot name="title">{{title}}</slot>
1110311105
// </h3>
1110411106
// <div class="popover-content">
11105-
// <slot name="content" v-html="content"></slot>
11107+
// <slot name="content">{{{content}}}</slot>
1110611108
// </div>
1110711109
// </div>
1110811110
// </span>
@@ -11114,7 +11116,7 @@
1111411116
/* 299 */
1111511117
/***/ (function(module, exports) {
1111611118

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>";
1111811120

1111911121
/***/ }),
1112011122
/* 300 */

build/build-docs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)