code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <script> var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) document.write( '<meta name="viewport" content="width=device-width...
2202_75391616/ui
index.html
HTML
unknown
672
// #ifndef VUE3 import Vue from 'vue' import App from './App' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' import App from './App.vue' export function createApp() { const app = createSSRApp(App) ...
2202_75391616/ui
main.js
JavaScript
unknown
352
<template> <view class="container"> <view class="apps-grid"> <view class="app-card" v-for="app in apps" :key="app.name" @click="navigateTo(app.path)"> <view class="app-icon-container"> <image :src="app.icon" mode="aspectFit" class="app-icon"></image> </view> <text class="app-name">{{app.name}}</t...
2202_75391616/ui
pages/apps/apps.vue
Vue
unknown
1,794
<template> <view class="container"> <view class="title">可抢工单列表</view> <view v-for="(order, index) in orderList" :key="order.id" class="order-card"> <view class="order-row"> <text class="label">工单编号:</text>{{ order.code }} </view> <view class="order-row"> <text class="label">地...
2202_75391616/ui
pages/index/index.vue
Vue
unknown
3,666
<template> <view class="container"> <!-- 头部信息 --> <uni-section title="个人信息" type="line"> <uni-list> <uni-list-item title="姓名" :rightText="userInfo.name" showArrow></uni-list-item> <uni-list-item title="手机号" :rightText="userInfo.phone" showArrow @click="showPhoneDialog"></uni-list-item> ...
2202_75391616/ui
pages/me/me.vue
Vue
unknown
3,042
<template> <view class="page-container"> <!-- 固定顶部选择器 --> <view class="fixed-header"> <view class="ordertype-select"> <uni-section title="工单类型" type="line"> <uni-data-select v-model="value" :localdata="range" @change="change" :clear="false" class="type-selector" >...
2202_75391616/ui
pages/order/order.vue
Vue
unknown
2,769
@font-face { font-family: "customicons"; /* Project id 2878519 */ src:url('/static/customicons.ttf') format('truetype'); } .customicons { font-family: "customicons" !important; } .youxi:before { content: "\e60e"; } .wenjian:before { content: "\e60f"; } .zhuanfa:before { content: "\e610"; }
2202_75391616/ui
static/customicons.css
CSS
unknown
307
@import '@/uni_modules/uni-scss/variables.scss';
2202_75391616/ui
uni.scss
SCSS
unknown
48
<template> <view class="uni-badge--x"> <slot /> <text v-if="text" :class="classNames" :style="[positionStyle, customStyle, dotStyle]" class="uni-badge" @click="onClick()">{{displayValue}}</text> </view> </template> <script> /** * Badge 数字角标 * @description 数字角标一般和其它控件(列表、9宫格等)配合使用,用于进行数量提示,默认为实心灰色背景 * @...
2202_75391616/ui
uni_modules/uni-badge/components/uni-badge/uni-badge.vue
Vue
unknown
5,483
<template> <view class="uni-breadcrumb"> <slot /> </view> </template> <script> /** * Breadcrumb 面包屑导航父组件 * @description 显示当前页面的路径,快速返回之前的任意页面 * @tutorial https://ext.dcloud.net.cn/plugin?id=xxx * @property {String} separator 分隔符,默认为斜杠'/' * @property {String} separatorClass 图标分隔符 class */ export defaul...
2202_75391616/ui
uni_modules/uni-breadcrumb/components/uni-breadcrumb/uni-breadcrumb.vue
Vue
unknown
822
<template> <view class="uni-breadcrumb-item"> <view :class="{ 'uni-breadcrumb-item--slot': true, 'uni-breadcrumb-item--slot-link': to && currentPage !== to }" @click="navTo"> <slot /> </view> <i v-if="separatorClass" class="uni-breadcrumb-item--separator" :class="separatorClass" /> <text v-else cla...
2202_75391616/ui
uni_modules/uni-breadcrumb/components/uni-breadcrumb-item/uni-breadcrumb-item.vue
Vue
unknown
2,305
/** * @1900-2100区间内的公历、农历互转 * @charset UTF-8 * @github https://github.com/jjonline/calendar.js * @Author Jea杨(JJonline@JJonline.Cn) * @Time 2014-7-21 * @Time 2016-8-13 Fixed 2033hex、Attribution Annals * @Time 2016-9-25 Fixed lunar LeapMonth Param Bug * @Time 2017-7-24 Fixed use getTerm Func Param Error.us...
2202_75391616/ui
uni_modules/uni-calendar/components/uni-calendar/calendar.js
JavaScript
unknown
24,849
import en from './en.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-calendar/components/uni-calendar/i18n/index.js
JavaScript
unknown
162
<template> <view class="uni-calendar-item__weeks-box" :class="{ 'uni-calendar-item--disable':weeks.disable, 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay, 'uni-calendar-item--checked':(calendar.fullDate === weeks.fullDate && !weeks.isDay) , 'uni-calendar-item--before-checked':w...
2202_75391616/ui
uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
Vue
unknown
5,445
<template> <view class="uni-calendar"> <view v-if="!insert&&show" class="uni-calendar__mask" :class="{'uni-calendar--mask-show':aniMaskShow}" @click="clean"></view> <view v-if="insert || show" class="uni-calendar__content" :class="{'uni-calendar--fixed':!insert,'uni-calendar--ani-show':aniMaskShow}"> <view v-if...
2202_75391616/ui
uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
Vue
unknown
13,205
import CALENDAR from './calendar.js' class Calendar { constructor({ date, selected, startDate, endDate, range } = {}) { // 当前日期 this.date = this.getDate(new Date()) // 当前初入日期 // 打点信息 this.selected = selected || []; // 范围开始 this.startDate = startDate // 范围结束 this.endDate = endDate this.ran...
2202_75391616/ui
uni_modules/uni-calendar/components/uni-calendar/util.js
JavaScript
unknown
8,931
<template> <view class="uni-card" :class="{ 'uni-card--full': isFull, 'uni-card--shadow': isShadow,'uni-card--border':border}" :style="{'margin':isFull?0:margin,'padding':spacing,'box-shadow':isShadow?shadow:''}"> <!-- 封面 --> <slot name="cover"> <view v-if="cover" class="uni-card__cover"> <image class="un...
2202_75391616/ui
uni_modules/uni-card/components/uni-card/uni-card.vue
Vue
unknown
6,362
<template> <view class="uni-collapse"> <slot /> </view> </template> <script> /** * Collapse 折叠面板 * @description 展示可以折叠 / 展开的内容区域 * @tutorial https://ext.dcloud.net.cn/plugin?id=23 * @property {String|Array} value 当前激活面板改变时触发(如果是手风琴模式,参数类型为string,否则为array) * @property {Boolean} accordion = [true|false] 是否...
2202_75391616/ui
uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue
Vue
unknown
3,358
<template> <view class="uni-collapse-item"> <!-- onClick(!isOpen) --> <view @click="onClick(!isOpen)" class="uni-collapse-item__title" :class="{'is-open':isOpen &&titleBorder === 'auto' ,'uni-collapse-item-border':titleBorder !== 'none'}"> <view class="uni-collapse-item__title-wrap"> <slot name="title"> ...
2202_75391616/ui
uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue
Vue
unknown
9,003
<template> <view class="uni-combox" :class="border ? '' : 'uni-combox__no-border'"> <view v-if="label" class="uni-combox__label" :style="labelStyle"> <text>{{label}}</text> </view> <view class="uni-combox__input-box"> <input class="uni-combox__input" type="text" :placeholder="placeholder" placeholder-c...
2202_75391616/ui
uni_modules/uni-combox/components/uni-combox/uni-combox.vue
Vue
unknown
5,806
import en from './en.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-countdown/components/uni-countdown/i18n/index.js
JavaScript
unknown
162
<template> <view class="uni-countdown"> <text v-if="showDay" :style="[timeStyle]" class="uni-countdown__number">{{ d }}</text> <text v-if="showDay" :style="[splitorStyle]" class="uni-countdown__splitor">{{dayText}}</text> <text v-if="showHour" :style="[timeStyle]" class="uni-countdown__number">{{ h }}</text> <...
2202_75391616/ui
uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue
Vue
unknown
6,506
<template> <view class="uni-data-checklist" :style="{'margin-top':isTop+'px'}"> <template v-if="!isLocal"> <view class="uni-data-loading"> <uni-load-more v-if="!mixinDatacomErrorMessage" status="loading" iconType="snow" :iconSize="18" :content-text="contentText"></uni-load-more> <text v-else>{{mixinD...
2202_75391616/ui
uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue
Vue
unknown
20,446
// #ifdef H5 export default { name: 'Keypress', props: { disable: { type: Boolean, default: false } }, mounted () { const keyNames = { esc: ['Esc', 'Escape'], tab: 'Tab', enter: 'Enter', space: [' ', 'Spacebar'], up: ['Up', 'ArrowUp'], left: ['Left', '...
2202_75391616/ui
uni_modules/uni-data-picker/components/uni-data-picker/keypress.js
JavaScript
unknown
1,110
<template> <view class="uni-data-tree"> <view class="uni-data-tree-input" @click="handleInput"> <slot :options="options" :data="inputSelected" :error="errorMessage"> <view class="input-value" :class="{'input-value-border': border}"> <text v-if="errorMessage" class="selected-area error-text...
2202_75391616/ui
uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue
Vue
unknown
13,919
export default { props: { localdata: { type: [Array, Object], default () { return [] } }, spaceInfo: { type: Object, default () { return {} } }, collection: { type: String, default: '' }, action: { type: String, de...
2202_75391616/ui
uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js
JavaScript
unknown
14,230
.uni-data-pickerview { position: relative; flex-direction: column; overflow: hidden; } .loading-cover { position: absolute; left: 0; top: 0; right: 0; bottom: 0; align-items: center; justify-content: center; background-color: rgba(150, 150, 150, .1); } .error { background-color: #fff; paddin...
2202_75391616/ui
uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.css
CSS
unknown
1,115
<template> <view class="uni-data-pickerview"> <scroll-view v-if="!isCloudDataList" class="selected-area" scroll-x="true"> <view class="selected-list"> <view class="selected-item" v-for="(item,index) in selected" :key="index" :class="{ ...
2202_75391616/ui
uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue
Vue
unknown
7,713
<template> <view class="uni-stat__select"> <span v-if="label" class="uni-label-text hide-on-phone">{{label + ':'}}</span> <view class="uni-stat-box" :class="{'uni-stat__actived': current}"> <view class="uni-select" :class="{'uni-select--disabled':disabled}"> <view class="uni-select__input-box" @click="toggl...
2202_75391616/ui
uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue
Vue
unknown
12,377
// yyyy-MM-dd hh:mm:ss.SSS 所有支持的类型 function pad(str, length = 2) { str += '' while (str.length < length) { str = '0' + str } return str.slice(-length) } const parser = { yyyy: (dateObj) => { return pad(dateObj.year, 4) }, yy: (dateObj) => { return pad(dateObj.year) }, MM: (dateObj) => { return pad(dat...
2202_75391616/ui
uni_modules/uni-dateformat/components/uni-dateformat/date-format.js
JavaScript
unknown
3,847
<template> <text>{{dateShow}}</text> </template> <script> import {friendlyDate} from './date-format.js' /** * Dateformat 日期格式化 * @description 日期格式化组件 * @tutorial https://ext.dcloud.net.cn/plugin?id=3279 * @property {Object|String|Number} date 日期对象/日期字符串/时间戳 * @property {String} locale 格式化使用的语言 * @value...
2202_75391616/ui
uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue
Vue
unknown
1,698
<template> <view class="uni-calendar-item__weeks-box" :class="{ 'uni-calendar-item--disable':weeks.disable, 'uni-calendar-item--before-checked-x':weeks.beforeMultiple, 'uni-calendar-item--multiple': weeks.multiple, 'uni-calendar-item--after-checked-x':weeks.afterMultiple, }" @click="choiceDate(weeks)" @mouse...
2202_75391616/ui
uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue
Vue
unknown
4,112
<template> <view class="uni-calendar" @mouseleave="leaveCale"> <view v-if="!insert && show" class="uni-calendar__mask" :class="{'uni-calendar--mask-show':aniMaskShow}" @click="maskClick"></view> <view v-if="insert || show" class="uni-calendar__content" :class="{'uni-calendar--fixed':!insert,'uni-calendar--...
2202_75391616/ui
uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue
Vue
unknown
22,102
import en from './en.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js
JavaScript
unknown
162
<template> <view class="uni-datetime-picker"> <view @click="initTimePicker"> <slot> <view class="uni-datetime-picker-timebox-pointer" :class="{'uni-datetime-picker-disabled': disabled, 'uni-datetime-picker-timebox': border}"> <text class="uni-datetime-picker-text">{{time}}</text> <view v-if="!t...
2202_75391616/ui
uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue
Vue
unknown
22,881
<template> <view class="uni-date"> <view class="uni-date-editor" @click="show"> <slot> <view class="uni-date-editor--x" :class="{'uni-date-editor--x__disabled': disabled,'uni-date-x--border': border}"> <view v-if="!isRange" class="uni-date-x uni-date-single"> <uni-icons class="icon-calendar" t...
2202_75391616/ui
uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue
Vue
unknown
28,776
class Calendar { constructor({ selected, startDate, endDate, range, } = {}) { // 当前日期 this.date = this.getDateObj(new Date()) // 当前初入日期 // 打点信息 this.selected = selected || []; // 起始时间 this.startDate = startDate // 终止时间 this.endDate = endDate // 是否范围选择 this.range = range // 多选状态 this.cl...
2202_75391616/ui
uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js
JavaScript
unknown
10,060
// #ifdef H5 export default { name: 'Keypress', props: { disable: { type: Boolean, default: false } }, mounted () { const keyNames = { esc: ['Esc', 'Escape'], tab: 'Tab', enter: 'Enter', space: [' ', 'Spacebar'], up: ['Up', 'ArrowUp'], left: ['Left', '...
2202_75391616/ui
uni_modules/uni-drawer/components/uni-drawer/keypress.js
JavaScript
unknown
1,119
<template> <view v-if="visibleSync" :class="{ 'uni-drawer--visible': showDrawer }" class="uni-drawer" @touchmove.stop.prevent="clear"> <view class="uni-drawer__mask" :class="{ 'uni-drawer__mask--visible': showDrawer && mask }" @tap="close('mask')" /> <view class="uni-drawer__content" :class="{'uni-drawer--right': ...
2202_75391616/ui
uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue
Vue
unknown
3,988
/** * @desc 函数防抖 * @param func 目标函数 * @param wait 延迟执行毫秒数 * @param immediate true - 立即执行, false - 延迟执行 */ export const debounce = function(func, wait = 1000, immediate = true) { let timer; return function() { let context = this, args = arguments; if (timer) clearTimeout(timer); if (immediate) { let c...
2202_75391616/ui
uni_modules/uni-easyinput/components/uni-easyinput/common.js
JavaScript
unknown
1,251
<template> <view class="uni-easyinput" :class="{ 'uni-easyinput-error': msg }" :style="boxStyle"> <view class="uni-easyinput__content" :class="inputContentClass" :style="inputContentStyle"> <uni-icons v-if="prefixIcon" class="content-clear-icon" :type="prefixIcon" color="#c0c4cc" @click="onClickIcon('prefix')...
2202_75391616/ui
uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
Vue
unknown
18,079
<template> <view class="uni-cursor-point"> <view v-if="popMenu && (leftBottom||rightBottom||leftTop||rightTop) && content.length > 0" :class="{ 'uni-fab--leftBottom': leftBottom, 'uni-fab--rightBottom': rightBottom, 'uni-fab--leftTop': leftTop, 'uni-fab--rightTop': rightTop }" c...
2202_75391616/ui
uni_modules/uni-fab/components/uni-fab/uni-fab.vue
Vue
unknown
11,160
import en from './en.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-fav/components/uni-fav/i18n/index.js
JavaScript
unknown
162
<template> <view :class="[circle === true || circle === 'true' ? 'uni-fav--circle' : '']" :style="[{ backgroundColor: checked ? bgColorChecked : bgColor }]" @click="onClick" class="uni-fav"> <!-- #ifdef MP-ALIPAY --> <view class="uni-fav-star" v-if="!checked && (star === true || star === 'true')"> <uni-icons ...
2202_75391616/ui
uni_modules/uni-fav/components/uni-fav/uni-fav.vue
Vue
unknown
3,847
'use strict'; const ERR_MSG_OK = 'chooseAndUploadFile:ok'; const ERR_MSG_FAIL = 'chooseAndUploadFile:fail'; function chooseImage(opts) { const { count, sizeType = ['original', 'compressed'], sourceType, extension } = opts return new Promise((resolve, reject) => { // 微信由于旧接口不再维护,针对微信小程序平台改用chooseMedia接口 ...
2202_75391616/ui
uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js
JavaScript
unknown
6,017
<template> <view class="uni-file-picker"> <view v-if="title" class="uni-file-picker__header"> <text class="file-title">{{ title }}</text> <text class="file-count">{{ filesList.length }}/{{ limitLength }}</text> </view> <upload-image v-if="fileMediatype === 'image' && showType === 'grid'" :readonly="readonl...
2202_75391616/ui
uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue
Vue
unknown
16,857
<template> <view class="uni-file-picker__files"> <view v-if="!readonly" class="files-button" @click="choose"> <slot></slot> </view> <!-- :class="{'is-text-box':showType === 'list'}" --> <view v-if="list.length > 0" class="uni-file-picker__lists is-text-box" :style="borderStyle"> <!-- ,'is-list-card':show...
2202_75391616/ui
uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue
Vue
unknown
6,690
<template> <view class="uni-file-picker__container"> <view class="file-picker__box" v-for="(item,index) in filesList" :key="index" :style="boxStyle"> <view class="file-picker__box-content" :style="borderStyle"> <image class="file-image" :src="item.url" mode="aspectFill" @click.stop="prviewImage(item,index)"><...
2202_75391616/ui
uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue
Vue
unknown
6,027
/** * 获取文件名和后缀 * @param {String} name */ export const get_file_ext = (name) => { const last_len = name.lastIndexOf('.') const len = name.length return { name: name.substring(0, last_len), ext: name.substring(last_len + 1, len) } } /** * 获取扩展名 * @param {Array} fileExtname */ export const get_extname = (fi...
2202_75391616/ui
uni_modules/uni-file-picker/components/uni-file-picker/utils.js
JavaScript
unknown
2,326
<template> <view class="uni-forms"> <form> <slot></slot> </form> </view> </template> <script> import Validator from './validate.js'; import { deepCopy, getValue, isRequiredField, setDataValue, getDataValue, realName, isRealName, rawData, isEqual } from './utils.js' // #ifndef VUE3 // 后...
2202_75391616/ui
uni_modules/uni-forms/components/uni-forms/uni-forms.vue
Vue
unknown
10,691
/** * 简单处理对象拷贝 * @param {Obejct} 被拷贝对象 * @@return {Object} 拷贝对象 */ export const deepCopy = (val) => { return JSON.parse(JSON.stringify(val)) } /** * 过滤数字类型 * @param {String} format 数字类型 * @@return {Boolean} 返回是否为数字类型 */ export const typeFilter = (format) => { return format === 'int' || format === 'double' || ...
2202_75391616/ui
uni_modules/uni-forms/components/uni-forms/utils.js
JavaScript
unknown
7,711
var pattern = { email: /^\S+?@\S+?\.\S+?$/, idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/, url: new RegExp( "^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:...
2202_75391616/ui
uni_modules/uni-forms/components/uni-forms/validate.js
JavaScript
unknown
11,807
<template> <view class="uni-forms-item" :class="['is-direction-' + localLabelPos ,border?'uni-forms-item--border':'' ,border && isFirstBorder?'is-first-border':'']"> <slot name="label"> <view class="uni-forms-item__label" :class="{'no-label':!label && !required}" :style="{width:localLabelWidth,justifyConten...
2202_75391616/ui
uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue
Vue
unknown
15,246
import en from './en.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js
JavaScript
unknown
162
<template> <view class="uni-goods-nav"> <!-- 底部占位 --> <view class="uni-tab__seat" /> <view class="uni-tab__cart-box flex"> <view class="flex uni-tab__cart-sub-left"> <view v-for="(item,index) in options" :key="index" class="flex uni-tab__cart-button-left uni-tab__shop-cart" @click="onClick(index,item)"> ...
2202_75391616/ui
uni_modules/uni-goods-nav/components/uni-goods-nav/uni-goods-nav.vue
Vue
unknown
5,104
<template> <view class="uni-grid-wrap"> <view :id="elId" ref="uni-grid" class="uni-grid" :class="{ 'uni-grid--border': showBorder }" :style="{ 'border-left-color':borderColor}"> <slot /> </view> </view> </template> <script> // #ifdef APP-NVUE const dom = uni.requireNativePlugin('dom'); // #endif /** * ...
2202_75391616/ui
uni_modules/uni-grid/components/uni-grid/uni-grid.vue
Vue
unknown
2,862
<template> <view v-if="width" :style="'width:'+width+';'+(square?'height:'+width:'')" class="uni-grid-item"> <view :class="{ 'uni-grid-item--border': showBorder, 'uni-grid-item--border-top': showBorder && index < column, 'uni-highlight': highlight }" :style="{'border-right-color': borderColor ,'border-bottom-col...
2202_75391616/ui
uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue
Vue
unknown
2,808
<template> <view class="uni-group" :class="['uni-group--'+mode ,margin?'group-margin':'']" :style="{marginTop: `${top}px` }"> <slot name="title"> <view v-if="title" class="uni-group__title" :style="{'padding-left':border?'30px':'15px'}"> <text class="uni-group__title-text">{{ title }}</text> </view> </sl...
2202_75391616/ui
uni_modules/uni-group/components/uni-group/uni-group.vue
Vue
unknown
2,502
<template> <!-- #ifdef APP-NVUE --> <text :style="styleObj" class="uni-icons" @click="_onClick">{{unicode}}</text> <!-- #endif --> <!-- #ifndef APP-NVUE --> <text :style="styleObj" class="uni-icons" :class="['uniui-'+type,customPrefix,customPrefix?type:'']" @click="_onClick"> <slot></slot> </text> <!-- #endif ...
2202_75391616/ui
uni_modules/uni-icons/components/uni-icons/uni-icons.vue
Vue
unknown
2,294
.uniui-cart-filled:before { content: "\e6d0"; } .uniui-gift-filled:before { content: "\e6c4"; } .uniui-color:before { content: "\e6cf"; } .uniui-wallet:before { content: "\e6b1"; } .uniui-settings-filled:before { content: "\e6ce"; } .uniui-auth-filled:before { content: "\e6cc"; } .uniui-shop-filled:b...
2202_75391616/ui
uni_modules/uni-icons/components/uni-icons/uniicons.css
CSS
unknown
8,151
export type IconsData = { id : string name : string font_family : string css_prefix_text : string description : string glyphs : Array<IconsDataItem> } export type IconsDataItem = { font_class : string unicode : string } export const fontData = [ { "font_class": "arrow-down", "unicode": "\ue6be" ...
2202_75391616/ui
uni_modules/uni-icons/components/uni-icons/uniicons_file.ts
TypeScript
unknown
10,657
export const fontData = [ { "font_class": "arrow-down", "unicode": "\ue6be" }, { "font_class": "arrow-left", "unicode": "\ue6bc" }, { "font_class": "arrow-right", "unicode": "\ue6bb" }, { "font_class": "arrow-up", "unicode": "\ue6bd" }, { "font_class": "auth", ...
2202_75391616/ui
uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js
JavaScript
unknown
10,407
<template> <view> <view v-if="loaded || list.itemIndex < 15" class="uni-indexed-list__title-wrapper"> <text v-if="list.items && list.items.length > 0" class="uni-indexed-list__title">{{ list.key }}</text> </view> <view v-if="(loaded || list.itemIndex < 15) && list.items && list.items.length > 0" class="uni-in...
2202_75391616/ui
uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list-item.vue
Vue
unknown
3,145
<template> <view class="uni-indexed-list" ref="list" id="list"> <!-- #ifdef APP-NVUE --> <list class="uni-indexed-list__scroll" scrollable="true" show-scrollbar="false"> <cell v-for="(list, idx) in lists" :key="idx" :ref="'uni-indexed-list-' + idx"> <!-- #endif --> <!-- #ifndef APP-NVUE --> <scroll-...
2202_75391616/ui
uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue
Vue
unknown
8,653
<template> <a v-if="isShowA" class="uni-link" :href="href" :class="{'uni-link--withline':showUnderLine===true||showUnderLine==='true'}" :style="{color,fontSize:fontSize+'px'}" :download="download"> <slot>{{text}}</slot> </a> <!-- #ifndef APP-NVUE --> <text v-else class="uni-link" :class="{'uni-link--withline'...
2202_75391616/ui
uni_modules/uni-link/components/uni-link/uni-link.vue
Vue
unknown
3,059
<template> <!-- #ifndef APP-NVUE --> <view class="uni-list uni-border-top-bottom"> <view v-if="border" class="uni-list--border-top"></view> <slot /> <view v-if="border" class="uni-list--border-bottom"></view> </view> <!-- #endif --> <!-- #ifdef APP-NVUE --> <list :bounce="false" :scrollable="true" show-scro...
2202_75391616/ui
uni_modules/uni-list/components/uni-list/uni-list.vue
Vue
unknown
2,401
<template> <!-- #ifdef APP-NVUE --> <refresh :display="display" @refresh="onrefresh" @pullingdown="onpullingdown"> <slot /> </refresh> <!-- #endif --> <!-- #ifndef APP-NVUE --> <view ref="uni-refresh" class="uni-refresh" v-show="isShow"> <slot /> </view> <!-- #endif --> <...
2202_75391616/ui
uni_modules/uni-list/components/uni-list/uni-refresh.vue
Vue
unknown
1,552
<template> <!-- #ifdef APP-NVUE --> <cell> <!-- #endif --> <view class="uni-list-ad"> <view v-if="borderShow" :class="{'uni-list--border':border,'uni-list-item--first':isFirstChild}"></view> <ad style="width: 200px;height: 300px;border-width: 1px;border-color: red;border-style: solid;" adpid="1111111111" ...
2202_75391616/ui
uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue
Vue
unknown
2,126
/** * 这里是 uni-list 组件内置的常用样式变量 * 如果需要覆盖样式,这里提供了基本的组件样式变量,您可以尝试修改这里的变量,去完成样式替换,而不用去修改源码 * */ // 背景色 $background-color : #fff; // 分割线颜色 $divide-line-color : #e5e5e5; // 默认头像大小,如需要修改此值,注意同步修改 js 中的值 const avatarWidth = xx ,目前只支持方形头像 // nvue 页面不支持修改头像大小 $avatar-width : 45px ; // 头像边框 $avatar-border-radius: 5px; $ava...
2202_75391616/ui
uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss
SCSS
unknown
1,518
<template> <!-- #ifdef APP-NVUE --> <cell> <!-- #endif --> <view :hover-class="!clickable && !link ? '' : 'uni-list-chat--hover'" class="uni-list-chat" @click.stop="onClick"> <view :class="{ 'uni-list--border': border, 'uni-list-chat--first': isFirstChild }"></view> <view class="uni-list-chat__container"> ...
2202_75391616/ui
uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue
Vue
unknown
13,424
<template> <!-- #ifdef APP-NVUE --> <cell :keep-scroll-position="keepScrollPosition"> <!-- #endif --> <view :class="{ 'uni-list-item--disabled': disabled }" :style="{'background-color':customStyle.backgroundColor}" :hover-class="(!clickable && !link) || disabled || showSwitch ? '' : 'uni-list-item--hover'" ...
2202_75391616/ui
uni_modules/uni-list/components/uni-list-item/uni-list-item.vue
Vue
unknown
12,645
import en from './en.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-load-more/components/uni-load-more/i18n/index.js
JavaScript
unknown
162
<template> <view class="uni-load-more" @click="onClick"> <!-- #ifdef APP-NVUE --> <loading-indicator v-if="!webviewHide && status === 'loading' && showIcon" :style="{color: color,width:iconSize+'px',height:iconSize+'px'}" :animating="true" class="uni-load-more__img uni-load-more__img--nvue"></loading-indicat...
2202_75391616/ui
uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue
Vue
unknown
14,779
<template> <view class="uni-navbar" :class="{'uni-dark':dark, 'uni-nvue-fixed': fixed}"> <view class="uni-navbar__content" :class="{ 'uni-navbar--fixed': fixed, 'uni-navbar--shadow': shadow, 'uni-navbar--border': border }" :style="{ 'background-color': themeBgColor, 'border-bottom-color':themeColor }" > <statu...
2202_75391616/ui
uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue
Vue
unknown
8,199
<template> <view :style="{ height: statusBarHeight }" class="uni-status-bar"> <slot /> </view> </template> <script> export default { name: 'UniStatusBar', data() { return { statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px' } } } </script> <style lang="scss" > .uni-status-bar { /...
2202_75391616/ui
uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue
Vue
unknown
404
<template> <view v-if="show" class="uni-noticebar" :style="{ backgroundColor }" @click="onClick"> <uni-icons v-if="showIcon === true || showIcon === 'true'" class="uni-noticebar-icon" type="sound" :color="color" :size="fontSize * 1.5" /> <view ref="textBox" class="uni-noticebar__content-wrapper" :class="{ ...
2202_75391616/ui
uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue
Vue
unknown
10,733
<template> <view class="uni-numbox"> <view @click="_calcValue('minus')" class="uni-numbox__minus uni-numbox-btns" :style="{background}"> <text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue <= min || disabled }" :style="{color}">-</text> </view> <input :disabled="disabled" @focus="_...
2202_75391616/ui
uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue
Vue
unknown
5,362
import en from './en.json' import es from './es.json' import fr from './fr.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, es, fr, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-pagination/components/uni-pagination/i18n/index.js
JavaScript
unknown
226
<template> <view class="uni-pagination"> <!-- #ifndef MP --> <picker v-if="showPageSize === true || showPageSize === 'true'" class="select-picker" mode="selector" :value="pageSizeIndex" :range="pageSizeRange" @change="pickerChange" @cancel="pickerClick" @click.native="pickerClick"> <button type="default" ...
2202_75391616/ui
uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue
Vue
unknown
11,235
import en from './en.json' import zhHans from './zh-Hans.json' import zhHant from './zh-Hant.json' export default { en, 'zh-Hans': zhHans, 'zh-Hant': zhHant }
2202_75391616/ui
uni_modules/uni-popup/components/uni-popup/i18n/index.js
JavaScript
unknown
162
// #ifdef H5 export default { name: 'Keypress', props: { disable: { type: Boolean, default: false } }, mounted () { const keyNames = { esc: ['Esc', 'Escape'], tab: 'Tab', enter: 'Enter', space: [' ', 'Spacebar'], up: ['Up', 'ArrowUp'], left: ['Left', '...
2202_75391616/ui
uni_modules/uni-popup/components/uni-popup/keypress.js
JavaScript
unknown
1,119
export default { data() { return { } }, created(){ this.popup = this.getParent() }, methods:{ /** * 获取父元素实例 */ getParent(name = 'uniPopup') { let parent = this.$parent; let parentName = parent.$options.name; while (parentName !== name) { parent = parent.$parent; if (!parent) r...
2202_75391616/ui
uni_modules/uni-popup/components/uni-popup/popup.js
JavaScript
unknown
418
<template> <view v-if="showPopup" class="uni-popup" :class="[popupstyle, isDesktop ? 'fixforpc-z-index' : '']"> <view @touchstart="touchstart"> <uni-transition key="1" v-if="maskShow" name="mask" mode-class="fade" :styles="maskClass" :duration="duration" :show="showTrans" @click="onTap" /> <uni-transition ...
2202_75391616/ui
uni_modules/uni-popup/components/uni-popup/uni-popup.vue
Vue
unknown
12,046
// #ifdef H5 export default { name: 'Keypress', props: { disable: { type: Boolean, default: false } }, mounted () { const keyNames = { esc: ['Esc', 'Escape'], tab: 'Tab', enter: 'Enter', space: [' ', 'Spacebar'], up: ['Up', 'ArrowUp'], left: ['Left', '...
2202_75391616/ui
uni_modules/uni-popup/components/uni-popup-dialog/keypress.js
JavaScript
unknown
1,110
<template> <view class="uni-popup-dialog"> <view class="uni-dialog-title"> <text class="uni-dialog-title-text" :class="['uni-popup__'+dialogType]">{{titleText}}</text> </view> <view v-if="mode === 'base'" class="uni-dialog-content"> <slot> <text class="uni-dialog-content-text">{{content}}</text> </s...
2202_75391616/ui
uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
Vue
unknown
6,285
<template> <view class="uni-popup-message"> <view class="uni-popup-message__box fixforpc-width" :class="'uni-popup__'+type"> <slot> <text class="uni-popup-message-text" :class="'uni-popup__'+type+'-text'">{{message}}</text> </slot> </view> </view> </template> <script> import popup from '../uni-popup/p...
2202_75391616/ui
uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue
Vue
unknown
2,630
<template> <view class="uni-popup-share"> <view class="uni-share-title"><text class="uni-share-title-text">{{shareTitleText}}</text></view> <view class="uni-share-content"> <view class="uni-share-content-box"> <view class="uni-share-content-item" v-for="(item,index) in bottomData" :key="index" @click.stop="...
2202_75391616/ui
uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue
Vue
unknown
3,892
<template> <view> <view ref="uni-rate" class="uni-rate"> <view class="uni-rate__icon" :class="{'uni-cursor-not-allowed': disabled}" :style="{ 'margin-right': marginNumber + 'px' }" v-for="(star, index) in stars" :key="index" @touchstart.stop="touchstart" @touchmove.stop="touchmove" @mousedown.stop="moused...
2202_75391616/ui
uni_modules/uni-rate/components/uni-rate/uni-rate.vue
Vue
unknown
8,751
<template> <!-- #ifndef APP-NVUE --> <view :class="['uni-col', sizeClass, pointClassList]" :style="{ paddingLeft:`${Number(gutter)}rpx`, paddingRight:`${Number(gutter)}rpx`, }"> <slot></slot> </view> <!-- #endif --> <!-- #ifdef APP-NVUE --> <!-- 在nvue上,类名样式不生效,换为style --> <!-- 设置right正值失效,设置 left 负值 --> ...
2202_75391616/ui
uni_modules/uni-row/components/uni-col/uni-col.vue
Vue
unknown
7,711
<template> <view :class="[ 'uni-row', typeClass , justifyClass, alignClass, ]" :style="{ marginLeft:`${Number(marginValue)}rpx`, marginRight:`${Number(marginValue)}rpx`, }"> <slot></slot> </view> </template> <script> const ComponentClass = 'uni-row'; const modifierSeparator = '--'; /** * Row 布局-行 * @de...
2202_75391616/ui
uni_modules/uni-row/components/uni-row/uni-row.vue
Vue
unknown
3,948
@import './styles/index.scss';
2202_75391616/ui
uni_modules/uni-scss/index.scss
SCSS
unknown
31
@import './setting/_variables.scss'; @import './setting/_border.scss'; @import './setting/_color.scss'; @import './setting/_space.scss'; @import './setting/_radius.scss'; @import './setting/_text.scss'; @import './setting/_styles.scss';
2202_75391616/ui
uni_modules/uni-scss/styles/index.scss
SCSS
unknown
237
.uni-border { border: 1px $uni-border-1 solid; }
2202_75391616/ui
uni_modules/uni-scss/styles/setting/_border.scss
SCSS
unknown
49
// TODO 暂时不需要 class ,需要用户使用变量实现 ,如果使用类名其实并不推荐 // @mixin get-styles($k,$c) { // @if $k == size or $k == weight{ // font-#{$k}:#{$c} // }@else{ // #{$k}:#{$c} // } // } $uni-ui-color:( // 主色 primary: $uni-primary, primary-disable: $uni-primary-disable, primary-light: $uni-primary-light, // 辅助色 success: $uni...
2202_75391616/ui
uni_modules/uni-scss/styles/setting/_color.scss
SCSS
unknown
1,491
@mixin radius($r,$d:null ,$important: false){ $radius-value:map-get($uni-radius, $r) if($important, !important, null); // Key exists within the $uni-radius variable @if (map-has-key($uni-radius, $r) and $d){ @if $d == t { border-top-left-radius:$radius-value; border-top-right-radius:$radius-value; }@...
2202_75391616/ui
uni_modules/uni-scss/styles/setting/_radius.scss
SCSS
unknown
1,430
@mixin fn($space,$direction,$size,$n) { @if $n { #{$space}-#{$direction}: #{$size*$uni-space-root}px } @else { #{$space}-#{$direction}: #{-$size*$uni-space-root}px } } @mixin get-styles($direction,$i,$space,$n){ @if $direction == t { @include fn($space, top,$i,$n); } @if $direction == r { @include fn($...
2202_75391616/ui
uni_modules/uni-scss/styles/setting/_space.scss
SCSS
unknown
1,214
/* #ifndef APP-NVUE */ $-color-white:#fff; $-color-black:#000; @mixin base-style($color) { color: #fff; background-color: $color; border-color: mix($-color-black, $color, 8%); &:not([hover-class]):active { background: mix($-color-black, $color, 10%); border-color: mix($-color-black, $color, 20%); color: $-co...
2202_75391616/ui
uni_modules/uni-scss/styles/setting/_styles.scss
SCSS
unknown
3,253
@mixin get-styles($k,$c) { @if $k == size or $k == weight{ font-#{$k}:#{$c} }@else{ #{$k}:#{$c} } } @each $key, $child in $uni-headings { /* #ifndef APP-NVUE */ .uni-#{$key} { @each $k, $c in $child { @include get-styles($k,$c) } } /* #endif */ /* #ifdef APP-NVUE */ .container .uni-#{$key} { @eac...
2202_75391616/ui
uni_modules/uni-scss/styles/setting/_text.scss
SCSS
unknown
394
// @use "sass:math"; @import '../tools/functions.scss'; // 间距基础倍数 $uni-space-root: 2 !default; // 边框半径默认值 $uni-radius-root:5px !default; $uni-radius: () !default; // 边框半径断点 $uni-radius: map-deep-merge( ( 0: 0, // TODO 当前版本暂时不支持 sm 属性 // 'sm': math.div($uni-radius-root, 2), null: $uni-radius-root, '...
2202_75391616/ui
uni_modules/uni-scss/styles/setting/_variables.scss
SCSS
unknown
3,753
// 合并 map @function map-deep-merge($parent-map, $child-map){ $result: $parent-map; @each $key, $child in $child-map { $parent-has-key: map-has-key($result, $key); $parent-value: map-get($result, $key); $parent-type: type-of($parent-value); $child-type: type-of($child); $parent-is-map: $parent-type == map; ...
2202_75391616/ui
uni_modules/uni-scss/styles/tools/functions.scss
SCSS
unknown
640