@kyfe/ks-query-table 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bitmap +38 -0
- package/.editorconfig +5 -0
- package/.env.dev +2 -0
- package/.env.gray +2 -0
- package/.env.prod +2 -0
- package/.env.stg +3 -0
- package/.env.uat +2 -0
- package/.eslintignore +1 -0
- package/.eslintrc.js +25 -0
- package/.gitmodules +4 -0
- package/.prettierrc +11 -0
- package/README.md +15 -0
- package/babel.config.js +10 -0
- package/build-apm.sh +9 -0
- package/build.sh +16 -0
- package/config/index.js +20 -0
- package/jsconfig.json +7 -0
- package/kuasheng-sdk/index.js +80 -0
- package/kuasheng-sdk/lib/assets.js +304 -0
- package/kuasheng-sdk/lib/context.js +199 -0
- package/kuasheng-sdk/lib/layout.js +346 -0
- package/kuasheng-sdk/lib/location.js +46 -0
- package/kuasheng-sdk/lib/media.js +342 -0
- package/kuasheng-sdk/lib/navigation.js +30 -0
- package/kuasheng-sdk/lib/request.js +76 -0
- package/kuasheng-sdk/lib/system.js +190 -0
- package/kuasheng-sdk/lib/userinfo.js +98 -0
- package/kuasheng-sdk/util/check.js +102 -0
- package/kuasheng-sdk/util/config.js +47 -0
- package/kuasheng-sdk/util/device.js +25 -0
- package/kuasheng-sdk/util/error.js +19 -0
- package/kuasheng-sdk/util/funtional.js +153 -0
- package/kuasheng-sdk/util/mixin.js +36 -0
- package/kuasheng-sdk/util/requestUtil.js +41 -0
- package/kuasheng-sdk/util/response.js +33 -0
- package/kuasheng-sdk/util/warn.js +35 -0
- package/kuasheng-ui/CHANGELOG.md +9 -0
- package/kuasheng-ui/components/card.vue +57 -0
- package/kuasheng-ui/components/ks-area-select/README.md +43 -0
- package/kuasheng-ui/components/ks-area-select/area-picker.vue +554 -0
- package/kuasheng-ui/components/ks-area-select/area-search.vue +363 -0
- package/kuasheng-ui/components/ks-area-select/areas-pop.vue +56 -0
- package/kuasheng-ui/components/ks-area-select/common.js +183 -0
- package/kuasheng-ui/components/ks-area-select/index.vue +355 -0
- package/kuasheng-ui/components/ks-area-select/mixins.js +216 -0
- package/kuasheng-ui/components/ks-area-single-select/README.md +50 -0
- package/kuasheng-ui/components/ks-area-single-select/hot-city.js +45 -0
- package/kuasheng-ui/components/ks-area-single-select/index.vue +324 -0
- package/kuasheng-ui/components/ks-calendar/index.vue +269 -0
- package/kuasheng-ui/components/ks-call-phone/call-tips.vue +70 -0
- package/kuasheng-ui/components/ks-call-phone/call.vue +178 -0
- package/kuasheng-ui/components/ks-call-phone/index.js +48 -0
- package/kuasheng-ui/components/ks-call-phone/index.vue +131 -0
- package/kuasheng-ui/components/ks-call-phone//345/221/274/345/217/253/347/273/204/344/273/266.md +0 -0
- package/kuasheng-ui/components/ks-date-picker/README.md +23 -0
- package/kuasheng-ui/components/ks-date-picker/date-picker-bottom.vue +123 -0
- package/kuasheng-ui/components/ks-date-picker/date-picker-dropdown.vue +80 -0
- package/kuasheng-ui/components/ks-date-picker/date-picker-right.vue +87 -0
- package/kuasheng-ui/components/ks-date-picker/date-picker-top.vue +88 -0
- package/kuasheng-ui/components/ks-date-picker/date-picker.js +15 -0
- package/kuasheng-ui/components/ks-date-picker/date-range-select.vue +92 -0
- package/kuasheng-ui/components/ks-date-picker/date-select.vue +65 -0
- package/kuasheng-ui/components/ks-date-picker/date-week-month.vue +131 -0
- package/kuasheng-ui/components/ks-date-picker/index.js +12 -0
- package/kuasheng-ui/components/ks-date-picker/mixin.js +92 -0
- package/kuasheng-ui/components/ks-date-picker/month-range-select.vue +129 -0
- package/kuasheng-ui/components/ks-date-picker/month-select.vue +85 -0
- package/kuasheng-ui/components/ks-date-picker/quarter-select.vue +94 -0
- package/kuasheng-ui/components/ks-date-picker/style.less +121 -0
- package/kuasheng-ui/components/ks-date-picker/utils.js +109 -0
- package/kuasheng-ui/components/ks-date-picker/week-select.vue +99 -0
- package/kuasheng-ui/components/ks-decrypt/index.vue +159 -0
- package/kuasheng-ui/components/ks-employee/README.md +78 -0
- package/kuasheng-ui/components/ks-employee/employee-input.vue +173 -0
- package/kuasheng-ui/components/ks-employee/employee-list.vue +662 -0
- package/kuasheng-ui/components/ks-employee/employee-popup.vue +197 -0
- package/kuasheng-ui/components/ks-employee/employee-search.vue +250 -0
- package/kuasheng-ui/components/ks-employee/employee-selected.vue +173 -0
- package/kuasheng-ui/components/ks-employee/index.js +17 -0
- package/kuasheng-ui/components/ks-employee/package-lock.json +5 -0
- package/kuasheng-ui/components/ks-employee/package.json +15 -0
- package/kuasheng-ui/components/ks-employee/yarn.lock +4 -0
- package/kuasheng-ui/components/ks-field-money/index.js +8 -0
- package/kuasheng-ui/components/ks-field-money/index.vue +212 -0
- package/kuasheng-ui/components/ks-field-money/package.json +11 -0
- package/kuasheng-ui/components/ks-field-money/utils.js +65 -0
- package/kuasheng-ui/components/ks-field-money//351/207/221/351/242/235/350/275/254/346/215/242/345/231/250.md +0 -0
- package/kuasheng-ui/components/ks-history-search/history-input.vue +131 -0
- package/kuasheng-ui/components/ks-history-search/history-list.vue +188 -0
- package/kuasheng-ui/components/ks-history-search/img/delete.png +0 -0
- package/kuasheng-ui/components/ks-history-search/index.js +9 -0
- package/kuasheng-ui/components/ks-history-search/index.vue +125 -0
- package/kuasheng-ui/components/ks-history-search/package-lock.json +5 -0
- package/kuasheng-ui/components/ks-history-search/package.json +15 -0
- package/kuasheng-ui/components/ks-history-search/utils.js +35 -0
- package/kuasheng-ui/components/ks-input-search/index.vue +106 -0
- package/kuasheng-ui/components/ks-list/index.vue +75 -0
- package/kuasheng-ui/components/ks-loading/index.js +16 -0
- package/kuasheng-ui/components/ks-month/index.vue +47 -0
- package/kuasheng-ui/components/ks-month/package.json +3 -0
- package/kuasheng-ui/components/ks-month/range.vue +172 -0
- package/kuasheng-ui/components/ks-month/single.vue +136 -0
- package/kuasheng-ui/components/ks-month/style.less +125 -0
- package/kuasheng-ui/components/ks-month/utils.js +35 -0
- package/kuasheng-ui/components/ks-nav/index.vue +264 -0
- package/kuasheng-ui/components/ks-nav-bar.js +35 -0
- package/kuasheng-ui/components/ks-org/ks-org-tree.vue +247 -0
- package/kuasheng-ui/components/ks-org/ks-popup-tree.vue +154 -0
- package/kuasheng-ui/components/ks-org/ks-tree-input.vue +240 -0
- package/kuasheng-ui/components/ks-org/ks-tree-node.vue +94 -0
- package/kuasheng-ui/components/ks-org/ks-tree.vue +229 -0
- package/kuasheng-ui/components/ks-org/utils.js +54 -0
- package/kuasheng-ui/components/ks-popover/index.vue +457 -0
- package/kuasheng-ui/components/ks-popover/mixin.js +28 -0
- package/kuasheng-ui/components/ks-popover/utils.js +60 -0
- package/kuasheng-ui/components/ks-pull-refresh/index.vue +43 -0
- package/kuasheng-ui/components/ks-quarter/index.vue +256 -0
- package/kuasheng-ui/components/ks-table/README.md +103 -0
- package/kuasheng-ui/components/ks-table/cell.vue +31 -0
- package/kuasheng-ui/components/ks-table/index.js +8 -0
- package/kuasheng-ui/components/ks-table/index.less +486 -0
- package/kuasheng-ui/components/ks-table/index.vue +1088 -0
- package/kuasheng-ui/components/ks-table/package.json +12 -0
- package/kuasheng-ui/components/ks-table/release.md +7 -0
- package/kuasheng-ui/components/ks-toast.js +35 -0
- package/kuasheng-ui/components/ks-upload/index.vue +174 -0
- package/kuasheng-ui/components/ks-user-access.vue +229 -0
- package/kuasheng-ui/components/no-data/README.md +45 -0
- package/kuasheng-ui/components/no-data/image.js +1 -0
- package/kuasheng-ui/components/no-data/index.vue +83 -0
- package/kuasheng-ui/components/notice-bar.vue +16 -0
- package/kuasheng-ui/components/steps.js +11 -0
- package/kuasheng-ui/components/tabs.vue +40 -0
- package/kuasheng-ui/index.js +239 -0
- package/kuasheng-ui/patch/datetime-picker/datetimePicker.md +0 -0
- package/kuasheng-ui/patch/datetime-picker/index.js +46 -0
- package/kuasheng-ui/patch/datetime-picker/utils.js +78 -0
- package/kuasheng-ui/patch/field/field.md +1 -0
- package/kuasheng-ui/patch/field/index.js +122 -0
- package/kuasheng-ui/patch/field/utils.js +36 -0
- package/kuasheng-ui/patch/form/form.md +7 -0
- package/kuasheng-ui/patch/form/index.js +106 -0
- package/kuasheng-ui/patch/index.js +12 -0
- package/kuasheng-ui/patch/pagination/index.js +78 -0
- package/kuasheng-ui/style/animation-ui.less +31 -0
- package/kuasheng-ui/style/font/number/font-number1.otf +0 -0
- package/kuasheng-ui/style/font/number/font-number2.ttf +0 -0
- package/kuasheng-ui/style/images/checked.svg +1 -0
- package/kuasheng-ui/style/images/success.svg +1 -0
- package/kuasheng-ui/style/index.less +6 -0
- package/kuasheng-ui/style/kuasheng-ui.less +207 -0
- package/kuasheng-ui/style/reset-vant.less +307 -0
- package/kuasheng-ui/style/vant-var.less +138 -0
- package/kuasheng-ui/utils/apis.js +17 -0
- package/kuasheng-ui/utils/axios-adapter.js +47 -0
- package/kuasheng-ui/utils/bem.js +39 -0
- package/kuasheng-ui/utils/bus.js +97 -0
- package/kuasheng-ui/utils/common.js +88 -0
- package/kuasheng-ui/utils/decrypt/config.js +12 -0
- package/kuasheng-ui/utils/decrypt/decrypt-api.js +139 -0
- package/kuasheng-ui/utils/decrypt/index.js +6 -0
- package/kuasheng-ui/utils/decrypt/mask.js +36 -0
- package/kuasheng-ui/utils/decrypt/virtual.js +44 -0
- package/kuasheng-ui/utils/directive.js +57 -0
- package/kuasheng-ui/utils/directive.md +23 -0
- package/kuasheng-ui/utils/drcheck-plugin.js +219 -0
- package/kuasheng-ui/utils/error-plugin.js +88 -0
- package/kuasheng-ui/utils/filter.js +149 -0
- package/kuasheng-ui/utils/http-interceptors.js +18 -0
- package/kuasheng-ui/utils/http.js +140 -0
- package/kuasheng-ui/utils/index.js +5 -0
- package/kuasheng-ui/utils/init-event.js +20 -0
- package/kuasheng-ui/utils/log.js +309 -0
- package/kuasheng-ui/utils/token.js +9 -0
- package/kuasheng-ui/utils/type.js +45 -0
- package/kuasheng-ui/utils/validate.js +20 -0
- package/kuasheng-ui/utils/watermark.js +67 -0
- package/kuasheng-ui/version.js +1 -0
- package/ky-apm/client.js +37 -0
- package/ky-apm/customHttp.js +38 -0
- package/ky-apm/index.js +68 -0
- package/ky-apm/plugins/performance.js +84 -0
- package/ky-apm/plugins/self-error.js +26 -0
- package/ky-apm/warn-log.js +3 -0
- package/package.json +81 -10
- package/plugin/ks-chii-webpack-html/index.js +53 -0
- package/plugin/ks-chii-webpack-html/package.json +16 -0
- package/postcss.config.js +15 -0
- package/public/capsule-positon.js +50 -0
- package/public/fonts/DingTalkJinBuTi.ttf +0 -0
- package/public/framework/axios@0.19.0.min.js +9 -0
- package/public/framework/fastclick@1.0.6.min.js +1 -0
- package/public/framework/iconfont/iconfont.css +91 -0
- package/public/framework/iconfont/iconfont.js +1 -0
- package/public/framework/iconfont/iconfont.json +142 -0
- package/public/framework/iconfont/iconfont.ttf +0 -0
- package/public/framework/iconfont/iconfont.woff +0 -0
- package/public/framework/iconfont/iconfont.woff2 +0 -0
- package/public/framework/vant@2.5.6.min.js +7 -0
- package/public/framework/vue-router@3.1.3.min.js +6 -0
- package/public/framework/vue@2.6.10.runtime.min.js +6 -0
- package/public/framework/vuex@3.1.1.min.js +6 -0
- package/public/index.html +260 -0
- package/public/ks@3.0.8.umd.min.js +1 -0
- package/public/ksui@4.0.27.umd.min.js +10 -0
- package/public/status-bar-preset.js +39 -0
- package/{index.js → qt-npm/index.js} +3 -3
- package/qt-npm/package.json +13 -0
- package/src/App.vue +204 -0
- package/src/README.md +15 -0
- package/src/common/README.md +94 -0
- package/src/common/http/axios-adapter.js +47 -0
- package/src/common/http/common.js +88 -0
- package/src/common/http/http-interceptors.js +18 -0
- package/src/common/http/http-lock.js +45 -0
- package/src/common/http/index.js +163 -0
- package/src/common/http/token.js +9 -0
- package/src/common/styles/font/AlibabaSans102Ver2-Md.ttf +0 -0
- package/src/common/styles/font.less +12 -0
- package/src/common/styles/variables.less +43 -0
- package/src/common/utils/index.js +1 -0
- package/src/common/utils/platform/README.md +1 -0
- package/src/common/utils/platform/android/.gitkeep +0 -0
- package/src/common/utils/platform/core/index.js +24 -0
- package/src/common/utils/platform/index.js +164 -0
- package/src/common/utils/platform/ios/.gitkeep +0 -0
- package/src/common/utils/platform/subscribe/helper.js +38 -0
- package/src/common/utils/platform/subscribe/index.js +204 -0
- package/src/common/utils/platform/subscribe/table-animation.js +75 -0
- package/src/config/index.js +31 -0
- package/src/config.js +1 -0
- package/src/main.js +73 -0
- package/src/router.js +52 -0
- package/src/view/home/config.js +101 -0
- package/src/view/home/demo1.vue +223 -0
- package/src/view/home/demo2.vue +124 -0
- package/src/view/home/demo3.vue +51 -0
- package/src/view/home/demo4.vue +140 -0
- package/src/view/home/index.vue +97 -0
- package/src/view/home/query-table/README.md +45 -0
- package/src/view/home/query-table/api/index.js +12 -0
- package/src/view/home/query-table/assets/horizontal-back.svg +1 -0
- package/src/view/home/query-table/components/pe-table/cell.js +181 -0
- package/src/view/home/query-table/components/pe-table/collapse.js +334 -0
- package/src/view/home/query-table/components/pe-table/empty.vue +48 -0
- package/src/view/home/query-table/components/pe-table/header.js +328 -0
- package/src/view/home/query-table/components/pe-table/images/abnormal.png +0 -0
- package/src/view/home/query-table/components/pe-table/images/empty.png +0 -0
- package/src/view/home/query-table/components/pe-table/images/fold.svg +1 -0
- package/src/view/home/query-table/components/pe-table/images/sort.svg +1 -0
- package/src/view/home/query-table/components/pe-table/images/sorting.svg +1 -0
- package/src/view/home/query-table/components/pe-table/images/unfold.svg +1 -0
- package/src/view/home/query-table/components/pe-table/index.vue +847 -0
- package/src/view/home/query-table/components/pe-table/load-more.js +46 -0
- package/src/view/home/query-table/components/pe-table/props/index.js +193 -0
- package/src/view/home/query-table/components/pe-table/row.vue +118 -0
- package/src/view/home/query-table/components/pe-table/scrollbar.js +424 -0
- package/src/view/home/query-table/components/pe-table/stretch-damping.js +112 -0
- package/src/view/home/query-table/components/pe-table/style/cell.less +89 -0
- package/src/view/home/query-table/components/pe-table/style/empty.less +48 -0
- package/src/view/home/query-table/components/pe-table/style/header.less +141 -0
- package/src/view/home/query-table/components/pe-table/style/index.less +88 -0
- package/src/view/home/query-table/components/pe-table/style/load-more.less +61 -0
- package/src/view/home/query-table/components/pe-table/style/row.less +6 -0
- package/src/view/home/query-table/components/pe-table/table-loading.vue +120 -0
- package/src/view/home/query-table/components/pe-table/table-total.vue +57 -0
- package/src/view/home/query-table/components/pe-table/utils/animate.js +80 -0
- package/src/view/home/query-table/components/pe-table/utils/columns.js +290 -0
- package/src/view/home/query-table/components/pe-table/utils/data.js +12 -0
- package/src/view/home/query-table/components/pe-table/utils/fixed.js +69 -0
- package/src/view/home/query-table/components/pe-table/utils/formatter.js +327 -0
- package/src/view/home/query-table/components/pe-table/utils/render-cells.js +424 -0
- package/src/view/home/query-table/components/pe-table/utils/slot.js +28 -0
- package/src/view/home/query-table/components/pe-table/utils/tools.js +84 -0
- package/src/view/home/query-table/components/pe-table/utils/touch-scroll.js +417 -0
- package/src/view/home/query-table/components/query-table/index.vue +497 -0
- package/src/view/home/query-table/components/query-table/mixins/column-mixin.js +102 -0
- package/src/view/home/query-table/components/query-table/mixins/column-setting.js +143 -0
- package/src/view/home/query-table/components/query-table/mixins/data-mixin.js +519 -0
- package/src/view/home/query-table/components/query-table/mixins/pagination-mixin.js +26 -0
- package/src/view/home/query-table/components/query-table/mixins/table-fixed.js +130 -0
- package/src/view/home/query-table/components/query-table/mixins/table-horizontal.js +119 -0
- package/src/view/home/query-table/components/table-horizontal.vue +99 -0
- package/src/view/home/query-table/components/table-pagination.vue +32 -0
- package/src/view/home/query-table/components/table-settings/assets/arrpw-up.svg +1 -0
- package/src/view/home/query-table/components/table-settings/assets/disabled-down.svg +1 -0
- package/src/view/home/query-table/components/table-settings/assets/disabled-up.svg +1 -0
- package/src/view/home/query-table/components/table-settings/assets/down.svg +1 -0
- package/src/view/home/query-table/components/table-settings/assets/up.svg +1 -0
- package/src/view/home/query-table/components/table-settings/index.less +294 -0
- package/src/view/home/query-table/components/table-settings/index.vue +260 -0
- package/src/view/home/query-table/components/table-settings/settings.vue +479 -0
- package/src/view/home/query-table/components/table-settings/test.js +626 -0
- package/src/view/home/query-table/components/table-settings//344/270/252/346/200/247/350/256/276/347/275/256.md +0 -0
- package/src/view/home/query-table/components/tooltip.js +124 -0
- package/src/view/home/query-table/hooks/use-cache-promise.js +27 -0
- package/src/view/home/query-table/hooks/use-column-config.js +190 -0
- package/src/view/home/query-table/hooks/use-encryption.js +0 -0
- package/src/view/home/query-table/hooks/use-generic-search.js +95 -0
- package/src/view/home/query-table/index.js +7 -0
- package/src/view/home/query-table/store/column-store.js +0 -0
- package/src/view/home/query-table/styles/table.less +24 -0
- package/src/view/home/query-table/utils/column.js +36 -0
- package/src/view/home/query-table/utils/config.js +12 -0
- package/src/view/home/query-table/utils/encryption.js +32 -0
- package/src/view/home/query-table/utils/http.js +1 -0
- package/src/view/home/query-table/utils/localStorage.js +35 -0
- package/src/view/home//351/246/226/351/241/265.md +0 -0
- package/src/web.js +99 -0
- package/vue.config.js +131 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
// @table-header-bgcolor: #f5f7fa; // 表头背景颜色
|
|
2
|
+
// @stripe-bgcolor: #fafafa; // 斑马纹背景色
|
|
3
|
+
// @sort-icon-color: #c0c4cc; // 排序图标默认颜色
|
|
4
|
+
// @active-sort-icon-color: #165DFF; // 排序图标激活颜色
|
|
5
|
+
// @border-color: #ebeef5;
|
|
6
|
+
@table-header-bgcolor: #f9fafb; // 表头背景颜色
|
|
7
|
+
@sort-icon-color: #d0d4e5; // 排序图标默认颜色
|
|
8
|
+
@active-sort-icon-color: #888ea6; // 排序图标激活颜色
|
|
9
|
+
|
|
10
|
+
@row-bgcolor: #ffffff; // 行默认背景
|
|
11
|
+
@stripe-bgcolor: #f8f8f8; // 斑马纹背景色
|
|
12
|
+
@border-color: #e5e5e5; // 边框颜色
|
|
13
|
+
@shadow-color: rgba(0, 0, 0, 0.1); // 阴影颜色
|
|
14
|
+
@text-color: #03050d; //默认文本颜色
|
|
15
|
+
@table-header-text-color: #6e6d72; // 表头默认文字颜色
|
|
16
|
+
|
|
17
|
+
.border-left-1px() {
|
|
18
|
+
position: relative;
|
|
19
|
+
&::after {
|
|
20
|
+
position: absolute;
|
|
21
|
+
content: '';
|
|
22
|
+
left: 0;
|
|
23
|
+
top: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
width: 1px;
|
|
26
|
+
background: @border-color;
|
|
27
|
+
transform: scaleX(0.5);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.border-right-1px() {
|
|
31
|
+
position: relative;
|
|
32
|
+
&::after {
|
|
33
|
+
position: absolute;
|
|
34
|
+
content: '';
|
|
35
|
+
right: 0;
|
|
36
|
+
top: 0;
|
|
37
|
+
bottom: 0;
|
|
38
|
+
width: 1px;
|
|
39
|
+
background: @border-color;
|
|
40
|
+
transform: scaleX(0.5);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.border-top-1px() {
|
|
44
|
+
position: relative;
|
|
45
|
+
&::before {
|
|
46
|
+
position: absolute;
|
|
47
|
+
content: '';
|
|
48
|
+
left: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
top: 0;
|
|
51
|
+
height: 1px;
|
|
52
|
+
background: #ebedf5;
|
|
53
|
+
transform: scaleY(0.5);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.border-bottom-1px() {
|
|
57
|
+
position: relative;
|
|
58
|
+
&::after {
|
|
59
|
+
position: absolute;
|
|
60
|
+
content: '';
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
height: 1px;
|
|
65
|
+
background: #ebedf5;
|
|
66
|
+
transform: scaleY(0.5);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// 单元格不换行溢出显示省略号
|
|
71
|
+
.cell-ellipsis () {
|
|
72
|
+
display: inline-block;
|
|
73
|
+
word-break: keep-all;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ks-table-wrapper {
|
|
80
|
+
background-color: @row-bgcolor;
|
|
81
|
+
}
|
|
82
|
+
.ks-table-popover {
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
}
|
|
85
|
+
.ks-table {
|
|
86
|
+
.checkbox-column {
|
|
87
|
+
text-align: center;
|
|
88
|
+
> * {
|
|
89
|
+
display: block;
|
|
90
|
+
padding-left: 12px;
|
|
91
|
+
}
|
|
92
|
+
.van-icon {
|
|
93
|
+
transition-duration: 0s;
|
|
94
|
+
border-radius: 2px;
|
|
95
|
+
}
|
|
96
|
+
&__header {
|
|
97
|
+
.van-icon {
|
|
98
|
+
color: #fff;
|
|
99
|
+
background-color: #165DFF;
|
|
100
|
+
border-color: #165DFF;
|
|
101
|
+
}
|
|
102
|
+
.van-icon-success:before {
|
|
103
|
+
content: '';
|
|
104
|
+
position: absolute;
|
|
105
|
+
display: block;
|
|
106
|
+
background-color: #fff;
|
|
107
|
+
height: 4px;
|
|
108
|
+
transform: scale(0.5);
|
|
109
|
+
left: 0;
|
|
110
|
+
right: 0;
|
|
111
|
+
top: 5px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.index-column {
|
|
116
|
+
text-indent: 4px;
|
|
117
|
+
}
|
|
118
|
+
table {
|
|
119
|
+
border-spacing: 0;
|
|
120
|
+
border-collapse: collapse;
|
|
121
|
+
box-sizing: content-box;
|
|
122
|
+
}
|
|
123
|
+
td {
|
|
124
|
+
text-align: left;
|
|
125
|
+
margin: 0;
|
|
126
|
+
padding: 0;
|
|
127
|
+
}
|
|
128
|
+
&__header-wrapper {
|
|
129
|
+
position: relative;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
&-sort {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
&__title {
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 44px;
|
|
139
|
+
font-size: 14px;
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: space-between;
|
|
143
|
+
&-left {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
height: 100%;
|
|
147
|
+
padding-left: 4px;
|
|
148
|
+
img {
|
|
149
|
+
width: 16px;
|
|
150
|
+
height: 16px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
&-right {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
height: 100%;
|
|
157
|
+
padding-right: 4px;
|
|
158
|
+
padding-left: 10px;
|
|
159
|
+
img {
|
|
160
|
+
width: 20px;
|
|
161
|
+
height: 20px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
&__header {
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
background-color: @table-header-bgcolor;
|
|
168
|
+
&-fixed {
|
|
169
|
+
display: block;
|
|
170
|
+
position: absolute;
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
top: 0;
|
|
173
|
+
left: 0;
|
|
174
|
+
// box-shadow: 0 0 6px @shadow-color;
|
|
175
|
+
background-color: @table-header-bgcolor;
|
|
176
|
+
z-index: 1;
|
|
177
|
+
transform: translateZ(0px);
|
|
178
|
+
}
|
|
179
|
+
td,
|
|
180
|
+
&-fixed td {
|
|
181
|
+
position: relative;
|
|
182
|
+
font-size: 12px;
|
|
183
|
+
vertical-align: middle;
|
|
184
|
+
text-align: left;
|
|
185
|
+
text-indent: 0;
|
|
186
|
+
color: @table-header-text-color;
|
|
187
|
+
.border-right-1px();
|
|
188
|
+
.border-top-1px();
|
|
189
|
+
.ks-table__header-title {
|
|
190
|
+
display: inline-block;
|
|
191
|
+
vertical-align: middle;
|
|
192
|
+
line-height: 13px;
|
|
193
|
+
word-wrap: break-word;
|
|
194
|
+
text-align: left;
|
|
195
|
+
text-indent: 0;
|
|
196
|
+
padding: 0 4px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
&-sort {
|
|
200
|
+
height: 10px;
|
|
201
|
+
width: 8px;
|
|
202
|
+
display: inline-block;
|
|
203
|
+
&__asc,
|
|
204
|
+
&__desc {
|
|
205
|
+
width: 0;
|
|
206
|
+
height: 0;
|
|
207
|
+
border: 4px solid;
|
|
208
|
+
position: absolute;
|
|
209
|
+
}
|
|
210
|
+
&__asc {
|
|
211
|
+
border-color: transparent transparent @sort-icon-color;
|
|
212
|
+
transform: translateY(-4px);
|
|
213
|
+
&.asc-active {
|
|
214
|
+
border-bottom-color: @active-sort-icon-color;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
&__desc {
|
|
218
|
+
border-color: @sort-icon-color transparent transparent;
|
|
219
|
+
transform: translateY(6px);
|
|
220
|
+
&.desc-active {
|
|
221
|
+
border-top-color: @active-sort-icon-color;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&__body-wrapper {
|
|
228
|
+
position: relative;
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
}
|
|
231
|
+
&__body {
|
|
232
|
+
overflow: hidden;
|
|
233
|
+
-webkit-touch-callout: none;
|
|
234
|
+
-webkit-user-select: none;
|
|
235
|
+
&-fixed {
|
|
236
|
+
display: block;
|
|
237
|
+
position: absolute;
|
|
238
|
+
top: 0;
|
|
239
|
+
left: 0;
|
|
240
|
+
// box-shadow: 0 0 6px @shadow-color;
|
|
241
|
+
overflow: hidden;
|
|
242
|
+
z-index: 1;
|
|
243
|
+
transform: translateZ(0px);
|
|
244
|
+
background-color: @row-bgcolor;
|
|
245
|
+
}
|
|
246
|
+
td,
|
|
247
|
+
&-fixed td {
|
|
248
|
+
// position: relative;
|
|
249
|
+
font-size: 12px;
|
|
250
|
+
color: @text-color;
|
|
251
|
+
// overflow: hidden;
|
|
252
|
+
vertical-align: middle;
|
|
253
|
+
.border-bottom-1px();
|
|
254
|
+
}
|
|
255
|
+
td > *,
|
|
256
|
+
&-fixed td > * {
|
|
257
|
+
padding: 0 4px;
|
|
258
|
+
.cell-ellipsis();
|
|
259
|
+
}
|
|
260
|
+
&__no-data {
|
|
261
|
+
position: absolute;
|
|
262
|
+
font-size: 12px;
|
|
263
|
+
color: #333;
|
|
264
|
+
width: 100%;
|
|
265
|
+
text-align: center;
|
|
266
|
+
line-height: 22px;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
.ks-table__body-wrapper {
|
|
270
|
+
.ks-table-border {
|
|
271
|
+
tr td {
|
|
272
|
+
border-left: 1px #fff solid;
|
|
273
|
+
// border-bottom: 0.5px @border-color solid;
|
|
274
|
+
&:last-child {
|
|
275
|
+
border-right: 1px #fff solid;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
.ks-table-stripe {
|
|
281
|
+
tr:nth-child(even) {
|
|
282
|
+
background-color: @stripe-bgcolor;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
&__footer {
|
|
286
|
+
height: 40px;
|
|
287
|
+
}
|
|
288
|
+
&__cell-popover {
|
|
289
|
+
font-size: 14px;
|
|
290
|
+
padding: 8px 10px;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
.ks-table-popup {
|
|
294
|
+
background-color: transparent;
|
|
295
|
+
width: 100%;
|
|
296
|
+
height: 100%;
|
|
297
|
+
&__wrapper {
|
|
298
|
+
// margin: 0;
|
|
299
|
+
padding: 0 26px;
|
|
300
|
+
background-color: @row-bgcolor;
|
|
301
|
+
position: relative;
|
|
302
|
+
.ks-table-popup-center {
|
|
303
|
+
margin: 0 auto;
|
|
304
|
+
background-color: #fff;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
&__button {
|
|
308
|
+
position: absolute;
|
|
309
|
+
width: 64px;
|
|
310
|
+
height: 32px;
|
|
311
|
+
font-size: 12px;
|
|
312
|
+
top: 12px;
|
|
313
|
+
left: 2px;
|
|
314
|
+
z-index: 1;
|
|
315
|
+
transform: translateZ(0px);
|
|
316
|
+
.handle-btn {
|
|
317
|
+
width: 64px;
|
|
318
|
+
height: 32px;
|
|
319
|
+
line-height: 28px;
|
|
320
|
+
color: #fff;
|
|
321
|
+
font-weight: bold;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
.ios {
|
|
326
|
+
.ks-table-popup__button {
|
|
327
|
+
top: 12px;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
// .ipx {
|
|
331
|
+
// .ks-table-popup__wrapper {
|
|
332
|
+
// margin: 0 26px;
|
|
333
|
+
// }
|
|
334
|
+
// .ks-table-popup__button {
|
|
335
|
+
// top: 18px;
|
|
336
|
+
// }
|
|
337
|
+
// }
|
|
338
|
+
|
|
339
|
+
// 二级表头
|
|
340
|
+
.ks-table__header-title-multiple {
|
|
341
|
+
height: 100%;
|
|
342
|
+
&__first {
|
|
343
|
+
display: flex;
|
|
344
|
+
height: 50%;
|
|
345
|
+
line-height: 50%;
|
|
346
|
+
align-items: center;
|
|
347
|
+
justify-content: center;
|
|
348
|
+
text-align: center;
|
|
349
|
+
.border-bottom-1px();
|
|
350
|
+
}
|
|
351
|
+
&__second {
|
|
352
|
+
display: flex;
|
|
353
|
+
height: 50%;
|
|
354
|
+
&-item {
|
|
355
|
+
position: relative;
|
|
356
|
+
vertical-align: middle;
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
.border-left-1px();
|
|
360
|
+
&:first-child {
|
|
361
|
+
border-left: none;
|
|
362
|
+
&:after {
|
|
363
|
+
width: 0;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
&-title {
|
|
367
|
+
line-height: 13px;
|
|
368
|
+
padding: 0 4px;
|
|
369
|
+
display: inline-block;
|
|
370
|
+
vertical-align: middle;
|
|
371
|
+
text-align: left;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
// 二级表头列
|
|
377
|
+
.ks-table__multiple-cloumn {
|
|
378
|
+
display: flex !important;
|
|
379
|
+
padding: 0 !important;
|
|
380
|
+
&-cell {
|
|
381
|
+
border-left: 1px solid #fff;
|
|
382
|
+
vertical-align: middle;
|
|
383
|
+
&:first-child {
|
|
384
|
+
border-left: none;
|
|
385
|
+
}
|
|
386
|
+
&__text {
|
|
387
|
+
padding: 0 4px;
|
|
388
|
+
.cell-ellipsis();
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
.ks-table-setting-popup {
|
|
393
|
+
height: 100%;
|
|
394
|
+
width: 280px;
|
|
395
|
+
border-radius: 20px 0 0 20px;
|
|
396
|
+
.ks-table-setting__wrapper {
|
|
397
|
+
height: 100%;
|
|
398
|
+
display: flex;
|
|
399
|
+
flex-direction: column;
|
|
400
|
+
}
|
|
401
|
+
.ks-table-setting__header {
|
|
402
|
+
height: 120px;
|
|
403
|
+
h3 {
|
|
404
|
+
font-size: 16px;
|
|
405
|
+
color: #444;
|
|
406
|
+
margin: 52px 0 0 12px;
|
|
407
|
+
font-weight: 500;
|
|
408
|
+
display: flex;
|
|
409
|
+
align-items: center;
|
|
410
|
+
height: 20px;
|
|
411
|
+
.van-icon {
|
|
412
|
+
font-size: 20px;
|
|
413
|
+
margin-right: 4px;
|
|
414
|
+
}
|
|
415
|
+
strong {
|
|
416
|
+
font-size: 12px;
|
|
417
|
+
color: #999;
|
|
418
|
+
font-weight: 400;
|
|
419
|
+
margin-left: 6px;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
&__table-title {
|
|
423
|
+
padding-left: 16px;
|
|
424
|
+
height: 28px;
|
|
425
|
+
span {
|
|
426
|
+
display: inline-block;
|
|
427
|
+
color: #999;
|
|
428
|
+
font-size: 14px;
|
|
429
|
+
line-height: 28px;
|
|
430
|
+
}
|
|
431
|
+
.ks-table-setting {
|
|
432
|
+
&__field-name {
|
|
433
|
+
width: 124px;
|
|
434
|
+
}
|
|
435
|
+
&__switch {
|
|
436
|
+
width: 70px;
|
|
437
|
+
}
|
|
438
|
+
&__sortable {
|
|
439
|
+
width: 40px;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
.ks-table-setting__list-wrapper {
|
|
445
|
+
flex: 1;
|
|
446
|
+
overflow-y: scroll;
|
|
447
|
+
-webkit-overflow-scrolling: touch;
|
|
448
|
+
padding: 0 16px;
|
|
449
|
+
}
|
|
450
|
+
.ks-table-setting__list {
|
|
451
|
+
width: 208px;
|
|
452
|
+
padding-right: 40px;
|
|
453
|
+
li {
|
|
454
|
+
height: 24px;
|
|
455
|
+
position: relative;
|
|
456
|
+
display: flex;
|
|
457
|
+
width: 208px;
|
|
458
|
+
padding: 10px 0;
|
|
459
|
+
overflow: hidden;
|
|
460
|
+
color: #333;
|
|
461
|
+
font-size: 12px;
|
|
462
|
+
line-height: 24px;
|
|
463
|
+
background-color: #fff;
|
|
464
|
+
border-bottom: 1px solid #e2e2e2;
|
|
465
|
+
.van-checkbox {
|
|
466
|
+
margin-top: 4px;
|
|
467
|
+
}
|
|
468
|
+
.svg-icon {
|
|
469
|
+
margin-left: 32px;
|
|
470
|
+
margin-top: 6px;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
&-title {
|
|
474
|
+
display: inline-block;
|
|
475
|
+
width: 140px;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
.ks-table-setting__footer {
|
|
479
|
+
height: 80px;
|
|
480
|
+
.van-button {
|
|
481
|
+
border-radius: 999px !important;
|
|
482
|
+
height: 42px;
|
|
483
|
+
line-height: 40px;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|