From 292eb6507d80b21931afe6cd77d1f46dd4397553 Mon Sep 17 00:00:00 2001 From: DvShu Date: Wed, 3 Jul 2024 09:51:02 +0000 Subject: [PATCH] deploy: 8af1da947d1d8ae3ba2433ff377926f17cd5566f --- 404.html | 2 +- ....md.Bk6PBMp8.js => components_directives.md.CVKfuD6p.js} | 2 +- ...p8.lean.js => components_directives.md.CVKfuD6p.lean.js} | 2 +- components/button.html | 2 +- components/card.html | 2 +- components/checkbox.html | 2 +- components/collapse.html | 2 +- components/container.html | 2 +- components/descriptionpanel.html | 2 +- components/directives.html | 6 +++--- components/form.html | 2 +- components/icon.html | 2 +- components/image.html | 2 +- components/input.html | 2 +- components/loading.html | 2 +- components/message.html | 2 +- components/polygon.html | 2 +- components/progress.html | 2 +- components/qrcode.html | 2 +- components/radio.html | 2 +- components/shadow.html | 2 +- components/switch.html | 2 +- components/tabbar.html | 2 +- components/table.html | 2 +- components/tabs.html | 2 +- components/tooltip.html | 2 +- css-util.html | 2 +- hashmap.json | 2 +- index.html | 2 +- reset.html | 2 +- usage.html | 2 +- 31 files changed, 33 insertions(+), 33 deletions(-) rename assets/{components_directives.md.Bk6PBMp8.js => components_directives.md.CVKfuD6p.js} (93%) rename assets/{components_directives.md.Bk6PBMp8.lean.js => components_directives.md.CVKfuD6p.lean.js} (85%) diff --git a/404.html b/404.html index 4225529d..6bf0d978 100644 --- a/404.html +++ b/404.html @@ -16,7 +16,7 @@
- + \ No newline at end of file diff --git a/assets/components_directives.md.Bk6PBMp8.js b/assets/components_directives.md.CVKfuD6p.js similarity index 93% rename from assets/components_directives.md.Bk6PBMp8.js rename to assets/components_directives.md.CVKfuD6p.js index c5ff738d..8fe18920 100644 --- a/assets/components_directives.md.Bk6PBMp8.js +++ b/assets/components_directives.md.CVKfuD6p.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,ab as e}from"./chunks/framework.CsJhXCE_.js";const u=JSON.parse('{"title":"Directives 指令","description":"","frontmatter":{},"headers":[],"relativePath":"components/directives.md","filePath":"components/directives.md","lastUpdated":1713346936000}'),t={name:"components/directives.md"},n=e('

Directives 指令

提供了一些常用的自定义指令

1. vClickoutside

点击元素外事件, 常用于需要点击元素外,关闭某个弹窗; 例如: SelectTooltip

ts
function handleOutside() {\n  console.log('点击了元素外');\n}
template
<nt-input placeholder="输入过滤" v-clickoutside="handleOutside"></nt-input>
',5),l=[n];function p(d,h,r,c,o,k){return a(),i("div",null,l)}const g=s(t,[["render",p]]);export{u as __pageData,g as default}; +import{_ as s,c as i,o as a,ab as e}from"./chunks/framework.CsJhXCE_.js";const u=JSON.parse('{"title":"Directives 指令","description":"","frontmatter":{},"headers":[],"relativePath":"components/directives.md","filePath":"components/directives.md","lastUpdated":1713346936000}'),t={name:"components/directives.md"},n=e('

Directives 指令

提供了一些常用的自定义指令

1. vClickoutside

点击元素外事件, 常用于需要点击元素外,关闭某个弹窗; 例如: SelectTooltip

ts
function handleOutside() {\n  console.log('点击了元素外');\n}
template
<nt-input placeholder="输入过滤" v-clickoutside="handleOutside"></nt-input>
',5),l=[n];function p(d,h,r,c,k,o){return a(),i("div",null,l)}const g=s(t,[["render",p]]);export{u as __pageData,g as default}; diff --git a/assets/components_directives.md.Bk6PBMp8.lean.js b/assets/components_directives.md.CVKfuD6p.lean.js similarity index 85% rename from assets/components_directives.md.Bk6PBMp8.lean.js rename to assets/components_directives.md.CVKfuD6p.lean.js index 53240aae..9339be76 100644 --- a/assets/components_directives.md.Bk6PBMp8.lean.js +++ b/assets/components_directives.md.CVKfuD6p.lean.js @@ -1 +1 @@ -import{_ as s,c as i,o as a,ab as e}from"./chunks/framework.CsJhXCE_.js";const u=JSON.parse('{"title":"Directives 指令","description":"","frontmatter":{},"headers":[],"relativePath":"components/directives.md","filePath":"components/directives.md","lastUpdated":1713346936000}'),t={name:"components/directives.md"},n=e("",5),l=[n];function p(d,h,r,c,o,k){return a(),i("div",null,l)}const g=s(t,[["render",p]]);export{u as __pageData,g as default}; +import{_ as s,c as i,o as a,ab as e}from"./chunks/framework.CsJhXCE_.js";const u=JSON.parse('{"title":"Directives 指令","description":"","frontmatter":{},"headers":[],"relativePath":"components/directives.md","filePath":"components/directives.md","lastUpdated":1713346936000}'),t={name:"components/directives.md"},n=e("",5),l=[n];function p(d,h,r,c,k,o){return a(),i("div",null,l)}const g=s(t,[["render",p]]);export{u as __pageData,g as default}; diff --git a/components/button.html b/components/button.html index ec1527cd..8f4e4fb5 100644 --- a/components/button.html +++ b/components/button.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/card.html b/components/card.html index adac06f9..ab6222b3 100644 --- a/components/card.html +++ b/components/card.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/checkbox.html b/components/checkbox.html index 5e4d3021..eda1a19b 100644 --- a/components/checkbox.html +++ b/components/checkbox.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/collapse.html b/components/collapse.html index 3548064d..1c1b65d6 100644 --- a/components/collapse.html +++ b/components/collapse.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/container.html b/components/container.html index 772d2690..75efa6ff 100644 --- a/components/container.html +++ b/components/container.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/descriptionpanel.html b/components/descriptionpanel.html index 6c156672..b2f4bc90 100644 --- a/components/descriptionpanel.html +++ b/components/descriptionpanel.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/directives.html b/components/directives.html index bc60739f..804d94c5 100644 --- a/components/directives.html +++ b/components/directives.html @@ -12,16 +12,16 @@ - + -
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/image.html b/components/image.html index 870f551d..6883f926 100644 --- a/components/image.html +++ b/components/image.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/input.html b/components/input.html index b035f6b8..1b35a289 100644 --- a/components/input.html +++ b/components/input.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/loading.html b/components/loading.html index 99ec5aa2..2234d2a4 100644 --- a/components/loading.html +++ b/components/loading.html @@ -26,7 +26,7 @@ const loadingInstance2 = NtLoading.open(); loadingInstance2.close();

API

配置项

字段说明类型默认值
to加载条的挂载位置;可传入一个 DOM 对象或字符串; 若传入字符串,则会将其作为参数传入 document.querySelector 以获取到对应 DOM 节点stringHTMLElementRef<HTMLElement>document.body
fullscreen是否为全屏加载booleantrue
unlock是否取消禁止页面滚动booleanfalse
text显示在加载图标下方的加载文案; 通过传递空字符串可以用于不显示文本string加载中……
bar加载条是否显示为进度条样式booleanfalse
background遮罩层背景色string-

指定

字段说明类型
v-loading是否显示加载组件boolean
nt-loading-text显示在加载图标下方的加载文案string
nt-loading-background遮罩层背景色string
- + \ No newline at end of file diff --git a/components/message.html b/components/message.html index 22065e85..77f301ef 100644 --- a/components/message.html +++ b/components/message.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/polygon.html b/components/polygon.html index af2245d1..8e786910 100644 --- a/components/polygon.html +++ b/components/polygon.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/progress.html b/components/progress.html index dd63f7fe..739682b7 100644 --- a/components/progress.html +++ b/components/progress.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/qrcode.html b/components/qrcode.html index a2f3da19..f0925ea7 100644 --- a/components/qrcode.html +++ b/components/qrcode.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/radio.html b/components/radio.html index 88874991..3997f89a 100644 --- a/components/radio.html +++ b/components/radio.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/shadow.html b/components/shadow.html index 26d11d1f..e3e2e213 100644 --- a/components/shadow.html +++ b/components/shadow.html @@ -23,7 +23,7 @@ Hello World!!! </div> </nt-shadow>

API

Shadow Props

参数说明类型默认值
shadow-class传递给 shadow 主体的样式,而不是顶层样式string-
transparentshadow 的背景是否是透明booleanfalse

Shadow Events

事件说明
shadow-click点击 shadow 触发
- + \ No newline at end of file diff --git a/components/switch.html b/components/switch.html index 2f5eab6d..5d2c585e 100644 --- a/components/switch.html +++ b/components/switch.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/tabbar.html b/components/tabbar.html index c8f5a7b1..9d69c32f 100644 --- a/components/tabbar.html +++ b/components/tabbar.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/table.html b/components/table.html index dd2a0965..bd2e7bd2 100644 --- a/components/table.html +++ b/components/table.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/components/tabs.html b/components/tabs.html index c740e8e4..5bc15b93 100644 --- a/components/tabs.html +++ b/components/tabs.html @@ -24,7 +24,7 @@ <!-- 内容区域--> </div> </div> - + \ No newline at end of file diff --git a/components/tooltip.html b/components/tooltip.html index 5699f30e..9ecfc278 100644 --- a/components/tooltip.html +++ b/components/tooltip.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/css-util.html b/css-util.html index 8696eeef..75ddd934 100644 --- a/css-util.html +++ b/css-util.html @@ -19,7 +19,7 @@
Skip to content

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 596235ba..fc09409f 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"components_card.md":"H6PkhXUX","components_button.md":"DbfCiMZ0","components_checkbox.md":"CvBZnr6Y","components_container.md":"DPuHRK3e","components_input.md":"C5C3YF0g","components_switch.md":"sn6TZbR6","components_tabbar.md":"oBlqZQfn","css-util.md":"B2MgVL1m","index.md":"Bar9Pr5h","components_tooltip.md":"kWf13fBc","components_table.md":"DRYegwFK","components_tabs.md":"DinJU0U-","reset.md":"gC62Tlli","usage.md":"BZz8MHsf","components_directives.md":"Bk6PBMp8","components_icon.md":"a5616xTr","components_collapse.md":"CC8xHJNC","components_message.md":"Dj9iOadK","components_polygon.md":"7GXyeaEf","components_image.md":"DsbngY1o","components_shadow.md":"D15v6Y7y","components_loading.md":"BviUqwEL","components_form.md":"r8yG6c9_","components_progress.md":"C7nxbGc5","components_radio.md":"B6yIhYjR","components_descriptionpanel.md":"Cz3EtxEg","components_qrcode.md":"CZh45zSj"} +{"components_container.md":"DPuHRK3e","components_form.md":"r8yG6c9_","components_image.md":"DsbngY1o","components_directives.md":"CVKfuD6p","components_input.md":"C5C3YF0g","components_card.md":"H6PkhXUX","components_icon.md":"a5616xTr","components_message.md":"Dj9iOadK","components_loading.md":"BviUqwEL","components_polygon.md":"7GXyeaEf","components_shadow.md":"D15v6Y7y","components_switch.md":"sn6TZbR6","reset.md":"gC62Tlli","components_table.md":"DRYegwFK","usage.md":"BZz8MHsf","components_collapse.md":"CC8xHJNC","components_tabs.md":"DinJU0U-","index.md":"Bar9Pr5h","components_tabbar.md":"oBlqZQfn","components_qrcode.md":"CZh45zSj","components_button.md":"DbfCiMZ0","components_progress.md":"C7nxbGc5","components_radio.md":"B6yIhYjR","components_descriptionpanel.md":"Cz3EtxEg","css-util.md":"B2MgVL1m","components_tooltip.md":"kWf13fBc","components_checkbox.md":"CvBZnr6Y"} diff --git a/index.html b/index.html index 1d17fd6a..0848d2fc 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@
Skip to content

NeatUi

Vue3 的 UI 组件库

轻量、样式可控、TypeScript

Released under the MulanPSL2 License.

- + \ No newline at end of file diff --git a/reset.html b/reset.html index 824385c1..abde3e5e 100644 --- a/reset.html +++ b/reset.html @@ -67,7 +67,7 @@ line-height: 1.4; color: #333; } - + \ No newline at end of file diff --git a/usage.html b/usage.html index 738e03ad..34b6da92 100644 --- a/usage.html +++ b/usage.html @@ -57,7 +57,7 @@ }

通过上面就能修改,当然也能在侧边栏的样式的地方,手动覆盖变量也能实现

修改组件样式

组件所有的样式都基本只有一层,所以如果要修改样式,在需要套一个层级就能修改

比如想修改 Button 样式, 只需要给根节点添加一个样式,例如: #app;然后就能修改样式,如下:

css
#app .nt-button {
   background-color: red;
 }

浏览器兼容性

所有的组件尽量保证 ios 能够兼容到 11

- + \ No newline at end of file