diff --git a/demo/debugComponents/popoverDebug.vue b/demo/debugComponents/popoverDebug.vue index 2231c485f..2bcf85be6 100644 --- a/demo/debugComponents/popoverDebug.vue +++ b/demo/debugComponents/popoverDebug.vue @@ -20,6 +20,12 @@ Out Out Out + + + LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong + diff --git a/demo/documentation/components/popover/enUS/basic.md b/demo/documentation/components/popover/enUS/basic.md new file mode 100644 index 000000000..9a4003f5b --- /dev/null +++ b/demo/documentation/components/popover/enUS/basic.md @@ -0,0 +1,11 @@ +# Basic +```html + + + Light My Fire + +``` \ No newline at end of file diff --git a/demo/documentation/components/popover/enUS/delay.md b/demo/documentation/components/popover/enUS/delay.md new file mode 100644 index 000000000..7772cda77 --- /dev/null +++ b/demo/documentation/components/popover/enUS/delay.md @@ -0,0 +1,11 @@ +# Delay +```html + + + Light My Fire + +``` diff --git a/demo/documentation/components/popover/enUS/event.md b/demo/documentation/components/popover/enUS/event.md new file mode 100644 index 000000000..b9064c0b2 --- /dev/null +++ b/demo/documentation/components/popover/enUS/event.md @@ -0,0 +1,78 @@ +# Event +```html + + + + I wish they all could be California girls + + + + + + I wish they all could be California girls + + + + + + I wish they all could be California girls + + +``` + +```js +export default { + data() { + return { + showPopover: false + }; + }, + methods: { + handleShow() { + this.$NMessage.success("show popover"); + }, + handleHide() { + this.$NMessage.success("hide popover"); + } + } +}; +``` + +```css +.n-button { + margin: 0 12px 8px 0; +} +``` \ No newline at end of file diff --git a/demo/documentation/components/popover/enUS/index.md b/demo/documentation/components/popover/enUS/index.md new file mode 100644 index 000000000..e4c54dac9 --- /dev/null +++ b/demo/documentation/components/popover/enUS/index.md @@ -0,0 +1,11 @@ +# Popover +```demo +basic +delay +no-arrow +trigger +event +placement +raw-content +width +``` \ No newline at end of file diff --git a/demo/documentation/components/popover/enUS/noArrow.md b/demo/documentation/components/popover/enUS/noArrow.md new file mode 100644 index 000000000..9815afd92 --- /dev/null +++ b/demo/documentation/components/popover/enUS/noArrow.md @@ -0,0 +1,11 @@ +# No Arrow +```html + + + Light My Fire + +``` \ No newline at end of file diff --git a/demo/documentation/components/popover/enUS/placement.md b/demo/documentation/components/popover/enUS/placement.md new file mode 100644 index 000000000..129034825 --- /dev/null +++ b/demo/documentation/components/popover/enUS/placement.md @@ -0,0 +1,139 @@ +# Placement +```html +
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+ + +
+ Oops! +
+
+
+``` + +```css +.popover-grid { + display: grid; + grid-template-columns: auto auto auto auto auto; + grid-gap: 12px; + justify-content: center; + align-items: center; +} + +.large-text { + font-size: 48px; +} +``` \ No newline at end of file diff --git a/demo/documentation/components/popover/enUS/rawContent.md b/demo/documentation/components/popover/enUS/rawContent.md new file mode 100644 index 000000000..573d2006a --- /dev/null +++ b/demo/documentation/components/popover/enUS/rawContent.md @@ -0,0 +1,22 @@ +# Raw Content +```html + + +
+ Who kicks a hole in the sky so the heaven cry over me. +
+
+``` +```js +export default { + data() { + return {} + } +} +``` \ No newline at end of file diff --git a/demo/documentation/components/popover/enUS/trigger.md b/demo/documentation/components/popover/enUS/trigger.md new file mode 100644 index 000000000..fbc0d48fa --- /dev/null +++ b/demo/documentation/components/popover/enUS/trigger.md @@ -0,0 +1,47 @@ +# Trigger +```html + + + + I wish they all could be California girls + + + + + + I wish they all could be California girls + + + + + + I wish they all could be California girls + + +``` +```js +export default { + data() { + return { + showPopover: false + }; + } +}; +``` +```css +.n-button { + margin: 0 12px 8px 0; +} +``` \ No newline at end of file diff --git a/demo/documentation/components/popover/enUS/width.md b/demo/documentation/components/popover/enUS/width.md new file mode 100644 index 000000000..fdb9cde4e --- /dev/null +++ b/demo/documentation/components/popover/enUS/width.md @@ -0,0 +1,11 @@ +# Width +```html + + + Light My Fire + +``` \ No newline at end of file diff --git a/demo/documentation/components/popover/index.entry b/demo/documentation/components/popover/index.entry new file mode 100644 index 000000000..e69de29bb diff --git a/demo/documentation/components/popover/zhCN/index.md b/demo/documentation/components/popover/zhCN/index.md new file mode 100644 index 000000000..e69de29bb diff --git a/demo/documentation/components/tagDemo/basicUsage.demo.vue b/demo/documentation/components/tagDemo/basicUsage.demo.vue deleted file mode 100644 index 6c609717b..000000000 --- a/demo/documentation/components/tagDemo/basicUsage.demo.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - diff --git a/demo/documentation/components/tagDemo/index.vue b/demo/documentation/components/tagDemo/index.vue deleted file mode 100644 index fa6c8f775..000000000 --- a/demo/documentation/components/tagDemo/index.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - diff --git a/demo/header.vue b/demo/header.vue index b886e2a77..f99d420d0 100644 --- a/demo/header.vue +++ b/demo/header.vue @@ -19,9 +19,10 @@
@@ -78,6 +79,9 @@ export default { } }, methods: { + handleThemeChange (theme) { + this.NApp.$parent.theme = theme + }, handleLangInput (lang) { this.$emit('lang-change', lang) } @@ -88,7 +92,7 @@ export default {