From f26f29d84e0a68831a6af14dab3eec5500496d2e Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 28 五月 2025 16:48:52 +0800 Subject: [PATCH] 初始化项目 --- uni_modules/wu-ui-tools/libs/css/variable.scss | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 111 insertions(+), 0 deletions(-) diff --git a/uni_modules/wu-ui-tools/libs/css/variable.scss b/uni_modules/wu-ui-tools/libs/css/variable.scss new file mode 100644 index 0000000..35cbdfe --- /dev/null +++ b/uni_modules/wu-ui-tools/libs/css/variable.scss @@ -0,0 +1,111 @@ +// 瓒呭嚭琛屾暟锛岃嚜鍔ㄦ樉绀鸿灏剧渷鐣ュ彿锛屾渶澶�5琛� +// 鏉ヨ嚜uvui鐨勬俯棣ㄦ彁绀猴細褰撴偍鍦ㄦ帶鍒跺彴鐪嬪埌姝ゆ姤閿欙紝璇存槑闇�瑕佸湪App.vue鐨剆tyle鏍囩鍔犱笂銆恖ang="scss"銆� +@if variable-exists(show-lines) { + @for $i from 1 through 5 { + .wu-line-#{$i} { + /* #ifdef APP-NVUE */ + // nvue涓嬶紝鍙互鐩存帴浣跨敤lines灞炴�э紝杩欐槸weex鐗规湁鏍峰紡 + lines: $i; + text-overflow: ellipsis; + overflow: hidden; + flex: 1; + /* #endif */ + + /* #ifndef APP-NVUE */ + // vue涓嬶紝鍗曡鍜屽琛屾樉绀虹渷鐣ュ彿闇�瑕佸崟鐙鐞� + @if $i == '1' { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } @else { + display: -webkit-box!important; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; + -webkit-line-clamp: $i; + -webkit-box-orient: vertical!important; + } + /* #endif */ + } + } +} +@if variable-exists(show-border) { + $wu-bordercolor: #dadbde; + @if variable-exists(wu-border-color) { + $wu-bordercolor: $wu-border-color; + } + // 姝ゅ鍔犱笂!important骞堕潪闅忔剰涔辩敤锛岃�屾槸鍥犱负鐩墠*.nvue椤甸潰缂栬瘧鍒癏5鏃讹紝 + // App.vue鐨勬牱寮忎細琚玼ni-app鐨剉iew鍏冪礌鐨勮嚜甯order灞炴�ц鐩栵紝瀵艰嚧鏃犳晥 + // 缁间笂锛岃繖鏄痷ni-app鐨勭己闄峰鑷存垜浠负浜嗗绔吋瀹癸紝鑰屽繀椤昏鍔犱笂!important + // 绉诲姩绔吋瀹规�ц緝濂斤紝鐩存帴浣跨敤0.5px鍘诲疄鐜扮粏杈规锛屼笉浣跨敤浼厓绱犲舰寮忓疄鐜� + @if variable-exists(show-border-surround) { + .wu-border { + border-width: 0.5px!important; + border-color: $wu-bordercolor!important; + border-style: solid; + } + } + @if variable-exists(show-border-top) { + .wu-border-top { + border-top-width: 0.5px!important; + border-color: $wu-bordercolor!important; + border-top-style: solid; + } + } + @if variable-exists(show-border-left) { + .wu-border-left { + border-left-width: 0.5px!important; + border-color: $wu-bordercolor!important; + border-left-style: solid; + } + } + @if variable-exists(show-border-right) { + .wu-border-right { + border-right-width: 0.5px!important; + border-color: $wu-bordercolor!important; + border-right-style: solid; + } + } + @if variable-exists(show-border-bottom) { + .wu-border-bottom { + border-bottom-width: 0.5px!important; + border-color: $wu-bordercolor!important; + border-bottom-style: solid; + } + } + @if variable-exists(show-border-top-bottom) { + .wu-border-top-bottom { + border-top-width: 0.5px!important; + border-bottom-width: 0.5px!important; + border-color: $wu-bordercolor!important; + border-top-style: solid; + border-bottom-style: solid; + } + } +} +@if variable-exists(show-reset-button) { + // 鍘婚櫎button鐨勬墍鏈夐粯璁ゆ牱寮忥紝璁╁叾琛ㄧ幇璺熸櫘閫氱殑view銆乼ext鍏冪礌涓�鏍� + .wu-reset-button { + padding: 0; + background-color: transparent; + /* #ifndef APP-PLUS */ + font-size: inherit; + line-height: inherit; + color: inherit; + /* #endif */ + /* #ifdef APP-NVUE */ + border-width: 0; + /* #endif */ + } + + /* #ifndef APP-NVUE */ + .wu-reset-button::after { + border: none; + } + /* #endif */ +} +@if variable-exists(show-hover) { + .wu-hover-class { + opacity: 0.7; + } +} -- Gitblit v1.9.3