File tree Expand file tree Collapse file tree 8 files changed +22
-21
lines changed
form/__tests__/__snapshots__
locale-provider/__tests__/__snapshots__
popover/__tests__/__snapshots__
time-picker/__tests__/__snapshots__ Expand file tree Collapse file tree 8 files changed +22
-21
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ exports[`renders ./antdv-demo/docs/form/demo/time-related-controls.vue correctly
500
500
<div class = " ant-row ant-form-item" >
501
501
<div class = " ant-col ant-col-xs-24 ant-col-sm-8 ant-form-item-label" ><label for = " time_related_controls_time-picker" title = " TimePicker" class = " ant-form-item-required" >TimePicker</label ></div >
502
502
<div class = " ant-col ant-col-xs-24 ant-col-sm-16 ant-form-item-control-wrapper" >
503
- <div class = " ant-form-item-control" ><span class = " ant-form-item-children" ><span class = " ant-time-picker" data-__meta = " [object Object]" data-__field = " [object Object]" id = " time_related_controls_time-picker" ><input type = " text" placeholder = " Select time" class = " ant-time-picker-input" ><span class = " ant-time-picker-icon" ><i aria-label = " icon: clock-circle" class = " anticon anticon-clock-circle ant-time-picker-clock-icon" ><svg viewBox = " 64 64 896 896" data-icon = " clock-circle" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " ><path d = " M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" ></path ><path d = " M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" ></path ></svg ></i ></span ></span ></span >
503
+ <div class = " ant-form-item-control" ><span class = " ant-form-item-children" ><span class = " ant-time-picker" data-__meta = " [object Object]" data-__field = " [object Object]" id = " time_related_controls_time-picker" ><input type = " text" placeholder = " Select time" readonly = " true " class = " ant-time-picker-input" ><span class = " ant-time-picker-icon" ><i aria-label = " icon: clock-circle" class = " anticon anticon-clock-circle ant-time-picker-clock-icon" ><svg viewBox = " 64 64 896 896" data-icon = " clock-circle" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " ><path d = " M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" ></path ><path d = " M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" ></path ></svg ></i ></span ></span ></span >
504
504
<!---->
505
505
</div >
506
506
</div >
@@ -735,7 +735,7 @@ exports[`renders ./antdv-demo/docs/form/demo/validate-static.vue correctly 1`] =
735
735
<div class = " ant-row ant-form-item" >
736
736
<div class = " ant-col ant-col-xs-24 ant-col-sm-5 ant-form-item-label" ><label title = " Warning" class = " " >Warning</label ></div >
737
737
<div class = " ant-col ant-col-xs-24 ant-col-sm-12 ant-form-item-control-wrapper" >
738
- <div class="ant-form-item-control has-feedback has-warning"><span class="ant-form-item-children"><span class="ant-time-picker" style="width: 100%;"><input type="text" placeholder="Select time" class="ant-time-picker-input"><span class="ant-time-picker-icon"><i aria-label="icon: clock-circle" class="anticon anticon-clock-circle ant-time-picker-clock-icon"><svg viewBox="64 64 896 896" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></i></span></span><span class="ant-form-item-children-icon"><i aria-label="icon: exclamation-circle" class="anticon anticon-exclamation-circle"><svg viewBox="64 64 896 896" data-icon="exclamation-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"></path></svg></i></span></span>
738
+ <div class="ant-form-item-control has-feedback has-warning"><span class="ant-form-item-children"><span class="ant-time-picker" style="width: 100%;"><input type="text" placeholder="Select time" readonly="true" class="ant-time-picker-input"><span class="ant-time-picker-icon"><i aria-label="icon: clock-circle" class="anticon anticon-clock-circle ant-time-picker-clock-icon"><svg viewBox="64 64 896 896" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></i></span></span><span class="ant-form-item-children-icon"><i aria-label="icon: exclamation-circle" class="anticon anticon-exclamation-circle"><svg viewBox="64 64 896 896" data-icon="exclamation-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"></path></svg></i></span></span>
739
739
<!---->
740
740
</div >
741
741
</div >
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ exports[`renders ./antdv-demo/docs/locale-provider/demo/all.md correctly 1`] = `
43
43
</div >
44
44
</div ><span unselectable = " on" class = " ant-select-arrow" style = " user-select: none;" ><i aria-label = " icon: down" class = " anticon anticon-down ant-select-arrow-icon" ><svg viewBox = " 64 64 896 896" data-icon = " down" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" focusable = " false" class = " " ><path d = " M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" ></path ></svg ></i ></span >
45
45
</div >
46
- </div> <span class="ant-calendar-picker"><div class=""><input readonly="true" placeholder="Select date" class="ant-calendar-picker-input ant-input"><i aria-label="icon: calendar" class="anticon anticon-calendar ant-calendar-picker-icon"><svg viewBox="64 64 896 896" data-icon="calendar" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"></path></svg></i></div></span> <span class="ant-time-picker"><input type="text" placeholder="Select time" class="ant-time-picker-input"><span class="ant-time-picker-icon"><i aria-label="icon: clock-circle" class="anticon anticon-clock-circle ant-time-picker-clock-icon"><svg viewBox="64 64 896 896" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></i></span></span> <span tabindex="0" class="ant-calendar-picker" style="width: 200px;"><span class="ant-calendar-picker-input ant-input"><input readonly="true" placeholder="Start date" tabindex="-1" class="ant-calendar-range-picker-input"><span class="ant-calendar-range-picker-separator"> ~ </span><input readonly="true" placeholder="End date" tabindex="-1" class="ant-calendar-range-picker-input"><span class="ant-calendar-picker-icon"></span></span></span>
46
+ </div> <span class="ant-calendar-picker"><div class=""><input readonly="true" placeholder="Select date" class="ant-calendar-picker-input ant-input"><i aria-label="icon: calendar" class="anticon anticon-calendar ant-calendar-picker-icon"><svg viewBox="64 64 896 896" data-icon="calendar" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"></path></svg></i></div></span> <span class="ant-time-picker"><input type="text" placeholder="Select time" readonly="true" class="ant-time-picker-input"><span class="ant-time-picker-icon"><i aria-label="icon: clock-circle" class="anticon anticon-clock-circle ant-time-picker-clock-icon"><svg viewBox="64 64 896 896" data-icon="clock-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"></path></svg></i></span></span> <span tabindex="0" class="ant-calendar-picker" style="width: 200px;"><span class="ant-calendar-picker-input ant-input"><input readonly="true" placeholder="Start date" tabindex="-1" class="ant-calendar-range-picker-input"><span class="ant-calendar-range-picker-separator"> ~ </span><input readonly="true" placeholder="End date" tabindex="-1" class="ant-calendar-range-picker-input"><span class="ant-calendar-picker-icon"></span></span></span>
47
47
</div >
48
48
<div class = " example" ><button type = " button" class = " ant-btn ant-btn-primary" ><span >Show Modal</span ></button > <button type = " button" class = " ant-btn" ><span >Show info</span ></button > <button type = " button" class = " ant-btn" ><span >Show confirm</span ></button > <a href = " #" class = " " >Click to confirm</a ></div >
49
49
<div classname = " example" >
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ exports[`renders ./antdv-demo/docs/popover/demo/basic.md correctly 1`] = `<butto
6
6
7
7
exports [` renders ./antdv-demo/docs/popover/demo/control.md correctly 1` ] = ` <button type = " button" class = " ant-btn ant-btn-primary" ><span >Click me</span ></button >` ;
8
8
9
- exports [` renders ./antdv-demo/docs/popover/demo/hover-with-click.md correctly 1` ] = ` <button type = " button" class = " ant-btn" style = " width: 500px; " ><span >Hover and click / 悬停并单击</span ></button >` ;
9
+ exports [` renders ./antdv-demo/docs/popover/demo/hover-with-click.md correctly 1` ] = ` <button type = " button" class = " ant-btn" ><span >Hover and click / 悬停并单击</span ></button >` ;
10
10
11
11
exports [` renders ./antdv-demo/docs/popover/demo/placement.md correctly 1` ] = `
12
12
<div id = " components-popover-demo-placement" >
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import defaultLocale from '../locale-provider/default';
20
20
import warning from '../_util/warning' ;
21
21
import scrollTo from '../_util/scrollTo' ;
22
22
import TransButton from '../_util/transButton' ;
23
+ import Vue from 'vue' ;
23
24
24
25
function noop ( ) { }
25
26
@@ -142,7 +143,7 @@ export default {
142
143
) ;
143
144
this . CheckboxPropsCache = { } ;
144
145
145
- this . store = this . $root . constructor . observable ( {
146
+ this . store = ( this . $root . constructor . observable || Vue . observable ) ( {
146
147
selectedRowKeys : getRowSelection ( this . $props ) . selectedRowKeys || [ ] ,
147
148
selectionDirty : false ,
148
149
} ) ;
You can’t perform that action at this time.
0 commit comments